df7999ee592c12cfab24858e0b9b6839f7820eb0
[gnulib.git] / ChangeLog
1 2012-12-31  Eric Blake  <eblake@redhat.com>
2
3         sigprocmask-tests: skip test if pid is unexpectedly large
4         * tests/test-sigprocmask.c (main): Add range check.
5
6         git-version-gen: avoid test -z portability glitch
7         * build-aux/git-version-gen: Prefer portable test spelling, since
8         git-version-gen is run on more than just developer machines.
9
10 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
11
12         git-version-gen: add --fallback option to use if git is not present
13         * build-aux/git-version-gen: Add support for the new option --fallback,
14         which comes into play when there is no $tarball_version_file and
15         git is not working.
16         (scriptversion): Update.
17
18         maint.mk: handle missing git with more grace
19         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20         Quietly proceed if git is not present.
21
22 2012-12-31  Eric Blake  <eblake@redhat.com>
23
24         dup2: work around cygwin bug
25         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
26         * lib/dup2.c (rpl_dup2): Work around it.
27         * doc/posix-functions/dup2.texi (dup2): Document it.
28
29 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
30
31         regex: remove unnecessary dependency on localcharset.h
32         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
33         hasn't been needed for years.
34         * modules/regex (Depends-on): Remove localcharset.
35
36         regex: revert single-byte change
37         * lib/regexec.c (check_node_accept_bytes): Revert previous change
38         to this function.  This was alredy fixed in a different way, at
39         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
40         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
41         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
42
43         regex: simplify based on Gawk version
44         * lib/regex_internal.c (re_dfa_add_node): Simplify.
45         Reported by Aharon Robbins in
46         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
47
48 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49
50         regex: check that pattern char is single-byte
51         Reported by Aharon Robbins in
52         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
53         * lib/regexec.c (check_node_accept_bytes):
54         Return 0 if the pattern string has a multibyte character here.
55
56         regex: implement rational ranges
57         Reported by Aharon Robbins in
58         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
59         * lib/regcomp.c (build_range_exp) [!_LIBC]:
60         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
61         Implement rational ranges.
62
63         regex: avoid redefining __wctype
64         Reported by Aharon Robbins in
65         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
66         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
67         #undef before defining.
68
69         regex: port to hosts where malloc (0) == NULL
70         Reported by Aharon Robbins in
71         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
72         * lib/regex_internal.c (re_node_set_alloc):
73         Don't assume that malloc (0) yields nonnull.
74         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
75         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
76         * modules/regex (Files): Add m4/eealloc.m4.
77
78         regex: port to C89
79         Reported by Aharon Robbins in
80         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
81         * lib/regcomp.c (init_word_char): Declaration before statement.
82
83         regex: merge glibc changes
84         Also, copy the license wording from glibc.  This simplifies
85         merging changes.  gnulib-tool will change the wording to GPL as
86         appropriate, when importing it to other packages.  The only
87         glibc change made since the last merge, which needs merging, is:
88         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
89         * lib/regex_internal.h (gettext): Remove use of INTUSE.
90
91         * users.txt: Add Emacs.
92
93         doc: omit mention of version when not needed
94         * doc/gnulib-intro.texi (Portability and Application Code):
95         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
96         Don't mention particular dates or versions when not necessary, so
97         that the documentation won't go out of date so quickly.
98
99         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
100
101 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
102
103         bootstrap: pass --force to autoreconf.
104         * build-aux/bootstrap (AUTORECONFFLAGS): New.
105         Add "--force" so that Automake's ylwrap and other such tools
106         be updated at each bootstrap invocation.
107         Use it.
108
109 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
110
111         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
112         The earlier patch forgot to update one of the #if conditions, causing
113         a problem on Debian testing i386 reported by Mats Erik Andersson
114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
115         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
116         (__argp_fmtstream_puts, argp_fmtstream_puts)
117         (__argp_fmtstream_write, argp_fmtstream_write)
118         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
119
120         * doc/gnulib-readme.texi: Minor fixups.
121         (Portability guidelines): Modernize URLs.  Remove some repetition.
122         (Indent with spaces not TABs): Reword to avoid too-long lines.
123         Remove some '@ifset standalone' stuff that isn't used.
124
125         * doc/gnulib-readme.texi (Portability guidelines):
126         ctype.h, not ctime.h.
127
128         Correct name of POSIX.1-2001.
129         * doc/posix-functions/fgetc.texi (fgetc):
130         * doc/posix-functions/fgets.texi (fgets):
131         * doc/posix-functions/fread.texi (fread):
132         * doc/posix-functions/fscanf.texi (fscanf):
133         * doc/posix-functions/getc.texi (getc):
134         * doc/posix-functions/getchar.texi (getchar):
135         * doc/posix-functions/scanf.texi (scanf):
136         POSIX.1-2001, not POSIX-2001.
137
138         doc: move README into manual
139         * README: Move contents to new file doc/gnulib-readme.texi.
140         Replace with a one-line summary.
141         * doc/gnulib.texi (Brief Overview): New section,
142         with old intro preface.  Include gnulib-readme.texi for contents.
143         (Philosophy): Rename from "Introduction", since this
144         section no longer introduces the rest.  Write a new preface.
145         * doc/gnulib-readme.texi: New file, with the old contents of
146         README texinfo-ized.  This way, the README info appears
147         in the online and printed manual.
148
149 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
150
151         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
152         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
153         c_vasprintf() prototype.
154
155 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
156
157         c-vasprintf: Fix "empty declaration" warning reported by GCC.
158         * lib/c-vasprintf.h: Remove stray semicolon.
159
160 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
161
162         gettext: avoid obsolete macro AM_PROG_MKDIR_P
163         It is obsolete and is planned to be removed from Automake 1.14; see
164         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
165         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
166         (installdirs-data, installdirs-data-yes):
167         Use $(MKDIR_P), not $(mkdir_p).
168         * m4/intl.m4 (AM_INTL_SUBDIR):
169         * m4/po.m4 (AM_PO_SUBDIRS):
170         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
171
172 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
173
174         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
175         On this platform, we are not optimizing but we are using
176         the substitute for extern inlines, so compile as if
177         C99-style extern inline, or a substitute, is available.
178         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
179         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
180         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
181         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
182         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
183         Declare as ARGP_FS_EI, not as extern.
184         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
185         (__option_is_short, _option_is_end, __option_is_end)
186         [!_LIBC && __USE_EXTERN_INLINES]:
187         Declare as ARGP_EI, not as extern.
188
189 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
190
191         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
192         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
193         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
194         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
195         ...), as the latter is fatal with older Autoconfs.
196         Problem reported and fix suggested by Eric Blake in thread starting at
197         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
198
199 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
200
201         AC_PROG_MKDIR_P: don't workaround if not buggy
202         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
203         Define only for Autoconf versions before 2.62.
204         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
205         undocumented m4_PACKAGE_VERSION, for consistency with the
206         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
207         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
208         was introduced in 2.62.
209
210 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
211
212         New 'c-*printf' modules for formatted output in C locale.
213
214         New module 'c-vasnprintf'.
215         * modules/c-vasnprintf: New file.
216         * lib/c-vasnprintf.c: New file.
217         * lib/c-vasnprintf.h: New file.
218
219         New module 'c-snprintf'.
220         * modules/c-snprintf: New file.
221         * modules/c-snprintf-tests: New file.
222         * lib/c-snprintf.c: New file.
223         * lib/c-snprintf.h: New file.
224         * tests/test-c-snprintf.c: New file.
225         * tests/test-c-snprintf.sh: New file.
226
227         New module 'c-vsnprintf'.
228         * modules/c-vsnprintf: New file.
229         * modules/c-vsnprintf-tests: New file.
230         * lib/c-vsnprintf.c: New file.
231         * lib/c-vsnprintf.h: New file.
232         * tests/test-c-vsnprintf.c: New file.
233         * tests/test-c-vsnprintf.sh: New file.
234
235         New module 'c-vasprintf'.
236         * modules/c-vasprintf: New file.
237         * modules/c-vasprintf-tests: New file.
238         * lib/c-asprintf.c: New file.
239         * lib/c-vasprintf.c: New file.
240         * lib/c-vasprintf.h: New file.
241         * tests/test-c-vasprintf.c  +: New file.
242         * tests/test-c-vasprintf.sh: New file.
243
244         New module 'c-xvasprintf'.
245         * modules/c-xvasprintf: New file.
246         * modules/c-xvasprintf-tests: New file.
247         * lib/c-xasprintf.c: New file.
248         * lib/c-xvasprintf.c: New file.
249         * lib/c-xvasprintf.h: New file.
250         * tests/test-c-xvasprintf.c: New file.
251         * tests/test-c-xvasprintf.sh: New file.
252
253 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
254
255         argp: better 'inline'
256         Use extern-inline module to declare extern inline functions.
257         This avoids some bogus warning diagnostics.  Problem discovered
258         when modifying GNU tar to use the manywarnings module.
259         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
260         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
261         Define based on extern-inline.
262         * modules/argp (Depends-on): Add extern-inline.
263
264 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
265
266         filemode, sys_stat: Handle MPX files a la AIX.
267         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
268         * lib/sys_stat.in.h (S_ISMPX): New macro.
269         * tests/test-sys_stat.c: Add tests for MPX files.
270
271 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
272
273         x-to-1: honor $PERL
274         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
275         a chance to use his preferred version of Perl.  This is typically
276         required by Darwin users whose default /usr/bin/perl does not have all
277         the libraries required by help2man, and who need to use their MacPorts
278         installation of Perl instead.
279
280 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
281
282         gnu-web-doc-update: add all the new files, even in new directories
283         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
284         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
285         Use it.
286         (main): Don't use cvsutils to get the list of unknown files,
287         just add all the existing files and directories.
288
289 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
290
291         gnu-web-doc-update: improve --help
292         * build-aux/gnu-web-doc-update: Move comments into --help.
293
294 2012-12-07  Eric Wong  <normalperson@yhbt.net>
295
296         mountlist: recognize more "dummy" file systems
297         * lib/mountlist.c (ME_DUMMY_0):
298         Add these dummy FS names to the list:
299         - "debugfs" virtual filesystem for kernel debugging
300         - "devpts" PTY slave filesystem
301         - "devtmpfs" device filesystem on top of tmpfs/ramfs
302         - "fusectl" control filesystem for FUSE
303         - "mqueue" enumerates POSIX message queues
304         - "rpc_pipefs" kernel <-> userspace bridge for NFS
305         - "sysfs" is for exporting kernel objects
306         - "devfs" device filesystem for Linux 2.4 and FreeBSD
307
308 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
309
310         extern-inline: avoid incompatibility with Darwin Libc
311         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
312         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
313         Problem reported by Akim Demaille in
314         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
315
316 2012-12-11  Simon Josefsson  <simon@josefsson.org>
317
318         gnupload: Work with GnuPG using gpg-agent (for smartcards).
319         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
320         let it handle password prompting.
321
322 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
323
324         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
325         * lib/canonicalize.c (canonicalize_filename_mode):
326         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
327         fetching the current directory.  Don't overrun the beginning of
328         rpath if there's no slashes after the MS-Windows drive letter.
329
330 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
331
332         maint.mk: avoid extra forks
333         * top/maint.mk (_cfg_mk): The GNU make manual documents that
334         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
335         So use that instead of "$(shell test -f FILE && echo FILE)".
336
337 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
338
339         vasnprintf: fix ASCII_ONLY typo
340         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
341         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
342         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
343         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
344         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
345
346 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
347
348         list, oset, xlist, xoset: fix extern inline issue with C99
349         This was introduced by my recent changes for 'inline'.
350         Problem reported for gettext by Daiki Ueno in
351         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
352         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
353         (gl_list_nx_create, gl_list_size, gl_list_node_value)
354         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
355         (gl_list_previous_node, gl_list_get_at)
356         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
357         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
358         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
359         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
360         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
361         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
362         (gl_list_iterator_free, gl_sortedlist_search)
363         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
364         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
365         (gl_sortedlist_remove):
366         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
367         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
368         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
369         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
370         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
371         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
372         (gl_list_add_at, gl_sortedlist_add):
373         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
374         Wrap these extern decls inside "#if 0", because they are implemented
375         as inline functions, and extern inline is not what's wanted here.
376         It would simplify these .h files to remove the extern decls entirely,
377         although a downside would be less-clear separation between
378         specification and implementation.
379
380 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
381
382         sys_stat: no 'static inline'
383         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
384         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
385
386         extern-inline: no 'static inline'
387         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
388         Do not require AC_C_INLINE.
389         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
390         'static inline', for older compilers.
391
392         snippet/warn-on-use: no 'static inline'
393         * build-aux/snippet/warn-on-use.h:
394         Remove unnecessary 'inline' in comment.
395
396         rbtree-list, rbtreehash-list: no 'static inline'
397         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
398         * lib/gl_anytree_list2.h (node_at):
399         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
400         (gl_oset_first, add_nodes_to_buckets):
401         Now static, not static inline.
402
403         regex: no 'static inline'
404         * lib/regex_internal.c (calc_state_hash):
405         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
406         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
407         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
408         Now static, not static inline.
409         (inline) [__GNUC__ < 3 && _LIBC]:
410         Remove macro; no longer needed.
411
412         xvasprintf: no 'static inline'
413         * lib/xvasprintf.c (xstrcat):
414         Now static, not static inline.
415         * m4/xvasprintf.m4 (gl_XVASPRINTF):
416         Do not require AC_C_INLINE.
417
418         parse-datetime, parse-duration: no 'static inline'
419         * lib/parse-datetime.y (to_uchar):
420         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
421         (scale_n_add):
422         Now static, not static inline.
423         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
424         * modules/parse-duration (configure.ac):
425         Do not require AC_C_INLINE.
426
427         getaddrinfo: no 'static inline'
428         * lib/getaddrinfo.c (validate_family):
429         Now static, not static inline.
430         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
431         Do not require AC_C_INLINE.
432
433         ftruncate, fts, lstat, openat, raise: no 'static inline'
434         * lib/ftruncate.c (chsize_nothrow):
435         * lib/fts.c (opendirat, diropen):
436         * lib/lstat.c (orig_lstat):
437         * lib/openat.c (orig_openat):
438         * lib/raise.c (raise_nothrow):
439         Now static, not static inline.
440         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
441         * m4/fts.m4 (gl_FUNC_FTS_CORE):
442         * m4/lstat.m4 (gl_PREREQ_LSTAT):
443         * m4/openat.m4 (gl_PREREQ_OPENAT):
444         * m4/raise.m4 (gl_PREREQ_RAISE):
445         Do not require AC_C_INLINE.
446
447         fflush, stat: no 'static inline'
448         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
449         (clear_ungetc_buffer, disable_seek_optimization)
450         (restore_seek_optimization, update_fpos_cache):
451         * lib/stat.c (orig_stat):
452         Now static, not static inline.
453         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
454         (update_fpos_cache):
455         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
456         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
457         * m4/stat.m4 (gl_PREREQ_STAT):
458         Do not require AC_C_INLINE.
459
460         error, filevercmp: no 'static inline'
461         * lib/error.c (is_open, flush_stdout):
462         * lib/filevercmp.c (order):
463         Now static, not static inline.
464         * m4/error.m4 (gl_PREREQ_ERROR):
465         * modules/filevercmp (configure.ac):
466         Do not require AC_C_INLINE.
467
468         dup, execute, fatal-signal, etc.: no 'static inline'
469         * lib/dup.c (dup_nothrow):
470         * lib/execute.c (nonintr_close, nonintr_open):
471         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
472         * lib/fopen.c (orig_fopen):
473         * lib/freadseek.c (freadptrinc):
474         * lib/freopen.c (orig_freopen):
475         * lib/fstat.c (orig_fstat, fstat_nothrow):
476         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
477         (get_rusage_as_via_iterator):
478         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
479         * lib/getdtablesize.c (_setmaxstdio_nothrow):
480         * lib/isatty.c (_isatty_nothrow):
481         * lib/open.c (orig_open):
482         * lib/read.c (read_nothrow):
483         * lib/sigprocmask.c (signal_nothrow):
484         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
485         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
486         * lib/wait-process.c (unregister_slave_subprocess):
487         * lib/write.c (write_nothrow):
488         Now static, not static inline.
489         * lib/spawn-pipe.c (nonintr_open): Define only if
490         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
491         * m4/dup.m4 (gl_PREREQ_DUP):
492         * m4/execute.m4 (gl_EXECUTE):
493         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
494         * m4/fopen.m4 (gl_PREREQ_FOPEN):
495         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
496         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
497         * m4/fstat.m4 (gl_PREREQ_FSTAT):
498         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
499         * m4/isatty.m4 (gl_PREREQ_ISATTY):
500         * m4/open.m4 (gl_PREREQ_OPEN):
501         * m4/read.m4 (gl_PREREQ_READ):
502         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
503         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
505         * m4/wait-process.m4 (gl_WAIT_PROCESS):
506         * m4/write.m4 (gl_PREREQ_WRITE):
507         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
508         Do not require AC_C_INLINE.
509
510         c-strtod, memcoll, readutmp: no 'static inline'
511         * lib/c-strtod.c (c_locale):
512         * lib/memcoll.c (strcoll_loop):
513         * lib/readutmp.c (desirable_utmp_entry):
514         Now static, not static inline.
515         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
516         * m4/memcoll.m4 (gl_MEMCOLL):
517         * m4/readutmp.m4 (gl_READUTMP):
518         Do not require AC_C_INLINE.
519
520         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
521         * lib/arctwo.c (to_uchar):
522         * lib/md4.c (set_uint32):
523         * lib/md5.c (set_uint32):
524         * lib/sha1.c (set_uint32):
525         * lib/sha256.c (set_uint32):
526         * lib/sha512.c (set_uint64):
527         Now static, not static inline.  This is a bit simpler, and doesn't
528         affect performance with GCC and default optimization.
529         * m4/arctwo.m4 (gl_ARCTWO):
530         * m4/md4.m4 (gl_MD4):
531         * m4/md5.m4 (gl_MD5):
532         * m4/sha1.m4 (gl_SHA1):
533         * m4/sha256.m4 (gl_SHA256):
534         * m4/sha512.m4 (gl_SHA512):
535         Do not require AC_C_INLINE.
536
537         cond, lock, thread: better 'inline'
538         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
539         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
540         New macros.  Use them instead of static inline, for header functions.
541         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
542         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
543         * lib/glthread/lock.c (gl_waitqueue_init)
544         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
545         * lib/glthread/thread.c (get_current_thread_handle):
546         Change 'static inline' to 'inline'.
547         * lib/glthread/cond.h, lib/glthread/thread.h:
548         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
549         * m4/cond.m4 (gl_COND):
550         * m4/lock.m4 (gl_PREREQ_LOCK):
551         * m4/thread.m4 (gl_THREAD):
552         Do not require AC_C_INLINE.
553         * modules/cond, modules/thread (Depends-on): Add extern-inline.
554
555         chdir-long, cycle-check, savewd: better 'inline'
556         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
557         (find_non_slash):
558         * lib/cycle-check.c (is_zero_or_power_of_two):
559         * lib/savewd.c (savewd_delegating):
560         Change 'static inline' to 'inline'.
561         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
562         Replace all remaining uses of 'static inline' with it.
563         * lib/savewd.h:
564         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
565         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
566         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
567         * m4/savewd.m4 (gl_SAVEWD):
568         Do not require AC_C_INLINE.
569         * modules/savewd (Depends-on): Add extern-inline.
570
571         base32, base64: no need for 'inline'
572         * lib/base32.c (to_uchar, get_8, decode_8):
573         * lib/base64.c (to_uchar, get_4, decode_4):
574         Change 'static inline' to 'inline'.
575         * m4/base32.m4 (gl_PREREQ_BASE32):
576         * m4/base64.m4 (gl_PREREQ_BASE64):
577         Do not require AC_C_INLINE.
578
579         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
580         * lib/gl_array_oset.c (gl_array_nx_add_at):
581         (gl_array_remove_at):
582         * lib/gl_linkedhash_list.c (hash_resize_after_add)
583         (add_to_bucket, remove_from_bucket):
584         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
585         Change 'static inline' to 'static', as it's simpler to omit
586         'inline' unless there's a significant performance advantage.
587
588         list, oset, xlist, xoset, xsublist: simplify via extern inline
589         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
590         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
591         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
592         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
593         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
594         New macro.  Replace all uses of 'static inline' with it.
595         [HAVE_INLINE]: Implement functions as *_INLINE functions,
596         instead of as macros FOO that are defined to static inline
597         functions FOO_inline.
598         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
599         * lib/gl_xsublist.c:
600         Reimplement from scratch, by defining the corresponding *_INLINE
601         macro and including the corresponding .h file.  This is simpler.
602         * modules/list, modules/oset, modules/xlist, modules/xoset:
603         (Files): Remove m4/gl_list.m4.
604         (configure.ac): Remove gl_LIST.
605         * m4/gl_list.m4: Remove.
606         * modules/list, modules/oset, modules/xlist, modules/xoset:
607         * modules/xsublist:
608         (Depends-on): Depend on extern-inline, not inline.
609
610         xalloc: better 'inline'
611         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
612         New macro.  Replace all uses of 'static inline' with it.
613         (static_inline): Remove.
614         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
615         Let 'extern inline' do the work automatically, instead of doing
616         it by hand.
617         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
618         Remove.  All uses removed.
619         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
620
621         gethrxtime: better 'inline'
622         * lib/xtime.c: New file.
623         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
624         * lib/xtime.h (XTIME_INCLUDE):
625         New macros.  Replace all uses of 'static inline' with them.
626         * lib/gethrxtime.c (gethrxtime): Define only if
627         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
628         this source file is now always compiled, because of the extern inline.
629         * lib/gethrxtime.h, lib/xtime.h:
630         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
631         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
632         if gethrtime works, as they're not needed in that case.
633         (gl_XTIME): Do not require AC_C_INLINE.
634         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
635         compiled now.  Move the check into gl_GETHRXTIME.
636         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
637         (Depends-on): Add extern-inline.
638         (configure.ac): gethrxtime is always compiled now.
639         (lib_SOURCES): Add gethrxtime.c.
640
641         wctype-h: better 'inline'
642         * lib/wctype-h.c: New file.
643         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
644         New macro.  Replace all uses of 'static inline' with it.
645         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
646         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
647         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
648         (Depends-on): Add extern-inline.
649
650         unistd: better 'inline'
651         * lib/unistd.c: New file.
652         * lib/unistd.in.h (_GL_UNISTD_INLINE):
653         New macro.  Replace all uses of 'static inline' with it.
654         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
655         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
656         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
657         (Depends-on): Add extern-inline.
658
659         sys_socket: better 'inline'
660         * lib/sys_socket.c: New file.
661         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
662         New macro.  Replace all uses of 'static inline' with it.
663         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
665         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
666         (Depends-on): Add extern-inline.
667
668         stdio: better 'inline'
669         * lib/stdio.c: New file.
670         * lib/stdio.in.h (_GL_STDIO_INLINE):
671         New macro.  Replace all uses of 'static inline' with it.
672         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
673         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
674         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
675         (Depends-on): Add extern-inline.
676
677         sigaction: better 'inline'
678         * lib/sig-handler.c: New file.
679         * lib/sig-handler.h (SIG_HANDLER_INLINE):
680         New macro.  Replace all uses of 'static inline' with it.
681         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
682         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
683         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
684         (Depends-on): Add extern-inline.
685
686         selinux-h: better 'inline'
687         * lib/se-context.c, lib/se-selinux.c: New files.
688         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
689         * lib/se-context.in.h (SE_CONTEXT_INLINE):
690         New macro.  Replace all uses of 'static inline' with it.
691         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
692         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
693         New macro.  Replace all uses of 'static inline' with it.
694         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
695         * modules/selinux-h (Files, lib_SOURCES):
696         Add lib/se-context.c, lib/se-selinux.c.
697         (Depends-on): Add extern-inline.
698         (configure.ac): Do not require AC_C_INLINE.
699
700         pthread: better 'inline'
701         * lib/pthread.c: New file.
702         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
703         New macro.  Replace all uses of 'static inline' with it.
704         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
705         * m4/pthread.m4 (gl_PTHREAD_CHECK):
706         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
707         * modules/pthread (Files): Add lib/pthread.c.
708         (Depends-on): Add extern-inline.
709
710         math: better 'inline'
711         * lib/math.c: New file.
712         * lib/math.in.h (_GL_MATH_INLINE):
713         New macro.  Replace all uses of 'static inline' with it.
714         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
715         * m4/math_h.m4 (gl_MATH_H):
716         Do not require AC_C_INLINE.
717         * modules/math (Files, lib_SOURCES):
718         Add lib/math.c.
719         (Depends-on): Add extern-inline.
720
721         count-one-bits: better 'inline'
722         * lib/count-one-bits.c: New file.
723         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
724         New macro.  Replace all uses of 'static inline' with it.
725         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
726         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
727         Do not require AC_C_INLINE.
728         * modules/count-one-bits (Files, lib_SOURCES):
729         Add lib/count-one-bits.c.
730         (Depends-on): Add extern-inline.
731
732         count-leading-zeros: better 'inline'
733         * lib/count-leading-zeros.c: New file.
734         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
735         New macro.  Replace all uses of 'static inline' with it.
736         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
737         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
738         Do not require AC_C_INLINE.
739         * modules/count-leading-zeros (Files, lib_SOURCES):
740         Add lib/count-leading-zeros.c.
741         (Depends-on): Add extern-inline.
742
743         bitrotate: better 'inline'
744         * lib/bitrotate.c: New file.
745         * lib/bitrotate.h (BITROTATE_INLINE):
746         New macros.
747         Replace all uses of 'static inline' with them.
748         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
749         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
750         (Depends-on): Add extern-inline.
751         (configure.ac): Do not require AC_C_INLINE.
752
753 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
754
755         maint.mk: avoid gratuitous failure
756         Reported by Stefano Lattarini in
757         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
758         * top/maint.mk (public-submodule-commit): Quote more safely.
759
760 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
761
762         canonicalize, canonicalize-lgpl: support MS-Windows file names
763         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
764         for test cases, which it'd be nice to add at some point.
765         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
766         * lib/canonicalize.c (canonicalize_filename_mode):
767         * lib/canonicalize-lgpl.c (__realpath):
768         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
769         slash is at the beginning of the file name.  Use ISSLASH, instead
770         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
771         the first character with '/'.  Test for
772         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
773         with a drive letter.
774         * lib/canonicalize.c (SLASHES): New macro.
775         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
776
777 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
778
779         fts: introduce FTS_VERBATIM
780         * lib/fts_.h (FTS_VERBATIM): New bit flag.
781         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
782         * lib/fts.c (fts_open): Honor it.
783
784 2012-11-09  Pádraig Brady  <P@draigBrady.com>
785
786         getlogin-tests: allow errno == ENXIO
787         * tests/test-getlogin.c (main): Skip tests if getlogin fails
788         with errno == ENXIO (No controlling tty).
789         getlogin_r-tests: Likewise. Also allow errno == ENOENT
790         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
791         with errno == ENOENT.  This was reported to happen in various
792         situations on GNU/Linux.
793
794 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
795
796         getlogin-tests: allow errno == ENOENT
797         * tests/test-getlogin.c (main): Skip tests if getlogin fails
798         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
799         when running a test in an Emacs shell buffer.
800
801 2012-11-08  Jim Meyering  <jim@meyering.net>
802
803         tests/nap.h: avoid warning about unused variable
804         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
805
806         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
807         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
808         white space before each of the special-cased file names, to avoid
809         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
810         in http://bugs.gnu.org/12830.
811
812 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
813
814         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
815         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
816         fails with errno == EBADF when fd is opened with O_PATH.
817         Reported by Jim Meyering in
818         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
819         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
820         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
821
822 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
823
824         test-utimens: speed up by taking shorter naps
825         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
826         New functions.
827         (nap): Use them, to do a better job of guessing the delay.
828         On Fedora 17 with ext4 atop md atop hard disks, this made
829         test-utimens run 10x faster, because the test napped for
830         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
831         <http://bugs.gnu.org/12820#11>.
832
833 2012-11-07  Jim Meyering  <jim@meyering.net>
834
835         mountlist.c: fix a compilation failure
836         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
837         I introduced while transforming commit v0.0-7683-g613bcb6
838
839 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
840
841         errno: port to LynxOS 178 2.2.2
842         Problem reported by Joel Brobecker in
843         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
844         * doc/posix-headers/errno.texi (errno.h): Document this.
845         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
846         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
847         Supply a string for EILSEQ.
848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
849
850 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
851
852         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
853         Linux kernel 2.6.39 introduced O_PATH (see
854         <http://lwn.net/Articles/433854/>) and this is a better fallback
855         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
856         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
857         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
858         * lib/fcntl.in.h (O_ACCMODE):
859         * tests/test-fcntl-h.c (main):
860         Do not reject O_ACCMODE merely because it has more than the
861         minimal number of bits, as POSIX allows extensions here.
862
863 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
864
865         mountlist: do not classify a bind-mounted dir entry as "dummy"
866         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
867         the "none"-testing clause.
868         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
869         exception for bind-mounted directories.
870
871 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
872
873         quote: provide a means to escape strings with nul characters
874         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
875         (quote, quote_n): Rename formal arguments for consistency with
876         quotearg.
877
878 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
879
880         test-raise: don't assume 199 is an invalid signal
881         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
882
883         sh-quote-tests: port to Solaris 9
884         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
885         Problem reported by Dagobert Michelsen in
886         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
887
888 2012-10-28  Jim Meyering  <jim@meyering.net>
889
890         maint.mk: rename a new configurable variable
891         * top/maint.mk (_gl_translatable_string_re): Rename from
892         translation-markers: _gl_ prefix to insulate from user Makefile code,
893         and the _re suffix to inform that it's a regular expression.
894
895 2012-10-26  Eric Blake  <eblake@redhat.com>
896
897         maint.mk: let packages tweak sc_po_check pattern
898         * top/maint.mk (sc_po_check): Add translation-markers, to allow
899         finding files with other translation markers.
900
901 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
902
903         euidaccess: speed up 'configure' on GNU hosts
904         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
905         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
906         it's needed only in this case.  Use AC_CHECK_DECLS, not
907         AC_CHECK_DECLS_ONCE.
908         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
909         or AC_REQUIRE for AC_FUNC_GETGROUPS.
910
911         * lib/regexec.c (re_search_internal): Fix grammar in comment.
912
913 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
914
915         fchmodat, fchownat, fstatat: port to non-inlining compilers
916         Problem reported for FreeBSD 9 by Jim Meyering in
917         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
918         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
919         New files, which define FCHMODAT_INLINE etc.
920         * lib/fchmodat.c (FCHMODAT_INLINE):
921         * lib/fchownat.c (FCHOWNAT_INLINE):
922         * lib/fstatat.c (FSTATAT_INLINE):
923         Remove, as chmodat.c etc. now do this.
924         * modules/fchmodat (Files): Add lib/chmodat.c.
925         * modules/fchownat (Files): Add lib/chownat.c.
926         * modules/fstatat (Files): Add lib/statat.c.
927
928 2012-10-15  Jim Meyering  <jim@meyering.net>
929
930         fchmodat.c, fchownat.c: compile-impeding typos
931         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
932         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
933         Introduced in commit v0.0-7636-gd202279.
934
935 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
936
937         fcntl-h: support GNU flags like O_IGNORE_CTTY
938         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
939         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
940         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
941         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
942         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
943         Define to 0 if not already defined.
944         * tests/test-fcntl-h.c: Test these new flags.
945
946 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
947
948         faccessat, etc.: support AT_FDCWD-only use
949         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
950         this function only if its first argument is AT_FDCWD.
951         Emacs wants faccessat for AT_EACCESS but not for any first-arg
952         values other than AT_FDCWD, so it doesn't want all the openat
953         machinery with fchdir etc.
954         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
955         * modules/fstatat, modules/mkdirat, modules/openat (Files):
956         * modules/unlinkat (Files):
957         Remove lib/openat-priv.h, as at-internal supplies this file.
958         Removing this file here allows us to support programs like Emacs
959         that avoid at-internal.
960
961         faccessat: speed up 'configure' on mainstream hosts
962         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
963         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
964         since it's only on unusual platforms that we need to check for
965         'access', and it's better not to slow 'configure' down on all
966         platforms.
967
968         faccessat: port to Solaris 10
969         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
970         Needed on Solaris 10, which doesn't have AT_EACCESS,
971         so we need the Gnulib fcntl.h, which defines it.
972
973 2012-10-14  Pádraig Brady  <P@draigBrady.com>
974         canonicalize: fix C89 compilation
975         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
976         declarations so C89 is supported.  Also remove the comment
977         referencing memorty allocation as the suggested feature could
978         not be implemented as suggested.
979         Reported by Michael Goffioul.
980
981 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
982
983         group-member: omit unnecessary dependencies
984         This is for Emacs, which has its own allocator and where we
985         don't want to use xalloc.
986         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
987         since we no longer use xmalloc.  Do not include stdbool.h, since
988         the changes below happen to remove the only use of bool.
989         (GROUPBUF_SIZE): New constant.
990         (struct group_info): Remove n_groups member.  Add groupbuf member.
991         This lets us get the groups without using malloc, usually.
992         (free_group_info, get_group_info): Adjust to this.
993         (get_group_info): Return the number of groups found, or -1 on error.
994         Use plain malloc not xmalloc, and treat its failure as if there
995         are no groups, as the user already loses in case of error.
996         (group_member): Simplify, based on changes to get_group_info.
997         * modules/group-member (Depends-on): Remove dependencies on
998         xalloc and stdbool.  Add dependency on xalloc-oversized.
999
1000 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1001
1002         gethrxtime: port to C++
1003         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1004
1005 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1006
1007         ptsname: fix macro-name typo
1008         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1009
1010 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1011
1012         inttostr: Relax license.
1013         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1014
1015 2012-10-03  Eric Blake  <eblake@redhat.com>
1016
1017         ptsname_r: support ptys returned by FreeBSD posix_openpt
1018         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1019         lives in /dev/pts/.
1020
1021 2012-10-02  Eric Blake  <eblake@redhat.com>
1022
1023         pselect: reject invalid file descriptors
1024         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1025         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1026         * modules/pselect (Depends-on): Add dup2.
1027         * doc/posix-functions/pselect.texi (pselect): Document this.
1028
1029         select: reject invalid file descriptors
1030         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1031         * lib/select.c (rpl_select) [!win32]: Work around it.
1032         * modules/select (Depends-on): Add dup2.
1033         * doc/posix-functions/select.texi (select): Document this.
1034
1035         select: enhance test
1036         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1037         New functions.
1038         (test_function): Enhance test.
1039         (do_select_bad_fd): Avoid any stale errno values.
1040
1041         ptsname: reject invalid file descriptors
1042         http://www.austingroupbugs.net/view.php?id=503
1043         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1045         * modules/stdlib (Makefile.am): Replace witness.
1046         * lib/stdlib.in.h (ptsname): Allow for replacement.
1047         * modules/ptsname (configure.ac): Trigger replacement.
1048         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1049
1050 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1051
1052         hash-pjw-bare: new module
1053         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1054         * lib/hash-pjw-bare.h: Likewise.
1055         * modules/hash-pjw-bare: New file.
1056         * MODULES.html.sh (Misc): Add it.
1057
1058 2012-10-02  Eric Blake  <eblake@redhat.com>
1059
1060         manywarnings: cater to more gcc infelicities
1061         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1062         -Wuninitialized without -O.
1063
1064 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1065
1066         select, poll tests: Make setsockopt invocation effective.
1067         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1068         the bind() call.
1069         * tests/test-select.h (open_server_socket): Likewise.
1070
1071 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1072
1073         sockets, sys_stat: restore AC_C_INLINE
1074         This undoes the 2012-09-22 patch.
1075         * m4/sockets.m4 (gl_SOCKETS):
1076         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1077         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1078         and does not support plain 'inline'.  Reported by Bruno Haible in
1079         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1080
1081 2012-09-30  Bruno Haible  <bruno@clisp.org>
1082
1083         localeconv tests: Avoid test failure on OpenIndiana.
1084         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1085         skip the 'grouping' and 'mon_grouping' tests.
1086         Reported by Jim Meyering.
1087
1088 2012-09-30  Bruno Haible  <bruno@clisp.org>
1089
1090         havelib: Follow libtool developments.
1091         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1092         Suggested by Simon Josefsson.
1093
1094 2012-09-29  Jim Meyering  <meyering@redhat.com>
1095
1096         fstatat.c: fix a compile-impeding typo
1097         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1098         Introduced in commit v0.0-7636-gd202279.
1099         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1100
1101 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1102
1103         extern-inline: provide a -Wundef safe config.h
1104         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1105         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1106         to produce a -Wundef warning free config.h.
1107
1108 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1109
1110         hash-pjw: relax license to LGPLv2+
1111         * modules/hash-pjw (License): Relax, with consent of author.
1112
1113 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1114
1115         maint.mk: fix strict vs. lazy variable issues with RELEASE
1116         * top/maint.mk (_equal): New function.
1117         (member_check): Strip the result to avoid spurious spaces.
1118         (url_dir_list): Do not use ifeq, which is strict, as it will
1119         require RELEASE_TYPE to be defined.
1120         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1121         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1122         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1123         (announcement_Cc_beta,announcement_mail_headers_beta)
1124         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1125         (release): Do not depend on $(release-type), as it forces its
1126         evaluation.  Bounce to it.
1127
1128 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1129
1130         maint.mk: formatting changes
1131         * top/maint.mk: Indent bodies of if's.
1132
1133 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1134
1135         maint.mk: factor the validation of RELEASE_TYPE
1136         With help from Jim Meyering.
1137         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1138         * top/maint.mk (_empty, _sp): Move their definition earlier.
1139         (member-check, release-type): New.
1140         Use the latter instead of $(RELEASE_TYPE).
1141         Remove now useless local checks.
1142
1143 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1144
1145         maint.mk: provide "make upload" to ease uploading
1146         See
1147         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1148         Do not depend simply on the current $(VERSION), as there may have been
1149         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1150         as "make release-commit" already does.
1151
1152         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1153         "make TYPE".
1154
1155         * top/maint.mk (upload_command, upload, release): New.
1156         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1157         (VERSION): first word of $(RELEASE) is always right.
1158         (emit_upload_commands): Adjust.
1159         * top/README-release: Update.
1160
1161 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1162
1163         maint.mk: silent rules
1164         With help from Stefano Lattarini.
1165         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1166         (announcement): Use $(AM_V_at).
1167
1168 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1169
1170         localename: port gl_locale_name_thread_unsafe to FreeBSD
1171         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1172         and use the simpler FreeBSD implementation on Mac OS X as well.
1173         Original idea suggested by Ed Maste in
1174         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1175
1176 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1177
1178         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1179         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1180         * lib/mbuiter.c, lib/xsize.c: New files.
1181         * lib/binary-io.h (BINARY_IO_INLINE):
1182         * lib/eealloc.h (EEALLOC_INLINE):
1183         * lib/mbfile.h (MBFILE_INLINE):
1184         * lib/mbiter.h (MBITER_INLINE):
1185         * lib/mbuiter.h (MBUITER_INLINE):
1186         * lib/xsize.h (XSIZE_INLINE):
1187         New macros.
1188         Replace all uses of 'static inline' with them.
1189         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1190         * m4/eealloc.m4 (gl_EEALLOC):
1191         * m4/mbfile.m4 (gl_MBFILE):
1192         * m4/mbiter.m4 (gl_MBITER):
1193         * m4/xsize.m4 (gl_XSIZE):
1194         Do not require AC_C_INLINE.
1195         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1196         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1197         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1198         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1199         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1200         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1201         * modules/binary-io, modules/eealloc, modules/mbfile:
1202         * modules/mbiter, modules/mbuiter:
1203         (Depends-on): Add extern-inline.
1204
1205         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1206         * lib/pipe-filter-aux.c: New file.
1207         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1208         Replace all uses of 'static inline' with it.
1209         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1210         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1211         (filter_retcode): No real need for inline here.
1212         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1213         (Files): Add lib/pipe-filter-aux.c.
1214         (Depends-on): Add extern-inline.
1215         (configure.ac): Do not require AC_C_INLINE.
1216         (lib_SOURCES): Add pipe-filter-aux.c.
1217
1218         fdutimensat: omit unnecessary AC_C_INLINE
1219         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1220
1221         fchmodat, fchownat, fstatat: use extern-inline
1222         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1223         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1224         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1225         New macros.
1226         * lib/openat.h:
1227         Replace all uses of 'static inline' with them.
1228         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1229         * modules/fchmodat, modules/fchownat, modules/fstatat:
1230         * modules/openat-h:
1231         (Depends-on):
1232         Add extern-inline.
1233         (configure.ac): Remove AC_C_INLINE.
1234
1235         acl, mbchar, priv-set: use extern-inline
1236         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1237         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1238         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1239         New macros.
1240         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1241         Replace all uses of 'static inline' with it.
1242         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1243         * m4/acl.m4 (gl_FUNC_ACL):
1244         * m4/mbchar.m4 (gl_MBCHAR):
1245         * m4/priv-set.m4 (gl_PRIV_SET):
1246         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1247         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1248         Add extern-inline.
1249
1250         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1251         * m4/sockets.m4 (gl_SOCKETS):
1252         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1253         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1254         environments where it's already guaranteed to work, so we needn't
1255         check for it at 'configure'-time.
1256
1257         tls-tests: omit unnecessary 'inline'
1258         * tests/test-tls.c (perhaps_yield): No longer inline.
1259         Simplicity and portability trump efficiency in test cases.
1260
1261         utimens-tests: avoid unnecessary 'inline'
1262         * modules/fdutimensat-tests (configure.ac):
1263         * modules/futimens-tests (configure.ac):
1264         * modules/utimens-tests (configure.ac):
1265         * modules/utimensat-tests (configure.ac):
1266         Remove AC_C_INLINE.
1267         * tests/test-utimens-common.h (ctime_compare):
1268         No longer inline.  Simplicity and portability trump efficiency here.
1269
1270         misc: don't limit commentary to inline functions
1271         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1272         * lib/xalloc-oversized.h, lib/xsize.h:
1273         Contrast macros to functions in general, not just to inline functions,
1274         when the commentary does not apply only to inline functions.
1275
1276 2012-09-20  Jim Meyering  <meyering@redhat.com>
1277
1278         non-recursive-gnulib-prefix-hack: new module
1279         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1280         the file that originated in Bison.
1281         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1282         largely copied from a snippet that resided in bison's configure.ac.
1283         * modules/non-recursive-gnulib-prefix-hack: New file.
1284         * MODULES.html.sh (Support for maintaining and releasing projects):
1285         Add it.
1286
1287 2012-09-18  Jim Meyering  <meyering@redhat.com>
1288
1289         maint.mk: generalize _gl_tight_scope for non-recursive make
1290         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1291         that *.h would describe additional .h files in the directory
1292         specified by $(_gl_TS_dir).  I.e., add this...
1293         (_gl_TS_other_headers): New variable.
1294
1295         maint.mk: exempt trailing blanks found in "binary" files
1296         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1297         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1298         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1299
1300 2012-09-17  Jim Meyering  <meyering@redhat.com>
1301
1302         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1303         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1304         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1305         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1306
1307 2012-09-17  Jim Meyering  <meyering@redhat.com>
1308
1309         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1310         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1311         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1312         It is not in the same category as "exit (0)" or "exit (1)", and
1313         besides, I know of no symbolic name for that 77.  Reported by
1314         Richard W.M. Jones in
1315         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1316
1317 2012-09-17  Jim Meyering  <meyering@redhat.com>
1318
1319         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1320         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1321         all uses of #define, not just those that start in column 1.
1322         Richard W.M. Jones reported a false positive in
1323         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1324
1325 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1326
1327         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1328         * lib/localcharset.c (locale_charset) [DARWIN7]:
1329         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1330         as these two values are incompatible.  Problem reported by Max Horn.
1331         For more discussion, please see
1332         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1333
1334         doc: document sticky-EOF issue
1335         * doc/posix-functions/fgetc.texi (fgetc):
1336         * doc/posix-functions/fgets.texi (fgets):
1337         * doc/posix-functions/fread.texi (fread):
1338         * doc/posix-functions/fscanf.texi (fscanf):
1339         * doc/posix-functions/getc.texi (getc):
1340         * doc/posix-functions/getchar.texi (getchar):
1341         * doc/posix-functions/scanf.texi (scanf):
1342         Mention that glibc and default Solaris do not conform to
1343         C99 and POSIX-2001 or later, with respect to how getchar
1344         etc. behave when feof reports nonzero.
1345
1346 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1347
1348         poll: fix poll(0, NULL, msec)
1349         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1350         but nfd is 0.  In that case poll should behave like select.
1351
1352 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1353             Paolo Bonzini <bonzini@gnu.org>
1354
1355         poll: fix for systems that can't recv() on a non-socket
1356         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1357         is readable.  In this case POLLHUP will not be supported.
1358         * doc/posix-functions/poll.texi: Document this.
1359
1360 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1361
1362         poll/select: document portability problems not fixed by Gnulib.
1363         * doc/posix-functions/poll.texi: poll does not work well on
1364         pipes under Windows.  It has the same limitations as select on
1365         BeOS.
1366         * doc/posix-functions/select.texi: select does not work well
1367         on pipes under Windows.
1368
1369 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1370
1371         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1372         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1373         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1374         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1375
1376 2012-09-06  Eric Blake  <eblake@redhat.com>
1377
1378         net_if: give more details about the bug being fixed
1379         * doc/posix-headers/net_if.texi: Add clarification.
1380
1381 2012-09-05  Eric Blake  <eblake@redhat.com>
1382
1383         net_if: new module
1384         * modules/net_if: New module, borrowing ideas from netinet_in.
1385         * m4/net_if_h.m4: New file.
1386         * lib/net_if.in.h: Likewise.
1387         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1388         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1389         * tests/test-net_if.c: Make function checks conditional.
1390         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1391
1392 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1393
1394         readutmp: fix non-portable UT_PID use
1395         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1396         Use `UT_PID (u) > 0' as absolute condition.
1397
1398 2012-09-04  Jim Meyering  <meyering@redhat.com>
1399
1400         fts: reduce two or more trailing spaces to just one, usually
1401         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1402         or more slashes, trim all but the final one.  But if a name consists
1403         solely of two slashes, don't modify it.  If it consists solely of
1404         three or more slashes, strip all but one.
1405
1406         This is part of the solution to a minor problem with rm:
1407         it would print a bogus ELOOP diagnostic when failing to remove
1408         the slash-decorated name of a symlink-to-directory:
1409
1410             $ mkdir d && ln -s d s && env rm -r s/
1411             rm: cannot remove 's': Too many levels of symbolic links
1412
1413         With the change below and a trivial don't-trim-trailing-slashes
1414         adjustment to remove.c, it does this:
1415
1416             $ env rm -r s/
1417             rm: cannot remove 's/': Not a directory
1418
1419         Improved by: Eric Blake
1420
1421         fts: when there is no risk of overlap, use memcpy, not memmove
1422         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1423
1424 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1425
1426         stdbool: be more compatible with mixed C/C++ compiles
1427         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1428         Define to bool, true, false, respectively, as GCC's builtin
1429         stdbool.h does.  Problem reported by Michael Goffioul in
1430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1431
1432 2012-08-28  Jim Meyering  <meyering@redhat.com>
1433
1434         revert last change: it was not needed
1435         * tests/test-vc-list-files-git.sh: There's already a test for
1436         a working git, just below.
1437
1438 2012-08-28  Jim Meyering  <meyering@redhat.com>
1439
1440         tests: test-vc-list-files-git.sh: skip if git is not available
1441         * tests/test-vc-list-files-git.sh: Skip this test when git is
1442         not available.
1443
1444 2012-08-26  Bruno Haible  <bruno@clisp.org>
1445
1446         gnulib-tool: Remove no-op option --no-changelog.
1447         * gnulib-tool (func_usage): Don't mention --no-changelog.
1448         (do_changelog): Remove variable.
1449         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1450
1451 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1452
1453         doc: remove fdl-1.2.texi
1454         It is no longer used or maintained, and its use of @acronym
1455         is problematic.  See the thread containing
1456         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1457         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1458         * doc/old-licenses/fdl-1.2.texi: Remove.
1459
1460         execinfo: port to FreeBSD
1461         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1462         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1463         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1464         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1465
1466 2012-08-23  Jim Meyering  <meyering@redhat.com>
1467
1468         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1469         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1470         to placate gcc's -Wold-style-declaration.
1471
1472 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1473
1474         doc: do not use @acronym
1475         * doc/inet_ntoa.texi (inet_ntoa):
1476         * doc/parse-datetime.texi (Seconds since the Epoch)
1477         (Specifying time zone rules):
1478         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1479         Don't use @acronym.  Problem reported by John Darlington in
1480         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1481
1482 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1483
1484         stdnoreturn: port to newer GCCs
1485         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1486         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1487         Problem reported by Jim Meyering in
1488         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1489         Also, rename the 'test' function to a void a clash with the
1490         already-supplied 'main' function; this fixes a bug that incorrectly
1491         rejected GCC 4.7.1's <stdnoreturn.h>.
1492         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1493         Document GCC problem.
1494
1495 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1496
1497         pipe-filter: fix comment typo
1498         * lib/pipe-filter.h: Mention correct function.
1499
1500 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1501
1502         execinfo: new module
1503         This is for Emacs.  Currently, it provides a no-effect stub
1504         on all platforms where it does not already work.
1505         It already works on glibc-based systems, and on Solaris 11.
1506         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1507         New files.
1508         * doc/glibc-headers/execinfo.texi (execinfo.h):
1509         * MODULES.html.sh (Misc): Document it.
1510
1511 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1512
1513         extern-inline: support old GCC 'inline'
1514         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1515         if available.  This applies to GCC versions 2.7 through 4.2, or
1516         when newer GCC is using -fgnu89-inline.  The goal is to address
1517         some of the performance issues mentioned by Bruno Haible in
1518         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1519
1520 2012-08-20  Eric Blake  <eblake@redhat.com>
1521
1522         maint.mk: avoid redundant file name in message
1523         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1524         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1525         (sc_makefile_path_separator_check): Remove bogus $(ME).
1526
1527 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1528
1529         timer-time: fix link order when static linking on glibc
1530         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1531         _after_ -lrt so that it's significant.
1532
1533 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1534
1535         timespec: omit unnecessary AC_C_INLINE
1536         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1537
1538         stat-time: omit unnecessary AC_C_INLINE
1539         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1540         Do not require AC_C_INLINE.
1541
1542         ignore-value: omit unnecessary AC_C_INLINE
1543         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1544
1545         sys_select: avoid 'static inline'
1546         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1547
1548         mktime: avoid 'static inline'
1549         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1550         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1551
1552 2012-08-19  Bruno Haible  <bruno@clisp.org>
1553
1554         gnulib-tool: Improve coding style.
1555         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1556         func_emit_lib_Makefile_am.
1557         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1558
1559 2012-08-19  Bruno Haible  <bruno@clisp.org>
1560
1561         gnulib-tool: Fix indentation.
1562         * gnulib-tool (func_import): Fix indentation.
1563
1564 2012-08-19  Bruno Haible  <bruno@clisp.org>
1565
1566         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1567         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1568         on the list of removed files.
1569
1570 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1571
1572         test-parse-datetime: avoid glibc leap-second glitch
1573         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1574         with the 2012 rules.  Problem reported by Bruce Dubbs in
1575         <http://bugs.gnu.org/12206>.
1576
1577 2012-08-14  Bruno Haible  <bruno@clisp.org>
1578
1579         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1580         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1581         from argument.
1582         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1583
1584 2012-08-14  Eric Blake  <eblake@redhat.com>
1585
1586         ldexp: relax license
1587         * modules/ldexp (License): Trivial relax, since the module only
1588         provides a permissively licensed m4 file.
1589
1590 2012-08-13  Bruno Haible  <bruno@clisp.org>
1591
1592         gnulib-tool: Fix persistence of --witness-c-macro option.
1593         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1594         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1595
1596 2012-08-11  Eric Blake  <eblake@redhat.com>
1597
1598         count-leading-zeros: use a lookup table on non-gcc compilers
1599         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1600         alternate implementation, suggested by Jim Meyering.
1601
1602 2012-08-10  Eric Blake  <eblake@redhat.com>
1603
1604         count-leading-zeros: new module
1605         * modules/count-leading-zeros: New module.
1606         * m4/count-leading-zeros.m4: New file.
1607         * lib/count-leading-zeros.h: Likewise.
1608         * modules/count-leading-zeros-tests: New test.
1609         * tests/test-count-leading-zeros.c: New file.
1610         * MODULES.html.sh (Integer arithmetic functions): Document it.
1611
1612 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1613             Jim Meyering  <meyering@redhat.com>
1614
1615         maintainer-makefile: Fix syntax error with dash.
1616         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1617         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1618
1619 2012-08-05  Jim Meyering  <meyering@redhat.com>
1620
1621         extern-inline: also ignore -Wmissing-declarations
1622         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1623         required with gcc-4.8.0-to-be.
1624
1625         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1626         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1627         for /error ?([^,]*)/.  This avoids false-positives for strings like
1628         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1629
1630 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1631
1632         gnumakefile: better interaction with Automake-NG
1633         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1634         Automake-NG always contain a definition of VPATH, even in non-VPATH
1635         builds (its value being simply '.' in that case).  So, in the
1636         'clean-GNUmakefile' rule, to determine whether running under a
1637         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1638         '$(VPATH)' expands to the empty string.
1639
1640 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1641
1642         base64: Use extern C scope in header file, for C++.
1643         * lib/base64.h: Add C++ namespace protection.
1644
1645 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1646
1647         stat-time, timespec, u64: support naive out-of-dir builds
1648         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1649         Use '#include "foo.h"', not '#include <foo.h>', when including
1650         one's own interface.  This works better when configuring with
1651         out-of-directory builds, since packages need not add an
1652         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1653
1654 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1655
1656         utimens: use extern-inline
1657         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1658         * lib/utimens.h: Add copyright notice, since this is now large enough
1659         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1660         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1661         * modules/utimens (Depends-on): Add extern-inline.
1662
1663         u64: use extern-inline
1664         * lib/u64.c: New file.
1665         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1666         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1667         * modules/u64 (Files): Add lib/u64.c.
1668         (Depends-on): Add extern-inline.
1669         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1670         does that now.
1671         (lib_SOURCES): Add u64.c.
1672
1673         timespec: use extern-inline
1674         * lib/timespec.c: New file.
1675         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1676         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1677         * modules/timespec (Files): Add lib/timespec.c.
1678         (Depends-on): Add extern-inline.
1679         (lib_SOURCES): Add timespec.c.
1680
1681         stat-time: use extern-inline
1682         * lib/stat-time.c: New file.
1683         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1684         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1685         * modules/stat-time (Files): Add lib/stat-time.c.
1686         (Depends-on): Add extern-inline.
1687         (lib_SOURCES): Add stat-time.c.
1688
1689         extern-inline: new module
1690         * modules/extern-inline, m4/extern-inline.m4: New files.
1691         This is for better support of 'extern inline' a la ISO C99,
1692         with a portable alternative on compilers that do not support
1693         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1694         of the Emacs executable, when compiled with debugging disabled,
1695         which is a typical way that Emacs is built while developing.
1696
1697 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1698
1699         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1700         * build-aux/do-release-commit-and-tag: Move variable definitions
1701         together.
1702         ($branch): Instead of defaulting to "master", default to the current
1703         branch (as gnu-web-doc-update does).
1704         (help): Display the current values of the option arguments.
1705         * top/maint.mk (release-commit): New.
1706         * top/README-release: Simplify the corresponding step.
1707
1708 2012-07-30  Eric Blake  <eblake@redhat.com>
1709
1710         passfd: fix comment on recvfd
1711         * lib/passfd.c (recvfd): Fix comment.
1712         Reported by Jann Horn <jannhorn@googlemail.com>.
1713
1714 2012-07-30  Jim Meyering  <meyering@redhat.com>
1715
1716         maint.mk: avoid a sub-shell
1717         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1718
1719 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1720
1721         maint.mk: use silent-rules support from Automake
1722         * top/maint.mk (news-check, vc-diff-check, announcement)
1723         (no-submodule-changes, alpha beta stable, release-prep)
1724         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1725
1726 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1727
1728         maint.mk: provide a web-manual-update target
1729         * top/maint.mk: here.
1730         * top/README-release: Use it to simplify the web manual update step.
1731
1732 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1733
1734         README-release: shorten the circuit to post a news
1735         * top/README-release: Point directly to the news submission form.
1736
1737 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1738
1739         gnu-web-doc-update: fix --help
1740         * build-aux/gnu-web-doc-update: The information "top level" was written
1741         twice.
1742
1743 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1744
1745         maint.mk: absolute VPATH issue
1746         * top/maint.mk (release-prep): Help Git find .git/.
1747         From Jim Meyering.
1748
1749 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1750
1751         gitlog-to-changelog: fix previous change
1752         * build-aux/gitlog-to-changelog: Fix condition.
1753         Add missing ";".
1754
1755 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1756
1757         gitlog-to-changelog: don't expect .git to be in $srcdir
1758         Reported by Bruno Haible.
1759         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1760         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1761         Use it.
1762
1763 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1764
1765         maint.mk: absolute VPATH build fix
1766         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1767         $(srcdir) is not a parent of $(builddir).
1768
1769 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1770
1771         clean-temp: Fix memory leak.
1772         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1773         'files' members of tmpdir.
1774
1775 2012-07-27  Jim Meyering  <meyering@redhat.com>
1776
1777         maint.mk: new rule: refresh-gnulib-patches
1778         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1779         Use this rule to refresh them.
1780         * top/maint.mk (refresh-gnulib-patches): New rule.
1781
1782 2012-07-24  Bruno Haible  <bruno@clisp.org>
1783
1784         gnulib-tool: Fix handling of inctests variable.
1785         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1786         Reported by Nick Bowler <nbowler@elliptictech.com>.
1787
1788 2012-07-22  Bruno Haible  <bruno@clisp.org>
1789
1790         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1791         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1792         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1793         Remove exemption for getpass.h.
1794         Suggested by Eric Blake.
1795
1796 2012-07-20  Eric Blake  <eblake@redhat.com>
1797
1798         verify: document conflict with -Wnested-externs
1799         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1800
1801         maint.mk: forbid exit(-1)
1802         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1803
1804 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1805
1806         fsusage: port back to Solaris
1807         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1808         error (fsd not declared) on Solaris 10.  Reported privately by
1809         Andrew Borodin.
1810
1811 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1812
1813         gnu-web-doc-update: fix error messages
1814         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1815
1816         gnu-web-doc-update: check the requirements.
1817         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1818         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1819         * build-aux/bootstrap (find_tool): Comment change.
1820
1821 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1822
1823         maint.mk: minor simplication.
1824         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1825         for default values.
1826
1827 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1828
1829         gitlog-to-changelog: VPATH build issues
1830         If builddir is not a subdirectory of srcdir, running git from it will
1831         fail.
1832         * build-aux/gitlog-to-changelog (--srcdir): New option.
1833
1834 2012-07-15  Bruno Haible  <bruno@clisp.org>
1835
1836         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1837         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1838         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1839         Remove exemption for fpending.h.
1840         Suggested by Eric Blake.
1841
1842 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         pthread_sigmask: fix bug on FreeBSD 9
1845         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1846         Include string.h.
1847         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1848         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1849         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1850         but pthread_sigmask (1729, NULL, NULL) returns zero.
1851         See <http://bugs.gnu.org/11884>.
1852         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1853         by inspecting whether the main call changed the old mask.
1854
1855 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1856
1857         README-release: make it more legible
1858         * top/README-release: Improve typography slightly.
1859
1860 2012-07-15  Jim Meyering  <meyering@redhat.com>
1861
1862         maint: require that each sc_... command start with "@"
1863         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1864         "make sc_maint" helps us avoid this nit.
1865
1866 2012-07-15  Jim Meyering  <meyering@redhat.com>
1867
1868         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1869         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1870
1871 2012-07-13  Eric Blake  <eblake@redhat.com>
1872
1873         maint.mk: new syntax check for HAVE_DECL checks
1874         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1875         * cfg.mk
1876         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1877         Exempt some false positives.
1878         Based on a report by Karel Zak.
1879
1880         argp: make HAVE_DECL usage consistent
1881         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1882         macros, not whether they are defined.
1883         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1884         convention with other declaration checks.
1885         Reported by Karel Zak, with suggestions from Paul Eggert.
1886
1887         stat-time: relax license to LGPLv2+
1888         * modules/stat-time (License): Relax, with consent of all authors.
1889
1890         strndup: fix m4 usage error
1891         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1892         defined, to either 0 or 1.
1893         Reported by Karel Zak.
1894
1895 2012-07-11  Jim Meyering  <meyering@redhat.com>
1896
1897         maint: enable the sc_avoid_if_before_free syntax-check rule
1898         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1899         (if_before_free_offenders_): Define.
1900         (if_before_free_basename_re_): Define.
1901         Exempt current files with useless if-before-free.
1902
1903 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1904
1905         gettext: do not assume '#define ... defined ...' behavior
1906         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1907         Do not use '#define FOO ... defined BAR ...', as the C standard says
1908         it's not portable to expect that this works after macro expansion.
1909         Problem reported for gzip by Steven M. Schweda in
1910         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1911
1912 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1913
1914         getloadavg: clean out old Emacs and Autoconf cruft
1915         See Glenn Morris in <http://bugs.gnu.org/11905>.
1916         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1917         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1918         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1919         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1920
1921 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1922
1923         bootstrap: let warn be like tests/init.sh's warn_
1924         Reported by Jim Meyering.
1925         * build-aux/bootstrap (warn): Remove, replaced by...
1926         (warnf_, warn_): these.
1927         Adjust callers.
1928         Shorten messages that no longer fit in 80 columns.
1929
1930 2012-07-09  Bruno Haible  <bruno@clisp.org>
1931
1932         getopt: Simplify after Emacs changed.
1933         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1934         (gl_GETOPT_IFELSE): Remove macro.
1935
1936 2012-07-09  Jim Meyering  <meyering@redhat.com>
1937
1938         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1939         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1940
1941         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1942         Bugs in both of those conspired to make the
1943         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1944         _sc_search_regexp's handling of non-empty $in_files would filter
1945         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1946         choice of in_files value meant there would be no match in most
1947         projects, due to the presence of two or more Makefile.in files.
1948         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1949         Fix a bug in how a non-empty $$in_files was processed:
1950         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1951         in spite of the name, it's a regexp, not a list of file names.
1952
1953 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1954
1955         getloadavg, getopt: fix commentary re configure.in
1956         Autoconf is deprecating the name 'configure.in', so change it to
1957         to the new name 'configure.ac' in a couple of places.
1958         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1959         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1960         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1961         Emacs has renamed it to configure.ac, and it no longer refers
1962         to these macros anyway.
1963
1964         timespec: mark functions with const attributes
1965         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1966         Mark with _GL_ATTRIBUTE_CONST.
1967
1968 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1969
1970         canonicalize[-lgpl]: handle "guessing" values when cross-building
1971         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1972         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1973         matches "*yes" instead of just "yes".  Regression introduced in commit
1974         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1975
1976 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1977             Bruno Haible  <bruno@clisp.org>
1978
1979         canonicalize: make the right guess when cross-compiling to GNU
1980         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1981         determine whether cross-compiling to glibc systems, so as to
1982         include GNU/Hurd.
1983
1984 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1985
1986         timespec-sub: avoid duplicate include
1987         * lib/timespec-sub.c: Do not include <config.h> twice.
1988         Reported by Juanma Barranquero.
1989
1990 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1991
1992         bootstrap: use a more consistent error reporting scheme
1993         * build-aux/bootstrap (warn, die): New.
1994         Use them.
1995
1996 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1997
1998         sys_time: allow too-wide tv_sec
1999         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2000         timeval even if tv_sec is wider than time_t.  This allows
2001         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2002         as without this patch gnulib replaces struct timeval
2003         and OpenBSD futimes therefore has a type mismatch.
2004         * doc/posix-headers/sys_time.texi: Mention this.
2005
2006         pthread: check for both pthread_create and pthread_join
2007         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2008         alter the check so that it tests for both pthread_create and
2009         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2010         Suggested by Bruno Haible and Richard Yao in
2011         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2012
2013         parse-datetime: doc tuneup
2014         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2015         spacing issues.
2016
2017 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2018
2019         do-release-commit-and-tag: fix the previous commit
2020         * build-aux/do-release-commit-and-tag: Actually the test was right,
2021         but the comment and the error message were misleading.
2022         Fix comment, and improve error message.
2023         Perform check first, so that NEWS is not modified uselessly.
2024
2025         do-release-commit-and-tag: fix typo
2026         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2027         _not_ start with a stub.
2028
2029 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2030
2031         pthread: check for pthread_create, not pthread_join
2032         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2033         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2034         pthread_join in libc.  I hope this removes the need for all the
2035         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2036         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2037
2038 2012-07-04  Jim Meyering  <meyering@redhat.com>
2039
2040         parse-datetime: fix failure to diagnose invalid input
2041         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2042         rather than diagnosing the invalid input.  Now it reports this:
2043         date: invalid date '\260'
2044         * lib/parse-datetime.y (to_uchar): Define.
2045         (yylex): Don't sign-extend "other" bytes.
2046         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2047         Thanks to Bruno Haible for the patch to this file.
2048         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2049         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2050
2051 2012-07-03  Jim Meyering  <meyering@redhat.com>
2052
2053         bootstrap: do not require now-removed build-aux/missing
2054         Now that build-aux/missing is, er, missing, bootstrap would
2055         silently fail.
2056         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2057         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2058         no longer part of gnulib.
2059         Diagnose the failure.
2060
2061 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2062
2063         alloca: add support for HP NonStop TNS/E native
2064         * lib/alloca.in.h (alloca): Support the new host.
2065         From a suggestion by Joachim Schmitz in
2066         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2067
2068 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2069
2070         fsusage: remove code not needed on non GNU/Linux systems.
2071
2072         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2073         Don't include headers no longer needed in this case.
2074         * lib/fsusage.c [STAT_STATVFS &&
2075         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2076         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2077
2078 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2079
2080         fsusage: include files needed for glibc 2.6 fallback
2081         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2082         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2083         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2084         Problem reported by Ludovic Courtès in
2085         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2086
2087         fsusage: avoid needless check on GNU/Linux
2088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2089         on GNU/Linux systems, since it can't possibly work.
2090
2091 2012-07-01  Bruno Haible  <bruno@clisp.org>
2092
2093         log: Fix an autoconf >= 2.64 warning.
2094         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2095         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2096
2097 2012-06-28  Bruno Haible  <bruno@clisp.org>
2098
2099         log10f: Fix possible configuration problem.
2100         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2101         $LOGF_LIBM.
2102         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2103
2104 2012-06-28  Bruno Haible  <bruno@clisp.org>
2105
2106         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2107         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2108         not gl_cv_func_unlink_works.
2109         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2110
2111 2012-06-27  Eric Blake  <eblake@redhat.com>
2112
2113         config: drop scripts that automake says are not independent
2114         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2115         * build-aux/elisp-comp: Delete.
2116         * build-aux/missing: Likewise.
2117         * build-aux/ylwrap: Likewise.
2118         * modules/elisp-comp: Likewise.
2119         * MODULES.html.sh: Drop mention of elisp-comp.
2120         * NEWS: Mention this.
2121
2122 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2123
2124         root-uid: new module
2125         This is for portability to Tandem's NonStop Kernel.
2126         * lib/root-uid.h, modules/root-uid: New files.
2127         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2128         * lib/write-any-file.c, tests/test-sethostname2.c:
2129         Include "root-uid.h".
2130         * lib/euidaccess.c (euidaccess):
2131         * lib/pt_chown.c (main):
2132         * lib/unlinkdir.c (cannot_unlink_dir):
2133         * lib/write-any-file.c (can_write_any_file):
2134         * m4/mknod.m4 (gl_FUNC_MKNOD):
2135         * tests/test-sethostname2.c (geteuid, main):
2136         Don't assume ROOT_UID == 0.
2137         * modules/euidaccess (Depends-on):
2138         * modules/pt_chown (Depends-on):
2139         * modules/sethostname-tests (Depends-on):
2140         * modules/unlinkdir (Depends-on):
2141         * modules/write-any-file (Depends-on):
2142         Add root-uid.
2143
2144         regex: use locale-independent comparison for codeset name
2145         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2146         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2147         for codeset name.
2148         * lib/regex_internal.h: Do not include <strings.h>, since we
2149         no longer use strcasecmp.
2150         * modules/regex (Depends-on): Remove strcase.
2151
2152 2012-06-23  Bruno Haible  <bruno@clisp.org>
2153
2154         getopt-posix: No longer guarantee that option processing is resettable.
2155         * doc/posix-functions/getopt.texi: Drop description of problem with
2156         internal state. Fix info about mingw and msvc9.
2157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2158         option processing by getopt(). Run three test programs instead of one.
2159         Simplify cross-compilation guess.
2160         * NEWS: Mention the change.
2161         Reported by Rich Felker <dalias@aerifal.cx>.
2162
2163 2012-06-26  Bruno Haible  <bruno@clisp.org>
2164
2165         argp, regex: Ensure strcasecmp gets declared.
2166         * lib/argp-help.c: Include <strings.h>.
2167         * lib/regex_internal.h: Likewise.
2168         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2169
2170 2012-06-24  Bruno Haible  <bruno@clisp.org>
2171
2172         ptsname_r: Make it consistent with ptsname on AIX.
2173         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2174         implementation as for OSF/1.
2175         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2176         a pty master.
2177
2178         ptsname_r: Make it consistent with ptsname on OSF/1.
2179         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2180         OSF/1.
2181
2182 2012-06-24  Bruno Haible  <bruno@clisp.org>
2183
2184         ttyname_r: Fix result on OSF/1, Solaris.
2185         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2186
2187 2012-06-24  Bruno Haible  <bruno@clisp.org>
2188
2189         ptsname_r: Add support for Solaris.
2190         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2191         Solaris.
2192
2193         ptsname_r: Fix test failure on native Windows.
2194         * modules/ptsname_r (Depends-on): Add isatty.
2195
2196         ptsname_r: Fix test failures on IRIX, Solaris.
2197         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2198         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2199         accordingly.
2200         * lib/ptsname_r.c: Include <fcntl.h>.
2201         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2202         set errno if fd is invalid.
2203         * tests/test-isatty.c (main): Update comments.
2204
2205 2012-06-24  Bruno Haible  <bruno@clisp.org>
2206
2207         ptsname test: Extend test.
2208         * tests/test-ptsname.c: Include <errno.h>.
2209         (main): Test behaviour with invalid file descriptor.
2210
2211 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2212
2213         time: fix obsolete comment
2214         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2215         reference to HAVE_STRUCT_TIMESPEC in comment.
2216
2217 2012-06-23  Bruno Haible  <bruno@clisp.org>
2218
2219         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2221         does not handle abbreviated long options with equivalent
2222         disambiguations, set gl_replace_getopt to yes.
2223         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2224
2225 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2226
2227         time_r: fix typo that always overrode localtime_r decl
2228         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2229         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2230         not in a standard include.
2231
2232 2012-06-22  Bruno Haible  <bruno@clisp.org>
2233
2234         Write "Mac OS X" instead of "MacOS X".
2235         * README: Write "Mac OS X" instead of "MacOS X".
2236         * build-aux/bootstrap: Likewise.
2237         * build-aux/install-reloc: Likewise.
2238         * lib/acl-internal.h: Likewise.
2239         * lib/acl_entries.c: Likewise.
2240         * lib/argp-ba.c: Likewise.
2241         * lib/argp-pv.c: Likewise.
2242         * lib/config.charset: Likewise.
2243         * lib/copy-acl.c: Likewise.
2244         * lib/csharpexec.c: Likewise.
2245         * lib/euidaccess.c: Likewise.
2246         * lib/fbufmode.c: Likewise.
2247         * lib/fflush.c: Likewise.
2248         * lib/file-has-acl.c: Likewise.
2249         * lib/filemode.h: Likewise.
2250         * lib/fpurge.c: Likewise.
2251         * lib/freadable.c: Likewise.
2252         * lib/freadahead.c: Likewise.
2253         * lib/freading.c: Likewise.
2254         * lib/freadptr.c: Likewise.
2255         * lib/freadseek.c: Likewise.
2256         * lib/fseeko.c: Likewise.
2257         * lib/fseterr.c: Likewise.
2258         * lib/fsusage.c: Likewise.
2259         * lib/fwritable.c: Likewise.
2260         * lib/fwriting.c: Likewise.
2261         * lib/get-rusage-as.c: Likewise.
2262         * lib/get-rusage-data.c: Likewise.
2263         * lib/getdomainname.c: Likewise.
2264         * lib/idpriv-drop.c: Likewise.
2265         * lib/idpriv-droptemp.c: Likewise.
2266         * lib/localcharset.c: Likewise.
2267         * lib/locale.in.h: Likewise.
2268         * lib/localename.c: Likewise.
2269         * lib/mbsrtowcs-state.c: Likewise.
2270         * lib/nproc.c: Likewise.
2271         * lib/passfd.c: Likewise.
2272         * lib/posix_openpt.c: Likewise.
2273         * lib/printf-parse.c: Likewise.
2274         * lib/progreloc.c: Likewise.
2275         * lib/safe-read.h: Likewise.
2276         * lib/safe-write.h: Likewise.
2277         * lib/sched.in.h: Likewise.
2278         * lib/set-mode-acl.c: Likewise.
2279         * lib/signal.in.h: Likewise.
2280         * lib/stdint.in.h: Likewise.
2281         * lib/stdio-impl.h: Likewise.
2282         * lib/stdlib.in.h: Likewise.
2283         * lib/strtod.c: Likewise.
2284         * lib/sys_select.in.h: Likewise.
2285         * lib/tcgetsid.c: Likewise.
2286         * lib/unistd.in.h: Likewise.
2287         * lib/unlockpt.c: Likewise.
2288         * lib/vasnprintf.c: Likewise.
2289         * lib/vma-iter.c: Likewise.
2290         * lib/wcsrtombs-state.c: Likewise.
2291         * m4/acl.m4: Likewise.
2292         * m4/acosl.m4: Likewise.
2293         * m4/asinl.m4: Likewise.
2294         * m4/atanl.m4: Likewise.
2295         * m4/c-stack.m4: Likewise.
2296         * m4/cosl.m4: Likewise.
2297         * m4/expl.m4: Likewise.
2298         * m4/extensions.m4: Likewise.
2299         * m4/fdatasync.m4: Likewise.
2300         * m4/fmal.m4: Likewise.
2301         * m4/frexp.m4: Likewise.
2302         * m4/frexpf.m4: Likewise.
2303         * m4/frexpl.m4: Likewise.
2304         * m4/fsusage.m4: Likewise.
2305         * m4/getdomainname.m4: Likewise.
2306         * m4/getloadavg.m4: Likewise.
2307         * m4/getopt.m4: Likewise.
2308         * m4/gettext.m4: Likewise.
2309         * m4/gnulib-common.m4: Likewise.
2310         * m4/intdiv0.m4: Likewise.
2311         * m4/intlmacosx.m4: Likewise.
2312         * m4/largefile.m4: Likewise.
2313         * m4/ldexpl.m4: Likewise.
2314         * m4/link-follow.m4: Likewise.
2315         * m4/locale-ar.m4: Likewise.
2316         * m4/locale-fr.m4: Likewise.
2317         * m4/locale-ja.m4: Likewise.
2318         * m4/locale-tr.m4: Likewise.
2319         * m4/locale-zh.m4: Likewise.
2320         * m4/locale_h.m4: Likewise.
2321         * m4/lock.m4: Likewise.
2322         * m4/logl.m4: Likewise.
2323         * m4/mathfunc.m4: Likewise.
2324         * m4/minus-zero.m4: Likewise.
2325         * m4/mktime.m4: Likewise.
2326         * m4/mmap-anon.m4: Likewise.
2327         * m4/multiarch.m4: Likewise.
2328         * m4/nanosleep.m4: Likewise.
2329         * m4/nocrash.m4: Likewise.
2330         * m4/poll.m4: Likewise.
2331         * m4/printf-frexpl.m4: Likewise.
2332         * m4/printf.m4: Likewise.
2333         * m4/signbit.m4: Likewise.
2334         * m4/sinl.m4: Likewise.
2335         * m4/sqrtl.m4: Likewise.
2336         * m4/strerror_r.m4: Likewise.
2337         * m4/tanl.m4: Likewise.
2338         * m4/threadlib.m4: Likewise.
2339         * m4/ttyname_r.m4: Likewise.
2340         * m4/unlink.m4: Likewise.
2341         * m4/visibility.m4: Likewise.
2342         * m4/wcwidth.m4: Likewise.
2343         * tests/minus-zero.h: Likewise.
2344         * tests/test-alloca-opt.c: Likewise.
2345         * tests/test-copy-acl.sh: Likewise.
2346         * tests/test-copy-file.sh: Likewise.
2347         * tests/test-fdatasync.c: Likewise.
2348         * tests/test-file-has-acl.sh: Likewise.
2349         * tests/test-flock.c: Likewise.
2350         * tests/test-fsync.c: Likewise.
2351         * tests/test-localename.c: Likewise.
2352         * tests/test-malloca.c: Likewise.
2353         * tests/test-nonblocking-pipe.h: Likewise.
2354         * tests/test-nonblocking-socket.h: Likewise.
2355         * tests/test-openpty.c: Likewise.
2356         * tests/test-posix_openpt.c: Likewise.
2357         * tests/test-ptsname.c: Likewise.
2358         * tests/test-ptsname_r.c: Likewise.
2359         * tests/test-sameacls.c: Likewise.
2360         * tests/test-select.h: Likewise.
2361         * tests/test-set-mode-acl.sh: Likewise.
2362         * tests/test-snprintf-posix.h: Likewise.
2363         * tests/test-sprintf-posix.h: Likewise.
2364         * tests/test-strtod.c: Likewise.
2365         * tests/test-time.c: Likewise.
2366         * tests/test-vasnprintf-posix.c: Likewise.
2367         * tests/test-vasprintf-posix.c: Likewise.
2368         * doc/acl-resources.txt: Likewise.
2369         * doc/**/*.texi: Likewise.
2370         Reported by Max Horn <max@quendi.de>.
2371
2372 2012-06-22  Bruno Haible  <bruno@clisp.org>
2373
2374         grantpt: Relax requirement regarding invalid file descriptors.
2375         * lib/grantpt.c: Don't include <fcntl.h>.
2376         (grantpt): Don't verify the validity of the file descriptor.
2377         * modules/grantpt (Depends-on): Remove fcntl-h.
2378         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2379         file descriptors.
2380         * doc/posix-functions/grantpt.texi: Document more platforms on which
2381         grantpt succeeds for invalid file descriptors.
2382         Reported by Rich Felker <dalias@aerifal.cx>.
2383
2384 2012-06-22  Bruno Haible  <bruno@clisp.org>
2385
2386         fbufmode test: Don't test unportable behaviour.
2387         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2388         (main): Invoke it three times.
2389         Reported by Szabolcs Nagy <nsz@port70.net>
2390         and Rich Felker <dalias@aerifal.cx>.
2391
2392 2012-06-21  Bruno Haible  <bruno@clisp.org>
2393
2394         gnulib-tool: Refactor inctests variable.
2395         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2396         (func_modules_transitive_closure,
2397         func_modules_transitive_closure_separately,
2398         func_import, func_create_testdir): Update.
2399
2400         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2401         * gnulib-tool: Accept option --without-tests.
2402         (func_usage): Document --without-tests option. Rearrange.
2403         (inctests): Normalize according to the mode.
2404         * NEWS: Mention the change.
2405         Suggested by Simon Josefsson.
2406
2407 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2408
2409         parse-duration test: Avoid spurious output.
2410         * tests/test-parse-duration.sh: Reindent with leading tabs.
2411
2412 2012-06-21  Jim Meyering  <meyering@redhat.com>
2413
2414         maint: disable the strncpy prohibition
2415         * cfg.mk: Do not prohibit strncpy here.
2416
2417 2012-06-21  Bruno Haible  <bruno@clisp.org>
2418
2419         nonblocking: Avoid compilation error on mingw64.
2420         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2421         fscanf.
2422         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2423         * modules/vfscanf (configure.ac): Likewise.
2424         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2425         definition only if stdio.h has prepared it.
2426         Reported by Daniel P. Berrange <berrange@redhat.com>.
2427
2428 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2429
2430         gnulib-tool: Use readlink if it is available.
2431         * gnulib-tool (func_readlink): Choose function more appropriately.
2432
2433 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2434
2435         posixtm-tests: port to buggy compiler
2436         Problem reported by Simon Josefsson in
2437         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2438         * modules/posixtm-tests (Depends-on): Add stdint.
2439         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2440         Now of type int_least64_t, not int64_t, both because that's
2441         what INT64_C returns and because int_least64_t works even
2442         on 72-bit hosts.
2443         (T): Use INT64_C on constants outside the traditional int range,
2444         to work around compiler bug noted by Simon.
2445
2446         mktime: fix integer overflow in 'configure'-time test
2447         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2448         after integer overflow.  Problem reported by Rich Felker in
2449         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2450         Also, don't look for further instances of a bug if we've already
2451         found one instance; this helps 'configure' run faster.
2452
2453 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2454
2455         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2456         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2457         GetVersionEx correctly.
2458         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2459
2460 2012-06-20  Bruno Haible  <bruno@clisp.org>
2461
2462         fdopen: Allow implementations that don't reject invalid fd arguments.
2463         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2464         succeeds.
2465         Reported by Rich Felker <dalias@aerifal.cx>.
2466
2467 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2468
2469         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2470         bring in LIBINTL.
2471
2472 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2473
2474         init.sh: do not rely on autoupated PWD
2475         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2476         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2477         Although Nelson's bug was not necessarily fixed by this patch,
2478         it seems wise to make the change for safety.
2479         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2480         automagically after 'cd'; this is not reliable on older shells.
2481         (setup_): Fail if we cannot cd to temporary directory.
2482
2483 2012-06-19  Bruno Haible  <bruno@clisp.org>
2484
2485         stat, fstat: Avoid warnings on mingw64.
2486         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2487         redefining.
2488         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2489         Reported by Daniel P. Berrange <berrange@redhat.com>.
2490
2491 2012-06-19  Bruno Haible  <bruno@clisp.org>
2492
2493         stdioext: Add support for musl libc.
2494
2495         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2496         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2497
2498         * m4/fseterr.m4: New file.
2499         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2500         function exists.
2501         * modules/fseterr (Files): Add m4/fseterr.m4.
2502         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2503         __fseterr does not exist.
2504         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2505
2506         * lib/freadable.h: Update comment.
2507
2508         * lib/fwritable.h: Update comment.
2509
2510         * lib/freading.h: Update comment.
2511
2512         * lib/fwriting.h: Update comment.
2513
2514         * m4/freadahead.m4: New file.
2515         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2516         that function exists.
2517         * modules/freadahead (Files): Add m4/freadahead.m4.
2518         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2519         __freadahead does not exist.
2520         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2521
2522         * m4/freadptr.m4: New file.
2523         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2524         function exists.
2525         * modules/freadptr (Files): Add m4/freadptr.m4.
2526         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2527         __freadptr does not exist.
2528         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2529
2530         * m4/freadseek.m4: New file.
2531         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2532         exists.
2533         * modules/freadseek (Files): Add m4/freadseek.m4.
2534         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2535
2536         * lib/fpurge.c (fpurge): Update comment.
2537
2538         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2539
2540 2012-06-19  Bruno Haible  <bruno@clisp.org>
2541
2542         *printf-posix: Put more info into config.log.
2543         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2544         exit code into config.log.
2545
2546 2012-06-19  Bruno Haible  <bruno@clisp.org>
2547
2548         getopt-gnu: Fix exit code overflow in autoconf test.
2549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2550         to keep them below < 128.
2551
2552 2012-06-17  Jim Meyering  <meyering@redhat.com>
2553
2554         maint.mk: fix typo in code to derive GPG key at release time
2555         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2556
2557 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2558
2559         regex: avoid warning when pointers are not long
2560         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2561         and uintptr_t, not long, for portability to hosts where pointers and
2562         long have different sizes.  Issue noted by Daniel P. Berrange in
2563         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2564         and fix suggested by Bruno Haible in
2565         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2566
2567 2012-06-17  Bruno Haible  <bruno@clisp.org>
2568
2569         dummy: Relicense into the public domain.
2570         * modules/dummy (License): Set to "public domain".
2571         Suggested by Reuben Thomas.
2572
2573 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2574
2575         announce-gen: VPATH issues
2576         * build-aux/announce-gen (--srcdir): New option, used to trim the
2577         $srcdir part of the path from $builddir to NEWS.
2578         * top/maint.mk (announcement): Adjust.
2579
2580 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2581
2582         gnu-web-doc-update: VPATH builds
2583         * build-aux/gnu-web-doc-update (--builddir): New option.
2584         Revamp the handling of options.
2585         Prefer $(...) to `...`.
2586         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2587         the template, and it is GNU mktemp specific.
2588         Prefer set -e to long series of &&.
2589         Restore the initial git branch, not "master".
2590         Properly initialize submodules (don't rely only on bootstrap).
2591         Do not reconfigure blindly, use config.status.
2592         * top/README-release: Update instructions for gnu-web-doc-update.
2593
2594 2012-06-11  Jim Meyering  <meyering@redhat.com>
2595
2596         maint.mk: revert most of the previous change re "all these"
2597         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2598         For rationale, see the discussion at
2599         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2600
2601 2012-06-10  Karl Berry  <karl@gnu.org>
2602
2603         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2604
2605         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2606
2607 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2608
2609         parse-duration: Relicense under LGPLv2+.
2610         * modules/parse-duration (License): Change to LGPLv2+.
2611
2612 2012-06-10  Jim Meyering  <meyering@redhat.com>
2613
2614         maint.mk: prohibit common grammar error: "all these"
2615         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2616         the list of prohibited word sequences.  It should be "all of these".
2617         * lib/tempname.c (__gen_tempname): Fix one of them.
2618
2619 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2620
2621         do-release-commit-and-tag: support VPATH builds
2622         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2623         (noteworthy): Defined earlier to factor its value.
2624         (noteworthy_stub): New.
2625         Use it to factor.
2626         (help_version): Split into...
2627         (help, version): these.
2628         Adjust the option processing part.
2629         Support "--option=value" in addition to "--option value".
2630         (builddir): New.
2631         (--builddir): New option.
2632         * top/README-release: Document this.
2633         Reword slightly so that the reader cannot understand that he
2634         has to do these steps before calling do-release-commit-and-tag.
2635
2636 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2637
2638         readme-release: also require announce-gen and maintainer-makefile
2639         * modules/readme-release (Depends-on): here.
2640         * modules/announce-gen, modules/do-release-commit-and-tag,
2641         modules/gnu-web-doc-update, modules/maintainer-makefile
2642         (Description): Point to readme-release.
2643
2644 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2645
2646         maint.mk: fix VPATH issues.
2647         * top/maint.mk (news-check): GNU Make understand $< very well.
2648         (release-prep): NEWS is in $(srcdir).
2649
2650 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2651
2652         readme-release: require the promoted modules.
2653         * modules/readme-release (Depends-on): Add
2654         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2655         in this text.
2656
2657 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2658             Bruno Haible  <bruno@clisp.org>
2659
2660         error, strerror-override: Support mingw64 from Fedora 17.
2661         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2662         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2663         EINPROGRESS.
2664         * lib/strerror-override.h (strerror_override): Test it.
2665         * lib/strerror-override.c (strerror_override): Likewise.
2666         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2667
2668 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2669             Bruno Haible  <bruno@clisp.org>
2670
2671         error, strerror-override: Support mingw64 from Fedora 17.
2672         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2673         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2674         * lib/strerror-override.h (strerror_override): Test it.
2675         * lib/strerror-override.c (strerror_override): Likewise.
2676
2677 2012-06-03  Bruno Haible  <bruno@clisp.org>
2678
2679         error, strerror-override: Support new errno values from POSIX:2008.
2680         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2681         ENOTRECOVERABLE.
2682         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2683         platforms.
2684         * lib/strerror-override.c (strerror_override): Conditionalize the
2685         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2686         * lib/strerror-override.h (strerror_override): Declare also if
2687         GNULIB_defined_EOWNERDEAD is defined.
2688         * tests/test-errno.c (e130, e131): New variables.
2689         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2690         ENOTRECOVERABLE.
2691         Reported by Paolo Bonzini.
2692
2693 2012-05-31  Jim Meyering  <meyering@redhat.com>
2694
2695         savewd: add missing dependency on sys_wait module
2696         * modules/savewd (Depends-on): Add sys_wait, needed at least
2697         for MSVC.  Report and suggested change by Michael Goffioul.
2698
2699 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2700
2701         system-quote-tests: port to CentOS 5
2702         Problem reported by Tom G. Christensen in
2703         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2704         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2705
2706 2012-05-29  Jim Meyering  <meyering@redhat.com>
2707
2708         maint: fix typos in comments and ChangeLog
2709         Culprits identified and fixed mostly automatically using these commands:
2710         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2711         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2712         using http://github.com/lyda/misspell-check
2713         * ChangeLog: Fix typos.
2714         * doc/solaris-versions: Likewise.
2715         * lib/regexec.c (re_search_stub): Likewise.
2716         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2717
2718 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2719
2720         manywarnings: remove duplicate -Wmultichar entry
2721         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2722         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2723         so keep the entry marked as documented.
2724
2725 2012-05-27  Karl Berry  <karl@gnu.org>
2726
2727         * config/srclist.txt (mktime.c): remove last libc sync,
2728         perhaps just temporarily.
2729
2730 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2731
2732         regex: don't assume uint64_t or uint32_t
2733         * lib/regcomp.c (init_word_char): Don't assume that the types
2734         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2735         them, and on some 32-bit compilers there is no uint64_t.
2736         Problem reported by Gianluigi Tiesi in
2737         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2738
2739 2012-05-25  Jim Meyering  <meyering@redhat.com>
2740
2741         maint.mk: add strncpy-prohibiting syntax-check rule
2742         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2743
2744 2012-05-24  Jim Meyering  <meyering@redhat.com>
2745
2746         maint.mk: compute $(gpg_key_ID) more portably
2747         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2748         That use of sed is not portable to some fringe systems.
2749         Reported by Paul Eggert in
2750         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2751
2752 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2753
2754         mktime: sync from glibc
2755         * config/srclist.txt: Uncomment mktime.c.
2756         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2757         First, indent with tabs, since glibc uses tabs and doesn't want to
2758         change and we'd rather be identical to glibc.  Also, two small
2759         coding changes:
2760         (isdst_differ): Use &&, not &, as && is the usual style.
2761         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2762         for clarity.
2763
2764 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2765
2766         announce-gen: du -h is more portable than du --human
2767         * build-aux/announce-gen (sizes): Invoke du with -h instead
2768         of --human.  Accept leading white space in its output.
2769
2770 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2771
2772         announce-gen: Improve diagnostics.
2773         * build-aux/announce-gen: When parsing command line options,
2774         prefer "announce-gen: option --release-type requires an argument"
2775         to "Option release-type requires an argument".
2776
2777 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2778
2779         maint.mk: gpg_key_ID: use sed more portably
2780         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2781         the closing brace.
2782         (refresh-po): Fuse two sed invocations into one.
2783
2784 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2785
2786         gitlog-to-changelog: support the log message format used in Bison.
2787         * build-aux/gitlog-to-changelog: Support --strip-tab and
2788         --strip-cherry-picked.
2789
2790 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2791
2792         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2793         the rest of the current time slice to another thread in the current
2794         process. So if the thread that feeds the file decscriptor we're
2795         polling is not in the current process, we get busy-waiting.
2796         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2797         Patch from Theodore Leblond.
2798         * lib/select.c: Split polling out of the loop that sets the output
2799         fd_sets.  Check for zero result and loop if the wait timeout is
2800         infinite.
2801
2802 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2803
2804         select: Fix build error on IRIX 6.5.
2805         * lib/select.c: Include stddef.h for NULL.
2806
2807 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2808
2809         gc: fix libgcrypt detection on older machines.
2810         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2811         copyright years because the file has been distributed every year
2812         since it was created.
2813
2814 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2815
2816         crypto: fix bug in large buffer handling
2817         Problem reported by Serge Belyshev for glibc in
2818         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2819         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2820         * lib/md4.c (md4_process_block):
2821         * lib/md5.c (md5_process_block):
2822         * lib/sha1.c (sha1_process_block):
2823         * lib/sha256.c (sha256_process_block):
2824         Don't assume the buffer length is less than 2**32.
2825         * lib/sha512.c (sha512_process_block): Likewise.
2826         Here, the bug is present only in the rare case where the host does
2827         not support uint64_t or where size_t is wider than 64 bits.
2828         Use u64size to work around the problems.
2829         * lib/u64.h (u64size): New macro.
2830
2831 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2832
2833         fsusage: fix block size returned on older Linux 2.6
2834
2835         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2836         which is available since Linux 2.6.
2837         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2838         when the member is available so it can be used as a fallback.
2839         * doc/posix-functions/statvfs.texi: Mention the hang issue
2840         on Linux < 2.6.36.
2841
2842 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2843
2844         bootstrap: suppress stderr chatter
2845         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2846         Omit unnecessary chatter to stderr.  The main program chatter
2847         was there only inadvertantly.
2848
2849         bootstrap: .gitignore files created by autopoint, libtool
2850         I ran into this problem when bootstrapping the latest diffutils.
2851         After './bootstrap', 'git status' reported lots of untracked files
2852         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2853         autopoint and do not need to be version-controlled.
2854         * build-aux/bootstrap: Put into .gitignore the files that
2855         autopoint and libtool create, by keeping track of files that exist
2856         after but not before these programs are run.
2857         (version_controlled_file): Move up.  2nd arg is now full file
2858         name, not base name; this is more convenient.  Put CVS at the end,
2859         as it's now somewhat deprecated.
2860
2861 2012-05-14  Jim Meyering  <meyering@redhat.com>
2862
2863         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2864         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2865         definition.  Reported by Bruno Haible.
2866
2867 2012-05-13  Bruno Haible  <bruno@clisp.org>
2868             Paul Eggert  <eggert@cs.ucla.edu>
2869
2870         binary-io: Define set_binary_mode function.
2871         * lib/binary-io.h (set_binary_mode): New function.
2872         (SET_BINARY): Define in terms of set_binary_mode.
2873         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2874         * tests/test-binary-io.c (main): Accept an argument, and test either
2875         set_binary_mode or SET_BINARY depending on the argument.
2876         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2877         argument. Clean up also t-bin-out0.tmp.
2878
2879 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2880
2881         bootstrap: take advantage of POSIX shell features
2882
2883         The 'bootstrap' script offered by Gnulib script already uses POSIX
2884         shell features (like $((...)) arithmetic expansions) that are not
2885         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2886         means that bootstrap must already be run using a proper POSIX shell,
2887         which will thus provide more features, like ${var#pattern} parameter
2888         expansion or inversion of a command exit status with '!'.  We can
2889         thus use these features to improve the clarity and the performances
2890         of the bootstrap script.
2891
2892         Suggested by Eric Blake.
2893
2894         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2895         of sed/expr plus command substitutions, to save some forks.  While
2896         we are at it, prefer the POSIX $(...) form of command substitution,
2897         rather than the legacy form `...` (since the former is visually
2898         clearer and interacts better with quoting), and prefer the idiom:
2899           "if ! CMD; then ACTION ..."
2900         over the idiom:
2901           "if CMD; then :; else ACTION ..."
2902         which was required by legacy Bourne shells not supporting '!'.
2903
2904 2012-05-12  Bruno Haible  <bruno@clisp.org>
2905
2906         system-quote: Add more comments.
2907         * lib/system-quote.h: Add more comments about wilcards and limitations.
2908         Suggested by Eli Zaretskii <eliz@gnu.org>.
2909
2910         sh-quote, system-quote: Add comments about wildcards.
2911         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2912         * lib/system-quote.h: Likewise.
2913         Reported by Eli Zaretskii <eliz@gnu.org>.
2914
2915 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2916
2917         fsusage: check for GNU/Linux statvfs problem dynamically
2918         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2919         Define STAT_STATFS2_BSIZE too, since in this case the code now
2920         checks dynamically whether statvfs is reliable, falling back on
2921         Linux-style statfs otherwise.
2922         (statvfs_works): New function, for dynamically testing statvfs.
2923         (get_fs_usage) [STAT_STATVFS]: Use it.
2924         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2925         statvfs on GNU/Linux hosts, since it's now done dynamically.
2926
2927 2012-05-10  Bruno Haible  <bruno@clisp.org>
2928
2929         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2930         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2931         '?' character.
2932         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2933         * tests/test-system-quote-main.c (check_all): Check also strings like
2934         "??????????".
2935         Reported by Eli Zaretskii <eliz@gnu.org>.
2936
2937 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2938
2939         _Noreturn: port config.h to gcc -Wundef
2940         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2941         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2942         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2943
2944 2012-05-10  Bruno Haible  <bruno@clisp.org>
2945
2946         system-quote: Refactor.
2947         * lib/system-quote.h (system_quote_copy): Fix comment.
2948         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2949         New functions, extracted from system_quote_copy.
2950         (system_quote_length, system_quote_copy): Use these functions.
2951         Reported by Paul Eggert.
2952
2953 2012-05-08  Bruno Haible  <bruno@clisp.org>
2954
2955         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2956         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2957
2958 2012-05-08  Bruno Haible  <bruno@clisp.org>
2959
2960         Tests for module 'system-quote'.
2961         * modules/system-quote-tests: New file.
2962         * tests/test-system-quote.sh: New file.
2963         * tests/test-system-quote-main.c: New file.
2964         * tests/test-system-quote-child.c: New file.
2965
2966         New module 'system-quote'.
2967         * lib/system-quote.h: New file.
2968         * lib/system-quote.c: New file.
2969         * modules/system-quote: New file.
2970
2971 2012-05-08  Bruno Haible  <bruno@clisp.org>
2972
2973         sh-quote: Make C++ safe and allow multiple inclusion.
2974         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2975         declarations in extern "C".
2976
2977 2012-05-08  Bruno Haible  <bruno@clisp.org>
2978
2979         sh-quote tests: Make tests stricter.
2980         * tests/test-sh-quote.c (check_one): Check the return value of
2981         shell_quote_copy.
2982         (main): Check a string with a CR character. Check a string that
2983         contains UCHAR_MAX.
2984
2985 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2986
2987         warnings.m4: provide a means to specify the program to compile.
2988         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2989         (gl_WARN_ADD): here.
2990         Use gl_AS_VAR_APPEND.
2991         Support an argument to specify the program to compile.
2992         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2993         AC_SUBST the WARN_CFLAGS when they are used.
2994         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2995         leave this to gl_WARN_ADD.
2996
2997 2012-05-08  Eric Blake  <eblake@redhat.com>
2998
2999         doc: recommendations on gettext version
3000         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3001         choice between versions.
3002         * DEPENDENCIES (gettext): Cover both approaches.
3003
3004 2012-05-08  Jim Meyering  <meyering@redhat.com>
3005
3006         init.sh: explain why EXEEXT support uses aliases rather than functions
3007         * tests/init.sh: Add a comment.
3008
3009         init.sh: don't let bash aliases interfere with tests
3010         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3011         is bash.  This avoids problems for those who alias standard commands to
3012         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3013         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3014
3015 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3016
3017         stdint: be more consistent with glibc, SunOS libc
3018         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3019         (gl_int_fast16_t, gl_uint_fast16_t)
3020         (gl_int_fast32_t, gl_uint_fast32_t)
3021         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3022         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3023         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3024         Be consistent with glibc by default, and with SunOS 5.10 and later
3025         if __sun is defined.  This lessens the likelihood of clashes if
3026         code compiled for older hosts is combined with code compiled for
3027         newer ones.  Problem reported by Niels Möller in
3028         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3029
3030 2012-05-07  Eric Blake  <eblake@redhat.com>
3031
3032         isatty: relax license to LGPLv2+
3033         * modules/isatty (License): Relax license.
3034
3035 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3036
3037         stat-size: comment fix
3038         * lib/stat-size.h: Remove obsolete comment about indenting.
3039
3040 2012-05-06  Bruno Haible  <bruno@clisp.org>
3041
3042         Tests for module 'sh-quote'.
3043         * modules/sh-quote-tests: New file.
3044         * tests/test-sh-quote.c: New file.
3045
3046 2012-05-06  Bruno Haible  <bruno@clisp.org>
3047
3048         sh-quote: Improve shell_quote_argv's signature.
3049         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3050         * lib/sh-quote.c (shell_quote_argv): Likewise.
3051
3052 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3053
3054         stdint: document issues with int_fast8_t etc.
3055         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3056         stdint.h substitutes may define these types differently.  See
3057         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3058
3059 2012-05-05  Bruno Haible  <bruno@clisp.org>
3060
3061         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3063         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3064         or 'guessing no (mishandles large arguments)'.
3065
3066 2012-05-05  Bruno Haible  <bruno@clisp.org>
3067
3068         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3069         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3070         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3071         set gl_cv_func_link_follows_symlink to "guessing no".
3072
3073 2012-05-05  Bruno Haible  <bruno@clisp.org>
3074
3075         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3076         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3077         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3078         "guessing no".
3079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3080
3081 2012-05-05  Bruno Haible  <bruno@clisp.org>
3082
3083         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3084         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3085         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3086         set gl_cv_struct_dirent_d_ino to "guessing yes".
3087
3088 2012-05-05  Bruno Haible  <bruno@clisp.org>
3089
3090         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3091         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3092         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3093         "guessing yes".
3094
3095 2012-05-05  Bruno Haible  <bruno@clisp.org>
3096
3097         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3098         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3099         compiling to a glibc system, set gl_cv_func_signbit and
3100         gl_cv_func_signbit_gcc to "guessing yes".
3101
3102 2012-05-05  Bruno Haible  <bruno@clisp.org>
3103
3104         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3105         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3106         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3107         to "guessing yes".
3108         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3109         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3110
3111 2012-05-05  Bruno Haible  <bruno@clisp.org>
3112
3113         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3114         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3115         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3116         gl_cv_func_realpath_works to "guessing yes".
3117
3118 2012-05-05  Bruno Haible  <bruno@clisp.org>
3119
3120         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3121         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3122         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3123
3124 2012-05-04  Bruno Haible  <bruno@clisp.org>
3125
3126         Tweak last commit.
3127         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3128         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3129
3130 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         unistd_h: make it easier to avoid sys_types_h
3133         This is useful for Emacs, which has its own method of porting to
3134         Windows, and which therefore does not need the sys_types_h module.
3135         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3136         code moved here from gl_SYS_TYPES_H.
3137         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3138         using the code directly.
3139         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3140         gl_SYS_TYPES_H.
3141         * modules/sys_types (Files):
3142         * modules/unistd (Files): Add m4/off_t.m4.
3143
3144 2012-05-03  Bruno Haible  <bruno@clisp.org>
3145
3146         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3147         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3148         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3149         "guessing yes" or "guessing no".
3150         (gl_FUNC_LSTAT): Update.
3151         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3152         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3153         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3154
3155 2012-05-03  Bruno Haible  <bruno@clisp.org>
3156
3157         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3158         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3159         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3160         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3161         cross-compiling, choose the first alternative on glibc systems.
3162         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3163
3164 2012-05-03  Bruno Haible  <bruno@clisp.org>
3165
3166         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3167         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3168         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3169
3170 2012-05-03  Bruno Haible  <bruno@clisp.org>
3171
3172         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3173         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3174
3175 2012-05-03  Bruno Haible  <bruno@clisp.org>
3176
3177         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3178         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3179         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3180         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3181         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3182         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3183         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3184         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3185         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3186         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3187         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3188         gl_cv_func_chown_ctime_works to "guessing yes".
3189         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3190         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3191         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3192         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3193         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3194         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3195         compiling to glibc systems, set gl_cv_func_open_directory_works to
3196         "guessing yes".
3197         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3198         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3199         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3200         "guessing yes".
3201         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3202         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3203         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3204         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3205         "guessing yes".
3206         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3207         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3208         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3209         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3210         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3211         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3212         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3213         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3214         "guessing yes".
3215         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3216         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3217         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3218         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3219         "guessing yes".
3220         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3221         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3222         "guessing yes".
3223         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3224         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3225         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3226         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3227         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3228         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3229         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3230         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3231         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3232         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3233         "guessing yes".
3234         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3235         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3236         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3237         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3238         "guessing yes".
3239         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3240         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3241         "guessing yes".
3242         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3243         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3244         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3245         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3246         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3247         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3248         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3249         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3250         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3251         "guessing yes".
3252         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3253         compiling to glibc systems, set gl_cv_func_mknod_works to
3254         "guessing yes".
3255         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3256         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3257         "guessing yes".
3258         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3259         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3260         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3261         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3262         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3263         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3264         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3265         compiling to glibc systems, set gl_cv_func_svid_putenv to
3266         "guessing yes".
3267         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3268         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3269         "guessing yes".
3270         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3271         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3272         "guessing yes".
3273         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3274         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3275         to "guessing yes".
3276         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3277         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3278         to "guessing yes".
3279         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3280         compiling to glibc systems, set gl_cv_func_rmdir_works to
3281         "guessing yes".
3282         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3283         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3284         gl_cv_func_unlink_parent_fails to "guessing yes".
3285         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3286         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3287         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3288         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3289         gl_cv_func_rename_dest_works to "guessing yes".
3290         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3291         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3292         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3293         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3294         "guessing yes".
3295         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3296         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3297         "guessing yes".
3298         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3299         compiling to glibc systems, set gl_cv_func_setenv_works to
3300         "guessing yes".
3301         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3302         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3303         "guessing yes".
3304         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3305         compiling to glibc systems, set gl_cv_func_sleep_works to
3306         "guessing yes".
3307         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3308         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3309         "guessing yes".
3310         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3311         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3312         "guessing yes".
3313         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3314         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3315         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3316         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3317         "guessing yes".
3318         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3319         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3320         "guessing yes".
3321         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3322         compiling to glibc systems, set gl_cv_func_usleep_works to
3323         "guessing yes".
3324         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3325         compiling to glibc systems, set gl_cv_func_futimesat_works to
3326         "guessing yes".
3327
3328 2012-05-03  Bruno Haible  <bruno@clisp.org>
3329
3330         Say "guessing yes" or "guessing no" when cross-compiling.
3331         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3332         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3333         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3334         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3335         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3336         am_cv_func_working_getline to "guessing yes" or "guessing no".
3337         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3338         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3339         (gl_FUNC_MEMMEM): When cross-compiling, set
3340         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3342         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3344         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3345         "guessing no".
3346         (gl_FUNC_STRCASESTR): When cross-compiling, set
3347         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3348         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3349         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3350         (gl_FUNC_STRSTR): When cross-compiling, set
3351         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3352         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3353         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3354         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3355         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3356
3357 2012-05-01  Bruno Haible  <bruno@clisp.org>
3358
3359         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3360         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3361         * build-aux/reloc-ldflags: Likewise.
3362         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3363
3364 2012-05-01  Bruno Haible  <bruno@clisp.org>
3365
3366         gnulib-tool: Remove transitional code.
3367         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3368         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3369
3370 2012-05-01  Bruno Haible  <bruno@clisp.org>
3371
3372         getcwd: Fix misindentation.
3373         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3374
3375 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3376
3377         exclude: process exclude and include directives in order
3378         This restores the pre-2009 behavior, and is part of a fix of a
3379         grep bug reported by Quentin Arce in
3380         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3381         * lib/exclude.c (struct exclude): Remove 'tail' member.
3382         (new_exclude_segment): Prepend the new segment instead of appending.
3383         Return void, since that's now more convenient.
3384         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3385         (file_name_matches): Renamed from excluded_file_name_p.
3386         (file_pattern_matches, file_name_matches):
3387         Return true if the pattern matches, not if it excludes.
3388         All callers changed.
3389         (excluded_file_name): Process the list in reverse order;
3390         since the list is now reversed this restores the pre-2009 behavior.
3391         (add_exclude): Adjust to new reversed-order list.  Use local var
3392         rather than macro, for clarity.
3393         * tests/test-exclude7.sh: Adjust to corrected behavior.
3394
3395         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3396         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3397         it's not possible here.  Handle the case of \ at end of pattern
3398         without dumping core.
3399         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3400
3401         _Noreturn: future-proof non-GNU and non-MSVC compilers
3402         * build-aux/snippet/_Noreturn.h (_Noreturn):
3403         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3404         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3405         C11 or later.  This is more likely to work with random future C
3406         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3407         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3408
3409         exclude: handle wildcards with FNM_EXTMATCH
3410         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3411         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3412         comment that "has wildcards" really means "has or may have
3413         wildcards".  Simplify by avoiding the need to call strcspn.
3414
3415 2012-04-29  Bruno Haible  <bruno@clisp.org>
3416
3417         gnulib-tool: Fix list of authors.
3418         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3419
3420 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3421
3422         bootstrap: support Automake-NG in $buildreq
3423         * bootstrap (check_versions): Handle automake and aclocal from
3424         Automake-NG specially.  They can be specified as respectively
3425         the "automake-ng" and "aclocal-ng" requirements.
3426
3427 2012-04-25  Eric Blake  <eblake@redhat.com>
3428
3429         bootstrap: only force latest Makefile.in.in for gettext module
3430         * build-aux/bootstrap (with_gettext): Only install latest
3431         Makefile.in.in for projects requesting bleeding edge gettext.
3432
3433 2012-04-22  Bruno Haible  <bruno@clisp.org>
3434
3435         doc: Mention reason for replacement on glibc/Linux systems.
3436         * doc/posix-functions/dprintf.texi: Mention the problem with special
3437         'long double' values.
3438         * doc/posix-functions/fprintf.texi: Likewise.
3439         * doc/posix-functions/printf.texi: Likewise.
3440         * doc/posix-functions/snprintf.texi: Likewise.
3441         * doc/posix-functions/sprintf.texi: Likewise.
3442         * doc/posix-functions/vdprintf.texi: Likewise.
3443         * doc/posix-functions/vfprintf.texi: Likewise.
3444         * doc/posix-functions/vprintf.texi: Likewise.
3445         * doc/posix-functions/vsnprintf.texi: Likewise.
3446         * doc/posix-functions/vsprintf.texi: Likewise.
3447         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3448         platforms with F_DUPFD_CLOEXEC problems.
3449         * doc/posix-functions/glob.texi: Mention which platforms are affected
3450         by the problem with symbolic links.
3451         * doc/posix-functions/linkat.texi: Mention the problem with
3452         AT_SYMLINK_FOLLOW on Linux.
3453
3454 2012-04-22  Bruno Haible  <bruno@clisp.org>
3455
3456         pwrite: Don't replace on all platforms.
3457         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3458
3459 2012-04-22  Bruno Haible  <bruno@clisp.org>
3460
3461         rint* tests: Avoid gcc warnings.
3462         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3463         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3464         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3465
3466 2012-04-21  Bruno Haible  <bruno@clisp.org>
3467
3468         users.txt: Update.
3469         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3470         switched from CVS to git, bzr, or svn.
3471
3472 2012-04-21  Bruno Haible  <bruno@clisp.org>
3473
3474         Large File Support for native Windows platforms.
3475
3476         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3477         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3478
3479         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3480         type.
3481         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3482         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3483         * doc/posix-headers/sys_types.texi: Mention the effect of the
3484         'largefile' module.
3485
3486         * lib/fcntl.in.h: Add comments about off_t.
3487         * modules/fcntl-h (Depends-on): Add sys_types.
3488
3489         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3490         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3491         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3492         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3493         * modules/unistd (Depends-on): Add sys_types.
3494         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3495
3496         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3497         instead of lseek.
3498         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3499         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3500         * modules/lseek (Depends-on): Add sys_types.
3501
3502         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3503         msvc-nothrow.h.
3504         (SetFileSize): New function.
3505         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3506         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3507         if Large File Support is requested.
3508         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3509         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3510
3511         * lib/stdio.in.h: Add comments about off_t.
3512         * modules/stdio (Depends-on): Add sys_types.
3513
3514         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3515         instead of ftello.
3516         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3517         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3518         (gl_PREREQ_FTELLO): New macro.
3519         * modules/ftello (Depends-on): Add sys_types.
3520         (configure.ac): Incoke gl_PREREQ_FTELLO.
3521
3522         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3523         instead of fseeko.
3524         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3525         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3526         (gl_PREREQ_FSEEKO): New macro.
3527         * modules/fseeko (Depends-on): Add sys_types.
3528         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3529
3530         * lib/sys_stat.in.h: Add comments about off_t.
3531         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3532         64-bit integer for st_size in 'struct stat'.
3533         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3534         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3535         * modules/sys_stat (Depends-on): Add sys_types.
3536         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3537
3538         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3539         instead of stat or _stat.
3540
3541         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3542         'struct _stati64' instead of fstat and 'struct stat'.
3543         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3544         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3545
3546         Reported by Ray Satiro <raysatiro@yahoo.com>.
3547
3548 2012-04-19  Eric Blake  <eblake@redhat.com>
3549
3550         bootstrap: accommodate older libtool
3551         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3552         Reported by Daniel P. Berrange.
3553
3554 2012-04-19  Jim Meyering  <meyering@redhat.com>
3555
3556         announce-gen: avoid failure due to lack of Digest::SHA1
3557         Even with the preferred Digest::SHA available, this script
3558         would fail when the backup module, Digest::SHA1, was not installed.
3559         * build-aux/announce-gen: Quote the conditional use of "use".
3560         Reported by Reuben Thomas in:
3561         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3562
3563         bootstrap: don't let a user's CDPATH setting affect this script
3564         When CDPATH is set, cd will sometimes generate output.
3565         When "cd" is run in a subshell whose output matters, that
3566         surprising-to-some output can cause malfunction.
3567         Unsetting CDPATH turns off this shell "feature."
3568         * build-aux/bootstrap (CDPATH): Unset.
3569         Reported by Reuben Thomas in:
3570         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3571         and inspired by his patch here:
3572         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3573
3574 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3575         and Jim Meyering  <meyering@redhat.com>
3576
3577         maint.mk: catch "see @xref{}" and similar
3578         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3579         prohibit "See also @xref{", "Also see @pxref{", and similar.
3580
3581 2012-04-16  Jim Meyering  <meyering@redhat.com>
3582
3583         bootstrap: really use gnulib's po/Makefile.in.in
3584         * build-aux/bootstrap: Correct the source file name in previous change.
3585         Reported by Akim Demaille.
3586
3587         configmake: correct minor inconsistency in Makefile rule
3588         * modules/configmake (Makefile.am): All other rules like this one
3589         run the final "mv -f ..." in the same backslash-continued command
3590         as the one that does everything else.  This one put the mv -f ...
3591         command on a separate, non-backslash-continued line.
3592         Make it like the others.
3593
3594         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3595         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3596         the one from gettext.  Reported by Akim Demaille.
3597
3598 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3599
3600         Fix recursion of install-* into po directories.
3601         Bison's install-pdf bug reported by Hans Aberg at
3602         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3603         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3604         (install-info, install-pdf, install-ps): New targets.
3605
3606 2012-04-16  Jim Meyering  <meyering@redhat.com>
3607
3608         maint: avoid spurious "make sc_maint" failure
3609         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3610         exempt all *.class file names, for lib/javaversion.class.
3611
3612 2012-04-15  Bruno Haible  <bruno@clisp.org>
3613
3614         lseek: Make configure test independent of environment.
3615         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3616         Windows, we know that lseek() on pipes is broken; skip the runtime
3617         test.
3618
3619 2012-04-14  Bruno Haible  <bruno@clisp.org>
3620
3621         stat: Bypass buggy override in mingw64.
3622         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3623         * lib/stat.c (stat) [mingw64]: Define to _stat.
3624         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3625
3626 2012-04-14  Bruno Haible  <bruno@clisp.org>
3627
3628         pathmax: Fix compilation error on MSVC 9.
3629         * modules/pathmax (Depends-on): Add unistd.
3630
3631 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3632
3633         README: document pointer comparison assumption
3634         * README (Portability guidelines): Document assumption about
3635         pointer comparisons, in response to a recent bug-gnulib comment by
3636         Jeffrey Kegler.
3637
3638 2012-04-12  Bruno Haible  <bruno@clisp.org>
3639
3640         Tests for module 'getrusage'.
3641         * modules/getrusage-tests: New file.
3642         * tests/test-getrusage.c: New file.
3643
3644         New module 'getrusage'.
3645         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3646         warn-on-use.h.
3647         (getrusage): New declaration.
3648         * lib/getrusage.c: New file.
3649         * m4/getrusage.m4: New file.
3650         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3651         is declared.
3652         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3653         HAVE_GETRUSAGE.
3654         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3655         snippet/c++defs, snippet/warn-on-use.
3656         (Makefile.am): Update generation of sys/resource.h. Substitute
3657         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3658         * modules/getrusage: New file.
3659         * doc/posix-functions/getrusage.texi: Mention the new module.
3660
3661 2012-04-12  Bruno Haible  <bruno@clisp.org>
3662
3663         Tests for module 'sys_resource'.
3664         * modules/sys_resource-tests: New file.
3665         * tests/test-sys_resource.c: New file.
3666
3667         New module 'sys_resource'.
3668         * lib/sys_resource.in.h: New file.
3669         * m4/sys_resource_h.m4: New file.
3670         * modules/sys_resource: New file.
3671         * doc/posix-headers/sys_resource.texi: Mention the new module.
3672
3673 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3674
3675         ioctl: Fix compilation error on mingw.
3676         * lib/ioctl.c: Include <windows.h>.
3677         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3678
3679 2012-04-04  Jim Meyering  <meyering@redhat.com>
3680
3681         regex: correct #pragma guard expression
3682         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3683         not 4.3.  Correct its cpp guard expression.
3684
3685 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3686
3687         regex: remove unnecessary type punning
3688         Problem reported by Vladimir Serbinenko in
3689         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3690         * lib/regex.h (struct re_pattern_buffer): Change the type of
3691         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3692         Fix comment to match code.
3693         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3694         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3695         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3696         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3697         (set_regs):
3698         Omit no-longer-necessary casts.
3699
3700 2012-04-03  Bruno Haible  <bruno@clisp.org>
3701
3702         Tests for module 'ilogbl'.
3703         * modules/ilogbl-tests: New file.
3704         * tests/test-ilogbl.c: New file.
3705
3706         New module 'ilogbl'.
3707         * lib/math.in.h (ilogbl): New declaration.
3708         * lib/ilogbl.c: New file.
3709         * m4/ilogbl.m4: New file.
3710         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3712         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3713         Split sed invocation, to avoid the limit of 100 substitutions of
3714         HP-UX 'sed'.
3715         * modules/ilogbl: New file.
3716         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3717         * doc/posix-functions/ilogbl.texi: Mention the new module.
3718
3719 2012-04-03  Bruno Haible  <bruno@clisp.org>
3720
3721         Tests for module 'ilogbf'.
3722         * modules/ilogbf-tests: New file.
3723         * tests/test-ilogbf.c: New file.
3724
3725         New module 'ilogbf'.
3726         * lib/math.in.h (ilogbf): New declaration.
3727         * lib/ilogbf.c: New file.
3728         * m4/ilogbf.m4: New file.
3729         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3731         REPLACE_ILOGBF.
3732         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3733         REPLACE_ILOGBF.
3734         * modules/ilogbf: New file.
3735         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3736         * doc/posix-functions/ilogbf.texi: Mention the new module.
3737
3738 2012-04-03  Bruno Haible  <bruno@clisp.org>
3739
3740         Tests for module 'ilogb'.
3741         * modules/ilogb-tests: New file.
3742         * tests/test-ilogb.c: New file.
3743         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3744         tests/test-logb-ieee.h.
3745
3746         New module 'ilogb'.
3747         * lib/math.in.h (ilogb): New declaration.
3748         * lib/ilogb.c: New file.
3749         * m4/ilogb.m4: New file.
3750         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3752         REPLACE_ILOGB.
3753         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3754         REPLACE_ILOGB.
3755         * modules/ilogb: New file.
3756         * tests/test-math-c++.cc: Check the declaration of ilogb.
3757         * doc/posix-functions/ilogb.texi: Mention the new module.
3758
3759 2012-04-03  Bruno Haible  <bruno@clisp.org>
3760
3761         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3762         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3763         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3764         (main): Check their values.
3765         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3766         problem.
3767
3768 2012-04-03  Bruno Haible  <bruno@clisp.org>
3769
3770         Tests for module 'logbl-ieee'.
3771         * modules/logbl-ieee-tests: New file.
3772         * tests/test-logbl-ieee.c: New file.
3773
3774         New module 'logbl-ieee'.
3775         * modules/logbl-ieee: New file.
3776
3777         Tests for module 'logb-ieee'.
3778         * modules/logb-ieee-tests: New file.
3779         * tests/test-logb-ieee.c: New file.
3780
3781         New module 'logb-ieee'.
3782         * modules/logb-ieee: New file.
3783
3784         Tests for module 'logbf-ieee'.
3785         * modules/logbf-ieee-tests: New file.
3786         * tests/test-logbf-ieee.c: New file.
3787         * tests/test-logb-ieee.h: New file.
3788
3789         New module 'logbf-ieee'.
3790         * modules/logbf-ieee: New file.
3791
3792 2012-04-03  Bruno Haible  <bruno@clisp.org>
3793
3794         Tests for module 'logbl'.
3795         * modules/logbl-tests: New file.
3796         * tests/test-logbl.c: New file.
3797
3798         New module 'logbl'.
3799         * lib/math.in.h (logbl): New declaration.
3800         * lib/logbl.c: New file.
3801         * m4/logbl.m4: New file.
3802         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3804         REPLACE_LOGBL.
3805         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3806         REPLACE_LOGBL.
3807         * modules/logbl: New file.
3808         * tests/test-math-c++.cc: Check the declaration of logbl.
3809         * doc/posix-functions/logbl.texi: Mention the new module.
3810
3811 2012-04-02  Bruno Haible  <bruno@clisp.org>
3812
3813         Tests for module 'logbf'.
3814         * modules/logbf-tests: New file.
3815         * tests/test-logbf.c: New file.
3816
3817         New module 'logbf'.
3818         * lib/math.in.h (logbf): New declaration.
3819         * lib/logbf.c: New file.
3820         * m4/logbf.m4: New file.
3821         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3823         REPLACE_LOGBF.
3824         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3825         REPLACE_LOGBF.
3826         * modules/logbf: New file.
3827         * tests/test-math-c++.cc: Check the declaration of logbf.
3828         * doc/posix-functions/logbf.texi: Mention the new module.
3829
3830 2012-04-02  Bruno Haible  <bruno@clisp.org>
3831
3832         logb tests: More tests.
3833         * tests/test-logb.h: New file, based on tests/test-logb.c and
3834         tests/test-frexp.h.
3835         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3836         (main): Just invoke test_function.
3837         * modules/logb-tests (Files): Add tests/test-logb.h,
3838         tests/minus-zero.h, tests/randomd.c.
3839         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3840
3841         logb: Provide replacement and workarounds.
3842         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3843         is 1.
3844         * lib/logb.c: New file.
3845         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3846         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3848         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3849         * modules/logb (Files): Add lib/logb.c.
3850         (Depends-on): Add isfinite, frexp, isnand.
3851         (configure.ac): Compile the replacement code logb.c if needed.
3852         * tests/test-math-c++.cc: Check the declaration of logb.
3853         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3854         with subnormal numbers.
3855
3856 2012-04-02  Bruno Haible  <bruno@clisp.org>
3857
3858         log10* tests: Speed up.
3859         * tests/test-log10.h (test_function): Reduce amount of random numbers
3860         to test.
3861
3862 2012-04-01  Bruno Haible  <bruno@clisp.org>
3863
3864         logf-ieee: Fix test whether logf works.
3865         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3866
3867 2012-04-01  Bruno Haible  <bruno@clisp.org>
3868
3869         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3870         * lib/log10l.c: Include <float.h>
3871         (log10l): On IRIX, normalize the +Infinity value.
3872         * modules/log10l (Depends-on): Add 'float'.
3873         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3874         +Infinity.
3875
3876         log10f-ieee: Work around test failure on NetBSD 5.1.
3877         * m4/log10f-ieee.m4: New file.
3878         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3879         test whether log10f works with a negative argument. Replace it if not.
3880         * lib/log10f.c (log10f): For negative arguments, return NaN.
3881         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3882         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3883         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3884
3885         log10f-ieee: Work around test failure on Solaris 9.
3886         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3887         (configure.ac): Require gl_FUNC_LOG10F.
3888
3889         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3890         * m4/log10-ieee.m4: New file.
3891         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3892         whether log10 works with a negative argument. Replace it if not.
3893         * lib/log10.c (log10): For negative arguments, return NaN.
3894         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3895         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3896         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3897
3898         Tests for module 'log10l-ieee'.
3899         * modules/log10l-ieee-tests: New file.
3900         * tests/test-log10l-ieee.c: New file.
3901
3902         New module 'log10l-ieee'.
3903         * modules/log10l-ieee: New file.
3904
3905         Tests for module 'log10-ieee'.
3906         * modules/log10-ieee-tests: New file.
3907         * tests/test-log10-ieee.c: New file.
3908
3909         New module 'log10-ieee'.
3910         * modules/log10-ieee: New file.
3911
3912         Tests for module 'log10f-ieee'.
3913         * modules/log10f-ieee-tests: New file.
3914         * tests/test-log10f-ieee.c: New file.
3915         * tests/test-log10-ieee.h: New file.
3916
3917         New module 'log10f-ieee'.
3918         * modules/log10f-ieee: New file.
3919
3920 2012-04-01  Bruno Haible  <bruno@clisp.org>
3921
3922         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3923         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3924         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3925         workaround.
3926         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3927         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3929         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3930         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3931         (Depends-on): Update conditions.
3932         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3933         IRIX 6.5, OSF/1 5.1 problems.
3934
3935 2012-04-01  Bruno Haible  <bruno@clisp.org>
3936
3937         log10f: Work around OSF/1 5.1 bug.
3938         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3939         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3940         workaround.
3941         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3942         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3944         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3945         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3946         (Depends-on): Update conditions.
3947         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3948
3949 2012-04-01  Bruno Haible  <bruno@clisp.org>
3950
3951         log10: Work around OSF/1 5.1 bug.
3952         * lib/math.in.h (log10): New declaration.
3953         * lib/log10.c: New file.
3954         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3955         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3956         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3958         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3959         * modules/log10 (Files): Add lib/log10.c.
3960         (Depends-on): Add math.
3961         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3962         * tests/test-math-c++.cc: Check the declaration of log10.
3963         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3964
3965 2012-03-31  Bruno Haible  <bruno@clisp.org>
3966
3967         log10l tests: More tests.
3968         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3969         tests/minus-zero.h, tests/randoml.c.
3970         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3971         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3972         (main): Invoke test_function.
3973
3974         log10f tests: More tests.
3975         * modules/log10f-tests (Files): Add tests/test-log10.h,
3976         tests/minus-zero.h, tests/randomf.c.
3977         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3978         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3979         (main): Invoke test_function.
3980
3981         log10 tests: More tests.
3982         * tests/test-log10.h: New file.
3983         * modules/log10-tests (Files): Add tests/test-log10.h,
3984         tests/minus-zero.h, tests/randomd.c.
3985         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3986         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3987         (main): Invoke test_function.
3988
3989 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3990
3991         fflush: Fix syntax error.
3992         * lib/fflush.c: Include unused-parameter.h, needed for
3993         _GL_UNUSED_PARAMETER.
3994         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3995
3996 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3997
3998         regex: pacify GCC when compiling GRUB
3999         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4000         a diagnostic.  Reported by Vladimir Serbinenko in
4001         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4002
4003 2012-03-29  Eric Blake  <eblake@redhat.com>
4004
4005         stdio: don't assume gets any more
4006         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4007         support.
4008         * modules/stdio (Makefile.am): Likewise.
4009         * lib/stdio-read.c (gets): Likewise.
4010         * tests/test-stdio-c++.cc: Likewise.
4011         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4012         * lib/stdio.in.h (gets): Make warning occur in more places.
4013         * doc/posix-functions/gets.texi (gets): Update documentation.
4014         Reported by Christer Solskogen.
4015
4016         maint.mk: fix syntax checks without exclusions
4017         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4018         Reported by Daniel P. Berrange.
4019
4020         strerror_r: avoid compiler warning
4021         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4022         level.
4023
4024         fflush: avoid compiler warning
4025         * lib/fflush.c (update_fpos_cache): Mark variables that are
4026         potentially unused.
4027
4028 2012-03-25  Bruno Haible  <bruno@clisp.org>
4029
4030         Tests for module 'localeconv'.
4031         * modules/localeconv-tests: New file.
4032         * tests/test-localeconv.c: New file.
4033
4034         New module 'localeconv'.
4035         * lib/locale.in.h (localeconv): New declaration.
4036         * lib/localeconv.c: New file.
4037         * m4/localeconv.m4: New file.
4038         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4039         REPLACE_LOCALECONV.
4040         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4041         REPLACE_LOCALECONV.
4042         * modules/localeconv: New file.
4043         * modules/nl_langinfo (Depends-on): Add localeconv.
4044         * modules/human (Depends-on): Likewise.
4045         * doc/posix-functions/localeconv.texi: Mention the new module.
4046
4047 2012-03-25  Bruno Haible  <bruno@clisp.org>
4048
4049         locale: Provide a complete 'struct lconv'.
4050         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4051         'struct lconv' does not contain int_p_cs_precedes.
4052         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4053         * doc/posix-headers/locale.texi: Update.
4054
4055         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4056         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4057         * doc/posix-headers/locale.texi: Update.
4058
4059         locale: Provide a working 'struct lconv'.
4060         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4061         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4062         'struct lconv' does not even contain decimal_point.
4063         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4064         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4065         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4066         * doc/posix-headers/locale.texi: Mention the problems with
4067         'struct lconv'.
4068         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4069
4070 2012-03-24  Bruno Haible  <bruno@clisp.org>
4071
4072         Enable common subexpression optimization in GCC.
4073         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4074         macros.
4075         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4076         GCC attribute 'const'.
4077         (uc_locale_language): Declare with GCC attribute 'pure'.
4078         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4079         with GCC attribute 'const'.
4080         * lib/unictype.in.h (uc_is_general_category_withtable,
4081         uc_combining_class, uc_combining_class_name,
4082         uc_combining_class_long_name, uc_bidi_class_name,
4083         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4084         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4085         uc_decimal_value, uc_digit_value, uc_numeric_value,
4086         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4087         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4088         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4089         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4090         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4091         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4092         Declare with GCC attribute 'const'.
4093         (uc_general_category_name, uc_general_category_long_name,
4094         uc_general_category_byname, uc_general_category,
4095         uc_is_general_category, uc_combining_class_byname,
4096         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4097         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4098         Declare with GCC attribute 'pure'.
4099         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4100         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4101         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4102         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4103         with GCC attribute 'pure'.
4104         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4105         'const'.
4106         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4107         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4108         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4109         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4110         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4111         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4112         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4113         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4114         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4115         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4116         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4117         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4118         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4119         GCC attribute 'pure'.
4120         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4121         'const'.
4122         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4123         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4124         u32_strwidth): Declare with GCC attribute 'pure'.
4125
4126         Enable common subexpression optimization in GCC.
4127         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4128         (alphasort): Declare with GCC attribute 'pure'.
4129         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4130         (atoll): Declare with GCC attribute 'pure'.
4131         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4132         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4133         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4134         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4135         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4136         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4137         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4138
4139 2012-03-24  Bruno Haible  <bruno@clisp.org>
4140
4141         gnulib-tool: Avoid unintended error output from 'cmp'.
4142         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4143         "cmp -s", not "cmp > /dev/null".
4144
4145 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4146
4147         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4148
4149         It's not just Automake versions < 1.9b that creates an empty
4150         pkgdatadir at installation time if pkgdata_DATA is specified
4151         to empty; modern automake versions do this as well, at least
4152         until automake 1.11.4 (not yet released at the moment of writing,
4153         but soon to appear).  That behaviour was generally considered a
4154         feature rather than a bug, at least until this discussion:
4155         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4156
4157         See also automake bugs #10997 and #11030.
4158
4159         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4160         reference to relevant automake bug numbers.
4161         (func_emit_tests_Makefile_am): Likewise.
4162
4163 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4164
4165         announce-gen: use Digest::SHA when possible
4166         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4167         back to Digest::SHA1 if necessary.
4168
4169 2012-03-20  Jim Meyering  <meyering@redhat.com>
4170
4171         tests: avoid gcc warnings about argv vs. const initializers
4172         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4173         warnings about discarding 'const' qualifier from pointer target type.
4174         * tests/test-posix_spawn2.c (main): Likewise.
4175
4176 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4177
4178         README-release: simplify slightly
4179         * top/README-release: Run "git checkout master" only once.
4180
4181 2012-03-15  Mark Wielaard  <mark@klomp.org>
4182
4183         git-merge-changelog: add specific example on how to use with hg.
4184         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4185
4186 2012-03-18  Mark Wielaard  <mark@klomp.org>
4187
4188         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4189
4190 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4191
4192         git-version-gen: don't let "prefix" envvar cause trouble
4193         * build-aux/git-version-gen (prefix): Initialize properly,
4194         so as not to use a value specified via the environment.
4195         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4196
4197 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4198
4199         regex: diagnose too-large repeat counts in EREs
4200         Previously, the code did not diagnose the too-large repeat count
4201         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4202         as if it were 'b\{1000000000}', which is unexpected.
4203         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4204         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4205         is a reasonable one for this problem.  Another option would be to
4206         create a new REG_OVERFLOW error for repeat counts that are too large.
4207         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4208         count is too large, so that the caller can distinguish the two cases.
4209         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4210         "Too large" return code, and that repeat counts are one example of this.
4211
4212 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4213
4214         doc: some glibc x32 integer width issues
4215         * doc/posix-headers/sys_types.texi (sys/types.h):
4216         * doc/posix-headers/time.texi (time.h):
4217         Mention that glibc x32 does not conform to POSIX in a couple of
4218         areas related to integer widths.
4219
4220 2012-03-15  Bruno Haible  <bruno@clisp.org>
4221
4222         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4223         * lib/fma.c (VOLATILE): New macro.
4224         (FUNC): Use it to work around a GCC compiler bug.
4225
4226 2012-03-13  Bruno Haible  <bruno@clisp.org>
4227
4228         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4229         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4230         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4231         REPLACE_HYPOTL to 1.
4232         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4233
4234 2012-03-13  Bruno Haible  <bruno@clisp.org>
4235
4236         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4237         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4238         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4239         REPLACE_REMAINDERL to 1.
4240         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4241         bug.
4242
4243 2012-03-13  Bruno Haible  <bruno@clisp.org>
4244
4245         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4246         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4247         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4248         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4249         too big rounding errors.
4250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4251         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4252         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4253         (Depends-on): Update conditions.
4254         * tests/test-sqrtl.c (my_ldexpl): New function.
4255         (main): Add test of a particular value.
4256         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4257
4258 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4259
4260         doc: Update timer_* platform portability notes.
4261         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4262         that always return ENOSYS.
4263         * doc/posix-functions/timer_delete.texi: Likewise.
4264         * doc/posix-functions/timer_gettime.texi: Likewise.
4265         * doc/posix-functions/timer_settime.texi: Likewise.
4266
4267 2012-03-13  Bruno Haible  <bruno@clisp.org>
4268
4269         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4270         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4271         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4272         REPLACE_CBRTL to 1.
4273         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4274
4275 2012-03-13  Bruno Haible  <bruno@clisp.org>
4276
4277         remainderl: Avoid compilation error on AIX >= 5.2.
4278         * lib/math.in.h (remainderl): Undefine macro from the system header.
4279
4280 2012-03-13  Bruno Haible  <bruno@clisp.org>
4281
4282         Avoid compilation errors with MSVC option -fp:strict.
4283         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4284         * lib/cbrtf.c: Likewise.
4285         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4286
4287 2012-03-12  Bruno Haible  <bruno@clisp.org>
4288
4289         uninorm: Don't crash in out-of-memory conditions.
4290         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4291         gracefully.
4292         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4293         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4294
4295 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4296
4297         quote: fix syntax-check
4298         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4299         also exports quote_quoting_options.
4300
4301 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4302
4303         Collapse list of copyright years to ranges.  See
4304         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4305         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4306         build-aux/csharpexec.sh.in, build-aux/gnupload,
4307         build-aux/install-reloc, build-aux/javacomp.sh.in,
4308         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4309         build-aux/move-if-change, build-aux/reloc-ldflags,
4310         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4311
4312 2012-03-11  Bruno Haible  <bruno@clisp.org>
4313
4314         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4315         * m4/log2f-ieee.m4: New file.
4316         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4317         whether log2f works with a minus zero argument. Replace it if not.
4318         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4319         (Depends-on): Add log2-ieee.
4320         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4321         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4322
4323         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4324         * m4/log2-ieee.m4: New file.
4325         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4326         whether log2 works with a minus zero argument. Replace it if not.
4327         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4328         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4329         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4330
4331         Tests for module 'log2l-ieee'.
4332         * modules/log2l-ieee-tests: New file.
4333         * tests/test-log2l-ieee.c: New file.
4334
4335         New module 'log2l-ieee'.
4336         * modules/log2l-ieee: New file.
4337
4338         Tests for module 'log2-ieee'.
4339         * modules/log2-ieee-tests: New file.
4340         * tests/test-log2-ieee.c: New file.
4341
4342         New module 'log2-ieee'.
4343         * modules/log2-ieee: New file.
4344
4345         Tests for module 'log2f-ieee'.
4346         * modules/log2f-ieee-tests: New file.
4347         * tests/test-log2f-ieee.c: New file.
4348         * tests/test-log2-ieee.h: New file.
4349
4350         New module 'log2f-ieee'.
4351         * modules/log2f-ieee: New file.
4352
4353 2012-03-11  Bruno Haible  <bruno@clisp.org>
4354
4355         Tests for module 'log2l'.
4356         * modules/log2l-tests: New file.
4357         * tests/test-log2l.c: New file.
4358
4359         New module 'log2l'.
4360         * lib/math.in.h (log2l): New declaration.
4361         * lib/log2l.c: New file.
4362         * m4/log2l.m4: New file.
4363         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4365         REPLACE_LOG2L.
4366         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4367         REPLACE_LOG2L.
4368         * modules/log2l: New file.
4369         * tests/test-math-c++.cc: Check the declaration of log2l.
4370         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4371         and OSF/1 problems.
4372
4373 2012-03-11  Bruno Haible  <bruno@clisp.org>
4374
4375         Tests for module 'log2f'.
4376         * modules/log2f-tests: New file.
4377         * tests/test-log2f.c: New file.
4378
4379         New module 'log2f'.
4380         * lib/math.in.h (log2f): New declaration.
4381         * lib/log2f.c: New file.
4382         * m4/log2f.m4: New file.
4383         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4384         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4385         REPLACE_LOG2F.
4386         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4387         REPLACE_LOG2F.
4388         * modules/log2f: New file.
4389         * tests/test-math-c++.cc: Check the declaration of log2f.
4390         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4391         and OSF/1 and Cygwin problems.
4392
4393 2012-03-11  Bruno Haible  <bruno@clisp.org>
4394
4395         Tests for module 'log2'.
4396         * modules/log2-tests: New file.
4397         * tests/test-log2.c: New file.
4398         * tests/test-log2.h: New file.
4399
4400         New module 'log2'.
4401         * lib/math.in.h (log2): New declaration.
4402         * lib/log2.c: New file.
4403         * m4/log2.m4: New file.
4404         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4406         REPLACE_LOG2.
4407         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4408         REPLACE_LOG2.
4409         * modules/log2: New file.
4410         * tests/test-math-c++.cc: Check the declaration of log2.
4411         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4412         and OSF/1 and Cygwin problems.
4413
4414 2012-03-11  Bruno Haible  <bruno@clisp.org>
4415
4416         exp2* tests: More tests.
4417         * tests/test-exp2.h (test_function): Test all integral arguments that
4418         don't need to overflow or denormalized numbers.
4419         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4420         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4421         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4422
4423 2012-03-10  Bruno Haible  <bruno@clisp.org>
4424
4425         log1pl-ieee: Work around test failure on AIX 7.1.
4426         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4427
4428         log1pl-ieee: Work around test failure on IRIX 6.5.
4429         * m4/log1pl-ieee.m4: New file.
4430         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4431         test whether log1pl works with a minus zero argument. Replace it if
4432         not.
4433         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4435         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4436         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4437         (Depends-on): Update conditions.
4438         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4439         m4/signbit.m4.
4440         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4441         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4442
4443         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4444         * m4/log1pf-ieee.m4: New file.
4445         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4446         test whether log1pf works with a minus zero argument. Replace it if
4447         not.
4448         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4449         m4/signbit.m4.
4450         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4451         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4452
4453         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4454         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4455         (configure.ac): Require gl_FUNC_LOG1PF.
4456
4457         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4458         * m4/log1p-ieee.m4: New file.
4459         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4460         whether log1p works with a minus zero argument. Replace it if not.
4461         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4462         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4463         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4464         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4465         (Depends-on): Update conditions.
4466         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4467         m4/signbit.m4.
4468         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4469         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4470
4471         Tests for module 'log1pl-ieee'.
4472         * modules/log1pl-ieee-tests: New file.
4473         * tests/test-log1pl-ieee.c: New file.
4474
4475         New module 'log1pl-ieee'.
4476         * modules/log1pl-ieee: New file.
4477
4478         Tests for module 'log1p-ieee'.
4479         * modules/log1p-ieee-tests: New file.
4480         * tests/test-log1p-ieee.c: New file.
4481
4482         New module 'log1p-ieee'.
4483         * modules/log1p-ieee: New file.
4484
4485         Tests for module 'log1pf-ieee'.
4486         * modules/log1pf-ieee-tests: New file.
4487         * tests/test-log1pf-ieee.c: New file.
4488         * tests/test-log1p-ieee.h: New file.
4489
4490         New module 'log1pf-ieee'.
4491         * modules/log1pf-ieee: New file.
4492
4493 2012-03-10  Bruno Haible  <bruno@clisp.org>
4494
4495         Tests for module 'log1pl'.
4496         * modules/log1pl-tests: New file.
4497         * tests/test-log1pl.c: New file.
4498
4499         New module 'log1pl'.
4500         * lib/math.in.h (log1pl): New declaration.
4501         * lib/log1pl.c: New file.
4502         * m4/log1pl.m4: New file.
4503         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4505         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4506         * modules/log1pl: New file.
4507         * tests/test-math-c++.cc: Check the declaration of log1pl.
4508         * doc/posix-functions/log1pl.texi: Mention the new module.
4509
4510 2012-03-10  Bruno Haible  <bruno@clisp.org>
4511
4512         Tests for module 'log1pf'.
4513         * modules/log1pf-tests: New file.
4514         * tests/test-log1pf.c: New file.
4515
4516         New module 'log1pf'.
4517         * lib/math.in.h (log1pf): New declaration.
4518         * lib/log1pf.c: New file.
4519         * m4/log1pf.m4: New file.
4520         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4522         REPLACE_LOG1PF.
4523         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4524         REPLACE_LOG1PF.
4525         * modules/log1pf: New file.
4526         * tests/test-math-c++.cc: Check the declaration of log1pf.
4527         * doc/posix-functions/log1pf.texi: Mention the new module.
4528
4529 2012-03-10  Bruno Haible  <bruno@clisp.org>
4530
4531         log1p tests: More tests.
4532         * tests/test-log1p.h: New file.
4533         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4534         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4535         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4536         (main): Invoke test_function.
4537
4538         log1p: Provide replacement for Minix and MSVC.
4539         * lib/math.in.h (log1p): New declaration.
4540         * lib/log1p.c: New file.
4541         * m4/log1p.m4: New file.
4542         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4544         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4545         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4546         (Depends-on): Add math, isnand, log, round.
4547         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4548         HAVE_LOG1P is 0.
4549         * tests/test-math-c++.cc: Check the declaration of log1p.
4550         * doc/posix-functions/log1p.texi: Mention the replacement.
4551
4552 2012-03-10  Bruno Haible  <bruno@clisp.org>
4553
4554         math tests: Small simplification.
4555         * tests/test-exp.h (test_function): Use the same err_bound for
4556         'double' on platforms with sizeof (long double) == sizeof (double)
4557         than on platforms with sizeof (long double) > sizeof (double).
4558         * tests/test-exp2.h (test_function): Likewise.
4559         * tests/test-expm1.h (test_function): Likewise.
4560         * tests/test-log.h (test_function): Likewise.
4561
4562 2012-03-10  Bruno Haible  <bruno@clisp.org>
4563
4564         Fix some comments.
4565         * lib/expl.c: Fix an ambiguous comment.
4566         * lib/expm1.c: Likewise.
4567         * lib/expm1l.c: Likewise.
4568         * lib/exp2.c: Likewise.
4569         * lib/exp2l.c: Likewise.
4570
4571 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4572
4573         regex: allow inclusion of <regex.h> before <limits.h>
4574         Without this patch, portable programs had to include <limits.h> before
4575         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4576         I ran into this problem with a test version of GNU grep on Solaris 8.
4577         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4578         This is done conditionally so that this change can be merged
4579         back to glibc.
4580         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4581         using the included regex.
4582
4583         fts: depend on fdopendir
4584         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4585         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4586         problem was introduced when fdopendir was split out.
4587
4588 2012-03-10  Bruno Haible  <bruno@clisp.org>
4589
4590         Remove unused variables.
4591         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4592         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4593
4594 2012-03-10  Bruno Haible  <bruno@clisp.org>
4595
4596         isnanf-nolibm: Fix last commit.
4597         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4598
4599         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4600         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4601
4602 2012-03-10  Bruno Haible  <bruno@clisp.org>
4603
4604         logf-ieee: Work around test failure on NetBSD 5.1.
4605         * m4/logf-ieee.m4: New file.
4606         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4607         whether logf works with a negative argument. Replace it if not.
4608         * lib/logf.c (logf): For negative arguments, return NaN.
4609         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4610         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4611         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4612
4613         logf-ieee: Work around test failure on Solaris 9.
4614         * modules/logf-ieee (Depends-on): Add log-ieee.
4615         (configure.ac): Require gl_FUNC_LOGF.
4616
4617         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4618         * m4/log-ieee.m4: New file.
4619         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4620         log works with a negative argument. Replace it if not.
4621         * lib/log.c (log): For negative arguments, return NaN.
4622         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4623         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4624         * doc/posix-functions/log.texi: Mention the log-ieee module.
4625
4626         Tests for module 'logl-ieee'.
4627         * modules/logl-ieee-tests: New file.
4628         * tests/test-logl-ieee.c: New file.
4629
4630         New module 'logl-ieee'.
4631         * modules/logl-ieee: New file.
4632
4633         Tests for module 'log-ieee'.
4634         * modules/log-ieee-tests: New file.
4635         * tests/test-log-ieee.c: New file.
4636
4637         New module 'log-ieee'.
4638         * modules/log-ieee: New file.
4639
4640         Tests for module 'logf-ieee'.
4641         * modules/logf-ieee-tests: New file.
4642         * tests/test-logf-ieee.c: New file.
4643         * tests/test-log-ieee.h: New file.
4644
4645         New module 'logf-ieee'.
4646         * modules/logf-ieee: New file.
4647
4648 2012-03-10  Bruno Haible  <bruno@clisp.org>
4649
4650         log: Fix bug introduced on 2012-03-09.
4651         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4652
4653 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4654
4655         timer-time: link explicitly with pthreads on glibc
4656         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4657         to support static linking, when newer glibc is
4658         detected, as that contains pthread emulation of
4659         POSIX timer functions where required.
4660         * modules/timer-time: Depend on threadlib to
4661         pull in the appropriate library to link.
4662
4663 2012-03-10  Bruno Haible  <bruno@clisp.org>
4664
4665         log* tests: More tests.
4666         * tests/test-log.h: New file.
4667         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4668         (main): Invoke test_function.
4669         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4670         (main): Invoke test_function.
4671         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4672         (main): Invoke test_function.
4673         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4674         tests/randomd.c.
4675         (Makefile.am): Add randomd.c to test_log_SOURCES.
4676         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4677         tests/randomf.c.
4678         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4679         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4680         tests/randoml.c.
4681         (Depends-on): Add 'float'.
4682         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4683
4684 2012-03-09  Bruno Haible  <bruno@clisp.org>
4685
4686         logl: Work around OSF/1 5.1 bug.
4687         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4688         * lib/logl.c (logl): If logl exists, use it and provide just the
4689         workaround.
4690         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4691         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4693         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4694         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4695         (Depends-on): Update conditions.
4696         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4697
4698 2012-03-09  Bruno Haible  <bruno@clisp.org>
4699
4700         logf: Work around OSF/1 5.1 bug.
4701         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4702         * lib/logf.c (logf): If logf exists, use it and provide just the
4703         workaround.
4704         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4705         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4707         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4708         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4709         (Depends-on): Update conditions.
4710         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4711
4712 2012-03-09  Bruno Haible  <bruno@clisp.org>
4713
4714         log: Work around OSF/1 5.1 bug.
4715         * lib/math.in.h (log): New declaration.
4716         * lib/log.c: New file.
4717         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4718         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4719         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4721         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4722         * modules/log (Files): Add lib/log.c.
4723         (Depends-on): Add math.
4724         (configure.ac): If REPLACE_LOG is 1, compile an override.
4725         * tests/test-math-c++.cc: Check the declaration of log.
4726         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4727
4728 2012-03-09  Jim Meyering  <meyering@redhat.com>
4729
4730         readtokens.c: adjust wording in a comment
4731         * lib/readtokens.c: Insert omitted "that" in a comment.
4732
4733 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4734
4735         modechange: add notations +40, 00440, etc.
4736         * lib/modechange.c (mode_compile): Support new notations
4737         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4738
4739 2012-03-08  Bruno Haible  <bruno@clisp.org>
4740
4741         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4742         * m4/exp2l-ieee.m4: New file.
4743         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4744         test whether exp2l works with a NaN argument and with a negative
4745         infinity argument. Replace it if not.
4746         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4748         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4749         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4750         (Depends-on): Update conditions.
4751         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4752         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4753         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4754
4755         Tests for module 'exp2l-ieee'.
4756         * modules/exp2l-ieee-tests: New file.
4757         * tests/test-exp2l-ieee.c: New file.
4758
4759         New module 'exp2l-ieee'.
4760         * modules/exp2l-ieee: New file.
4761
4762         Tests for module 'exp2-ieee'.
4763         * modules/exp2-ieee-tests: New file.
4764         * tests/test-exp2-ieee.c: New file.
4765
4766         New module 'exp2-ieee'.
4767         * modules/exp2-ieee: New file.
4768
4769         Tests for module 'exp2f-ieee'.
4770         * modules/exp2f-ieee-tests: New file.
4771         * tests/test-exp2f-ieee.c: New file.
4772         * tests/test-exp2-ieee.h: New file.
4773
4774         New module 'exp2f-ieee'.
4775         * modules/exp2f-ieee: New file.
4776
4777 2012-03-08  Bruno Haible  <bruno@clisp.org>
4778
4779         Tests for module 'exp2l'.
4780         * modules/exp2l-tests: New file.
4781         * tests/test-exp2l.c: New file.
4782
4783         New module 'exp2l'.
4784         * lib/math.in.h (exp2l): New declaration.
4785         * lib/exp2l.c: New file.
4786         * lib/expl-table.c: New file, extracted from lib/expl.c.
4787         * lib/expl.c (gl_expl_table): New declaration.
4788         (expl): Remove expl_table. Update reference.
4789         * m4/exp2l.m4: New file.
4790         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4792         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4793         * modules/exp2l: New file.
4794         * modules/expl (Files): Add lib/expl-table.c.
4795         (configure.ac): Compile also expl-table.c.
4796         * tests/test-math-c++.cc: Check the declaration of exp2l.
4797         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4798         problem.
4799
4800 2012-03-08  Bruno Haible  <bruno@clisp.org>
4801
4802         Tests for module 'exp2f'.
4803         * modules/exp2f-tests: New file.
4804         * tests/test-exp2f.c: New file.
4805
4806         New module 'exp2f'.
4807         * lib/math.in.h (exp2f): New declaration.
4808         * lib/exp2f.c: New file.
4809         * m4/exp2f.m4: New file.
4810         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4812         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4813         * modules/exp2f: New file.
4814         * tests/test-math-c++.cc: Check the declaration of exp2f.
4815         * doc/posix-functions/exp2f.texi: Mention the new module and the
4816         IRIX problem.
4817
4818 2012-03-08  Bruno Haible  <bruno@clisp.org>
4819
4820         Tests for module 'exp2'.
4821         * modules/exp2-tests: New file.
4822         * tests/test-exp2.c: New file.
4823         * tests/test-exp2.h: New file.
4824
4825         New module 'exp2'.
4826         * lib/math.in.h (exp2): New declaration.
4827         * lib/exp2.c: New file.
4828         * m4/exp2.m4: New file.
4829         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4831         REPLACE_EXP2.
4832         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4833         REPLACE_EXP2.
4834         * modules/exp2: New file.
4835         * tests/test-math-c++.cc: Check the declaration of exp2.
4836         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4837         and OpenBSD problems.
4838
4839 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4840
4841         savedir: fix comment typo
4842         * lib/savedir.c (savedirstream): Fix typo in comment.
4843
4844 2012-03-08  Bruno Haible  <bruno@clisp.org>
4845
4846         test-readtokens.c: use const; remove unwarranted cast
4847         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4848
4849 2012-03-08  Bruno Haible  <bruno@clisp.org>
4850
4851         fmal: Avoid compilation error on AIX.
4852         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4853         AIX 5.2..7.1.
4854
4855 2012-03-08  Bruno Haible  <bruno@clisp.org>
4856
4857         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4858         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4859         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4860         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4861         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4862         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4863         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4864
4865 2012-03-08  Bruno Haible  <bruno@clisp.org>
4866
4867         remainderf: Override buggy system function on IRIX 6.5.
4868         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4869         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4870         when it exists.
4871         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4872
4873 2012-03-08  Jim Meyering  <meyering@redhat.com>
4874
4875         test-readtokens.c: avoid const-related compilation warnings
4876         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4877
4878 2012-03-07  Jim Meyering  <meyering@redhat.com>
4879             Bruno Haible  <bruno@clisp.org>
4880
4881         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4882         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4883         tests/randomd.c.
4884         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4885         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4886         tests/randoml.c.
4887         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4888
4889 2012-03-07  Bruno Haible  <bruno@clisp.org>
4890
4891         expm1l: Avoid compilation error on AIX.
4892         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4893         AIX 5.2..7.1.
4894
4895 2012-03-07  Bruno Haible  <bruno@clisp.org>
4896
4897         expm1l: Don't override undeclared system function on IRIX 6.5.
4898         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4899         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4900         it exists. Set HAVE_DECL_EXPM1L.
4901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4902         HAVE_EXPM1L.
4903         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4904         HAVE_EXPM1L.
4905         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4906
4907 2012-03-07  Bruno Haible  <bruno@clisp.org>
4908
4909         remainderl: Don't override undeclared system function on IRIX 6.5.
4910         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4911         HAVE_REMAINDERL.
4912         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4913         declared when it exists. Set HAVE_DECL_REMAINDERL.
4914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4915         not HAVE_REMAINDERL.
4916         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4917         HAVE_REMAINDERL.
4918         * doc/posix-functions/remainderl.texi: Mention missing declaration
4919         problem.
4920
4921 2012-03-07  Bruno Haible  <bruno@clisp.org>
4922
4923         rintf: Don't override undeclared system function on IRIX 6.5.
4924         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4925         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4926         exists. Set HAVE_DECL_RINTF.
4927         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4928         HAVE_RINTF.
4929         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4930         HAVE_RINTF.
4931         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4932
4933 2012-03-07  Bruno Haible  <bruno@clisp.org>
4934
4935         roundl: Avoid compilation error on AIX.
4936         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4937         AIX 5.2..7.1.
4938
4939 2012-03-07  Bruno Haible  <bruno@clisp.org>
4940
4941         roundl: Don't override undeclared system function on IRIX 6.5.
4942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4943         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4944         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4945         * modules/roundl (configure.ac): For replacement code, test
4946         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4947         (Depends-on): Update conditions.
4948         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4949
4950 2012-03-07  Bruno Haible  <bruno@clisp.org>
4951
4952         roundf: Don't override undeclared system function on IRIX 6.5.
4953         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4954         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4955         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4956         * modules/roundf (configure.ac): For replacement code, test
4957         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4958         (Depends-on): Update conditions.
4959         * modules/roundf-ieee (Depends-on): Update conditions.
4960         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4961
4962 2012-03-07  Bruno Haible  <bruno@clisp.org>
4963
4964         round: Don't override undeclared system function on IRIX 6.5.
4965         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4966         argument.
4967         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4968         also when it is not declared. Set HAVE_ROUND. For replacement code,
4969         test HAVE_ROUND, not HAVE_DECL_ROUND.
4970         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4971         not HAVE_DECL_ROUND.
4972         (Depends-on): Update conditions.
4973         * modules/round-ieee (Depends-on): Update conditions.
4974         * doc/posix-functions/round.texi: Mention the IRIX problem.
4975
4976 2012-03-07  Bruno Haible  <bruno@clisp.org>
4977
4978         copysignf: Don't override undeclared system function on IRIX 6.5.
4979         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4980         HAVE_COPYSIGNF.
4981         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4982         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4984         not HAVE_COPYSIGNF.
4985         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4986         HAVE_COPYSIGNF.
4987         * doc/posix-functions/copysignf.texi: Mention missing declaration
4988         problem.
4989
4990 2012-03-07  Jim Meyering  <meyering@redhat.com>
4991
4992         readtokens: add tests
4993         * modules/readtokens-tests: New file.
4994         * tests/test-readtokens.c: New file.
4995
4996 2012-03-07  Jim Meyering  <meyering@redhat.com>
4997
4998         quotearg: the module must now include quote.h
4999         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5000         So must the module.
5001         * modules/quotearg (Files): Add quote.h.
5002
5003 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5004
5005         readtokens: avoid core dumps with unusual calling patterns
5006         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5007         * lib/readtokens.c: Include limits.h.
5008         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5009         (readtoken): Don't cache the delimiters; the cache code was buggy
5010         if !delim && saved_delim, or if the new n_delim differs from the old.
5011         Also, it wasn't thread-safe.
5012
5013 2012-03-07  Bruno Haible  <bruno@clisp.org>
5014
5015         quote: Adhere to common module description layout.
5016         * modules/quote (Makefile.am): Add back empty section.
5017
5018 2012-03-06  Akim Demaille  <demaille@gostai.com>
5019
5020         quote: fuse into quotearg
5021         This patch is made for the benefit of Bison.
5022         quote does not leave the choice of the quoting style to the user.
5023         quoting_style provides poor customizability, yet quoting_options,
5024         which is very rich, is hidden inside quotearg.c.  So in order to
5025         allow quote customization, move its implementation to quotearg.c.
5026         * lib/quote.c: Remove.
5027         * modules/quote: Adjust.
5028         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5029         warning: provide all the members of literal structs.
5030         (quote_quoting_options): New.
5031         (quote, quote_n): Import implementation from quote.c.
5032         * lib/quote.h: Import the comments from quote.c.
5033         (quote_quoting_options): New.
5034
5035 2012-03-06  Bruno Haible  <bruno@clisp.org>
5036
5037         Tests for module 'expm1l-ieee'.
5038         * modules/expm1l-ieee-tests: New file.
5039         * tests/test-expm1l-ieee.c: New file.
5040
5041         New module 'expm1l-ieee'.
5042         * modules/expm1l-ieee: New file.
5043
5044         Tests for module 'expm1f-ieee'.
5045         * modules/expm1f-ieee-tests: New file.
5046         * tests/test-expm1f-ieee.c: New file.
5047
5048         New module 'expm1f-ieee'.
5049         * modules/expm1f-ieee: New file.
5050
5051         Tests for module 'expm1-ieee'.
5052         * modules/expm1-ieee-tests: New file.
5053         * tests/test-expm1-ieee.c: New file.
5054         * tests/test-expm1-ieee.h: New file.
5055
5056         New module 'expm1-ieee'.
5057         * modules/expm1-ieee: New file.
5058         * m4/expm1-ieee.m4: New file.
5059         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5060         whether expm1 works with a minus zero argument. Replace it if not.
5061         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5063         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5064         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5065         (Depends-on): Update conditions.
5066         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5067         AIX problem.
5068
5069 2012-03-06  Bruno Haible  <bruno@clisp.org>
5070
5071         Work around expm1f bug on IRIX 6.5.
5072         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5073         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5074         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5075         not work.
5076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5077         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5078         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5079         (Depends-on): Update conditions.
5080         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5081
5082 2012-03-06  Bruno Haible  <bruno@clisp.org>
5083
5084         Tests for module 'expm1l'.
5085         * modules/expm1l-tests: New file.
5086         * tests/test-expm1l.c: New file.
5087
5088         New module 'expm1l'.
5089         * lib/math.in.h (expm1l): New declaration.
5090         * lib/expm1l.c: New file.
5091         * m4/expm1l.m4: New file.
5092         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5094         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5095         * modules/expm1l: New file.
5096         * tests/test-math-c++.cc: Check the declaration of expm1l.
5097         * doc/posix-functions/expm1l.texi: Mention the new module.
5098
5099 2012-03-06  Bruno Haible  <bruno@clisp.org>
5100
5101         Tests for module 'expm1f'.
5102         * modules/expm1f-tests: New file.
5103         * tests/test-expm1f.c: New file.
5104
5105         New module 'expm1f'.
5106         * lib/math.in.h (expm1f): New declaration.
5107         * lib/expm1f.c: New file.
5108         * m4/expm1f.m4: New file.
5109         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5111         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5112         * modules/expm1f: New file.
5113         * tests/test-math-c++.cc: Check the declaration of expm1f.
5114         * doc/posix-functions/expm1f.texi: Mention the new module.
5115
5116 2012-03-06  Bruno Haible  <bruno@clisp.org>
5117
5118         Tests for module 'expm1'.
5119         * modules/expm1-tests: New file.
5120         * tests/test-expm1.c: New file.
5121         * tests/test-expm1.h: New file.
5122
5123         New module 'expm1'.
5124         * lib/math.in.h (expm1): New declaration.
5125         * lib/expm1.c: New file.
5126         * m4/expm1.m4: New file.
5127         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5129         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5130         * modules/expm1: New file.
5131         * tests/test-math-c++.cc: Check the declaration of expm1.
5132         * doc/posix-functions/expm1.texi: Mention the new module.
5133
5134 2012-03-06  Bruno Haible  <bruno@clisp.org>
5135
5136         math: Ensure declarations of math functions.
5137         * modules/acosf (Depends-on): Add 'extensions'.
5138         * modules/asinf (Depends-on): Likewise.
5139         * modules/atan2f (Depends-on): Likewise.
5140         * modules/atanf (Depends-on): Likewise.
5141         * modules/cbrt (Depends-on): Likewise.
5142         * modules/cbrtf (Depends-on): Likewise.
5143         * modules/cbrtl (Depends-on): Likewise.
5144         * modules/copysignf (Depends-on): Likewise.
5145         * modules/copysignl (Depends-on): Likewise.
5146         * modules/cosf (Depends-on): Likewise.
5147         * modules/coshf (Depends-on): Likewise.
5148         * modules/expf (Depends-on): Likewise.
5149         * modules/fabsf (Depends-on): Likewise.
5150         * modules/fabsl (Depends-on): Likewise.
5151         * modules/fmaf (Depends-on): Likewise.
5152         * modules/fmal (Depends-on): Likewise.
5153         * modules/fmodf (Depends-on): Likewise.
5154         * modules/fmodl (Depends-on): Likewise.
5155         * modules/frexpf (Depends-on): Likewise.
5156         * modules/frexpl (Depends-on): Likewise.
5157         * modules/hypot (Depends-on): Likewise.
5158         * modules/hypotf (Depends-on): Likewise.
5159         * modules/hypotl (Depends-on): Likewise.
5160         * modules/ldexpf (Depends-on): Likewise.
5161         * modules/ldexpl (Depends-on): Likewise.
5162         * modules/log10f (Depends-on): Likewise.
5163         * modules/log10l (Depends-on): Likewise.
5164         * modules/log1p (Depends-on): Likewise.
5165         * modules/logb (Depends-on): Likewise.
5166         * modules/logf (Depends-on): Likewise.
5167         * modules/modff (Depends-on): Likewise.
5168         * modules/modfl (Depends-on): Likewise.
5169         * modules/powf (Depends-on): Likewise.
5170         * modules/remainderf (Depends-on): Likewise.
5171         * modules/remainderl (Depends-on): Likewise.
5172         * modules/rintf (Depends-on): Likewise.
5173         * modules/rintl (Depends-on): Likewise.
5174         * modules/sinf (Depends-on): Likewise.
5175         * modules/sinhf (Depends-on): Likewise.
5176         * modules/sqrtf (Depends-on): Likewise.
5177         * modules/tanf (Depends-on): Likewise.
5178         * modules/tanhf (Depends-on): Likewise.
5179         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5180         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5181         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5182         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5183         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5184         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5185         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5186         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5187         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5188         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5189         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5190         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5191         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5192         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5193         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5194         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5195         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5196         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5197         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5198         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5199         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5200         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5201         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5202         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5204         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5205         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5206         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5207         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5208         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5209         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5210         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5211         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5212         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5213         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5214         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5215         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5216         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5217         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5218         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5219         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5220
5221 2012-03-06  Bruno Haible  <bruno@clisp.org>
5222
5223         math: Update module names in warnings.
5224         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5225         tanl): Use specific module name in warn-on-use warning.
5226
5227 2012-03-06  Bruno Haible  <bruno@clisp.org>
5228
5229         expl: Simplify computation.
5230         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5231
5232 2012-03-05  Bruno Haible  <bruno@clisp.org>
5233
5234         exp* tests: More tests.
5235         * tests/test-exp.h: New file.
5236         * tests/test-exp.c: Include <float.h> and test-exp.h.
5237         (main): Invoke test_function.
5238         * tests/test-expf.c: Include <float.h> and test-exp.h.
5239         (main): Invoke test_function.
5240         * tests/test-expl.c: Include <float.h> and test-exp.h.
5241         (main): Invoke test_function.
5242         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5243         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5244         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5245         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5246         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5247         (Depends-on): Add 'float'.
5248         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5249
5250         expl: Fix precision of computed result.
5251         * lib/expl.c: Completely rewritten.
5252         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5253         (Maintainer): Add me.
5254         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5255
5256 2012-03-05  Bruno Haible  <bruno@clisp.org>
5257
5258         cbrt* tests: More tests.
5259         * tests/test-cbrt.h: New file.
5260         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5261         (main): Invoke test_function.
5262         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5263         (main): Invoke test_function.
5264         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5265         (main): Invoke test_function.
5266         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5267         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5268         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5269         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5270         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5271         (Depends-on): Add 'float'.
5272         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5273
5274 2012-03-05  Bruno Haible  <bruno@clisp.org>
5275
5276         hypot* tests: More tests.
5277         * tests/test-hypot.h: New file, partially extracted from
5278         tests/test-hypotl.c.
5279         * tests/test-hypot.c: Include test-hypot.h.
5280         (main): Invoke test_function.
5281         * tests/test-hypotf.c: Include test-hypot.h.
5282         (main): Invoke test_function.
5283         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5284         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5285         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5286         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5287         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5288         tests/randomf.c.
5289         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5290         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5291         tests/randoml.c.
5292         (Depends-on): Add 'fpucw', 'float'.
5293         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5294
5295 2012-03-05  Bruno Haible  <bruno@clisp.org>
5296
5297         fpucw: Doc about FreeBSD.
5298         * lib/fpucw.h: Mention FreeBSD in comments.
5299
5300 2012-03-04  Bruno Haible  <bruno@clisp.org>
5301
5302         sqrt* tests: More tests.
5303         * tests/test-sqrt.h: New file.
5304         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5305         (main): Invoke test_function.
5306         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5307         (main): Invoke test_function.
5308         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5309         (main): Invoke test_function.
5310         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5311         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5312         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5313         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5314         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5315         (Depends-on): Add 'float'.
5316         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5317
5318 2012-03-04  Bruno Haible  <bruno@clisp.org>
5319
5320         remainder* tests: More tests.
5321         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5322         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5323         (main): Invoke test_function.
5324         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5325         (main): Invoke test_function.
5326         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5327         (main): Invoke test_function.
5328         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5329         tests/randomd.c.
5330         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5331         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5332         tests/randomf.c.
5333         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5334         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5335         tests/randoml.c.
5336         (Depends-on): Add 'float'.
5337         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5338
5339 2012-03-04  Bruno Haible  <bruno@clisp.org>
5340
5341         remainder, remainderf, remainderl: Fix computation for large quotients.
5342         * lib/remainder.c: Completely rewritten.
5343         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5344         USE_FLOAT.
5345         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5346         USE_LONG_DOUBLE.
5347         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5348         isnand, isinf. Remove round, fma.
5349         * modules/remainderf (Files): Add lib/remainder.c.
5350         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5351         Remove roundf, fmaf.
5352         * modules/remainderl (Files): Add lib/remainder.c.
5353         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5354         isinf. Remove roundl, fmal.
5355         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5356         REMAINDER_LIBM.
5357         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5358         REMAINDERF_LIBM.
5359         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5360         REMAINDERL_LIBM.
5361
5362 2012-03-04  Bruno Haible  <bruno@clisp.org>
5363
5364         fmod* tests: More tests.
5365         * tests/test-fmod.h (my_ldexp): New function.
5366         (test_function): Reduce amount of random numbers to test. Add tests
5367         of very large quotients x / y.
5368         * tests/test-fmod.c (MAX_EXP): New macro.
5369         * tests/test-fmodf.c (MAX_EXP): Likewise.
5370         * tests/test-fmodl.c (MAX_EXP): Likewise.
5371
5372 2012-03-04  Bruno Haible  <bruno@clisp.org>
5373
5374         fmod, fmodl: Fix computation for large quotients x / y.
5375         * lib/fmod.c: Completely rewritten.
5376         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5377         USE_LONG_DOUBLE.
5378         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5379         isnand. Remove fma.
5380         * modules/fmodl (Files): Add lib/fmod.c.
5381         (Depends-on): Add float, isfinite, signbit, fabsl,
5382         frexpl, ldexpl, isnanl. Remove fma.
5383         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5384         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5385
5386 2012-03-03  Bruno Haible  <bruno@clisp.org>
5387
5388         fmod* tests: More tests.
5389         * tests/test-fmod.h: New file.
5390         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5391         (main): Invoke test_function.
5392         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5393         (main): Invoke test_function.
5394         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5395         (main): Invoke test_function.
5396         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5397         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5398         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5399         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5400         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5401         (Depends-on): Add 'float'.
5402         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5403
5404 2012-03-03  Bruno Haible  <bruno@clisp.org>
5405
5406         rint* tests: More tests.
5407         * tests/test-rint.h: New file, partially extracted from
5408         tests/test-rintl.c.
5409         * tests/test-rint.c: Include test-rint.h.
5410         (main): Invoke test_function.
5411         * tests/test-rintf.c: Include test-rint.h.
5412         (main): Invoke test_function.
5413         * tests/test-rintl.c: Include test-rint.h.
5414         (main): Invoke test_function.
5415         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5416         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5417         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5418         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5419         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5420         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5421
5422 2012-03-03  Bruno Haible  <bruno@clisp.org>
5423
5424         modf* tests: More tests.
5425         * tests/test-modf.h: New file.
5426         * tests/test-modf.c: Include <float.h> and test-modf.h.
5427         (main): Invoke test_function.
5428         * tests/test-modff.c: Include <float.h> and test-modf.h.
5429         (main): Invoke test_function.
5430         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5431         (main): Invoke test_function.
5432         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5433         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5434         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5435         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5436         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5437         (Depends-on): Add 'float'.
5438         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5439
5440 2012-03-03  Bruno Haible  <bruno@clisp.org>
5441
5442         fabs* tests: More tests.
5443         * tests/test-fabs.h: New file, partially extracted from
5444         tests/test-fabsl.c.
5445         * tests/test-fabs.c (RANDOM): New macro.
5446         * tests/test-fabsf.c (RANDOM): New macro.
5447         * tests/test-fabsl.c (RANDOM): New macro.
5448         * modules/fabs-tests (Files): Add tests/randomd.c.
5449         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5450         * modules/fabsf-tests (Files): Add tests/randomf.c.
5451         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5452         * modules/fabsl-tests (Files): Add tests/randoml.c.
5453         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5454
5455 2012-03-03  Bruno Haible  <bruno@clisp.org>
5456
5457         ldexp* tests: More tests.
5458         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5459         * tests/test-ldexp.c (RANDOM): New macro.
5460         * tests/test-ldexpf.c (RANDOM): New macro.
5461         * tests/test-ldexpl.c (RANDOM): New macro.
5462         * modules/ldexp-tests (Files): Add tests/randomd.c.
5463         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5464         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5465         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5466         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5467         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5468
5469 2012-03-03  Bruno Haible  <bruno@clisp.org>
5470
5471         frexp* tests: More tests.
5472         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5473         * tests/test-frexp.c (RANDOM): New macro.
5474         * tests/test-frexpf.c (RANDOM): New macro.
5475         * tests/test-frexpl.c (RANDOM): New macro.
5476         * modules/frexp-tests (Files): Add tests/randomd.c.
5477         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5478         * modules/frexpf-tests (Files): Add tests/randomf.c.
5479         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5480         * modules/frexpl-tests (Files): Add tests/randoml.c.
5481         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5482
5483 2012-03-03  Bruno Haible  <bruno@clisp.org>
5484
5485         Support for pseudo-random numbers in tests.
5486         * tests/randomf.c: New file.
5487         * tests/randomd.c: New file.
5488         * tests/randoml.c: New file.
5489         * tests/macros.h (randomf, randomd, randoml): New declarations.
5490
5491 2012-03-03  Bruno Haible  <bruno@clisp.org>
5492
5493         frexp* tests: Refactor.
5494         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5495         * tests/test-frexp.c: Include and use it.
5496         * tests/test-frexpf.c: Likewise.
5497         * tests/test-frexpl.c: Likewise.
5498         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5499         * modules/frexpf-tests (Files): Likewise.
5500         * modules/frexpl-tests (Files): Likewise.
5501
5502 2012-03-02  Jim Meyering  <meyering@redhat.com>
5503
5504         maint: don't specify XZ_OPT=-9ev in dist-related rule
5505         Using xz's -9 option is warranted only if you have a very large
5506         tarball (see xz's documentation for the sizes vs. presets), and
5507         requires 64MiB of memory at decompression time.
5508         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5509         Automake's default of just "-e" is fine.  Override on a
5510         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5511
5512 2012-03-01  Eric Blake  <eblake@redhat.com>
5513
5514         maint.mk: allow announcement for non-gnulib project
5515         * maint.mk (announcement): Skip gnulib version if not used.
5516
5517 2012-03-01  Jim Meyering  <meyering@redhat.com>
5518
5519         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5520         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5521         envvar settings cannot interfere.  Otherwise, setting envvars like
5522         prohibit=foo require=bar, etc. would cause spurious test failures.
5523
5524 2012-03-01  Eric Blake  <eblake@redhat.com>
5525
5526         maint.mk: add per-line exclusions to prohibitions
5527         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5528         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5529         (sc_const_long_option): Use it.
5530
5531 2012-03-01  Bruno Haible  <bruno@clisp.org>
5532
5533         Tests for module 'expl-ieee'.
5534         * modules/expl-ieee-tests: New file.
5535         * tests/test-expl-ieee.c: New file.
5536
5537         New module 'expl-ieee'.
5538         * modules/expl-ieee: New file.
5539
5540         Tests for module 'exp-ieee'.
5541         * modules/exp-ieee-tests: New file.
5542         * tests/test-exp-ieee.c: New file.
5543
5544         New module 'exp-ieee'.
5545         * modules/exp-ieee: New file.
5546
5547         Tests for module 'expf-ieee'.
5548         * modules/expf-ieee-tests: New file.
5549         * tests/test-expf-ieee.c: New file.
5550         * tests/test-exp-ieee.h: New file.
5551
5552         New module 'expf-ieee'.
5553         * modules/expf-ieee: New file.
5554
5555 2012-02-29  Bruno Haible  <bruno@clisp.org>
5556
5557         cbrtl-ieee: Work around test failure on IRIX 6.5.
5558         * m4/cbrtl-ieee.m4: New file.
5559         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5560         test whether cbrtl works with a minus zero argument. Replace it if not.
5561         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5563         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5564         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5565         (Depends-on): Update conditions.
5566         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5567         m4/signbit.m4.
5568         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5569         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5570         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5571
5572         Tests for module 'cbrtl-ieee'.
5573         * modules/cbrtl-ieee-tests: New file.
5574         * tests/test-cbrtl-ieee.c: New file.
5575
5576         New module 'cbrtl-ieee'.
5577         * modules/cbrtl-ieee: New file.
5578
5579         Tests for module 'cbrt-ieee'.
5580         * modules/cbrt-ieee-tests: New file.
5581         * tests/test-cbrt-ieee.c: New file.
5582
5583         New module 'cbrt-ieee'.
5584         * modules/cbrt-ieee: New file.
5585
5586         Tests for module 'cbrtf-ieee'.
5587         * modules/cbrtf-ieee-tests: New file.
5588         * tests/test-cbrtf-ieee.c: New file.
5589         * tests/test-cbrt-ieee.h: New file.
5590
5591         New module 'cbrtf-ieee'.
5592         * modules/cbrtf-ieee: New file.
5593
5594 2012-02-29  Bruno Haible  <bruno@clisp.org>
5595
5596         cbrtf: Work around bug in IRIX 6.5 system function.
5597         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5598         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5599         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5600         work.
5601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5602         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5603         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5604         (Depends-on): Update conditions.
5605         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5606
5607 2012-02-29  Bruno Haible  <bruno@clisp.org>
5608
5609         Tests for module 'cbrtl'.
5610         * modules/cbrtl-tests: New file.
5611         * tests/test-cbrtl.c: New file.
5612
5613         New module 'cbrtl'.
5614         * lib/math.in.h (cbrtl): New declaration.
5615         * lib/cbrtl.c: New file.
5616         * m4/cbrtl.m4: New file.
5617         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5619         HAVE_DECL_CBRTL.
5620         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5621         HAVE_DECL_CBRTL.
5622         * modules/cbrtl: New file.
5623         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5624         * doc/posix-functions/cbrtl.texi: Mention the new module.
5625
5626 2012-02-29  Bruno Haible  <bruno@clisp.org>
5627
5628         Tests for module 'cbrtf'.
5629         * modules/cbrtf-tests: New file.
5630         * tests/test-cbrtf.c: New file.
5631
5632         New module 'cbrtf'.
5633         * lib/math.in.h (cbrtf): New declaration.
5634         * lib/cbrtf.c: New file.
5635         * m4/cbrtf.m4: New file.
5636         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5638         HAVE_DECL_CBRTF.
5639         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5640         HAVE_DECL_CBRTF.
5641         * modules/cbrtf: New file.
5642         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5643         * doc/posix-functions/cbrtf.texi: Mention the new module.
5644
5645 2012-02-29  Bruno Haible  <bruno@clisp.org>
5646
5647         cbrt: Provide replacement on MSVC and Minix.
5648         * lib/math.in.h (cbrt): New declaration.
5649         * lib/cbrt.c: New file.
5650         * m4/cbrt.m4: New file.
5651         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5653         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5654         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5655         (Depends-on): Add dependencies.
5656         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5657         * tests/test-math-c++.cc: Check the declaration of cbrt.
5658         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5659         replacement.
5660
5661 2012-02-29  Bruno Haible  <bruno@clisp.org>
5662
5663         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5664         * m4/hypotl-ieee.m4: New file.
5665         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5666         test whether hypotl works with mixed NaN and Infinity arguments.
5667         Replace it if not.
5668         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5670         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5671         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5672         (Depends-on): Update conditions.
5673         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5674         (Depends-on): Add hypot-ieee.
5675         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5676         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5677
5678         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5679         * m4/hypotf-ieee.m4: New file.
5680         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5681         test whether hypotf works with mixed NaN and Infinity arguments.
5682         Replace it if not.
5683         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5684         (Depends-on): Add hypot-ieee.
5685         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5686         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5687
5688         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5689         * lib/math.in.h (hypot): New declaration.
5690         * lib/hypot.c: New file.
5691         * m4/hypot-ieee.m4: New file.
5692         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5693         whether hypot works with mixed NaN and Infinity arguments. Replace it
5694         if not.
5695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5696         REPLACE_HYPOT.
5697         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5698         * modules/hypot (Files): Add lib/hypot.c.
5699         (Depends-on): Add dependencies.
5700         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5701         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5702         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5703         * tests/test-math-c++.cc: Check the declaration of hypot.
5704         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5705
5706         Tests for module 'hypotl-ieee'.
5707         * modules/hypotl-ieee-tests: New file.
5708         * tests/test-hypotl-ieee.c: New file.
5709
5710         New module 'hypotl-ieee'.
5711         * modules/hypotl-ieee: New file.
5712
5713         Tests for module 'hypot-ieee'.
5714         * modules/hypot-ieee-tests: New file.
5715         * tests/test-hypot-ieee.c: New file.
5716
5717         New module 'hypot-ieee'.
5718         * modules/hypot-ieee: New file.
5719
5720         Tests for module 'hypotf-ieee'.
5721         * modules/hypotf-ieee-tests: New file.
5722         * tests/test-hypotf-ieee.c: New file.
5723         * tests/test-hypot-ieee.h: New file.
5724
5725         New module 'hypotf-ieee'.
5726         * modules/hypotf-ieee: New file.
5727
5728 2012-02-29  Bruno Haible  <bruno@clisp.org>
5729
5730         Remove unused variables.
5731         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5732         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5733         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5734         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5735
5736 2012-02-29  Eric Blake  <eblake@redhat.com>
5737
5738         termios: fix pid_t always, not just for tcgetsid
5739         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5740         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5741         just when building tcgetsid.
5742
5743 2012-02-29  Bruno Haible  <bruno@clisp.org>
5744
5745         Tests for module 'hypotl'.
5746         * modules/hypotl-tests: New file.
5747         * tests/test-hypotl.c: New file.
5748
5749         New module 'hypotl'.
5750         * lib/math.in.h (hypotl): New declaration.
5751         * lib/hypotl.c: New file.
5752         * m4/hypotl.m4: New file.
5753         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5755         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5756         * modules/hypotl: New file.
5757         * tests/test-math-c++.cc: Check the hypotl declaration.
5758         * doc/posix-functions/hypotl.texi: Mention the new module.
5759
5760 2012-02-29  Eric Blake  <eblake@redhat.com>
5761
5762         tcgetsid: fix cygwin header bug
5763         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5764
5765         docs: update cygwin progress
5766         * doc/posix-functions/llround.texi (llround): Added in cygwin
5767         1.7.8.
5768         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5769         * doc/glibc-functions/program_invocation_name.texi
5770         (program_invocation_name): Likewise.
5771         * doc/glibc-functions/program_invocation_short_name.texi
5772         (program_invocation_short_name): Likewise.
5773         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5774         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5775         Likewise.
5776         * doc/posix-functions/pthread_spin_destroy.texi
5777         (pthread_spin_destroy): Added in cygwin 1.7.10.
5778         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5779         Likewise.
5780         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5781         Likewise.
5782         * doc/posix-functions/pthread_spin_trylock.texi
5783         (pthread_spin_trylock): Likewise.
5784         * doc/posix-functions/pthread_spin_unlock.texi
5785         (pthread_spin_unlock): Likewise.
5786         * doc/posix-functions/pthread_setschedprio.texi
5787         (pthread_setschedprio): Likewise.
5788         * doc/posix-functions/pthread_attr_getstack.texi
5789         (pthread_attr_getstack): Likewise.
5790         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5791         (pthread_attr_getstackaddr): Likewise.
5792         * doc/glibc-functions/pthread_getattr_np.texi
5793         (pthread_getattr_np): Likewise.
5794         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5795         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5796         * doc/posix-functions/clock_settime.texi (clock_settime):
5797         Likewise.
5798         * doc/posix-functions/pthread_attr_getguardsize.texi
5799         (pthread_attr_getguardsize): Likewise.
5800         * doc/posix-functions/pthread_attr_setguardsize.texi
5801         (pthread_attr_setguardsize): Likewise.
5802         * doc/posix-functions/pthread_attr_setstack.texi
5803         (pthread_attr_setstack): Likewise.
5804         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5805         (pthread_attr_setstackaddr): Likewise.
5806         * doc/posix-functions/clock_getcpuclockid.texi
5807         (clock_getcpuclockid): Likewise.
5808         * doc/posix-functions/pthread_getcpuclockid.texi
5809         (pthread_getcpuclockid): Likewise.
5810         * doc/glibc-functions/error.texi (error): Likewise.
5811         * doc/glibc-functions/error_at_line.texi (error_at_line):
5812         Likewise.
5813         * doc/glibc-functions/error_message_count.texi
5814         (error_message_count): Likewise.
5815         * doc/glibc-functions/error_one_per_line.texi
5816         (error_one_per_line): Likewise.
5817         * doc/glibc-functions/error_print_progname.texi
5818         (error_print_progname): Likewise.
5819         * doc/posix-functions/pthread_condattr_getclock.texi
5820         (pthread_condattr_getclock): Likewise.
5821         * doc/posix-functions/pthread_condattr_setclock.texi
5822         (pthread_condattr_setclock): Likewise.
5823         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5824         Likewise.
5825         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5826         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5827         * doc/glibc-functions/get_current_dir_name.texi
5828         (get_current_dir_name): Likewise.
5829         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5830         Likewise.
5831         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5832         wrong return type.
5833         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5834         1.7.11.
5835
5836 2012-02-29  Bruno Haible  <bruno@clisp.org>
5837
5838         Tests for module 'hypotf'.
5839         * modules/hypotf-tests: New file.
5840         * tests/test-hypotf.c: New file.
5841
5842         New module 'hypotf'.
5843         * lib/math.in.h (hypotf): New declaration.
5844         * lib/hypotf.c: New file.
5845         * m4/hypotf.m4: New file.
5846         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5848         REPLACE_HYPOTF.
5849         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5850         REPLACE_HYPOTF.
5851         * modules/hypotf: New file.
5852         * tests/test-math-c++.cc: Check the hypotf declaration.
5853         * doc/posix-functions/hypotf.texi: Mention the new module.
5854
5855         hypot: Prepare for hypotf module.
5856         * m4/hypot.m4: New file.
5857         * modules/hypot (Files): Add m4/hypot.m4.
5858         (configure.ac): Invoke gl_FUNC_HYPOT.
5859
5860 2012-02-29  Bruno Haible  <bruno@clisp.org>
5861
5862         hypot tests: More tests.
5863         * tests/test-hypot.c: Include <float.h>.
5864         (main): Add tests about overflow and underflow.
5865
5866 2012-02-29  Bruno Haible  <bruno@clisp.org>
5867
5868         math code: Add comments.
5869         * lib/acosl.c: Add comment about related glibc source files.
5870         * lib/asinl.c: Likewise.
5871         * lib/atanl.c: Likewise.
5872         * lib/expl.c: Likewise.
5873         * lib/logl.c: Likewise.
5874         * lib/sincosl.c: Likewise.
5875         * lib/sinl.c: Likewise.
5876         * lib/tanl.c: Likewise.
5877         * lib/trigl.c: Likewise.
5878         * lib/cosl.c: Likewise. Fix comments.
5879
5880 2012-02-28  Bruno Haible  <bruno@clisp.org>
5881
5882         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5883         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5884         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5885         HUGE_VALL are defined.
5886         (numeric_equald): Renamed from numeric_equal.
5887         (numeric_equalf, numeric_equall): New functions.
5888         (main): Check also HUGE_VALF, HUGE_VALL.
5889         * modules/math-tests (Files): Add tests/macros.h.
5890         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5891         HUGE_VALL.
5892
5893 2012-02-28  Bruno Haible  <bruno@clisp.org>
5894
5895         doc: Move ISO C11 feature notes into POSIX chapters.
5896         * doc/posix-functions/aligned_alloc.texi: Renamed from
5897         doc/glibc-functions/aligned_alloc.texi.
5898         * doc/posix-functions/quick_exit.texi: Renamed from
5899         doc/glibc-functions/quick_exit.texi.
5900         * doc/posix-headers/uchar.texi: Renamed from
5901         doc/glibc-headers/uchar.texi.
5902         * doc/posix-functions/c16rtomb.texi: Renamed from
5903         doc/glibc-functions/c16rtomb.texi.
5904         * doc/posix-functions/c32rtomb.texi: Renamed from
5905         doc/glibc-functions/c32rtomb.texi.
5906         * doc/posix-functions/mbrtoc16.texi: Renamed from
5907         doc/glibc-functions/mbrtoc16.texi.
5908         * doc/posix-functions/mbrtoc32.texi: Renamed from
5909         doc/glibc-functions/mbrtoc32.texi.
5910         * doc/gnulib.texi: Update.
5911         (Glibc uchar.h): Remove section.
5912         Suggested by Eric Blake.
5913
5914 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5915
5916         stdnoreturn: port to MSVC better
5917         MSVC standard headers use __declspec(noreturn), so #define noreturn
5918         to empty on that platform.  Reported by Bruno Haible in
5919         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5920         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5921         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5922
5923 2012-02-28  Bruno Haible  <bruno@clisp.org>
5924
5925         doc: Mention new glibc headers and functions.
5926         * doc/glibc-headers/uchar.texi: New file.
5927         * doc/glibc-functions/aligned_alloc.texi: New file.
5928         * doc/glibc-functions/c16rtomb.texi: New file.
5929         * doc/glibc-functions/c32rtomb.texi: New file.
5930         * doc/glibc-functions/clock_adjtime.texi: New file.
5931         * doc/glibc-functions/fanotify_init.texi: New file.
5932         * doc/glibc-functions/fanotify_mark.texi: New file.
5933         * doc/glibc-functions/inet6_opt_append.texi: New file.
5934         * doc/glibc-functions/inet6_opt_find.texi: New file.
5935         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5936         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5937         * doc/glibc-functions/inet6_opt_init.texi: New file.
5938         * doc/glibc-functions/inet6_opt_next.texi: New file.
5939         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5940         * doc/glibc-functions/inet6_rth_add.texi: New file.
5941         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5942         * doc/glibc-functions/inet6_rth_init.texi: New file.
5943         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5944         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5945         * doc/glibc-functions/inet6_rth_space.texi: New file.
5946         * doc/glibc-functions/login.texi: New file.
5947         * doc/glibc-functions/mbrtoc16.texi: New file.
5948         * doc/glibc-functions/mbrtoc32.texi: New file.
5949         * doc/glibc-functions/name_to_handle_at.texi: New file.
5950         * doc/glibc-functions/ntp_gettimex.texi: New file.
5951         * doc/glibc-functions/open_by_handle_at.texi: New file.
5952         * doc/glibc-functions/prlimit.texi: New file.
5953         * doc/glibc-functions/process_vm_readv.texi: New file.
5954         * doc/glibc-functions/process_vm_writev.texi: New file.
5955         * doc/glibc-functions/recvmmsg.texi: New file.
5956         * doc/glibc-functions/scandirat.texi: New file.
5957         * doc/glibc-functions/sendmmsg.texi: New file.
5958         * doc/glibc-functions/setns.texi: New file.
5959         * doc/glibc-functions/timespec_get.texi: New file.
5960         * doc/gnulib.texi: Include them.
5961         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5962         sections.
5963         Reported by Eric Blake.
5964
5965 2012-02-28  Bruno Haible  <bruno@clisp.org>
5966
5967         Avoid compilation errors with MSVC option -fp:strict.
5968         * lib/floor.c: Use MSVC specific pragma fenv_access.
5969         * lib/ceil.c: Likewise.
5970         * lib/trunc.c: Likewise.
5971         * lib/round.c: Likewise.
5972         * lib/rint.c: Likewise.
5973         * lib/fma.c: Likewise.
5974         * lib/integer_length.c: Likewise.
5975         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5976         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5977         * tests/test-floor2.c: Likewise.
5978         * tests/test-floorf2.c: Likewise.
5979         * tests/test-ceil2.c: Likewise.
5980         * tests/test-ceilf2.c: Likewise.
5981         * tests/test-trunc2.c: Likewise.
5982         * tests/test-truncf2.c: Likewise.
5983         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5984
5985 2012-02-27  Bruno Haible  <bruno@clisp.org>
5986
5987         Tests for module 'sqrtl-ieee'.
5988         * modules/sqrtl-ieee-tests: New file.
5989         * tests/test-sqrtl-ieee.c: New file.
5990
5991         New module 'sqrtl-ieee'.
5992         * modules/sqrtl-ieee: New file.
5993
5994         Tests for module 'sqrt-ieee'.
5995         * modules/sqrt-ieee-tests: New file.
5996         * tests/test-sqrt-ieee.c: New file.
5997
5998         New module 'sqrt-ieee'.
5999         * modules/sqrt-ieee: New file.
6000
6001         Tests for module 'sqrtf-ieee'.
6002         * modules/sqrtf-ieee-tests: New file.
6003         * tests/test-sqrtf-ieee.c: New file.
6004         * tests/test-sqrt-ieee.h: New file.
6005
6006         New module 'sqrtf-ieee'.
6007         * modules/sqrtf-ieee: New file.
6008
6009 2012-02-27  Bruno Haible  <bruno@clisp.org>
6010
6011         remainderl-ieee: Work around test failure on OSF/1.
6012         * m4/remainderl-ieee.m4: New file.
6013         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6014         present, test whether remainderl works with a zero second argument.
6015         Replace it if not.
6016         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6018         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6019         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6020         (Depends-on): Update conditions.
6021         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6022         (Depends-on): Add remainder-ieee.
6023         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6024         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6025         module.
6026
6027         remainderf-ieee: Work around test failure on OSF/1.
6028         * m4/remainderf-ieee.m4: New file.
6029         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6030         present, test whether remainderf works with a zero second argument.
6031         Replace it if not.
6032         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6034         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6035         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6036         (Depends-on): Update conditions.
6037         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6038         (Depends-on): Add remainder-ieee.
6039         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6040         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6041         module.
6042
6043         remainder-ieee: Work around test failure on OSF/1.
6044         * m4/remainder-ieee.m4: New file.
6045         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6046         present, test whether remainder works with a zero second argument.
6047         Replace it if not.
6048         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6050         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6051         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6052         (Depends-on): Update dependencies.
6053         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6054         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6055         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6056
6057         Tests for module 'remainderl-ieee'.
6058         * modules/remainderl-ieee-tests: New file.
6059         * tests/test-remainderl-ieee.c: New file.
6060
6061         New module 'remainderl-ieee'.
6062         * modules/remainderl-ieee: New file.
6063
6064         Tests for module 'remainder-ieee'.
6065         * modules/remainder-ieee-tests: New file.
6066         * tests/test-remainder-ieee.c: New file.
6067
6068         New module 'remainder-ieee'.
6069         * modules/remainder-ieee: New file.
6070
6071         Tests for module 'remainderf-ieee'.
6072         * modules/remainderf-ieee-tests: New file.
6073         * tests/test-remainderf-ieee.c: New file.
6074         * tests/test-remainder-ieee.h: New file.
6075
6076         New module 'remainderf-ieee'.
6077         * modules/remainderf-ieee: New file.
6078
6079 2012-02-27  Bruno Haible  <bruno@clisp.org>
6080
6081         modff, modfl: Fix configure syntax error.
6082         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6083         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6084
6085 2012-02-27  Bruno Haible  <bruno@clisp.org>
6086
6087         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6088         * m4/fmodl-ieee.m4: New file.
6089         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6090         whether fmodl works with zero arguments. Replace it if not.
6091         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6092         (Depends-on): Add fmod-ieee.
6093         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6094         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6095
6096         fmodf-ieee: Work around test failure on OSF/1.
6097         * m4/fmodf-ieee.m4: New file.
6098         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6099         whether fmodf works with zero arguments. Replace it if not.
6100         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6102         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6103         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6104         (Depends-on): Update dependencies.
6105         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6106         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6107         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6108
6109         fmodf-ieee: Work around test failure on MSVC 9.
6110         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6111         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6112
6113         fmod-ieee: Work around test failures on OSF/1, mingw.
6114         * m4/fmod-ieee.m4: New file.
6115         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6116         whether fmod works with zero arguments. Replace it if not.
6117         * lib/math.in.h (fmod): New declaration.
6118         * lib/fmod.c: New file.
6119         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6121         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6122         * modules/fmod (Files): Add lib/fmod.c.
6123         (Depends-on): Add math, isinf, trunc, fma.
6124         (configure.ac): Arrange to compile lib/fmod.c if needed.
6125         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6126         m4/signbit.m4.
6127         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6128         * tests/test-math-c++.cc: Check the declaration of fmod.
6129         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6130
6131         fmodl-ieee: Fix test failures.
6132         * lib/fmodl.c (fmodl): Treat Inf specially.
6133         * modules/fmodl (Depends-on): Add isinf.
6134
6135         Tests for module 'fmodl-ieee'.
6136         * modules/fmodl-ieee-tests: New file.
6137         * tests/test-fmodl-ieee.c: New file.
6138
6139         New module 'fmodl-ieee'.
6140         * modules/fmodl-ieee: New file.
6141
6142         Tests for module 'fmod-ieee'.
6143         * modules/fmod-ieee-tests: New file.
6144         * tests/test-fmod-ieee.c: New file.
6145
6146         New module 'fmod-ieee'.
6147         * modules/fmod-ieee: New file.
6148
6149         Tests for module 'fmodf-ieee'.
6150         * modules/fmodf-ieee-tests: New file.
6151         * tests/test-fmodf-ieee.c: New file.
6152         * tests/test-fmod-ieee.h: New file.
6153
6154         New module 'fmodf-ieee'.
6155         * modules/fmodf-ieee: New file.
6156
6157 2012-02-27  Bruno Haible  <bruno@clisp.org>
6158
6159         Tests for module 'rintl-ieee'.
6160         * modules/rintl-ieee-tests: New file.
6161         * tests/test-rintl-ieee.c: New file.
6162
6163         New module 'rintl-ieee'.
6164         * modules/rintl-ieee: New file.
6165
6166         Tests for module 'rint-ieee'.
6167         * modules/rint-ieee-tests: New file.
6168         * tests/test-rint-ieee.c: New file.
6169
6170         New module 'rint-ieee'.
6171         * modules/rint-ieee: New file.
6172
6173         Tests for module 'rintf-ieee'.
6174         * modules/rintf-ieee-tests: New file.
6175         * tests/test-rintf-ieee.c: New file.
6176         * tests/test-rint-ieee.h: New file.
6177
6178         New module 'rintf-ieee'.
6179         * modules/rintf-ieee: New file.
6180
6181 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6182
6183         regex: re_search etc. should return -2 when memory exhausted
6184         This bug was uncovered when testing 'grep'.  Without the fix,
6185         re_search and friends return -1 when memory is exhausted, but -1
6186         means no match, and this causes grep to falsely report no-match
6187         instead of memory-exhaustion.  See
6188         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6189         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6190         trouble; this can occur if re_search_internal ran out of memory.
6191
6192 2012-02-26  Bruno Haible  <bruno@clisp.org>
6193
6194         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6195         * m4/modfl-ieee.m4: New file.
6196         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6197         whether modfl works with Inf. Replace it if not.
6198         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6200         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6201         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6202         (Depends-on): Update dependencies.
6203         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6204         m4/signbit.m4.
6205         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6206         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6207
6208         modfl-ieee: Fix dependencies.
6209         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6210
6211         modfl-ieee: Fix test failures.
6212         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6213         * modules/modfl (Depends-on): Add isfinite, isinf.
6214
6215         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6216         * m4/modff-ieee.m4: New file.
6217         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6218         whether modff works with NaN and Inf. Replace it if not.
6219         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6221         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6222         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6223         (Depends-on): Update dependencies.
6224         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6225         m4/signbit.m4.
6226         (Depends-on): Add modf-ieee.
6227         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6228         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6229
6230         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6231         * m4/modf-ieee.m4: New file.
6232         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6233         whether modf works with NaN and Inf. Replace it if not.
6234         * lib/math.in.h (modf): New declaration.
6235         * lib/modf.c: New file.
6236         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6238         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6239         * modules/modf (Files): Add lib/modf.c.
6240         (Depends-on): Add math, isfinite, trunc, isinf.
6241         (configure.ac): Addrange to compile lib/modf.c if needed.
6242         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6243         m4/signbit.m4.
6244         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6245         * tests/test-math-c++.cc: Check the declaration of modf.
6246         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6247
6248         Tests for module 'modfl-ieee'.
6249         * modules/modfl-ieee-tests: New file.
6250         * tests/test-modfl-ieee.c: New file.
6251
6252         New module 'modfl-ieee'.
6253         * modules/modfl-ieee: New file.
6254
6255         Tests for module 'modf-ieee'.
6256         * modules/modf-ieee-tests: New file.
6257         * tests/test-modf-ieee.c: New file.
6258
6259         New module 'modf-ieee'.
6260         * modules/modf-ieee: New file.
6261
6262         Tests for module 'modff-ieee'.
6263         * modules/modff-ieee-tests: New file.
6264         * tests/test-modff-ieee.c: New file.
6265         * tests/test-modf-ieee.h: New file.
6266
6267         New module 'modff-ieee'.
6268         * modules/modff-ieee: New file.
6269
6270 2012-02-26  Bruno Haible  <bruno@clisp.org>
6271
6272         Tests for module 'fabsl-ieee'.
6273         * modules/fabsl-ieee-tests: New file.
6274         * tests/test-fabsl-ieee.c: New file.
6275
6276         New module 'fabsl-ieee'.
6277         * modules/fabsl-ieee: New file.
6278
6279         Tests for module 'fabs-ieee'.
6280         * modules/fabs-ieee-tests: New file.
6281         * tests/test-fabs-ieee.c: New file.
6282
6283         New module 'fabs-ieee'.
6284         * modules/fabs-ieee: New file.
6285
6286         Tests for module 'fabsf-ieee'.
6287         * modules/fabsf-ieee-tests: New file.
6288         * tests/test-fabsf-ieee.c: New file.
6289         * tests/test-fabs-ieee.h: New file.
6290
6291         New module 'fabsf-ieee'.
6292         * modules/fabsf-ieee: New file.
6293
6294 2012-02-26  Bruno Haible  <bruno@clisp.org>
6295
6296         Tests for module 'fmal-ieee'.
6297         * modules/fmal-ieee-tests: New file.
6298         * tests/test-fmal-ieee.c: New file.
6299
6300         New module 'fmal-ieee'.
6301         * modules/fmal-ieee: New file.
6302
6303         Tests for module 'fma-ieee'.
6304         * modules/fma-ieee-tests: New file.
6305         * tests/test-fma-ieee.c: New file.
6306
6307         New module 'fma-ieee'.
6308         * modules/fma-ieee: New file.
6309
6310         Tests for module 'fmaf-ieee'.
6311         * modules/fmaf-ieee-tests: New file.
6312         * tests/test-fmaf-ieee.c: New file.
6313         * tests/test-fma-ieee.h: New file.
6314
6315         New module 'fmaf-ieee'.
6316         * modules/fmaf-ieee: New file.
6317
6318 2012-02-26  Bruno Haible  <bruno@clisp.org>
6319
6320         Tests for module 'ldexpl-ieee'.
6321         * modules/ldexpl-ieee-tests: New file.
6322         * tests/test-ldexpl-ieee.c: New file.
6323
6324         New module 'ldexpl-ieee'.
6325         * modules/ldexpl-ieee: New file.
6326
6327         Tests for module 'ldexp-ieee'.
6328         * modules/ldexp-ieee-tests: New file.
6329         * tests/test-ldexp-ieee.c: New file.
6330
6331         New module 'ldexp-ieee'.
6332         * modules/ldexp-ieee: New file.
6333
6334         Tests for module 'ldexpf-ieee'.
6335         * modules/ldexpf-ieee-tests: New file.
6336         * tests/test-ldexpf-ieee.c: New file.
6337         * tests/test-ldexp-ieee.h: New file.
6338
6339         New module 'ldexpf-ieee'.
6340         * modules/ldexpf-ieee: New file.
6341
6342 2012-02-26  Bruno Haible  <bruno@clisp.org>
6343
6344         Refactor frexp*-ieee tests.
6345         * tests/test-frexp-ieee.h: New file.
6346         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6347         (main): Just call test_function.
6348         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6349         (main): Just call test_function.
6350         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6351         (main): Just call test_function.
6352         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6353         * modules/frexp-ieee-tests (Files): Likewise.
6354         * modules/frexpl-ieee-tests (Files): Likewise.
6355
6356         Tests for module 'frexpl-ieee'.
6357         * modules/frexpl-ieee-tests: New file.
6358         * tests/test-frexpl-ieee.c: New file.
6359
6360         New module 'frexpl-ieee'.
6361         * modules/frexpl-ieee: New file.
6362
6363         Tests for module 'frexp-ieee'.
6364         * modules/frexp-ieee-tests: New file.
6365         * tests/test-frexp-ieee.c: New file.
6366
6367         New module 'frexp-ieee'.
6368         * modules/frexp-ieee: New file.
6369
6370         Tests for module 'frexpf-ieee'.
6371         * modules/frexpf-ieee-tests: New file.
6372         * tests/test-frexpf-ieee.c: New file.
6373
6374         New module 'frexpf-ieee'.
6375         * modules/frexpf-ieee: New file.
6376
6377 2012-02-26  Bruno Haible  <bruno@clisp.org>
6378
6379         roundl-ieee tests: More tests.
6380         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6381         (main): Add tests for [MX] shaded specification in POSIX.
6382         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6383         (Depends-on): Add isnanl-nolibm.
6384
6385         round-ieee tests: More tests.
6386         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6387         (main): Add tests for [MX] shaded specification in POSIX.
6388         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6389         (Depends-on): Add isnand-nolibm.
6390
6391         roundf-ieee tests: More tests.
6392         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6393         (main): Add tests for [MX] shaded specification in POSIX.
6394         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6395         (Depends-on): Add isnanf-nolibm.
6396
6397         truncl-ieee tests: More tests.
6398         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6399         (main): Add tests for [MX] shaded specification in POSIX.
6400         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6401         (Depends-on): Add isnanl-nolibm.
6402
6403         trunc-ieee tests: More tests.
6404         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6405         (main): Add tests for [MX] shaded specification in POSIX.
6406         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6407         (Depends-on): Add isnand-nolibm.
6408
6409         truncf-ieee tests: More tests.
6410         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6411         (main): Add tests for [MX] shaded specification in POSIX.
6412         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6413         (Depends-on): Add isnanf-nolibm.
6414
6415         ceill-ieee tests: More tests.
6416         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6417         (main): Add tests for [MX] shaded specification in POSIX.
6418         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6419         (Depends-on): Add isnanl-nolibm.
6420
6421         ceil-ieee tests: More tests.
6422         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6423         (main): Add tests for [MX] shaded specification in POSIX.
6424         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6425         (Depends-on): Add isnand-nolibm.
6426
6427         ceilf-ieee tests: More tests.
6428         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6429         (main): Add tests for [MX] shaded specification in POSIX.
6430         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6431         (Depends-on): Add isnanf-nolibm.
6432
6433         floorl-ieee tests: More tests.
6434         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6435         (main): Add tests for [MX] shaded specification in POSIX.
6436         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6437         (Depends-on): Add isnanl-nolibm.
6438
6439         floor-ieee tests: More tests.
6440         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6441         (main): Add tests for [MX] shaded specification in POSIX.
6442         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6443         (Depends-on): Add isnand-nolibm.
6444
6445         floorf-ieee tests: More tests.
6446         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6447         (main): Add tests for [MX] shaded specification in POSIX.
6448         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6449         (Depends-on): Add isnanf-nolibm.
6450
6451 2012-02-26  Bruno Haible  <bruno@clisp.org>
6452
6453         fpieee: More comments.
6454         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6455
6456 2012-02-25  Bruno Haible  <bruno@clisp.org>
6457
6458         Tests for module 'log10l'.
6459         * modules/log10l-tests: New file.
6460         * tests/test-log10l.c: New file.
6461         * tests/test-math-c++.cc: Check the declaration of log10l.
6462
6463         New module 'log10l'.
6464         * lib/math.in.h (log10l): New declaration.
6465         * lib/log10l.c: New file.
6466         * m4/log10l.m4: New file.
6467         * modules/log10l: New file.
6468         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6470         HAVE_DECL_LOG10L.
6471         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6472         HAVE_DECL_LOG10L.
6473         * doc/posix-functions/log10l.texi: Mention the new module.
6474
6475 2012-02-25  Bruno Haible  <bruno@clisp.org>
6476
6477         fmodl, remainder*: Avoid wrong results due to rounding errors.
6478         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6479         expected bounds.
6480         * lib/remainderf.c (remainderf): Likewise.
6481         * lib/remainder.c (remainder): Likewise.
6482         * lib/remainderl.c (remainderl): Likewise.
6483
6484 2012-02-25  Bruno Haible  <bruno@clisp.org>
6485
6486         Tests for module 'remainderl'.
6487         * modules/remainderl-tests: New file.
6488         * tests/test-remainderl.c: New file.
6489         * tests/test-math-c++.cc: Check the declaration of remainderl.
6490
6491         New module 'remainderl'.
6492         * lib/math.in.h (remainderl): New declaration.
6493         * lib/remainderl.c: New file.
6494         * m4/remainderl.m4: New file.
6495         * modules/remainderl: New file.
6496         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6498         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6499         HAVE_REMAINDERL.
6500         * doc/posix-functions/remainderl.texi: Mention the new module.
6501
6502 2012-02-25  Bruno Haible  <bruno@clisp.org>
6503
6504         Tests for module 'remainderf'.
6505         * modules/remainderf-tests: New file.
6506         * tests/test-remainderf.c: New file.
6507         * tests/test-math-c++.cc: Check the declaration of remainderf.
6508
6509         New module 'remainderf'.
6510         * lib/math.in.h (remainderf): New declaration.
6511         * lib/remainderf.c: New file.
6512         * m4/remainderf.m4: New file.
6513         * modules/remainderf: New file.
6514         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6516         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6517         HAVE_REMAINDERF.
6518         * doc/posix-functions/remainderf.texi: Mention the new module.
6519
6520 2012-02-25  Bruno Haible  <bruno@clisp.org>
6521
6522         remainder: Support for MSVC.
6523         * lib/math.in.h (remainder): New declaration.
6524         * lib/remainder.c: New file.
6525         * m4/remainder.m4: New file.
6526         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6527         (Depends-on): Add math, round, fma.
6528         (configure.ac): Use results of gl_FUNC_REMAINDER.
6529         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6531         HAVE_DECL_REMAINDER.
6532         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6533         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6534         * tests/test-math-c++.cc: Check the declaration of remainder.
6535         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6536         problems are fixed.
6537
6538 2012-02-25  Bruno Haible  <bruno@clisp.org>
6539
6540         Tests for module 'fmodl'.
6541         * modules/fmodl-tests: New file.
6542         * tests/test-fmodl.c: New file.
6543         * tests/test-math-c++.cc: Check the declaration of fmodl.
6544
6545         New module 'fmodl'.
6546         * lib/math.in.h (fmodl): New declaration.
6547         * lib/fmodl.c: New file.
6548         * m4/fmodl.m4: New file.
6549         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6551         REPLACE_FMODL.
6552         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6553         REPLACE_FMODL.
6554         * modules/fmodl: New file.
6555         * doc/posix-functions/fmodl.texi: Mention the new module.
6556
6557 2012-02-25  Bruno Haible  <bruno@clisp.org>
6558
6559         Tests for module 'modfl'.
6560         * modules/modfl-tests: New file.
6561         * tests/test-modfl.c: New file.
6562         * tests/test-math-c++.cc: Check the declaration of modfl.
6563
6564         New module 'modfl'.
6565         * lib/math.in.h (modfl): New declaration.
6566         * lib/modfl.c: New file.
6567         * m4/modfl.m4: New file.
6568         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6570         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6571         * modules/modfl: New file.
6572         * doc/posix-functions/modfl.texi: Mention the new module.
6573
6574 2012-02-25  Bruno Haible  <bruno@clisp.org>
6575
6576         Tests for module 'fabsl'.
6577         * modules/fabsl-tests: New file.
6578         * tests/test-fabsl.c: New file.
6579         * tests/test-math-c++.cc: Check the declaration of fabsl.
6580
6581         New module 'fabsl'.
6582         * lib/math.in.h (fabsl): New declaration.
6583         * lib/fabsl.c: New file.
6584         * m4/fabsl.m4: New file.
6585         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6587         REPLACE_FABSL.
6588         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6589         REPLACE_FABSL.
6590         * modules/fabsl: New file.
6591         * doc/posix-functions/fabsl.texi: Mention the new module.
6592
6593 2012-02-25  Bruno Haible  <bruno@clisp.org>
6594
6595         fabs tests: More tests.
6596         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6597         (zero): New variable.
6598         (main): Add tests for signed zero.
6599         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6600
6601         fabsf tests: More tests.
6602         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6603         (zero): New variable.
6604         (main): Add tests for signed zero.
6605         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6606
6607 2012-02-24  Bruno Haible  <bruno@clisp.org>
6608
6609         atanl: Provide function definition on MSVC.
6610         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6611         function pointer.
6612         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6613
6614 2012-02-24  Bruno Haible  <bruno@clisp.org>
6615
6616         acosl: Provide function definition on MSVC.
6617         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6618         function pointer.
6619         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6620
6621 2012-02-24  Bruno Haible  <bruno@clisp.org>
6622
6623         asinl: Provide function definition on MSVC.
6624         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6625         function pointer.
6626         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6627
6628 2012-02-24  Bruno Haible  <bruno@clisp.org>
6629
6630         tanl: Provide function definition on MSVC.
6631         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6632         function pointer.
6633         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6634
6635 2012-02-24  Bruno Haible  <bruno@clisp.org>
6636
6637         cosl: Provide function definition on MSVC.
6638         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6639         function pointer.
6640         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6641
6642 2012-02-24  Bruno Haible  <bruno@clisp.org>
6643
6644         sinl: Provide function definition on MSVC.
6645         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6646         function pointer.
6647         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6648
6649 2012-02-24  Bruno Haible  <bruno@clisp.org>
6650
6651         logl: Provide function definition on MSVC.
6652         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6653         function pointer.
6654         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6655
6656 2012-02-24  Bruno Haible  <bruno@clisp.org>
6657
6658         expl: Provide function definition on MSVC.
6659         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6660         function pointer.
6661         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6662
6663 2012-02-24  Bruno Haible  <bruno@clisp.org>
6664
6665         sqrtl: Provide function definition on MSVC.
6666         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6667         a function pointer.
6668         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6669
6670 2012-02-24  Bruno Haible  <bruno@clisp.org>
6671
6672         ceill: Provide function definition on MSVC.
6673         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6674         used as a function pointer.
6675         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6676
6677 2012-02-24  Bruno Haible  <bruno@clisp.org>
6678
6679         floorl: Provide function definition on MSVC.
6680         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6681         used as a function pointer.
6682         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6683
6684 2012-02-24  Bruno Haible  <bruno@clisp.org>
6685
6686         ceilf: Provide function definition on MSVC.
6687         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6688         used as a function pointer.
6689         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6690
6691 2012-02-24  Bruno Haible  <bruno@clisp.org>
6692
6693         floorf: Provide function definition on MSVC.
6694         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6695         used as a function pointer.
6696         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6697
6698 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6699
6700         stdnoreturn: new module
6701         This implements a replacement for C11's <stdnoreturn.h>.
6702         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6703         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6704         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6705         * tests/test-stdnoreturn.c: New files.
6706
6707 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6708
6709         regex: fix false multibyte matches in some regular expressions
6710         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6711         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6712         * lib/regex_internal.c (re_string_skip_chars):
6713         Fix miscomputation of remain_len that may cause incomplete
6714         multi-byte character and false match.
6715
6716 2012-02-24  Jim Meyering  <meyering@redhat.com>
6717
6718         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6719         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6720         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6721         Remove now-unnecessary str''cmp obfuscation.
6722         Suggested by Akim Demaille.
6723
6724 2012-02-24  Bruno Haible  <bruno@clisp.org>
6725
6726         streq: Rename macro.
6727         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6728         * NEWS: Mention the change.
6729         * lib/mbrtowc.c (mbrtowc): Update.
6730         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6731         * lib/wcwidth.c (wcwidth): Update.
6732         Suggested by Akim Demaille and Jim Meyering.
6733
6734 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6735
6736         regex: fix typo in definition of MIN
6737         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6738         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6739
6740 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6741             Bruno Haible  <bruno@clisp.org>
6742
6743         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6744         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6745         entries into a stack-allocated buffer directly.
6746         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6747
6748 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6749             Bruno Haible  <bruno@clisp.org>
6750
6751         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6752
6753          - There were several instances of this pattern:
6754
6755              for (;;) {
6756                n = acl (f, GETACLCNT, 0, NULL);
6757                [ allocate an array A of size N ]
6758                if (acl (f, GETACL, n, a) == n)
6759                  break;
6760              }
6761
6762            This loop might never terminate if some other process is constantly
6763            manipulating the file's ACL.  The loop should be rewritten to
6764            terminate.
6765
6766          - The acl (... GETACLNT ...) call is merely an optimization; its value
6767            is merely a hint as to how big to make the array.  A better
6768            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6769            and just guess a reasonably-big size, growing the size and trying
6770            again if it's not large enough.  This guarantees termination, and
6771            saves a system call.
6772
6773         * lib/acl-internal.h: Include <limits.h>.
6774         (MIN, SIZE_MAX): New macros.
6775         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6776         a stack-allocated buffer, and use malloc if it does not fit. Don't
6777         use GETACLCNT.
6778         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6779
6780 2012-02-19  Bruno Haible  <bruno@clisp.org>
6781
6782         acl: Fix endless loop on Solaris with vxfs.
6783         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6784         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6785         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6786         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6787         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6788         Reported by Bill Jones in
6789         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6790
6791 2012-02-19  Bruno Haible  <bruno@clisp.org>
6792
6793         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6794         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6795         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6796         that this function returns 0 in some more cases.
6797
6798 2012-02-19  Bruno Haible  <bruno@clisp.org>
6799
6800         acl: Update doc references.
6801         * doc/acl-resources.txt: Update links to Solaris documentation.
6802
6803 2012-02-19  Bruno Haible  <bruno@clisp.org>
6804
6805         Fix test failure in many locales on Solaris 11.
6806         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6807         'tr' arguments.
6808         * tests/test-pipe-filter-ii1.c (main): Likewise.
6809         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6810         expressions in the C locale.
6811         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6812         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6813
6814 2012-02-19  Bruno Haible  <bruno@clisp.org>
6815
6816         gnulib-tool: Improve usage message.
6817         * gnulib-tool (func_usage): Move doc of --help and --version to the
6818         section "Operation modes".
6819
6820 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6821
6822         README-release: make it easier to execute commands
6823         * top/README-release: break commands out on to separate lines.
6824
6825 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6826
6827         GNUmakefile: simplify detection of unconfigured trees
6828         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6829         whether the tree make is being run from is already configured or
6830         not.  Related simplifications.
6831
6832 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6833
6834         * gnulib-tool (func_usage): Document --help and --version.
6835
6836 2012-02-11  Jim Meyering  <meyering@redhat.com>
6837
6838         bootstrap: don't exit 0 upon gnulib-tool failure
6839         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6840         its exit status, not 0.
6841
6842 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6843
6844         README-release: various improvements
6845         * top/README-release: Give a command to push changes for the
6846         release.  Add "distcheck" to list of other pre-release checks.
6847         Fix instance of "make stable" which should be "make TYPE".
6848
6849 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6850
6851         maint: replace FSF snail-mail addresses with URLs
6852         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6853         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6854         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6855         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6856         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6857         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6858         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6859         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6860         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6861         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6862         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6863         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6864         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6865         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6866         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6867         * lib/glthread/thread.c, lib/glthread/thread.h:
6868         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6869         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6870         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6871         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6872         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6873         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6874         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6875         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6876         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6877         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6878         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6879         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6880         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6881         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6882         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6883         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6884         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6885         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6886         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6887         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6888         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6889         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6890         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6891         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6892         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6893         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6894         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6895         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6896         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6897         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6898         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6899         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6900         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6901         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6902         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6903         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6904         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6905         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6906         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6907         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6908         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6909         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6910         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6911         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6912         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6913         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6914         * tests/test-poll.c, tests/test-quotearg-simple.c:
6915         * tests/test-quotearg.c, tests/test-quotearg.h:
6916         * tests/test-round-ieee.c, tests/test-round1.c:
6917         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6918         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6919         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6920         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6921         * tests/test-strerror.c, tests/test-strerror_r.c:
6922         * tests/test-strsignal.c, tests/test-strverscmp.c:
6923         * tests/test-xmemdup0.c:
6924         Replace FSF snail mail addresses with URLs, as per GNU coding
6925         standards.  See glibc bug
6926         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6927
6928 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6929
6930         README-release: capitalize a word and split a line
6931         * top/README-release: Fix punctuation and spacing.
6932
6933 2012-02-08  Akim Demaille  <demaille@gostai.com>
6934
6935         fatal-signal: use C prototypes (with explicit void).
6936         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6937         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6938
6939 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6940
6941         regex: spelling fix
6942         * lib/regexec.c: spelling fix
6943
6944         regex: rely on stdint.h for SIZE_MAX
6945         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6946
6947 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6948
6949         regex: merge glibc changes
6950
6951         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6952         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6953         (init_word_char): Work even if bitset words are not exactly 32 or
6954         64 bits wide.  Don't assume there are no padding bits.
6955         * lib/regex.c [_LIBC]: Do not include <config.h>.
6956         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6957         and -Wtype-limits.
6958         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6959         needless disagreement with glibc.  All uses changed.  Define it to
6960         1 only if _GNU_SOURCE, to match glibc.
6961         (_REG_RM_NAME): Remove; no longer needed, since the names in
6962         question are now all protected by __USE_GNU.
6963         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6964         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6965         * lib/regex_internal.h (MIN): New macro.
6966
6967         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6968         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6969
6970         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6971         * lib/regex_internal.c (re_string_fetch_byte_case):
6972         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6973         is miscompiled, and it turns out it is because of an incorrect
6974         attribute on re_string_fetch_byte_case.  Unlike
6975         re_string_peek_byte_case, this one is really not pure, it modifies
6976         memory (increments pstr->cur_idx), and with the pure attribute GCC
6977         assumed it doesn't and it cached the presumed value of
6978         regexp->cur_idx in a variable across the
6979          for (;; ++i)
6980            {
6981              if (i >= BRACKET_NAME_BUF_SIZE)
6982                return REG_EBRACK;
6983              if (token->type == OP_OPEN_CHAR_CLASS)
6984                ch = re_string_fetch_byte_case (regexp);
6985              else
6986                ch = re_string_fetch_byte (regexp);
6987              if (re_string_eoi(regexp))
6988                return REG_EBRACK;
6989              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6990                break;
6991              elem->opr.name[i] = ch;
6992            }
6993
6994         2011-11-29 Andreas Schwab <schwab@redhat.com>
6995         * lib/regcomp.c (build_equiv_class):
6996         Fix access after end of search string in regex matcher.
6997
6998         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6999         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7000
7001         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7002         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7003
7004         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7005         * lib/regcomp.c (parse_branch, parse_sub_exp):
7006         More regex memory leak fixes and tests.
7007         (parse_sub_exp, parse_bracket_exp):
7008         Fix memory leak for some invalid regular expressions.
7009
7010         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7011         * lib/regex_internal.c, lib/regexec.c:
7012         Fix unnecessary overallocation due to incomplete character.  When
7013         incomplete characters are found at the end of a string the code
7014         ran amok and allocated lots of memory.  Stricter limits are now in
7015         place.
7016
7017         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7018         * lib/regex.h: Update documentation.
7019
7020         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7021         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7022
7023         2010-05-05 Andreas Schwab <schwab@redhat.com>
7024         * lib/regexec.c (find_collation_sequence_value):
7025         Fix lookup of collation sequence value during regexp matching.
7026
7027         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7028         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7029
7030         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7031         * lib/regex.h: Cleanup namespace.
7032
7033         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7034         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7035
7036         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7037         * lib/regex_internal.h: Prevent some declarations and definitions
7038         to be seen when used in tests.
7039
7040         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7041         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7042         __libc_lock_* macros if not _LIBC.
7043         (struct re_dfa_t): Add lock.
7044
7045 2012-02-07  Eric Blake  <eblake@redhat.com>
7046
7047         maint.mk: also prohibit lower-case @var@
7048         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7049         lower case, like @top_srcdir@.
7050
7051 2012-02-04  Eric Blake  <eblake@redhat.com>
7052
7053         canonicalize: avoid uninitialized memory use
7054         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7055         random '/' left in dest.
7056         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7057
7058 2012-02-04  Bruno Haible  <bruno@clisp.org>
7059
7060         isatty: Fix test failure of ptsname_r on native Windows.
7061         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7062         and don't set errno.
7063         (isatty): Test first whether fd is valid. Set errno when returning 0.
7064
7065 2012-02-04  Bruno Haible  <bruno@clisp.org>
7066
7067         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7068         * tests/test-spawn-pipe-main.c: Include progname.h.
7069         (main): Invoke set_program_name.
7070         * modules/spawn-pipe-tests (Depends-on): Add progname.
7071
7072         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7073         * tests/test-nonblocking-socket-main.c: Include progname.h.
7074         (main): Invoke set_program_name.
7075         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7076
7077         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7078         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7079         (main): Invoke set_program_name.
7080         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7081
7082 2012-02-04  Eric Blake  <eblake@redhat.com>
7083
7084         canonicalize-lgpl: fix // handling
7085         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7086
7087         canonicalize: fix // handling
7088         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7089         /// to //, since only // is special.
7090
7091 2012-02-04  Bruno Haible  <bruno@clisp.org>
7092
7093         ioctl: Fix test failure on native Windows.
7094         * lib/ioctl.c: Include msvc-nothrow.h.
7095         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7096
7097 2012-02-04  Bruno Haible  <bruno@clisp.org>
7098
7099         fsync: Avoid test failure on native Windows.
7100         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7101         read-only.
7102
7103 2012-02-04  Bruno Haible  <bruno@clisp.org>
7104
7105         sys_select: Avoid syntax error on OpenBSD 5.0.
7106         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7107         currently being included, just include the system's <sys/select.h>.
7108
7109 2012-02-04  Bruno Haible  <bruno@clisp.org>
7110
7111         sys_select: Avoid syntax error on OpenBSD 5.0.
7112         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7113         <sys/select.h>, not before.
7114         Reported by Jiri B <jirib@devio.us>.
7115
7116 2012-02-04  Bruno Haible  <bruno@clisp.org>
7117
7118         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7119         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7120         global variables.
7121         * tests/test-get-rusage-data.c (main): Likewise.
7122         Reported by Jim Meyering.
7123
7124 2012-02-04  Bruno Haible  <bruno@clisp.org>
7125
7126         stdioext: Fix last commit.
7127         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7128
7129 2012-02-03  Bruno Haible  <bruno@clisp.org>
7130
7131         stdioext: Add tentative support for Plan9.
7132         * lib/stdio-impl.h: Include <errno.h>.
7133         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7134         * lib/freadable.c (freadable): Likewise.
7135         * lib/fwritable.c (fwritable): Likewise.
7136         * lib/fbufmode.c (fbufmode): Likewise.
7137         * lib/freading.c (freading): Likewise.
7138         * lib/fwriting.c (fwriting): Likewise.
7139         * lib/freadptr.c (freadptr): Likewise.
7140         * lib/freadseek.c (freadptrinc): Likewise.
7141         * lib/freadahead.c (freadahead): Likewise.
7142         * lib/fpurge.c (fpurge): Likewise.
7143         * lib/fseeko.c (rpl_fseeko): Likewise.
7144         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7145         Reported by Jens Staal <staal1978@gmail.com>.
7146
7147 2012-02-02  Jim Meyering  <meyering@redhat.com>
7148
7149         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7150         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7151         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7152         not even to try to add the attribute.  Instead, add a pragma to suppress
7153         the suggestion/warning.
7154
7155 2012-01-31  Karl Berry  <karl@gnu.org>
7156
7157         setstate doc: typo.
7158         * doc/posix-functions/setstate.texi (setstate): { not (.
7159
7160 2012-01-31  Bruno Haible  <bruno@clisp.org>
7161
7162         popen: Make more robust on Windows.
7163         * lib/popen.c: On native Windows, use the _popen based code even if
7164         HAVE_POPEN is set.
7165         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7166         environment variable on native Windows.
7167
7168 2012-01-30  Bruno Haible  <bruno@clisp.org>
7169
7170         pclose: Fix typo.
7171         * lib/stdio.in.h (pclose): Fix typo in warning message.
7172
7173 2012-01-30  Bruno Haible  <bruno@clisp.org>
7174
7175         doc about getlogin_r, setstate.
7176         * doc/posix-functions/getlogin_r.texi: List the incompatible
7177         declaration problem under "not fixed by gnulib".
7178         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7179         problem on Solaris 11 and other platforms.
7180
7181 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7182             Bruno Haible  <bruno@clisp.org>
7183
7184         poll tests: Make test more robust.
7185         * tests/test-poll.c: Include macros.h.
7186         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7187         return value of various I/O operations.
7188         * modules/poll-tests (Files): Add tests/macros.h.
7189
7190 2012-01-30  Bruno Haible  <bruno@clisp.org>
7191
7192         sys_stat: Fix support for mingw64 and MSVC.
7193         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7194         header files already do it.
7195         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7196         stat itself.
7197         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7198
7199 2012-01-30  Bruno Haible  <bruno@clisp.org>
7200
7201         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7203         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7204
7205 2012-01-29  Bruno Haible  <bruno@clisp.org>
7206
7207         quotearg: Fix test failure on MacOS X 10.5.
7208         * tests/test-quotearg-simple.c: Include localcharset.h.
7209         (main): If the locale encoding is not ASCII, bypass the tests of
7210         locale_quoting_style and clocale_quoting_style.
7211         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7212
7213 2012-01-29  Jim Meyering  <meyering@redhat.com>
7214
7215         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7216         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7217         detect uses of canonicalize_file_name.
7218
7219 2012-01-28  Bruno Haible  <bruno@clisp.org>
7220
7221         test-framework-sh: Fix test failure with AIX 7.1 diff.
7222         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7223         in column 1, like 'diff -c' does.
7224         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7225         whether 'diff -u' is used. Instead, test whether the output contains
7226         some '@' character.
7227
7228 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7229
7230         strtoimax: eliminate need for stdint.h, inttypes.h checks
7231         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7232         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7233         the prerequisites for a recently-introduced strtoimax test.
7234         I guess this might cause strtoimax to be replaced when not
7235         strictly necessary on older hosts, but this shouldn't introduce
7236         any bugs and it should make Emacs 'configure' faster on typical
7237         modern hosts.  Problem discovered when importing the latest gnulib
7238         to an Emacs test version.
7239         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7240
7241 2012-01-28  Bruno Haible  <bruno@clisp.org>
7242
7243         sys_time: Override 'struct timeval' on some native Windows platforms.
7244         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7245         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7246         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7247         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7248         needs to be overridden.
7249         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7250         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7251         * tests/test-sys_select.c: Check that the tv_sec member has the same
7252         size as a 'time_t'.
7253         * tests/test-sys_time.c: Likewise.
7254         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7255         is set, set also REPLACE_GETTIMEOFDAY.
7256         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7257         convert the resulting 'struct timeval' before returning.
7258         * lib/select.c: Include <sys/time.h>.
7259         (select, timeval): Undefine at the right place.
7260         * modules/select (Depends-on): Add sys_time.
7261         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7262         some Windows platforms.
7263         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7264
7265 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7266
7267         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7268         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7269         an integer.
7270         * lib/fcntl.c (dupfd): Likewise.
7271         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7272
7273 2012-01-28  Bruno Haible  <bruno@clisp.org>
7274
7275         fcntl: Avoid compilation error on native Windows.
7276         * modules/fcntl (Depends-on): Add 'close'.
7277
7278 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7279
7280         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7281         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7282         pointer to an integer.
7283         * lib/poll.c (IsConsoleHandle): Likewise.
7284         * lib/isatty.c (IsConsoleHandle): Likewise.
7285
7286 2012-01-28  Jim Meyering  <meyering@redhat.com>
7287
7288         doc: clarify README-release
7289         * top/README-release: Clarify: you should make a point to have
7290         the latest stable versions of build tools in your PATH, and the
7291         reference to buildreq is solely for its list of tool names, not
7292         for its minimal-functional version numbers.
7293         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7294
7295         maint.mk: use more readable (yet functionally equivalent) quoting
7296         It is common to quote a single quote in a single quoted string like
7297         this:  '...'\''...'.  Unless you know the idiom, that looks like
7298         gibberish, so prefer to double-quote the string when possible.
7299         Then you can use a more readable, lone single quote: "...'..."
7300         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7301         "don't" is more readable than the equivalent 'don'\''t'.
7302         (sc_cast_of_x_alloc_return_value): Likewise.
7303         (sc_cast_of_alloca_return_value): Likewise.
7304         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7305         rather than '\'':'\''.
7306
7307 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7308
7309         stdalign: relax _Alignof and tighten _Alignas test
7310         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7311         as it was too strict: alignof must divide offsetof, but it need
7312         not equal offsetof.  Inspired by Joseph S. Myers's comment
7313         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7314         Conversely, tighten the _Alignas test a bit, as the resulting
7315         alignment must be exactly 8.
7316
7317 2012-01-27  Bruno Haible  <bruno@clisp.org>
7318
7319         stdalign: Document the last change.
7320         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7321
7322 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7323
7324         stdalign: check that alignof and offsetof are consistent
7325         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7326         Problem reported for gnulib by Richard W.M. Jones in
7327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7328
7329 2012-01-27  Jim Meyering  <meyering@redhat.com>
7330
7331         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7332         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7333         convert a sequence with gaps to the minimal containing range.
7334         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7335         * tests/test-update-copyright.sh: Test for this.
7336         The FSF confirmed it is ok to do this, assuming there is at
7337         least one significant change per year in the affected range:
7338         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7339
7340 2012-01-26  Bruno Haible  <bruno@clisp.org>
7341
7342         pipe2: refine doc about thread-safety
7343         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7344         multithread-safety problem.
7345         * doc/glibc-functions/accept4.texi: Likewise.
7346
7347 2012-01-26  Bruno Haible  <bruno@clisp.org>
7348
7349         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7350         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7351         In the test program, include <fcntl.h>, for O_RDONLY.
7352
7353 2012-01-26  Eric Blake  <eblake@redhat.com>
7354
7355         pipe2: document lack of thread-safety in replacement
7356         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7357         issue in replacement.
7358         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7359         Based on a report by Eric Wong.
7360
7361 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7362             Bruno Haible  <bruno@clisp.org>
7363
7364         malloca: Avoid warnings on x86_64 mingw64.
7365         * lib/malloca.c: Include <stdint.h>.
7366         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7367         * modules/malloca (Depends-on): Add stdint.
7368         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7369
7370 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7371
7372         obstack: remove __STDC__ conditionals
7373         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7374         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7375         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7376         m4/include_next.m4 as the only gnulib-maintained places that still
7377         refer to __STDC__.
7378
7379 2012-01-24  Bruno Haible  <bruno@clisp.org>
7380
7381         havelib: Modern quoting.
7382         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7383         the recent change to the GNU coding standards.
7384
7385 2012-01-24  Bruno Haible  <bruno@clisp.org>
7386
7387         stdint: Improve support for Android.
7388         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7389         Reported by Simon Josefsson <simon@josefsson.org>.
7390
7391 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7392
7393         doc: omit trailing empty lines from INSTALL etc.
7394         * doc/Makefile (INSTALL): Omit trailing empty lines.
7395         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7396         omit trailing empty lines.  This simplifies the build procedure.
7397
7398 2012-01-23  Jim Meyering  <meyering@redhat.com>
7399
7400         tests: avoid spurious warnings about gl_sockets_startup
7401         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7402         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7403         reporting a "statement with no effect".
7404         * tests/test-accept.c (main): Mark as "(void)".
7405         * tests/test-accept4.c (main): Likewise.
7406         * tests/test-bind.c (main): Likewise.
7407         * tests/test-connect.c (main): Likewise.
7408         * tests/test-getpeername.c (main): Likewise.
7409         * tests/test-getsockname.c (main): Likewise.
7410         * tests/test-getsockopt.c (main): Likewise.
7411         * tests/test-listen.c (main): Likewise.
7412         * tests/test-recv.c (main): Likewise.
7413         * tests/test-recvfrom.c (main): Likewise.
7414         * tests/test-send.c (main): Likewise.
7415         * tests/test-sendto.c (main): Likewise.
7416         * tests/test-setsockopt.c (main): Likewise.
7417         * tests/test-shutdown.c (main): Likewise.
7418
7419 2012-01-21  Bruno Haible  <bruno@clisp.org>
7420
7421         locale-fr.m4: Fix for Android.
7422         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7423         failure of the test program on Bionic libc.
7424
7425 2012-01-21  Jim Meyering  <meyering@redhat.com>
7426
7427         bootstrap: fail when bootstrap_post_import_hook fails
7428         Otherwise, it's far too easy to miss diagnostics emitted
7429         between gnulib-tool's output and that of running configure.
7430         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7431
7432 2012-01-17  Jim Meyering  <meyering@redhat.com>
7433
7434         maint: enable sc_trailing_blank
7435         * build-aux/pmccabe.css: Remove trailing blanks.
7436         * doc/acl-cygwin.txt: Likewise.
7437         * doc/gnu-oids.texi: Likewise
7438         * cfg.mk: Enable sc_trailing_blank.
7439         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7440
7441 2012-01-17  Jim Meyering  <meyering@redhat.com>
7442
7443         maint: enable sc_prohibit_openat_without_use
7444         * cfg.mk: Enable sc_prohibit_openat_without_use.
7445         Exempt lib/selinux-at.c.
7446
7447 2012-01-17  Jim Meyering  <meyering@redhat.com>
7448
7449         maint: enable sc_prohibit_cloexec_without_use
7450         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7451         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7452
7453 2012-01-17  Jim Meyering  <meyering@redhat.com>
7454
7455         maint: enable sc_prohibit_intprops_without_use
7456         * cfg.mk: Enable sc_prohibit_intprops_without_use
7457         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7458
7459 2012-01-17  Jim Meyering  <meyering@redhat.com>
7460
7461         maint: enable sc_prohibit_hash_pjw_without_use
7462         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7463         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7464         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7465         following " (".
7466
7467 2012-01-17  Jim Meyering  <meyering@redhat.com>
7468
7469         maint: enable double-word-prohibiting rule
7470         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7471         Exempt three files.
7472
7473 2012-01-17  Jim Meyering  <meyering@redhat.com>
7474
7475         maint: remove empty lines at EOF, but excluding modules/*
7476         Apply syntax rules at home as well as abroad.  Most changes
7477         were induced by running this:
7478           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7479             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7480             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7481         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7482         Exempt modules/* and two binary files.
7483         Also exempt doc/INSTALL*, per request from Bruno Haible.
7484         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7485         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7486         * doc/Copyright/request-assign.future: Likewise.
7487         * doc/Copyright/request-disclaim.changes: Likewise.
7488         * doc/INSTALL: Likewise.
7489         * doc/INSTALL.ISO: Likewise.
7490         * doc/INSTALL.UTF-8: Likewise.
7491         * doc/acl-cygwin.txt: Likewise.
7492         * doc/acl-resources.txt: Likewise.
7493         * doc/fdl-1.2.texi: Likewise.
7494         * doc/fdl-1.3.texi: Likewise.
7495         * doc/fdl.texi: Likewise.
7496         * lib/argp-pin.c: Likewise.
7497         * lib/round.c: Likewise.
7498         * lib/unicase/u16-totitle.c: Likewise.
7499         * lib/unictype/block_test.c: Likewise.
7500         * lib/uninorm/canonical-decomposition.c: Likewise.
7501         * m4/README: Likewise.
7502         * m4/relocatable-lib.m4: Likewise.
7503         * tests/test-isnand-nolibm.c: Likewise.
7504         * tests/test-isnand.c: Likewise.
7505         * tests/uninorm/NormalizationTest.txt: Likewise.
7506
7507 2012-01-17  Jim Meyering  <meyering@redhat.com>
7508
7509         maint: add framework to run syntax-check rules against gnulib sources
7510         * cfg.mk: New file, to disable all currently-failing tests.
7511         We'll enable them one by one, as they are made to pass.
7512         * Makefile (sc_maint): New rule.
7513
7514 2012-01-21  Bruno Haible  <bruno@clisp.org>
7515
7516         stdint: Add support for Android.
7517         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7518         include the system's <stdint.h>.
7519         Reported by Simon Josefsson <simon@josefsson.org>.
7520
7521 2012-01-19  Jim Meyering  <meyering@redhat.com>
7522
7523         bootstrap: add bootstrap_post_import_hook
7524         Bison does still need something like the gnulib_mk_hook whose
7525         invocation I had to remove along with slurp in commit 767ccd40.
7526         Technically, we could get along without it, but doing so would
7527         have required living with a warning and a mandatory post-bootstrap
7528         automake rerun.
7529         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7530         (bootstrap_post_import_hook): New function.
7531         Invoke it after gnulib-tool --import and before autoreconf.
7532
7533 2012-01-18  Jim Meyering  <meyering@redhat.com>
7534
7535         gitlog-to-changelog: don't use "no_"-prefixed variable name
7536         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7537         to enable both --cluster and --no-cluster.  Change variable name,
7538         s/\$no_cluster/$cluster/, and reverse usage to match.
7539
7540         gitlog-to-changelog: use "||", not "or" in expressions
7541         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7542         expressions.
7543
7544 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7545
7546         gitlog-to-changelog: new option --no-cluster
7547         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7548         clustering of adjacent commit messages.
7549
7550 2012-01-17  Jim Meyering  <meyering@redhat.com>
7551
7552         maint: spell file systems with two words, not one
7553         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7554         two words, not one.
7555
7556 2012-01-16  Jim Meyering  <meyering@redhat.com>
7557
7558         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7559         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7560
7561 2012-01-16  Eric Blake  <eblake@redhat.com>
7562
7563         bootstrap: cater to autoconf 2.59
7564         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7565         is not available.
7566
7567         bootstrap: properly check for libtool
7568         * build-aux/bootstrap (libtoolize): Also run libtool when older
7569         usage is detected.
7570
7571 2012-01-15  Bruno Haible  <bruno@clisp.org>
7572
7573         Improve support for MSVC 9.
7574         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7575         clashes on MSVC.
7576         * lib/fcntl.in.h: Likewise.
7577         * lib/stdlib.in.h: Likewise.
7578         * lib/sys_stat.in.h: Likewise.
7579
7580 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7581
7582         gnupload: we hold the master copy of this script now
7583         For motivation and more information, see:
7584         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7585         * build-aux/gnupload: Make it clear in the heading comments that the
7586         master copy of this file is maintained by gnulib.  Since we are at
7587         it, bump its copyright year and ...
7588         ($scriptversion): ... the date in its version.
7589         ($usage): Patches and bug reports should be sent to the gnulib list,
7590         not the automake one.
7591         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7592         anymore.
7593
7594 2012-01-15  Bruno Haible  <bruno@clisp.org>
7595
7596         Fix module 'random'.
7597         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7598         initstate, setstate are declared.
7599
7600 2012-01-14  Bruno Haible  <bruno@clisp.org>
7601
7602         Tests for module 'random'.
7603         * modules/random-tests: New file.
7604         * tests/test-random.c: New file, based on tests/test-random_r.c.
7605
7606         New module 'random'.
7607         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7608         declarations.
7609         * lib/random.c: New file, based on glibc/stdlib/random.c.
7610         * m4/random.m4: New file.
7611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7612         HAVE_RANDOM.
7613         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7614         * modules/random: New file.
7615         * config/srclist.txt: Add an entry for random.c.
7616         * doc/posix-functions/random.texi: Mention the 'random' module.
7617         * doc/posix-functions/initstate.texi: Likewise.
7618         * doc/posix-functions/setstate.texi: Likewise.
7619         * doc/posix-functions/srandom.texi: Likewise.
7620
7621 2012-01-12  Bruno Haible  <bruno@clisp.org>
7622
7623         random_r: Use common idioms.
7624         * lib/random_r.c: Include <stdlib.h> first.
7625
7626         random_r: Override incompatible API on AIX, OSF/1.
7627         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7628         Override the system function if REPLACE_RANDOM_R is 1.
7629         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7630         and OSF/1, set REPLACE_RANDOM_R.
7631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7632         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7633         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7634         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7635         * doc/glibc-functions/random_r.texi: Likewise.
7636         * doc/glibc-functions/setstate_r.texi: Likewise.
7637
7638         random_r: Support for MSVC 9.
7639         * lib/random_r.c: Include stdint.h, not inttypes.h.
7640
7641 2012-01-12  Eric Blake  <eblake@redhat.com>
7642
7643         inet_ntop: guard extra work by IF_LINT
7644         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7645         better code generation when not checking for warnings.
7646         Suggested by Paul Eggert and Jim Meyering.
7647
7648         strptime: fix regression on mingw
7649         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7650         Fix regression.  Reported by Bruno Haible.
7651
7652 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7653             Bruno Haible  <bruno@clisp.org>
7654
7655         copy-file: add error-code-returning variant.
7656         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7657         (qcopy_file_preserving): New declaration.
7658         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7659         copy_file_preserving. Change return type to 'int'. Don't emit an error
7660         message here.
7661         (copy_file_preserving): New function.
7662         * tests/test-copy-file.c: Include <stdlib.h>.
7663         (main): Test qcopy_file_preserving if the environment variable
7664         NO_STDERR_OUTPUT is set.
7665         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7666         with NO_STDERR_OUTPUT
7667         * tests/test-copy-file-2.sh: Likewise.
7668
7669 2012-01-10  Bruno Haible  <bruno@clisp.org>
7670
7671         copy-file: Use 'quote' module consistently.
7672         * lib/copy-file.c (copy_file_preserving): Use quote().
7673
7674         copy-file: Refactor.
7675         * lib/copy-file.c: Include quote.h.
7676         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7677         message here.
7678         * modules/copy-file (Depends-on): Add quote.
7679
7680         acl: Export qcopy_acl.
7681         * lib/acl.h (qcopy_acl): New declaration.
7682         * lib/copy-acl.c (qcopy_acl): Make non-static.
7683
7684         acl: Rename a local variable.
7685         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7686
7687         acl: Align return values of copy_acl and qcopy_acl.
7688         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7689         maybe < -1.
7690
7691 2012-01-11  Eric Blake  <eblake@redhat.com>
7692
7693         strptime: silence gcc warnings
7694         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7695         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7696         Reported by Daniel P. Berrange.
7697
7698         inet_ntop: silence gcc warning
7699         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7700         Reported by Daniel P. Berrange.
7701
7702 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7703
7704         getloadavg test: skip the test on GNU/Linux without /proc mounted
7705         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7706         file.  When /proc is not mounted, it always fails with ENOENT.
7707         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7708         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7709
7710 2012-01-10  Bruno Haible  <bruno@clisp.org>
7711
7712         regex: Avoid link error on MSVC 9.
7713         * modules/regex (Depends-on): Add wctype.
7714
7715 2012-01-10  Bruno Haible  <bruno@clisp.org>
7716
7717         doc: Mention --with-tests option.
7718         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7719         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7720         --with-tests.
7721         Reported by Reuben Thomas.
7722
7723 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7724
7725         users.txt: order package names lexicographically.
7726         * users.txt: Order package names lexicographically.
7727
7728 2012-01-10  Jim Meyering  <meyering@redhat.com>
7729
7730         maint.mk: fix description in comment
7731         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7732
7733         ignore-value: remove deprecated ignore_ptr function
7734         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7735         * NEWS: Note this.
7736
7737 2012-01-09  Jim Meyering  <meyering@redhat.com>
7738
7739         test-init.sh: avoid a subshell
7740         * tests/test-init.sh: Remove protective subshell.
7741         Suggested by Bernhard Voelker.  While a subshell is normally
7742         required to protect against older shells (Solaris, FreeBSD) that
7743         warn about a missing program before performing redirection, the
7744         shell-selection tests performed by init.sh probably exclude any
7745         offending shell.
7746
7747 2012-01-08  Bruno Haible  <bruno@clisp.org>
7748
7749         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7750         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7751         variable.
7752
7753 2012-01-08  Bruno Haible  <bruno@clisp.org>
7754
7755         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7756         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7757         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7758         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7759         macro.
7760         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7761         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7762         * lib/spawn_faction_addopen.c: Add workaround implementation if
7763         HAVE_WORKING_POSIX_SPAWN.
7764         * modules/spawn (Makefile): Substitute
7765         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7766         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7767         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7768         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7769         (Depends-on): Update conditions.
7770         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7771         the Solaris 11 bug.
7772
7773 2012-01-08  Bruno Haible  <bruno@clisp.org>
7774
7775         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7776         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7777         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7778         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7779         macro.
7780         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7781         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7782         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7783         HAVE_WORKING_POSIX_SPAWN.
7784         * modules/spawn (Makefile): Substitute
7785         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7786         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7787         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7788         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7789         (Depends-on): Update conditions.
7790         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7791         the Solaris 11 bug.
7792
7793 2012-01-08  Bruno Haible  <bruno@clisp.org>
7794
7795         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7796         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7797         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7798         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7799         HAVE_WORKING_POSIX_SPAWN.
7800         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7801         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7802         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7803         * lib/spawn_faction_addclose.c: Add workaround implementation if
7804         HAVE_WORKING_POSIX_SPAWN.
7805         * modules/spawn (Makefile): Substitute
7806         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7807         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7808         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7809         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7810         (Depends-on): Update conditions.
7811         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7812         the Solaris 11 bug.
7813
7814 2012-01-08  Bruno Haible  <bruno@clisp.org>
7815
7816         doc: Update for Solaris 11 2011-11.
7817         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7818         * m4/printf.m4: Update comments.
7819
7820 2012-01-08  Bruno Haible  <bruno@clisp.org>
7821
7822         mktime: Avoid compilation error on Solaris 11.
7823         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7824
7825 2012-01-08  Bruno Haible  <bruno@clisp.org>
7826
7827         doc: Small fix.
7828         * doc/posix-headers/nl_types.texi: Correct platforms list.
7829
7830 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7831
7832         Add lgpl-3.0 module.
7833         * MODULES.html.sh (Support for building documentation): Add
7834         lgpl-3.0.
7835         * modules/lgpl-3.0: New file.
7836
7837 2012-01-08  Jim Meyering  <meyering@redhat.com>
7838
7839         select.c: indent with spaces, not TABs
7840         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7841
7842 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7843
7844         quotearg: do not use grave accent for left quote
7845         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7846         locale_quoting_style.
7847         (quotearg_buffer_restyled): Fix example.
7848         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7849
7850 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7851
7852         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7853         Most programs do not have translation catalogs for English and much
7854         less separate catalogs for British and American English.  Drop the
7855         suggestion to translators about these two, and provide it
7856         automatically for Unicode locales.  Like most programs, even those
7857         using American English, we use single quotation marks.  This conflicts
7858         with the American typographic convention, but works better when you
7859         cite the entire error message within double quotes.  It also tries not
7860         to clash with established practice and with what non-gnulib programs
7861         will usually do.
7862         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7863         using an UTF-8 or GB-18030 locale.  The list of other locales with
7864         quotes was provided by Bruno Haible.
7865         (quotearg_buffer_restyled): Adjust instructions to translators.
7866         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7867         text, since this would be wrong when using Unicode.
7868         * modules/quotearg: Depend on c-strcaseeq.
7869
7870 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7871
7872         quotearg: fix Wikipedia link
7873         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7874
7875 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7876
7877         Fix for mingw with MSVC9.
7878         * m4/ld-version-script.m4: Check that compiler rejects version
7879         scripts with syntax errors.  Reported by Bruno Haible
7880         <bruno@clisp.org>.
7881
7882 2012-01-06  Bruno Haible  <bruno@clisp.org>
7883
7884         Talk about "native Windows API", not "Woe32".
7885         * lib/accept4.c: Update comments to mention native Windows.
7886         * lib/execute.c: Likewise.
7887         * lib/fatal-signal.c: Likewise.
7888         * lib/localcharset.c: Likewise.
7889         * lib/nanosleep.c: Likewise.
7890         * lib/nl_langinfo.c: Likewise.
7891         * lib/pclose.c: Likewise.
7892         * lib/pipe-filter-gi.c: Likewise.
7893         * lib/pipe-filter-ii.c: Likewise.
7894         * lib/pipe.c: Likewise.
7895         * lib/pipe2.c: Likewise.
7896         * lib/popen.c: Likewise.
7897         * lib/progreloc.c: Likewise.
7898         * lib/relocatable.c: Likewise.
7899         * lib/sigaction.c: Likewise.
7900         * lib/sigprocmask.c: Likewise.
7901         * lib/spawn-pipe.h: Likewise.
7902         * lib/spawn-pipe.c: Likewise.
7903         * lib/spawni.c: Likewise.
7904         * lib/stat-time.h: Likewise.
7905         * lib/w32spawn.h: Likewise.
7906         * tests/test-isatty.c: Likewise.
7907         * lib/config.charset: More comments.
7908         * doc/gnulib-intro.texi: Mention native Windows.
7909         * doc/posix-functions/_Exit_C99.texi: Likewise.
7910         * doc/posix-headers/fcntl.texi: Likewise.
7911
7912 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7913
7914         argp: Avoid crash if translator uses % characters in a translation.
7915         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7916         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7917
7918 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7919
7920         doc: C11 and C++11 are now official
7921         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7922         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7923         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7924         * modules/stdalign:
7925         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7926
7927 2012-01-06  Bruno Haible  <bruno@clisp.org>
7928
7929         uc-is-grapheme-break tests: Tweak.
7930         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7931         message.
7932
7933 2012-01-06  Bruno Haible  <bruno@clisp.org>
7934
7935         test-init.sh: correct the test for diff -u
7936         * tests/test-init.sh: Also redirect stdout to /dev/null.
7937
7938 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7939
7940         Use ', not `, for quoting output.
7941         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7942         (print_changelog_deltas, get_tool_versions, main program):
7943         * build-aux/git-version-gen:
7944         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7945         * build-aux/move-if-change (help):
7946         * build-aux/useless-if-before-free (usage, main program):
7947         * check-module (parse_module_file, usage)
7948         (find_included_lib_files, check_module):
7949         * lib/argmatch.c (main) [TEST]:
7950         * lib/argp-help.c (_help):
7951         * lib/getopt1.c (main) [TEST]:
7952         * lib/git-merge-changelog.c (usage):
7953         * lib/xstrtol-error.c (xstrtol_error):
7954         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7955         * m4/argz.m4 (gl_FUNC_ARGZ):
7956         * m4/bison.m4 (gl_BISON):
7957         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7958         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7959         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7960         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7961         * m4/gc-random.m4 (gl_GC_RANDOM):
7962         * m4/intl.m4 (gt_CHECK_DECL):
7963         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7964         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7965         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7966         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7967         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7968         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7969         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7970         * tests/test-dirname.c (main):
7971         * tests/test-getpass.c (main):
7972         * tests/test-iconvme.c (main):
7973         * tests/test-parse-datetime.c (LOG):
7974         * tests/test-xstrtoimax.sh:
7975         * tests/test-xstrtol.sh:
7976         * tests/test-xstrtoll.sh:
7977         * tests/test-xstrtoumax.sh:
7978         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7979         * top/GNUmakefile (abort-due-to-no-makefile):
7980         Quote 'like this', not `like this', as per the recent change to
7981         the GNU coding standards.
7982
7983 2012-01-05  Bruno Haible  <bruno@clisp.org>
7984
7985         strtoimax: Don't force a replacement on systems where intmax_t is int.
7986         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7987         'intmax_t' is not larger than 'int'.
7988         Reported by Pádraig Brady <P@draigBrady.com>.
7989
7990 2012-01-05  Bruno Haible  <bruno@clisp.org>
7991
7992         doc: Mention NetBSD bugs.
7993         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7994         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7995
7996 2012-01-05  Bruno Haible  <bruno@clisp.org>
7997
7998         strtoumax tests: Enhance tests.
7999         * tests/test-strtoumax.c (main): Add tests for large values.
8000
8001 2012-01-05  Bruno Haible  <bruno@clisp.org>
8002
8003         strtoimax: Work around AIX 5.1 bug.
8004         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8005         definition.
8006         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8007         Set HAVE_STRTOIMAX.
8008         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8009         REPLACE_STRTOIMAX.
8010         * modules/inttypes-incomplete (Makefile.am): Substitute
8011         REPLACE_STRTOIMAX.
8012         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8013         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8014         (Depends-on): Update conditions.
8015         * tests/test-strtoimax.c (main): Add tests for large values.
8016         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8017
8018 2012-01-05  Bruno Haible  <bruno@clisp.org>
8019
8020         inttypes: Modernize.
8021         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8022         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8023         (Makefile.am): Update inttypes.h rule.
8024
8025 2012-01-05  Jim Meyering  <meyering@redhat.com>
8026
8027         init.sh: don't waste a subshell just to redirect stderr
8028         * tests/init.sh: In testing for diff -u and diff -c, use a
8029         stderr-redirecting exec inside `...` rather than a subshell.
8030
8031         test-init.sh: avoid failure on HP-UX 11.00
8032         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8033         resolves to diff -c or cmp.  Reported by Bruno Haible.
8034
8035 2012-01-05  Bruno Haible  <bruno@clisp.org>
8036
8037         Tests for module 'strtoull'.
8038         * modules/strtoull-tests: New file.
8039         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8040
8041 2012-01-05  Bruno Haible  <bruno@clisp.org>
8042
8043         Tests for module 'strtoll'.
8044         * modules/strtoll-tests: New file.
8045         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8046
8047 2012-01-05  Bruno Haible  <bruno@clisp.org>
8048
8049         Tests for module 'strtoul'.
8050         * modules/strtoul-tests: New file.
8051         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8052
8053 2012-01-05  Bruno Haible  <bruno@clisp.org>
8054
8055         Tests for module 'strtol'.
8056         * modules/strtol-tests: New file.
8057         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8058
8059 2012-01-04  Jim Meyering  <meyering@redhat.com>
8060
8061         test-init.sh: accommodate Solaris 5.10's different diff -u output
8062         * tests/test-init.sh: Also exempt @@ lines from the comparison
8063         of diff output, since Solaris 5.10 and GNU diff formats differ.
8064         Reported by Stefano Lattarini.
8065
8066 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8067
8068         test-posixtm: don't assume signed integer wraparound
8069         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8070         after signed integer overflow.  Inspired by (though it may not
8071         fix) Bruno Haible's bug report in
8072         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8073
8074         Spell out "Windows 9x" and "Windows XP".
8075         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8076         "Windows 9x" and "WinXP" with "Windows XP".
8077
8078 2012-01-04  Jim Meyering  <meyering@redhat.com>
8079
8080         test-vc-list-files-cvs.sh: remove obsolete comment
8081         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8082         double exit.  Now that's all encapsulated via skip_ and Exit.
8083
8084 2012-01-04  Bruno Haible  <bruno@clisp.org>
8085
8086         Talk about "native Windows API", not "Win32".
8087         * lib/classpath.c: Update comments to mention native Windows.
8088         * lib/csharpexec.c: Likewise.
8089         * lib/dup2.c: Likewise.
8090         * lib/error.c: Likewise.
8091         * lib/fcntl.c: Likewise.
8092         * lib/filename.h: Likewise.
8093         * lib/findprog.c: Likewise.
8094         * lib/get-rusage-as.c: Likewise.
8095         * lib/get-rusage-data.c: Likewise.
8096         * lib/getpagesize.c: Likewise.
8097         * lib/javaexec.c: Likewise.
8098         * lib/msvc-inval.c: Likewise.
8099         * lib/msvc-nothrow.c: Likewise.
8100         * lib/nanosleep.c: Likewise.
8101         * lib/nonblocking.c: Likewise.
8102         * lib/printf-parse.c: Likewise.
8103         * lib/setlocale.c: Likewise.
8104         * lib/sigaction.c: Likewise.
8105         * lib/strerror_r.c: Likewise.
8106         * lib/tmpdir.c: Likewise.
8107         * lib/vasnprintf.c: Likewise.
8108         * lib/w32spawn.h: Likewise.
8109         * lib/waitpid.c: Likewise.
8110         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8111         * m4/locale-ar.m4: Likewise.
8112         * m4/locale-fr.m4: Likewise.
8113         * m4/locale-ja.m4: Likewise.
8114         * m4/locale-tr.m4: Likewise.
8115         * m4/locale-zh.m4: Likewise.
8116         * m4/printf.m4: Likewise.
8117         * tests/test-cloexec.c: Likewise.
8118         * tests/test-copy-acl.sh: Likewise.
8119         * tests/test-copy-file.sh: Likewise.
8120         * tests/test-file-has-acl.sh: Likewise.
8121         * tests/test-set-mode-acl.sh: Likewise.
8122         * tests/test-dup-safer.c: Likewise.
8123         * tests/test-dup2.c: Likewise.
8124         * tests/test-dup3.c: Likewise.
8125         * tests/test-fcntl.c: Likewise.
8126         * tests/test-nonblocking-pipe.h: Likewise.
8127         * tests/test-nonblocking-socket.h: Likewise.
8128         * tests/test-pipe.c: Likewise.
8129         * tests/test-pipe2.c: Likewise.
8130         * tests/test-spawn-pipe-child.c: Likewise.
8131         * doc/acl-resources.txt: Likewise.
8132         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8133         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8134         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8135         * lib/localcharset.c: Update comments to mention native Windows.
8136         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8137         * lib/localename.c: Likewise.
8138         * lib/progreloc.c: Likewise.
8139         * lib/relocatable.c: Likewise.
8140         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8141         (windows_compute_revents): Renamed from win32_compute_revents.
8142         (windows_compute_revents_socket): Renamed from
8143         win32_compute_revents_socket.
8144         * lib/select.c: Update comments to mention native Windows.
8145         (windows_poll_handle): Renamed from win32_poll_handle.
8146         * m4/threadlib.m4: Update comments to mention native Windows.
8147         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8148         --enable-threads=windows instead of --enable-threads=win32. Set
8149         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8150         * lib/glthread/lock.h: Update comments to mention native Windows.
8151         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8152         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8153         USE_WIN32_THREADS.
8154         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8155         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8156         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8157         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8158         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8159         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8160         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8161         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8162         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8163         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8164         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8165         * tests/test-tls.c: Likewise.
8166         Rationale:
8167         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8168         on both 32-bit and 64-bit Windows systems.
8169         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8170         line of distinction is between "native Windows" on one side and Unix/
8171         POSIX systems on the other side. More details in
8172         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8173         Suggested by Paul Eggert.
8174
8175 2012-01-03  Bruno Haible  <bruno@clisp.org>
8176
8177         isatty: Support for MSVC 9.
8178         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8179         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8180         (_isatty_nothrow): New function.
8181         (isatty): Use it instead of _isatty.
8182         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8183         * lib/poll.c (IsConsoleHandle): Likewise.
8184         * lib/select.c (IsConsoleHandle): Likewise.
8185         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8186         (gl_PREREQ_ISATTY): New macro.
8187         * modules/isatty (Depends-on): Add msvc-inval.
8188         (configure.ac): Invoke gl_PREREQ_ISATTY.
8189
8190 2012-01-03  Jim Meyering  <meyering@redhat.com>
8191
8192         maint.mk: remove temporary transition aid from over 1.5 years ago
8193         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8194         purpose was to aid in the transition (avoiding silent malfunction)
8195         from that old name to the new _sc_search_regexp.  This shim was
8196         added by commit 219c504b.
8197
8198         init.sh: do not try to accommodate compare arguments starting with "-"
8199         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8200         compare arguments that start with "-".  Besides, we do not worry
8201         about this when invoking diff or cmp; why start now with sed?
8202         Using "--" to separate options from argument would trigger sed
8203         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8204         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8205
8206 2012-01-02  Bruno Haible  <bruno@clisp.org>
8207
8208         Enhance tests for module 'isatty'.
8209         * modules/isatty-tests (Depends-on): Add pipe-posix.
8210         * tests/test-isatty.c: Include <fcntl.h>.
8211         (DEV_NULL): New macro.
8212         (main): Test the resut of isatty() also on regular files, pipes, and
8213         /dev/null.
8214
8215         New module 'isatty'.
8216         * lib/unistd.in.h (isatty): New declaration.
8217         * lib/isatty.c: New file, based on an idea of
8218         Bastien Roucariès <roucaries.bastien@gmail.com>.
8219         * m4/isatty.m4: New file.
8220         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8221         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8222         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8223         REPLACE_ISATTY.
8224         * modules/isatty: New file.
8225         * doc/posix-functions/isatty.texi: Mention the new module.
8226         Suggested by Paolo Bonzini.
8227
8228 2012-01-02  Bruno Haible  <bruno@clisp.org>
8229
8230         canonicalize: Tweak 2011-12-29 commit.
8231         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8232         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8233
8234 2012-01-02  Jim Meyering  <meyering@redhat.com>
8235
8236         gitlog-to-changelog: describe input syntax in --help output
8237         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8238
8239         gitlog-to-changelog: fix typo in --help: show backslash before email @
8240         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8241         in sources, but not in actual output.
8242
8243 2011-12-30  Jim Meyering  <meyering@redhat.com>
8244
8245         gitlog-to-changelog: don't malfunction when name contains %-directive
8246         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8247         in a name string cause trouble.  E.g., with a user name of "%s",
8248         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8249
8250 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8251
8252         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8253         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8254         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8255         the "  (tiny change)" notation that is appended to the standard
8256         ChangeLog "date  name  email" header line.
8257
8258 2012-01-01  Jim Meyering  <meyering@redhat.com>
8259
8260         test-framework-sh: init.sh: fix "make dist" failure
8261         When using gnulib-tool's --with-tests option and any module that
8262         depends on test-framework-sh, "make dist" would fail due to the
8263         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8264         in the gltests directory, and not in the gllib/ directory.
8265         One way to work around that is to move the EXTRA_DIST += init.sh
8266         from the primary module to the -tests one:
8267         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8268         * modules/test-framework-sh (Makefile.am): ...not here.
8269         Reported by Tom G. Christensen in
8270         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8271
8272         version-etc: update copyright year reported by --version
8273         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8274
8275 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8276
8277         canonicalize: only stat() if required
8278         * lib/canonicalize.c (canonicalize_filename_mode):
8279         Avoid calling l?stat() when both CAN_MISSING,
8280         and CAN_NOLINKS are set, as we neither need
8281         to resolve symlinks or test component existence.
8282
8283 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8284
8285         doc: cover st_ino issues once; add OpenVMS etc.
8286         * doc/posix-functions/stat.texi (stat):
8287         * doc/posix-functions/lstat.texi (lstat):
8288         * doc/posix-functions/fstatat.texi (fstatat):
8289         * doc/posix-functions/fstat.texi (fstat):
8290         Move general 'struct stat' stuff to sys_stat.texi,
8291         leaving behind a pointer.
8292         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8293         Merge duplicate info about 'struct stat' problems into here.
8294         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8295         and suggest partial workarounds.
8296
8297         same-inode: port to OpenVMS
8298         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8299         three st_ino values.
8300
8301 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8302
8303         canonicalize: fix references to stat() and lstat()
8304         * lib/canonicalize.c (canonicalize_filename_mode):
8305         Ensure references always resolve to a replacement
8306         function if required (even via a macro).
8307
8308 2011-12-30  Jim Meyering  <meyering@redhat.com>
8309
8310         gitlog-to-changelog: remove a little duplication
8311         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8312         rather than twice.
8313
8314 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8315
8316         canonicalize: add support for not resolving symlinks
8317         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8318         indicate we don't want to follow symlinks.  Also
8319         provide CAN_MODE_MASK to aid setting these existing
8320         mutually exclusive values.
8321         * lib/canonicalize.c (canonicalize_filename_mode):
8322         Extract the flags from can_mode parameter, which
8323         are currently just used to select between stat()
8324         and lstat().  Also ensure that mutually exclusive
8325         values are flagged immediately as invalid.
8326         * tests/test-canonicalize.c: Verify symlinks are
8327         not followed, and that invalid flag combinations
8328         are diagnosed.
8329
8330 2011-12-25  Jim Meyering  <meyering@redhat.com>
8331
8332         gitlog-to-changelog: do not clump multi-paragraph entries
8333         Identical header lines (date,name,email+coauthors) are suppressed,
8334         thus putting all entries with those same characteristics under
8335         a single header.  However, when a log entry consists of two or
8336         more paragraphs, it may not be clear where it starts and ends.
8337         This change makes it so that such an entry is always separated
8338         from others by a header line, even when that header would
8339         otherwise be suppressed.
8340         * build-aux/gitlog-to-changelog: Implement the above.
8341         Inspired by a related request from Stefano Lattarini in
8342         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8343
8344 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8345
8346         announce-gen: fix `cmd' typo in diagnostic
8347         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8348         diagnostic: a missing '$' meant that the command was not output.
8349
8350 2011-12-23  Jim Meyering  <meyering@redhat.com>
8351
8352         test-framework-sh: distribute init.sh
8353         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8354         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8355         fail due to the lack of init.sh.
8356
8357         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8358         * modules/atexit-tests: Rather than listing tests/init.sh,
8359         now that there's a module for it, simply depend on that new module.
8360         * modules/closein-tests: Likewise.
8361         * modules/exclude-tests: Likewise.
8362         * modules/getcwd-tests: Likewise.
8363         * modules/perror-tests: Likewise.
8364         * modules/pread-tests: Likewise.
8365         * modules/pwrite-tests: Likewise.
8366         * modules/vc-list-files-tests: Likewise.
8367         * modules/verify-tests: Likewise.
8368         * modules/xalloc-die-tests: Likewise.
8369         * modules/xstrtoimax-tests: Likewise.
8370         * modules/xstrtol-tests: Likewise.
8371         * modules/xstrtoll-tests: Likewise.
8372         * modules/xstrtoumax-tests: Likewise.
8373         * modules/yesno-tests: Likewise.
8374
8375 2011-12-22  Jim Meyering  <meyering@redhat.com>
8376
8377         test-framework-sh: add minimal tests of init.sh's compare function
8378         * modules/test-framework-sh-tests: New file.
8379         * tests/test-init.sh: New file.
8380
8381         test-framework-sh: new module
8382         * modules/test-framework-sh: New file.
8383         * MODULES.html.sh (Support for maintaining and releasing projects):
8384         List it.
8385
8386         init.sh: do not emit simulated diff output to stderr
8387         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8388
8389 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8390
8391         .gitignore: ignore gnulib.dvi and regex.info
8392         * doc/.gitignore:add gnulib.dvi and regex.info
8393
8394 2011-12-22  Jim Meyering  <meyering@redhat.com>
8395
8396         init.sh: correct previous change
8397         * tests/init.sh (compare): My previous change was wrong.
8398         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8399
8400         init.sh: avoid unwarranted test failure when using "set -e"
8401         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8402         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8403         a use like "compare exp out" would get evoke an unconditional failure.
8404
8405 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8406
8407         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8408         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8409         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8410         autoreconf that did not.
8411         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8412         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8413
8414 2011-12-17  Jim Meyering  <meyering@redhat.com>
8415
8416         bootstrap: remove some now-unneeded code
8417         This script arose back when gnulib-tool was young.
8418         Since then, it has seen improvements that render much of this
8419         script unnecessary.  In particular, it can now make symlinks
8420         to the files it uses.  Also, I no longer see as much value in
8421         marking files as read-only via comments.
8422         If you relied on the symlink-creation feature of the preceding
8423         version of this script, you can get most of that functionality
8424         by adding the --symlink option to the definition of
8425         gnulib_tool_option_extras in your bootstrap.conf file.
8426         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8427         Run autopoint and libtoolize *before* gnulib-tool.
8428         After it, run an abbreviated autoreconf, rather than a loop around
8429         all tools.
8430         (slirp, bt_mark_as_generated): Remove functions.
8431
8432 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8433
8434         ftoastr: fix typo
8435         * lib/ftoastr.h: Fix misspelling in comment.
8436
8437 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8438
8439         * top/README-release: fix punctuation.
8440
8441 2011-12-17  Jim Meyering  <meyering@redhat.com>
8442
8443         bootstrap: correct the recent buildreq change
8444         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8445         had no effect.
8446         * build-aux/bootstrap (buildreq): Bracket each search term with
8447         "*...*", so that the shell "case" statement works as intended.
8448         Add comments.
8449
8450 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8451
8452         build: let bootstrap resort to wget when downloading .po files
8453         * build-aux/bootstrap (download_po_files): Fallback to wget when
8454         downloading the .po files via rsync fails.  This is necessary to
8455         bootstrap from behind a strict firewall.
8456
8457 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8458
8459         stdint: don't assume C++11 when compiling with g++
8460         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8462         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8463         work also in C++ before C++11, as that improperly inhibits
8464         generating a substitute stdint.h for that case.
8465
8466 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8467
8468         alloca: protect comment from gnulib-tool
8469         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8470         that gnulib-tool doesn't think it's a license, and munge it to
8471         say "GCC version 3".
8472
8473 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8474
8475         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8476         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8477         $(abs_top_builddir) instead of $(top_builddir).
8478
8479 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8480
8481         strftime-tests: also test nanoseconds
8482         * tests/test-strftime.c (T): Add a test of %N.
8483
8484 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8485
8486         inttypes, stdint: add C++11 support
8487         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8488         when including inttypes.h and stdint.h.  Support this change to
8489         the standard.
8490         * doc/posix-headers/inttypes.texi (inttypes.h):
8491         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8492         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8493         Define if not defined already, for the benefit of pre-C++11 hosts.
8494         Define the standard format macros (e.g., PRId8) always.
8495         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8496         Likewise, if __cpluspus.  Define the standard constant and limit
8497         macros (e.g., INT8_C, INT8_MAX) always.
8498         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8499         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8500         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8501         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8502         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8503         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8504         Likewise.
8505
8506 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8507
8508         nonblocking tests: Fix test failure on Linux/PPC.
8509         Suggested by Prerna Saxena in
8510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8511         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8512         Set to 1100000.
8513
8514 2011-12-12  Jim Meyering  <meyering@redhat.com>
8515
8516         argmatch: don't hard-code `' when listing valid option arguments
8517         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8518         use the quote function to add quotes.  Use fputs rather than
8519         fprintf for the format string with no format directive.
8520
8521 2011-12-07  Eric Blake  <eblake@redhat.com>
8522
8523         bootstrap: detect tools required by gnulib-tool
8524         * build-aux/bootstrap (buildreq): Provide minimum implicit
8525         dependencies.
8526         * DEPENDENCIES: Mention patch as a prereq.
8527
8528 2011-12-04  Bruno Haible  <bruno@clisp.org>
8529
8530         sethostname: Port to Windows platforms.
8531         * lib/sethostname.c: Provide an alternate implementation for Windows
8532         platforms.
8533         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8534         (main): Skip the test if sethostname() fails with EPERM. On Windows
8535         platforms, don't check the result of gethostname().
8536
8537 2011-12-04  Bruno Haible  <bruno@clisp.org>
8538             Jim Meyering  <meyering@redhat.com>
8539
8540         tests: Avoid spurious error message on platforms without mktemp program.
8541         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8542
8543 2011-12-04  Bruno Haible  <bruno@clisp.org>
8544
8545         sethostname: Fix documentation.
8546         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8547         "not fixed" section.
8548
8549 2011-12-03  Bruno Haible  <bruno@clisp.org>
8550
8551         gnulib-tool: Verify that the License field is present and non-empty.
8552         * gnulib-tool (func_get_license_raw): New function, extracted from
8553         func_get_license.
8554         (func_get_license): Use it. Warn if the module is not a test module and
8555         has no license.
8556         Suggested by Jim Meyering.
8557
8558 2011-12-03  Bruno Haible  <bruno@clisp.org>
8559
8560         sethostname tests: Fix link error on mingw.
8561         * tests/test-sethostname1.c: New file, extracted from
8562         tests/test-sethostname.c.
8563         * tests/test-sethostname2.c: New file, extracted from
8564         tests/test-sethostname.c.
8565         * tests/test-sethostname.c: Remove file.
8566         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8567         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8568         (Depends-on): Add gethostname.
8569         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8570         Link the latter with $(GETHOSTNAME_LIB).
8571
8572         sethostname tests: Fix compilation error on mingw.
8573         * tests/test-sethostname.c: Don't include <sys/types.h>.
8574         (geteuid): Use a dummy value without uid_t.
8575         * modules/sethostname-tests (Depends-on): Remove sys_types.
8576
8577         sethostname tests: Avoid a gcc warning.
8578         * tests/test-sethostname.c (main): Remove an unused variable.
8579
8580         Tweak last commit.
8581         * modules/sethostname-tests (Files): Sort by decreasing importance.
8582         (configure.ac): Check for geteuid.
8583         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8584         the test when there's nothing to test. Drop an unnecessary cast.
8585         Improve an error message. Verify that the final sethostname() call
8586         succeeds.
8587
8588 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8589
8590         Add a test suite for the sethostname module.
8591         * modules/sethostname-tests: New file.  A test program
8592         for the sethostname module.
8593         * tests/test-sethostname.c: Likewise.
8594
8595 2011-12-03  Bruno Haible  <bruno@clisp.org>
8596
8597         Tweak last commit.
8598         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8599         Fix preprocessor directives indentation. Fix typos.
8600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8601         * modules/unistd (Makefile): Likewise.
8602
8603 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8604
8605         Integrate the sethostname module into unistd.
8606         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8607         into the unistd.h header.
8608         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8609         preprocessor directives.
8610         * modules/unistd: Setup the Makefile substitutions of the
8611         SETHOSTNAME preprocessor directives.
8612
8613 2011-12-03  Bruno Haible  <bruno@clisp.org>
8614
8615         Tweak last commit.
8616         * lib/sethostname.c: Don't include <string.h>.
8617         (sethostname): No need to copy the argument string to the stack. Don't
8618         call clearerr. Preserve errno when fprintf failed.
8619         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8620         Don't invoke AC_REPLACE_FUNCS.
8621         * modules/sethostname (Link): Remove empty section.
8622         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8623         failure problem.
8624
8625 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8626
8627         New module 'sethostname'.
8628         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8629         for systems that lack it.
8630         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8631         sethostname declaration and function.
8632         * modules/sethostname: New file.  Define the sethostname module.
8633
8634 2011-12-03  Bruno Haible  <bruno@clisp.org>
8635
8636         Tweak last commit.
8637         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8638
8639 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8640
8641         Split the HOST_NAME_MAX detection into a separate m4 macro.
8642         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8643         macro so it can be used by the pending sethostname module.
8644
8645 2011-12-03  Bruno Haible  <bruno@clisp.org>
8646
8647         Fix module descriptions syntax.
8648         * modules/argv-iter (License): Fix syntax.
8649         * modules/di-set (License): Likewise.
8650         * modules/ino-map (License): Likewise.
8651         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8652
8653 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8654
8655         stdalign: port to Clang 3.0
8656         Problem reported by Simon Josefsson in
8657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8658         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8659         which has <stdalign.h> but which does not define alignof.
8660         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8661
8662 2011-12-01  Eric Blake  <eblake@redhat.com>
8663
8664         mktempd: silence dd usage
8665         * build-aux/mktempd (rand_bytes): Silence dd.
8666
8667 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8668
8669         manywarnings: Don't mention gcc version in docstring.
8670         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8671         Jim Meyering <meyering@redhat.com>.
8672
8673 2011-11-30  Jim Meyering  <meyering@redhat.com>
8674
8675         hash: mark a few floating point constants with "f" suffix
8676         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8677         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8678         floating point constants with "f", since they're destined to be
8679         saved/used as "float"s.
8680
8681 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8682
8683         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8684         * tests/test-float.c (test_long_double): Correct and re-enable the
8685         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8686
8687 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8688
8689         Avoid subtracting two pointers that don't point into the same block.
8690         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8691         only pointers into the same memory block are subtracted. We cannot
8692         assume that sizeof (ptrdiff_t) == sizeof (void *).
8693
8694 2011-11-29  Eric Blake  <eblake@redhat.com>
8695
8696         maint.mk: add syntax check for use of compare from init.sh
8697         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8698         moved here from coreutils.
8699
8700         manywarnings: drop -Wunsuffixed-float-constants
8701         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8702         '1.0D', which is the only way to silence this warning for 'double'.
8703
8704 2011-11-29  Jim Meyering  <meyering@redhat.com>
8705
8706         hash: mark compute_bucket_size with the pure attribute
8707         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8708
8709         quotearg, propername: correct pragma guard expression
8710         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8711         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8712
8713 2011-11-28  Jim Meyering  <meyering@redhat.com>
8714
8715         propername: do not mark proper_name with the const attribute
8716         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8717         since it examines data pointed to by its parameter.
8718         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8719         the suggestion from -Wsuggest-attribute=const.
8720
8721         propername: mark one more function as const
8722         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8723
8724 2011-11-27  Jim Meyering  <meyering@redhat.com>
8725
8726         mark functions with const and pure attributes
8727
8728         Mark functions per suggestions from gcc-4.6 when using these options:
8729         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8730         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8731         Follow these guidelines: when possible, apply the attribute to
8732         an extern declaration, not to its definition.  Apply it to the
8733         definition only when the definition is static.
8734         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8735         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8736         * lib/base64.h (isbase64): Likewise.
8737         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8738         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8739         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8740         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8741         (c_tolower, c_toupper): Likewise.
8742         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8743         * lib/chdir-long.c (find_non_slash): Likewise.
8744         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8745         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8746         * lib/file-type.h (file_type): Likewise.
8747         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8748         * lib/filevercmp.c (verrevcmp): Likewise.
8749         * lib/freadahead.h (freadahead): Likewise.
8750         * lib/fts.c (fts_maxarglen): Likewise.
8751         * lib/hash-pjw.h (hash_pjw): Likewise.
8752         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8753         * lib/hash.c (is_prime, next_prime): Likewise.
8754         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8755         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8756         (hash_table_ok, hash_get_first, hash_string): Likewise.
8757         (compute_bucket_size): Likewise.
8758         * lib/i-ring.h (i_ring_empty): Likewise.
8759         * lib/isnan.c (isnanl): Likewise.
8760         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8761         * lib/memcasecmp.h (memcasecmp): Likewise.
8762         * lib/memchr2.h (memchr2): Likewise.
8763         * lib/memcmp2.h (memcmp2): Likewise.
8764         * lib/parse-datetime.y (lookup_zone): Likewise.
8765         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8766         [!WINDOWS_SOCKETS]: Likewise.
8767         * lib/strnlen1.h (strnlen1): Likewise.
8768         * lib/uniwidth.in.h (uc_width): Likewise.
8769         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8770         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8771         (quoting_options_from_style): Add a comment.
8772         * lib/propername.h (proper_name): Add a comment.
8773
8774 2011-11-27  Bruno Haible  <bruno@clisp.org>
8775
8776         Remove unused macros from !_LIBC code in glibc-borrowed files.
8777         * lib/fnmatch.c (STRCOLL): Remove macro.
8778         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8779         * lib/glob.c (__stat, __readdir64): Remove macros.
8780         * lib/tempname.c (__open64, __xstat64): Remove macros.
8781         Suggested by Paul Eggert.
8782
8783 2011-11-27  Bruno Haible  <bruno@clisp.org>
8784
8785         getcwd: Fix link error on MSVC 9.
8786         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8787
8788 2011-11-27  Bruno Haible  <bruno@clisp.org>
8789
8790         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8791         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8792         HAVE_OPENDIR is 0.
8793         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8794         HAVE_CLOSEDIR is 0.
8795         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8796         is 0.
8797         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8798
8799 2011-11-27  Bruno Haible  <bruno@clisp.org>
8800
8801         getcwd: Fix bug from 2011-08-17.
8802         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8803         platforms that need it.
8804         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8805         code of 4 to be a failure, not a success. This ensures that
8806         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8807
8808 2011-11-27  Bruno Haible  <bruno@clisp.org>
8809
8810         binary-io tests: Avoid test failure on mingw when libtool is used.
8811         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8812         Don't verify the size of t-bin-out1.tmp here.
8813         * tests/test-binary-io.sh: Verify it here.
8814         Reported by Simon Josefsson.
8815
8816 2011-11-26  Bruno Haible  <bruno@clisp.org>
8817
8818         Fix conflict between two instantiations of module 'unistd'.
8819         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8820         ${include_guard_prefix} also in the autoconf snippet.
8821         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8823         GNULIB_UNISTD_H_GETOPT.
8824         * modules/getopt-posix (configure.ac): Set the
8825         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8826         * modules/getopt-gnu (configure.ac): Likewise.
8827         * modules/unistd (Makefile.am): Change the substitution value of
8828         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8829         Reported by Simon Josefsson.
8830
8831 2011-11-25  Bruno Haible  <bruno@clisp.org>
8832
8833         pagealign_alloc: Doc and comments.
8834         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8835         module.
8836         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8837
8838 2011-11-25  Jim Meyering  <meyering@redhat.com>
8839
8840         test-update-copyright.sh: avoid false-positive failure
8841         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8842         around false positive failure on Cygwin/Windows.  The latter was
8843         matching erroneously-created files with names like
8844         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8845
8846 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8847
8848         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8849         * m4/valgrind-tests.m4: Check that the parameters that will be
8850         used works, not just a subset of them.  Reported by Bruno Haible
8851         <bruno@clisp.org>.
8852
8853 2011-11-24  Jim Meyering  <meyering@redhat.com>
8854
8855         test-stdalign.c: comment out long double tests
8856         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8857         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8858         error: '_Alignas' specifiers cannot reduce alignment of \
8859         'static_longdouble_alignas'.
8860
8861 2011-11-22  Jim Meyering  <meyering@redhat.com>
8862
8863         init.sh: make "compare /dev/null FILE" output more readable
8864         * tests/init.sh (compare_): Document the preferred order of arguments.
8865         (emit_diff_u_header_): New function.
8866         (compare_dev_null_): Emit a simulated diff, rather than just the
8867         contents of the unexpected file.  Suggestion from Bruno Haible.
8868
8869 2011-11-21  Jim Meyering  <meyering@redhat.com>
8870             Eric Blake  <eblake@redhat.com>
8871
8872         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8873         * tests/init.sh: Make our compare function slightly more portable.
8874         Reported by Bruno Haible in
8875         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8876
8877 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8878
8879         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8880         before using it, in code that ends up in config.h.
8881
8882 2011-11-20  Bruno Haible  <bruno@clisp.org>
8883
8884         getcwd: Work around getcwd bug on AIX 5..7.
8885         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8886         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8887         Use a different value for gl_cv_func_getcwd_path_max. Move the
8888         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8889         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8890         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8891         Define HAVE_MINIMALLY_WORKING_GETCWD.
8892         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8893         where it is not even minimally working, that is, on AIX.
8894         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8895         m4/getcwd-path-max.m4.
8896         (main): Update exit code computation.
8897         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8898         getcwd does not handle long file names.
8899
8900 2011-11-20  Bruno Haible  <bruno@clisp.org>
8901
8902         getcwd: Fix bug from 2009-09-10.
8903         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8904         like "no".
8905
8906 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8907
8908         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8909
8910 2011-11-20  Bruno Haible  <bruno@clisp.org>
8911
8912         fma tests: Avoid shadowing local variables.
8913         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8914         expected.
8915
8916 2011-11-20  Bruno Haible  <bruno@clisp.org>
8917
8918         copysignf tests: Fix.
8919         * tests/test-copysignf.c: Fix signature check.
8920
8921 2011-11-20  Bruno Haible  <bruno@clisp.org>
8922
8923         fma: Remove unused code.
8924         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8925         unused macros.
8926
8927 2011-11-20  Bruno Haible  <bruno@clisp.org>
8928
8929         sethostname: Fix doc about AIX.
8930         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8931         sethostname; it has it.
8932
8933         sethostname: Mention more portability problems.
8934         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8935         problem.
8936         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8937
8938 2011-11-19  Bruno Haible  <bruno@clisp.org>
8939
8940         Depend on module fcntl-h when AT_FDCWD is used.
8941         * modules/utimens (Depends-on): Add fcntl-h.
8942         * modules/areadlinkat (Depends-on): Likewise.
8943         * modules/areadlinkat-with-size (Depends-on): Likewise.
8944         * modules/faccessat (Depends-on): Likewise.
8945         * modules/fchmodat (Depends-on): Likewise.
8946         * modules/fchownat (Depends-on): Likewise.
8947         * modules/getcwd (Depends-on): Likewise.
8948         * modules/mkdirat (Depends-on): Likewise.
8949         * modules/mkfifoat (Depends-on): Likewise.
8950         * modules/readlinkat (Depends-on): Likewise.
8951         * modules/symlinkat (Depends-on): Likewise.
8952         * modules/dup2-tests (Depends-on): Likewise.
8953         * modules/fdutimensat-tests (Depends-on): Likewise.
8954         * modules/futimens-tests (Depends-on): Likewise.
8955
8956 2011-11-19  Bruno Haible  <bruno@clisp.org>
8957
8958         euidaccess: Update a comment.
8959         * lib/euidaccess.c: Update comment about platforms with faccessat.
8960
8961 2011-11-19  Bruno Haible  <bruno@clisp.org>
8962
8963         openat: Fix file list.
8964         * modules/openat (Files): Remove lib/at-func.c.
8965
8966 2011-11-19  Bruno Haible  <bruno@clisp.org>
8967
8968         fstatat: Simplify.
8969         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8970         gnulib should define rpl_fstatat, there is a
8971         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8972
8973 2011-11-19  Bruno Haible  <bruno@clisp.org>
8974
8975         Ensure 'inline' can be used in tests/test-utimens-common.h.
8976         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8977         * modules/futimens-tests (configure.ac): Likewise.
8978         * modules/utimens-tests (configure.ac): Likewise.
8979         * modules/utimensat-tests (configure.ac): Likewise.
8980
8981 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8982
8983         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8984         not hash_insert0.
8985         (hash_insert_if_absent): Doc fix.
8986
8987 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8988
8989         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8990
8991 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8992
8993         test-getcwd: disambiguate exit status
8994         * tests/test-getcwd.c (test_long_name): Return 0..7.
8995         (main): Exit with an unambiguous exit status.  The old
8996         code yielded a mysterious mixture of two failure codes.
8997
8998         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8999         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9000         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9001         rpl_fstatat or fstatat.  This should fix the other problem
9002         reported by Kai Habel in
9003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9004         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9006         and I reproduced it on a Solaris 8 host we still have in production.
9007
9008 2011-11-18  Jim Meyering  <meyering@redhat.com>
9009
9010         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9011         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9012         Add a sentence to the comment.
9013         (hash_insert0): New function that simply calls hash_insert_if_absent.
9014         * lib/hash.h (hash_insert_if_absent): Declare it.
9015         (hash_insert0): Add deprecation attribute.
9016         (_GL_ATTRIBUTE_DEPRECATED): Define.
9017         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9018         not hash_insert0.
9019         * NEWS: Mention it, even though it's not really an incompatible change.
9020
9021 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9022
9023         openat: avoid compilation failure due to lack of <errno.h> inclusion
9024         * lib/openat.c: Include <errno.h>.
9025
9026 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9027
9028         * modules/getcwd (Depends-on): Add fdopendir.
9029         This fixes one of the two problems reported by Kai Habel in
9030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9031
9032         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9033         stdalign problem reported by Ian Beckwith in
9034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9035         * modules/crypto/gc-arcfour (Depends-on):
9036         Depend conditionally on crypto/arcfour.
9037         * modules/crypto/gc-arctwo (Depends-on):
9038         Depend conditionally on crypto/arctwo.
9039         * modules/crypto/gc-des (Depends-on):
9040         Depend conditionally on crypto/des.
9041         * modules/crypto/gc-hmac-md5 (Depends-on):
9042         Depend conditionally on crypto/hmac-md5.
9043         * modules/crypto/gc-hmac-sha1 (Depends-on):
9044         Depend conditionally on crypto/hmac-sha1.
9045         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9046         * modules/crypto/gc-md4 (Depends-on):
9047         Depend conditionally on crypto/md4.
9048         * modules/crypto/gc-md5 (Depends-on):
9049         Depend conditionally on crypto/md5.
9050         * modules/crypto/gc-rijndael (Depends-on):
9051         Depend conditionally on crypto/rijndael.
9052         * modules/crypto/gc-sha1 (Depends-on):
9053         Depend conditionally on crypto/sha1.
9054         * modules/crypto/gc-arcfour:
9055         * modules/crypto/gc-arctwo:
9056         * modules/crypto/gc-des:
9057         * modules/crypto/gc-hmac-md5:
9058         * modules/crypto/gc-hmac-sha1:
9059         * modules/crypto/gc-md2:
9060         * modules/crypto/gc-md4:
9061         * modules/crypto/gc-md5:
9062         * modules/crypto/gc-rijndael:
9063         * modules/crypto/gc-sha1:
9064         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9065         now that the conditional dependencies do the work for us.
9066
9067 2011-11-17  Jim Meyering  <meyering@redhat.com>
9068
9069         tests: factor st_ctime-comparison out of two headers
9070         * tests/test-utimens-common.h (ctime_compare): Define.
9071         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9072         * tests/test-lutimens.h (test_lutimens): Likewise.
9073         * tests/test-utimens.h (test_utimens): Likewise.
9074
9075         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9076         Invoke the test program via an init.sh-using wrapper.
9077         * tests/test-getcwd.sh: New file.
9078         * modules/getcwd-tests (Files): Add it.
9079         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9080
9081 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9082
9083         gitlog-to-changelog: support multi-author commits.
9084         The FSF cares about keeping track of all authors of patches to its
9085         projects, but Git doesn't provide obvious support for multi-author
9086         changesets. Consensus seems to be forming around the use of extra
9087         Signed-off-by inspired lines in the log message formatted as
9088         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9089         multi-author commits between version control systems.
9090         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9091         log message and output in standard ChangeLog multi-author format.
9092         Reported by Peter Rosin <peda@lysator.liu.se>
9093
9094 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9095             Bruno Haible  <bruno@clisp.org>
9096
9097         Fix some modules' file list.
9098         * modules/fstatat (Files): Add m4/lstat.m4.
9099         * modules/openat (Files): Likewise.
9100         * modules/unlinkat (Files): Likewise.
9101
9102 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9103
9104         maint.mk: fix tight-scope.mk generation in VPATH builds.
9105         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9106         reference with $(srcdir) so that the file is found correctly even
9107         when running `make syntax-check' in a VPATH build.
9108
9109 2011-11-13  Bruno Haible  <bruno@clisp.org>
9110             Jim Meyering  <meyering@redhat.com>
9111
9112         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9113         * tests/init.sh (compare): Remove "No differences encountered" or
9114         synonymous output from the 'diff' program.
9115
9116 2011-11-13  Bruno Haible  <bruno@clisp.org>
9117
9118         Makefile: Tweak indentation.
9119         * Makefile: Use tab as first character in every line that contains rule
9120         commands.
9121
9122 2011-11-13  Bruno Haible  <bruno@clisp.org>
9123
9124         Syntax check for copyright statements.
9125         * check-copyright: New file.
9126         * Makefile (sc_check_copyright): New rule.
9127
9128 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9129
9130         * build-aux/git-version-gen: Add --prefix to configure the tag
9131         match string.
9132
9133 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9134
9135         * build-aux/git-version-gen: Add --help and --version.
9136
9137 2011-11-12  Jim Meyering  <meyering@redhat.com>
9138
9139         revamp the other test-exclude?.sh scripts to use init.sh, too
9140         * tests/test-exclude1.sh: Use init.sh.
9141         * tests/test-exclude2.sh: Likewise.
9142         * tests/test-exclude3.sh: Likewise.
9143         * tests/test-exclude4.sh: Likewise.
9144         * tests/test-exclude5.sh: Likewise.
9145         * tests/test-exclude6.sh: Likewise.
9146         * tests/test-exclude7.sh: Likewise.
9147         * tests/test-exclude8.sh: Likewise.
9148         * modules/exclude-tests (Files): List init.sh.
9149
9150         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9151         These shell scripts ignored failure of the binary test-exclude,
9152         so making the latter return 77 didn't cause them to be skipped.
9153         * tests/test-exclude5.sh: Exit with test-exclude's error status
9154         when that program fails.  Revamp to use init.sh.
9155         * tests/test-exclude2.sh: Likewise.
9156
9157         test-exclude: fix a typo
9158         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9159
9160 2011-11-11  Bruno Haible  <bruno@clisp.org>
9161
9162         obstack: Fix compilation error on MSVC 9.
9163         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9164
9165 2011-11-11  Jim Meyering  <meyering@redhat.com>
9166
9167         test-exclude: skip tests rather than failing on deficient systems
9168         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9169         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9170         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9171         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9172
9173 2011-11-10  Bruno Haible  <bruno@clisp.org>
9174
9175         ptsname_r test: Avoid gcc warning on glibc systems.
9176         * tests/test-ptsname_r.c (null_ptr): New function.
9177         (test_errors): Use it.
9178
9179 2011-11-10  Bruno Haible  <bruno@clisp.org>
9180
9181         ptsname_r: Avoid compilation error on OSF/1 5.1.
9182         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9184         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9185         function is not declared or incompatibly declared.
9186         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9187         * modules/ptsname_r (Depends-on, configure.ac): Update.
9188         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9189
9190 2011-11-10  Bruno Haible  <bruno@clisp.org>
9191
9192         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9193         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9194         When cross-compiling, guess yes on all platforms except AIX.
9195         Reported by Ludovic Courtès <ludo@gnu.org>.
9196
9197 2011-11-09  Bruno Haible  <bruno@clisp.org>
9198
9199         ptsname_r tests: Fix bugs.
9200         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9201         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9202
9203 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9204
9205         fstatat: work with cross-compilation
9206         Problem reported by Ludovic Courtès in
9207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9208         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9209         "cross-compiling" and assume the bug is present.  Replace
9210         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9211         an inverted sense, to be more conservative about our assumptions.
9212         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9213
9214 2011-11-09  Bruno Haible  <bruno@clisp.org>
9215
9216         Improve MODULES.html output.
9217         * modules/mkfifoat (Description): Use the word "function".
9218         * modules/readlinkat (Description): Likewise.
9219         * modules/symlinkat (Description): Likewise.
9220
9221 2011-11-09  Eric Blake  <eblake@redhat.com>
9222
9223         ptsname_r-tests: new test module
9224         * modules/ptsname_r-tests: New module.
9225         * tests/test-ptsname_r.c: New file.
9226
9227         ptsname_r: new module
9228         * modules/ptsname_r: New module.
9229         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9230         * lib/ptsname.c (__ptsname_r): Split...
9231         * lib/ptsname_r.c: ...into new file.
9232         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9233         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9234         * modules/stdlib (Makefile.am): Substitute witnesses.
9235         * lib/stdlib.in.h (ptsname_r): Declare it.
9236         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9237         * MODULES.html.sh (Misc): Likewise.
9238         * modules/ptsname (Depends-on): Alter dependency.
9239         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9240
9241 2011-11-09  Jim Meyering  <meyering@redhat.com>
9242
9243         announce-gen: be more concise when there's only one URL+tarball
9244         * build-aux/announce-gen (get_tool_versions): When you distribute
9245         only one type of tarball, combine the first two "Here are..."
9246         sections and make the key-checking grammar independent of
9247         how many tarballs there are.
9248
9249 2011-11-09  Eric Blake  <eblake@redhat.com>
9250
9251         openpty: provide a stub on mingw
9252         * lib/pty.in.h (includes): Provide forward declarations.
9253         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9254
9255         raise: fix mingw handling of SIGPIPE
9256         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9257
9258 2011-11-08  Bruno Haible  <bruno@clisp.org>
9259
9260         More conditional dependencies.
9261         * modules/faccessat (Depends-on): Add conditions.
9262         * modules/fchmodat (Depends-on): Likewise.
9263         * modules/fchownat (Depends-on): Likewise.
9264         * modules/fstatat (Depends-on): Likewise.
9265         * modules/mkfifoat (Depends-on): Likewise.
9266         * modules/readlinkat (Depends-on): Likewise.
9267         * modules/symlinkat (Depends-on): Likewise.
9268         * modules/unlinkat (Depends-on): Likewise.
9269         * modules/utimensat (Depends-on): Likewise.
9270         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9271         * modules/linkat (Depends-on): Refine the conditions.
9272         * modules/renameat (Depends-on): Likewise.
9273
9274 2011-11-08  Bruno Haible  <bruno@clisp.org>
9275
9276         faccessat: Move AC_LIBOBJ invocation to module description.
9277         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9278         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9279         invocation from here...
9280         * modules/faccessat (configure.ac): ... to here. Invoke
9281         gl_PREREQ_FACCESSAT.
9282
9283 2011-11-08  Bruno Haible  <bruno@clisp.org>
9284
9285         faccessat: Simplify autoconf macro.
9286         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9287         gl_FUNC_EUIDACCESS.
9288
9289 2011-11-08  Bruno Haible  <bruno@clisp.org>
9290
9291         renameat: Fix dependencies.
9292         * modules/renameat (Depends-on): Add stdbool.
9293
9294 2011-11-08  Bruno Haible  <bruno@clisp.org>
9295
9296         mkfifoat: Fix module description.
9297         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9298         not gl_UNISTD_MODULE_INDICATOR.
9299
9300 2011-11-08  Bruno Haible  <bruno@clisp.org>
9301
9302         fstatat: Remove unused dependency.
9303         * modules/fstatat (Depends-on): Remove fstat.
9304
9305 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9306
9307         GNUmakefile: behave when Makefile is missing.
9308         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9309
9310 2011-11-08  Bruno Haible  <bruno@clisp.org>
9311
9312         openat: Conditionalize dependencies.
9313         * lib/openat.c: Reduce the scope of some #includes.
9314         * modules/openat (Depends-on): Add conditions.
9315
9316 2011-11-07  Jim Meyering  <meyering@redhat.com>
9317
9318         maint.mk: extract GPG key ID without using a temporary file
9319         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9320         without using a temporary file.  Based on a suggestion from Werner Koch
9321         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9322
9323 2011-11-07  Eric Blake  <eblake@redhat.com>
9324
9325         grantpt: fix typo
9326         * lib/stdlib.in.h (grantpt): Check correct function.
9327
9328         maint.mk: silence new syntax check
9329         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9330
9331 2011-11-06  Bruno Haible  <bruno@clisp.org>
9332
9333         Doc about floating-point and math API.
9334         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9335         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9336
9337 2011-11-06  Bruno Haible  <bruno@clisp.org>
9338
9339         stdalign tests: Skip the test when compiled by Sun C.
9340         * tests/test-stdalign.c (main): Skip the test on Sun C.
9341
9342 2011-11-06  Bruno Haible  <bruno@clisp.org>
9343
9344         ansi-c++-opt: Complete the 2011-06-05 change.
9345         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9346         does not support namespaces, set the variable to "no", not to ":".
9347
9348 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9349
9350         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9351
9352 2011-11-06  Bruno Haible  <bruno@clisp.org>
9353
9354         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9355         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9356         (minus_zerol) [HP-UX]: New macro.
9357         (unary_minus) [HP-UX]: New function.
9358         (copysignl) [HP-UX]: Use unary_minus function.
9359
9360 2011-11-06  Bruno Haible  <bruno@clisp.org>
9361
9362         ldexp, ldexpf, ldexpl: Enhance tests.
9363         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9364         and tests/test-ldexpl.c.
9365         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9366         LDEXP, MIN_EXP, MAX_EXP): New macros.
9367         Include test-ldexp.h.
9368         (main): Just call test_function.
9369         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9370         infinity.h, nan.h.
9371         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9372         MAX_EXP): New macros.
9373         Include test-ldexp.h.
9374         (x, y): Remove variables.
9375         (main): Just call test_function.
9376         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9377         infinity.h, nan.h.
9378         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9379         MAX_EXP): New macros.
9380         Include test-ldexp.h.
9381         (x, y): Remove variables.
9382         (main): Just call test_function.
9383         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9384         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9385         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9386         (Depends-on): Add isnand-nolibm, signbit, float.
9387         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9388         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9389         (Depends-on): Add isnanf-nolibm, signbit, float.
9390
9391 2011-11-06  Bruno Haible  <bruno@clisp.org>
9392
9393         math tests: Cosmetics.
9394         * tests/test-math-c++.cc: Reorder declarations.
9395
9396 2011-11-05  Bruno Haible  <bruno@clisp.org>
9397
9398         fma*: Simplify test.
9399         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9400         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9401
9402         Tests for module 'fmal'.
9403         * modules/fmal-tests: New file.
9404         * tests/test-fmal1.c: New file.
9405         * tests/test-fmal2.c: New file.
9406
9407         New module 'fmal'.
9408         * lib/math.in.h (fmal): New declaration.
9409         * lib/fmal.c: New file.
9410         * m4/fmal.m4: New file.
9411         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9413         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9414         REPLACE_FMAL.
9415         * modules/fmal: New file.
9416         * doc/posix-functions/fmal.texi: Mention the new module and the various
9417         bugs.
9418
9419         Tests for module 'fmaf'.
9420         * modules/fmaf-tests: New file.
9421         * tests/test-fmaf1.c: New file.
9422         * tests/test-fmaf2.c: New file.
9423
9424         New module 'fmaf'.
9425         * lib/math.in.h (fmaf): New declaration.
9426         * lib/fmaf.c: New file.
9427         * m4/fmaf.m4: New file.
9428         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9430         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9431         REPLACE_FMAF.
9432         * modules/fmaf: New file.
9433         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9434         bugs.
9435
9436         Tests for module 'fma'.
9437         * modules/fma-tests: New file.
9438         * tests/test-fma1.c: New file.
9439         * tests/test-fma1.h: New file.
9440         * tests/test-fma2.c: New file.
9441         * tests/test-fma2.h: New file.
9442
9443         New module 'fma'.
9444         * lib/math.in.h (fma): New declaration.
9445         * lib/fma.c: New file.
9446         * m4/fma.m4: New file.
9447         * m4/fegetround.m4: New file.
9448         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9450         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9451         REPLACE_FMA.
9452         * modules/fma: New file.
9453         * doc/posix-functions/fma.texi: Mention the new module and the various
9454         bugs.
9455
9456         Extend gl_MATHFUNC.
9457         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9458         Support 'void' as argument type.
9459         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9460
9461 2011-11-05  Jim Meyering  <meyering@redhat.com>
9462
9463         maint.mk: also prohibit inclusion of dirent.h without use
9464         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9465
9466 2011-11-05  Bruno Haible  <bruno@clisp.org>
9467
9468         ldexpl tests: Avoid test failure on MSVC 9.
9469         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9470         value. Needed in order to enforce the conversion from a value greater
9471         than LDBL_MAX to Infinity.
9472
9473 2011-11-05  Bruno Haible  <bruno@clisp.org>
9474
9475         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9476         * modules/at-internal: New file, extracted from modules/openat.
9477         * modules/openat-h: New file.
9478         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9479         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9480         * modules/openat (Description): Add reference to POSIX function.
9481         (Files): Remove lib/openat.h, lib/openat-proc.c.
9482         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9483         intprops, unistd.
9484         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9485         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9486         gl_FCNTL_MODULE_INDICATOR.
9487         (Include): Remove unistd.h, openat.h.
9488         * modules/areadlinkat (Files): Add lib/at-func.c.
9489         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9490         openat-die, openat-h, save-cwd.
9491         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9492         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9493         openat-die, openat-h, save-cwd, unistd.
9494         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9495         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9496         openat-h, save-cwd. Remove fcntl-h, openat.
9497         * modules/fchmodat (Files): Remove lib/openat.h.
9498         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9499         openat, stdbool, unistd.
9500         * modules/fchownat (Files): Remove lib/openat.h.
9501         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9502         openat, stdbool, sys_stat.
9503         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9504         lib/openat-proc.c.
9505         (Depends-on): Add at-internal.
9506         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9507         * modules/fstatat (Files): Remove lib/openat.h.
9508         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9509         stdbool, unistd.
9510         * modules/fts (Depends-on): Add openat-h.
9511         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9512         openat.
9513         * modules/mkdirat (Files): Remove lib/openat.h.
9514         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9515         openat, stdbool, sys_stat.
9516         * modules/mkfifoat (Files): Add lib/at-func.c.
9517         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9518         openat-h, save-cwd. Remove fcntl-h, openat.
9519         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9520         * modules/readlinkat (Files): Add lib/at-func.c.
9521         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9522         openat-h, save-cwd. Remove fcntl-h, openat.
9523         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9524         openat.
9525         * modules/selinux-at (Files): Add lib/at-func.c.
9526         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9527         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9528         * modules/symlinkat (Files): Add lib/at-func.c.
9529         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9530         openat-h, save-cwd. Remove fcntl-h, openat.
9531         * modules/unlinkat (Files): Remove lib/openat.h.
9532         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9533         stdbool.
9534         * modules/utimensat (Files): Add lib/at-func.c.
9535         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9536         openat-die, openat-h, save-cwd.
9537         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9538         * modules/fdutimensat-tests (Depends-on): Add openat.
9539         * modules/fstatat-tests (Depends-on): Add openat-h.
9540         * modules/readlinkat-tests (Depends-on): Add openat.
9541         * modules/symlinkat-tests (Depends-on): Add openat.
9542
9543 2011-11-05  Bruno Haible  <bruno@clisp.org>
9544
9545         openat: Include <stdbool.h>.
9546         * lib/openat.c: Include <stdbool.h>.
9547
9548 2011-11-04  Bruno Haible  <bruno@clisp.org>
9549
9550         fchownat, renameat, unlinkat: Fix dependencies.
9551         * modules/fchownat (Depends-on): Add fstatat.
9552         * modules/renameat (Depends-on): Likewise.
9553         * modules/unlinkat (Depends-on): Likewise.
9554
9555 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9556
9557         openat: remove direct dependency on dirent
9558         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9559         and hasn't been needed ever since fdopendir was split into its own
9560         module on 2009-08-31.
9561         * modules/openat (Depends-on): Remove dirent.
9562
9563 2011-11-04  Bruno Haible  <bruno@clisp.org>
9564
9565         renameat: Optimize code size.
9566         * modules/renameat (configure.ac): Don't compile at-func2.c if
9567         REPLACE_RENAMEAT is 1.
9568
9569 2011-11-04  Bruno Haible  <bruno@clisp.org>
9570
9571         openat tests: Fix file list.
9572         * modules/openat-tests (Files): Add tests/test-open.h.
9573
9574 2011-11-04  Bruno Haible  <bruno@clisp.org>
9575
9576         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9577         * modules/fchmodat (Depends-on): Add openat-die.
9578         * modules/fchownat (Depends-on): Likewise.
9579         * modules/linkat (Depends-on): Likewise.
9580         * modules/renameat (Depends-on): Likewise.
9581         * modules/openat (Depends-on): Add dirent.
9582
9583 2011-11-04  Jim Meyering  <meyering@redhat.com>
9584
9585         at-func*.c: fix comments
9586         * lib/at-func2.c: Correct/improve first-line comment.
9587         * lib/at-func.c: Correct grammar in first-line comment.
9588
9589 2011-11-04  Bruno Haible  <bruno@clisp.org>
9590
9591         New module 'mkdirat', split off from module 'openat'.
9592         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9593         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9594         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9595         * modules/mkdirat: New file, extracted from modules/openat.
9596         * modules/openat (Files): Remove lib/mkdirat.c.
9597         (Depends-on): Remove mkdir.
9598         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9599         (Include): Remove <sys/stat.h>.
9600         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9601         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9602         tests/test-mkdir.h.
9603         (Depends-on): Remove ignore-value.
9604         (Makefile.am): Remove rules for test-mkdirat.
9605         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9606         of module 'openat'.
9607         * NEWS: Mention the change.
9608
9609 2011-11-04  Bruno Haible  <bruno@clisp.org>
9610
9611         closedir: Avoid warning on mingw.
9612         * lib/closedir.c: Include <unistd.h>.
9613
9614 2011-11-04  Bruno Haible  <bruno@clisp.org>
9615
9616         New module 'fstatat', split off from module 'openat'.
9617         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9618         defined.
9619         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9620         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9621         gl_FUNC_FSTATAT.
9622         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9623         * modules/fstatat: New file, extracted from modules/openat.
9624         * modules/openat (Files): Remove lib/fstatat.c.
9625         (Depends-on): Remove lstat.
9626         (configure.ac): Remove AC_LIBOBJ of fstatat.
9627         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9628         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9629         tests/test-lstat.h, tests/test-stat.h.
9630         (Depends-on): Remove getcwd-lgpl.
9631         (Makefile.am): Remove rules for test-fstatat.
9632         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9633         of module 'openat'.
9634         * NEWS: Mention the change.
9635         * modules/getcwd (Depends-on): Add fstatat.
9636         * modules/linkat (Depends-on): Likewise.
9637         * modules/mkfifoat-tests (Depends-on): Likewise.
9638         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9639
9640 2011-11-03  Bruno Haible  <bruno@clisp.org>
9641
9642         New module 'unlinkat', split off from module 'openat'.
9643         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9644         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9645         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9646         * modules/unlinkat: New file, extracted from modules/openat. Correct
9647         the dependency conditions.
9648         * modules/openat (Files): Remove lib/unlinkat.c.
9649         (Depends-on): Remove rmdir, unlink.
9650         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9651         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9652         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9653         tests/test-rmdir.h, tests/test-unlink.h.
9654         (Depends-on): Remove unlinkdir.
9655         (Makefile.am): Remove rules for test-unlinkat.
9656         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9657         of module 'openat'.
9658         * NEWS: Mention the change.
9659         * modules/linkat-tests (Depends-on): Add unlinkat.
9660         * modules/mkfifoat-tests (Depends-on): Likewise.
9661         * modules/readlinkat-tests (Depends-on): Likewise.
9662
9663 2011-11-02  Bruno Haible  <bruno@clisp.org>
9664
9665         New module 'fchmodat', split off from module 'openat'.
9666         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9667         defined.
9668         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9669         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9670         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9671         * modules/fchmodat: New file, extracted from modules/openat.
9672         * modules/openat (Files): Remove lib/fchmodat.c.
9673         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9674         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9675         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9676         (Makefile.am): Remove rules for test-fchmodat.
9677         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9678         of module 'openat'.
9679         * NEWS: Mention the change.
9680
9681 2011-11-02  Jim Meyering  <meyering@redhat.com>
9682
9683         putenv: indent #definition of "environ" to placate cppi
9684         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9685
9686         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9687         Git logs are often treated as immutable, because editing them
9688         changes the SHA1 checksums of all descendants.  Thus, errors in
9689         git logs tend to stay there forever.  However, when we generate
9690         a ChangeLog file -- typically for distribution -- from that git log,
9691         we can actually make corrections in the generated file.  The key
9692         lies in recording in machine-readable/applicable form the desired
9693         corrections.  See --help for description and an example.
9694         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9695         (usage): Describe it; alphabetize option descriptions.
9696         (main): Honor the new option, carefully.
9697
9698 2011-11-01  Jim Meyering  <meyering@redhat.com>
9699
9700         gitlog-to-changelog: avoid an infloop
9701         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9702         that ends up being empty.
9703
9704 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9705
9706         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9707         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9708         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9709         contains (possibly-quoted) backslashes.  This should avoid
9710         all-too-common shell bugs if COMPLICATED contains backslashes in
9711         the "wrong" places.  Reported by David Evans in
9712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9713         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9714         because we want ASCII ranges.  Is there some reason we don't use
9715         the C locale everywhere in this script?
9716         (func_module, top level): Avoid unwanted pathname expansion when
9717         $repo_url_prefix or $repo_url_suffix_repl contain shell
9718         metacharacters like '?' and '*'.
9719
9720 2011-11-01  Bruno Haible  <bruno@clisp.org>
9721
9722         fchownat: Improve description.
9723         * modules/fchownat (Description): Add link to function.
9724
9725 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9726
9727         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9728         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9730         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9731
9732 2011-11-01  Bruno Haible  <bruno@clisp.org>
9733
9734         alignof: Avoid collision with stdalign module.
9735         * lib/alignof.h (alignof): Remove macro.
9736         * NEWS: Mention the change.
9737         Reported by Paul Eggert.
9738
9739 2011-11-01  Bruno Haible  <bruno@clisp.org>
9740
9741         New module 'fchownat', split off from module 'openat'.
9742         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9743         defined.
9744         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9745         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9746         invoke gl_FUNC_FCHOWNAT.
9747         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9748         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9749         * modules/fchownat: New file, extracted from modules/openat.
9750         * modules/openat (Files): Remove lib/fchownat.c.
9751         (Depends-on): Remove lchown.
9752         (configure.ac): Remove AC_LIBOBJ of fchownat.
9753         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9754         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9755         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9756         (Depends-on): Remove mgetgroups, usleep, stat-time.
9757         (configure.ac): Remove test for getegid.
9758         (Makefile.am): Remove rules for test-fchownat.
9759         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9760         of module 'openat'.
9761         * NEWS: Mention the change.
9762
9763 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9764
9765         stdalign: port better to MSVC and to Sun C 5.11
9766         This fixes some of the problems reported by Bruno Haible in
9767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9768         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9769         shortcomings of MSVC and of Sun C 5.11.
9770         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9771         around __declspec arg.
9772         * modules/stdalign-tests (Files): Add tests/macros.h.
9773         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9774         Include macros.h, for ASSERT.
9775         (DECLARE_ALIGNED): Remove.
9776         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9777         to catch bug), and to 1 if not (simplifies the rest of the code).
9778         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9779         (CHECK_AUTO): Remove.
9780         (CHECK_ALIGNED): Check only the alignment of the static vars,
9781         since auto var alignment isn't supported by Sun C 5.11.
9782         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9783         ASSERT failures are easier to diagnose.
9784
9785 2011-10-31  Bruno Haible  <bruno@clisp.org>
9786
9787         doc about some IRIX 5.3 problems.
9788         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9789         on IRIX 5.3.
9790         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9791         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9792         5.3.
9793         * doc/posix-functions/grantpt.texi: Likewise.
9794         * doc/posix-functions/unlockpt.texi: Likewise.
9795         * doc/posix-functions/lgamma.texi: Likewise.
9796         * doc/posix-functions/nextafter.texi: Likewise.
9797         * doc/posix-functions/remainder.texi: Likewise.
9798         * doc/posix-functions/select.texi: Mention misplaced declaration on
9799         IRIX 5.3.
9800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9801
9802 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9803
9804         gitlog-to-changelog: fix git-log invocation.
9805         git-log mishandles date strings before 1970-01-01 UTC, and there is
9806         no use to specify --since=1970-01-01 by default anyway.
9807         * build-aux/gitlog-to-changelog: By default, when no --since option
9808         was given, do not specify explicit --since option to git-log.
9809
9810 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9811
9812         gitlog-to-changelog: new option --append-dot.
9813         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9814         first non-blank line of each commit message terminated with a dot.
9815
9816 2011-10-30  Bruno Haible  <bruno@clisp.org>
9817
9818         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9819         * lib/ffsl.h: Include <config.h>.
9820         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9821
9822 2011-10-30  Jim Meyering  <meyering@redhat.com>
9823
9824         GNUmakefile: reenable "make syntax-check" for most projects
9825         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9826         build-aux variable", "syntax-check" would do nothing but succeed with
9827         the "No version control files detected..." diagnostic (unless you
9828         happened to override _build-aux via cfg.mk).
9829         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9830         to precede inclusion of maint.mk.  Otherwise, these variables would
9831         be used undefined in any project that does not override the default.
9832
9833 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9834
9835         gitlog-to-changelog: treat a message with only blank lines as empty.
9836         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9837         trailing blank lines before the code that issues a warning about an
9838         empty commit message.
9839
9840 2011-10-30  Jim Meyering  <meyering@redhat.com>
9841
9842         test-parse-datetime.c: avoid new DST-related false positive test failure
9843         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9844         based on the time/date we'll convert, not the current time.
9845         Otherwise, the moment we cross a DST boundary like today's in
9846         Europe, (CEST to CET), that offset ends up being one hour off.
9847
9848 2011-10-27  Bruno Haible  <bruno@clisp.org>
9849
9850         fstat: Tweak documentation.
9851         * modules/fstat (Description): More precise description.
9852
9853 2011-10-27  Bruno Haible  <bruno@clisp.org>
9854
9855         Update documentation regarding 'largefile' module.
9856         * doc/posix-functions/fstat.texi: Tweak wording.
9857         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9858         problems with huge directories and/or small ino_t types.
9859         * doc/posix-functions/readdir.texi: Likewise.
9860         * doc/posix-functions/rewinddir.texi: Likewise.
9861
9862 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9863
9864         maint.mk: don't maintain a second build-aux variable.
9865         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9866         depends on GNUmakefile, which already maintains a cfg.mk
9867         overridable $(_build-aux) for projects with a non-standard
9868         build-aux directory location, although without the $(srcdir)
9869         prefix.  Use that variable consistently instead of introducing a
9870         second one.  Adjust all call sites.
9871
9872 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9873
9874         Add stdalign module and use it in other modules.
9875         This is based on a previous proposal by Bruno Haible
9876         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9877
9878         stdalign: new module
9879         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9880         * modules/stdalign: New files.
9881         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9882         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9883
9884         stdalign-tests: new module
9885         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9886
9887         argp: use stdalign
9888         * lib/argp-parse.c: Include <stdalign.h>.
9889         (alignof): Remove.
9890         * modules/argp (Depends-on): Add stdalign.
9891
9892         crypto libraries: use stdalign
9893         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9894         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9895         Do not include <stdlib.h> twice, in md4.c.
9896         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9897         because we are accessing a pointer's bit-pattern, not a size.
9898         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9899         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9900         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9901         * modules/crypto/sha512: Likewise.
9902
9903         sys_socket: use stdalign, not alignof
9904         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9905         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9906
9907 2011-10-27  Bruno Haible  <bruno@clisp.org>
9908
9909         raise test: Avoid a test failure on Linux/MIPS.
9910         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9911         because 99 is a valid signal on Linux/MIPS.
9912
9913 2011-10-27  Bruno Haible  <bruno@clisp.org>
9914
9915         nonblocking tests: Fix test failure on Linux/MIPS.
9916         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9917         Set to 270000.
9918
9919 2011-10-27  Bruno Haible  <bruno@clisp.org>
9920
9921         utimensat: Work around problem on Linux/hppa.
9922         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9923         values.
9924         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9925
9926 2011-10-25  Jim Meyering  <meyering@redhat.com>
9927
9928         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9929         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9930         after symbols like NULL, size_t, etc.
9931         Reported by Alfred M. Szmidt.
9932
9933         maint.mk: exempt ENODATA from a syntax-check rule
9934         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9935         from the sc_prohibit_always-defined_macros syntax-check rule.
9936         Add a comment.  See this for more details:
9937         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9938
9939 2011-10-23  Jim Meyering  <meyering@redhat.com>
9940
9941         fts: close parent dir FD before returning from post-traversal fts_read
9942         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9943         unlink A, even though an FD open on A remained.  This is suboptimal
9944         (holding a file descriptor open longer than needed), but otherwise not
9945         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9946         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9947         that represents a real problem: it causes the removal of A to fail
9948         with e.g., "rm: cannot remove `A': Device or resource busy"
9949
9950         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9951         directory file descriptors.  After completing the final, FTS_DP,
9952         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9953         cache, but then proceeded to add a new FD to it via the subsequent
9954         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9955         final file descriptor would be closed only via fts_close's call to
9956         fd_ring_clear.  Now, it is usually closed earlier, via the final
9957         FTS_DP-returning fts_read call.
9958         * lib/fts.c (restore_initial_cwd): New function, converted from
9959         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9960         Update callers.
9961         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9962         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9963
9964 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9965             Bruno Haible  <bruno@clisp.org>
9966             Jim Meyering  <jim@meyering.net>
9967
9968         readme-release: improve safety of release prep instructions.
9969         * README-release: Don't git pull all branches when only master
9970         is needed for the release process.
9971         Run make maintainer-clean before changing trees and merging.
9972         Don't try to run ./configure right after git pull in case files
9973         that influence the bootstrap process have changed, move the
9974         ./configure step to after running ./bootstrap.
9975         Don't bootstrap "one last time"... it's the first time!
9976
9977 2011-10-22  Bruno Haible  <bruno@clisp.org>
9978
9979         errno, strerror-override: Support for MSVC 10.
9980         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9981         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9982         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9983         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9984         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9985         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9986         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9987         Assign values compatible with MSVC 10.
9988         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9989         New macros.
9990         (GNULIB_defined_EWINSOCK): New macro.
9991         * lib/strerror-override.c (strerror_override): Update accordingly.
9992         * lib/strerror-override.h: Likewise.
9993         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9994         longer equal to the corresponding errno value.
9995         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9996
9997 2011-10-22  Bruno Haible  <bruno@clisp.org>
9998
9999         perror: Recognize when test program crashes.
10000         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10001         strerror, set gl_cv_func_perror_works to no.
10002         Reported by Daniel Richard G. <skunk@iskunk.org>.
10003
10004         perror: Fix indentation.
10005         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10006
10007 2011-10-22  Bruno Haible  <bruno@clisp.org>
10008
10009         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10010         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10011         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10012         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10013         functions, not as a macro.
10014         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10015         macros.
10016         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10017         absence of macro.
10018         Suggested by Eric Blake.
10019         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10020
10021 2011-10-21  Bruno Haible  <bruno@clisp.org>
10022
10023         relocatable-prog-wrapper: Don't leave object files behind.
10024         * build-aux/install-reloc: Re-synchronize list of .o files to be
10025         removed with list of compilation units.
10026
10027 2011-10-20  Bruno Haible  <bruno@clisp.org>
10028
10029         openpty, posix_openpt: Remove code duplication.
10030         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10031         * lib/openpty.c: Include <stdlib.h>.
10032         (openpty): Use posix_openpt on all platforms except IRIX.
10033         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10034
10035 2011-10-20  Bruno Haible  <bruno@clisp.org>
10036
10037         unlockpt: Detect invalid argument.
10038         * lib/unlockpt.c: Include <fcntl.h>.
10039         (unlockpt): Check whether fd is valid, using fcntl().
10040         * modules/unlockpt (Depends-on): Add fcntl-h.
10041
10042 2011-10-20  Bruno Haible  <bruno@clisp.org>
10043
10044         openpty: Avoid compilation error on AIX 6.1.
10045         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10046
10047 2011-10-20  Bruno Haible  <bruno@clisp.org>
10048
10049         posix_openpt: Support for OpenBSD.
10050         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10051         (posix_openpt) [OpenBSD]: New code.
10052         * lib/grantpt.c: Include <fcntl.h>.
10053         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10054         * modules/grantpt (Depends-on): Add fcntl-h.
10055
10056 2011-10-20  Bruno Haible  <bruno@clisp.org>
10057
10058         posix_openpt test: Coding style.
10059         * tests/test-posix_openpt.c: Use GNU coding style.
10060
10061 2011-10-20  Bruno Haible  <bruno@clisp.org>
10062
10063         grantpt: Support --avoid=pt_chown.
10064         * modules/grantpt (Files): Add lib/pty-private.h.
10065
10066 2011-10-20  Bruno Haible  <bruno@clisp.org>
10067
10068         posix_openpt: Fix autoconf macro.
10069         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10070         unneeded check for _getpty.
10071
10072 2011-10-20  Bruno Haible  <bruno@clisp.org>
10073
10074         openpty: Update comments.
10075         * lib/openpty.c: Add comments about Minix.
10076
10077 2011-10-19  Eric Blake  <eblake@redhat.com>
10078
10079         openpty: relax license
10080         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10081
10082         pt_chown: use configmake to simplify build
10083         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10084
10085         ptsname and others: relax license
10086         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10087         * modules/unlockpt (License): Likewise.
10088         * modules/pt_chown (License): Likewise.
10089         * modules/ptsname (License): Likewise.
10090         * modules/ttyname_r (License): Likewise.
10091
10092 2011-10-19  Jim Meyering  <meyering@redhat.com>
10093
10094         posix_openpt: remove spurious #endif
10095         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10096
10097 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10098
10099         maint.mk: Respect $(build_aux) in web-manual rule.
10100         * top/maint.mk (web-manual): Find gen-announce script in user's
10101         $(build_aux) directory instead of hard-coding 'build-aux'.
10102
10103 2011-10-19  Bruno Haible  <bruno@clisp.org>
10104
10105         posix_openpt: Fix compilation error.
10106         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10107         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10108         Mention the openpty module as an alternative.
10109
10110 2011-10-19  Bruno Haible  <bruno@clisp.org>
10111
10112         Support for old NeXTstep 3.3 frexp().
10113         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10114         execution time of the test to 5 seconds.
10115         Reported by Daniel Richard G. <skunk@iskunk.org>.
10116
10117 2011-10-19  Bruno Haible  <bruno@clisp.org>
10118
10119         Support for old NeXTstep 3.3 sed.
10120         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10121         part, use /.../, not \|...|. Escape periods in the header file name.
10122         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10123         Reported by Daniel Richard G. <skunk@iskunk.org>.
10124
10125 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10126
10127         Support for old NeXTstep 3.3 gcc.
10128         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10129         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10130         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10131         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10132         * lib/regex.h (_Restrict_arr_): Likewise.
10133         * lib/regex_internal.h (re_token_t): Likewise.
10134         * lib/regexec.c (check_node_accept_bytes): Likewise.
10135         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10136
10137 2011-10-18  Eric Blake  <eblake@redhat.com>
10138
10139         posix_openpt: new module
10140         * modules/posix_openpt: New module.
10141         * m4/posix_openpt.m4: New file.
10142         * lib/posix_openpt.c: Likewise.
10143         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10144         (gl_STDLIB_H_DEFAULTS): Set defaults.
10145         * modules/stdlib (Makefile.am): Substitute macros.
10146         * lib/stdlib.in.h (posix_openpt): Declare.
10147         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10148         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10149         * modules/posix_openpt-tests: New test module.
10150         * tests/test-posix_openpt.c: New test.
10151
10152 2011-10-15  Bruno Haible  <bruno@clisp.org>
10153
10154         xstrtoll: Fix compilation failure.
10155         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10156         from lib/strtol.c.
10157         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10158         some platforms.
10159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10160
10161 2011-10-15  Bruno Haible  <bruno@clisp.org>
10162
10163         vasnprintf: Optimize bit search operation.
10164         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10166         gl_DOUBLE_EXPONENT_LOCATION.
10167         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10168         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10169         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10170         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10171         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10172         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10173         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10174         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10175         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10176
10177 2011-10-15  Bruno Haible  <bruno@clisp.org>
10178
10179         vasnprintf: Fix comments.
10180         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10181
10182 2011-10-14  Bruno Haible  <bruno@clisp.org>
10183
10184         Tests for module 'integer_length_ll'.
10185         * modules/integer_length_ll-tests: New file.
10186         * tests/test-integer_length_ll.c: New file.
10187
10188         New module 'integer_length_ll'.
10189         * lib/integer_length_ll.c: New file.
10190         * modules/integer_length_ll: New file.
10191
10192 2011-10-14  Bruno Haible  <bruno@clisp.org>
10193
10194         Tests for module 'integer_length_l'.
10195         * modules/integer_length_l-tests: New file.
10196         * tests/test-integer_length_l.c: New file.
10197
10198         New module 'integer_length_l'.
10199         * lib/integer_length_l.c: New file.
10200         * modules/integer_length_l: New file.
10201
10202 2011-10-14  Bruno Haible  <bruno@clisp.org>
10203
10204         Tests for module 'integer_length'.
10205         * modules/integer_length-tests: New file.
10206         * tests/test-integer_length.c: New file.
10207
10208         New module 'integer_length'.
10209         * lib/integer_length.h: New file.
10210         * lib/integer_length.c: New file.
10211         * modules/integer_length: New file.
10212
10213 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10214
10215         popen: Fix dependency conditions.
10216         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10217
10218 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10219
10220         perror: Fix autoconf test.
10221         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10222         <stdlib.h> and <string.h>.
10223
10224 2011-10-14  Bruno Haible  <bruno@clisp.org>
10225
10226         ffsl: Optimize on 64-bit platforms.
10227         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10228         unrolling.
10229
10230 2011-10-13  Bruno Haible  <bruno@clisp.org>
10231
10232         ffsl: Optimize on 32-bit platforms.
10233         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10234         use ffs() without a loop.
10235
10236         ffsl, ffsll: Optimize for GCC.
10237         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10238         * lib/ffsl.c (GCC_BUILTIN): New macro.
10239         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10240
10241 2011-10-13  Bruno Haible  <bruno@clisp.org>
10242
10243         ffs, bcopy, memset: Support symbol renaming via config.h.
10244         * lib/ffs.c: Include <config.h>.
10245         * lib/bcopy.c: Likewise.
10246         * lib/memset.c: Likewise.
10247
10248 2011-10-10  Bruno Haible  <bruno@clisp.org>
10249
10250         atanl: Simplify for platforms where 'long double' == 'double'.
10251         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10252         alternative implementation.
10253         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10254         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10255         * modules/atanl (Depends-on): Add atan. Update conditions.
10256
10257 2011-10-10  Bruno Haible  <bruno@clisp.org>
10258
10259         acosl: Simplify for platforms where 'long double' == 'double'.
10260         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10261         alternative implementation.
10262         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10263         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10264         * modules/acosl (Depends-on): Add acos. Update conditions.
10265
10266 2011-10-10  Bruno Haible  <bruno@clisp.org>
10267
10268         asinl: Simplify for platforms where 'long double' == 'double'.
10269         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10270         alternative implementation.
10271         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10272         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10273         * modules/asinl (Depends-on): Add asin. Update conditions.
10274
10275 2011-10-10  Bruno Haible  <bruno@clisp.org>
10276
10277         tanl: Simplify for platforms where 'long double' == 'double'.
10278         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10279         implementation.
10280         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10281         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10282         * modules/tanl (Depends-on): Add tan. Update conditions.
10283         (configure.ac): Don't compile trigl.c if
10284         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10285
10286 2011-10-10  Bruno Haible  <bruno@clisp.org>
10287
10288         cosl: Simplify for platforms where 'long double' == 'double'.
10289         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10290         implementation.
10291         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10292         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10293         * modules/cosl (Depends-on): Add cos. Update conditions.
10294         (configure.ac): Don't compile sincosl.c and trigl.c if
10295         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10296
10297 2011-10-10  Bruno Haible  <bruno@clisp.org>
10298
10299         sinl: Simplify for platforms where 'long double' == 'double'.
10300         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10301         implementation.
10302         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10303         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10304         * modules/sinl (Depends-on): Add sin. Update conditions.
10305         (configure.ac): Don't compile sincosl.c and trigl.c if
10306         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10307
10308 2011-10-10  Bruno Haible  <bruno@clisp.org>
10309
10310         logl: Simplify for platforms where 'long double' == 'double'.
10311         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10312         implementation.
10313         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10314         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10315         * modules/logl (Depends-on): Add log. Update conditions.
10316
10317 2011-10-10  Bruno Haible  <bruno@clisp.org>
10318
10319         expl: Simplify for platforms where 'long double' == 'double'.
10320         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10321         implementation.
10322         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10323         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10324         * modules/expl (Depends-on): Add exp. Update conditions.
10325
10326 2011-10-10  Bruno Haible  <bruno@clisp.org>
10327
10328         sqrtl: Simplify for platforms where 'long double' == 'double'.
10329         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10330         alternative implementation.
10331         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10332         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10333         * modules/sqrtl (Depends-on): Update conditions.
10334
10335 2011-10-10  Bruno Haible  <bruno@clisp.org>
10336
10337         ldexpl: Simplify for platforms where 'long double' == 'double'.
10338         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10339         alternative implementation.
10340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10341         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10342         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10343
10344 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10345
10346         ffsll: set correct witness
10347         * modules/ffsll (configure.ac): Fix typo.
10348
10349 2011-10-10  Bruno Haible  <bruno@clisp.org>
10350
10351         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10352         * lib/printf-frexpl.c: Include <config.h>.
10353         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10354         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10355         second time.
10356         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10357         gl_LONG_DOUBLE_VS_DOUBLE.
10358         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10359         conditions.
10360
10361 2011-10-10  Bruno Haible  <bruno@clisp.org>
10362
10363         frexpl: Simplify for platforms where 'long double' == 'double'.
10364         * lib/frexpl.c: Include <config.h>.
10365         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10366         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10367         time.
10368         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10369         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10370         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10371         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10372         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10373         conditions.
10374
10375 2011-10-10  Jim Meyering  <meyering@redhat.com>
10376
10377         test-renameat: don't leave behind a temporary file
10378         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10379           ERROR: files left in build directory after distclean:
10380           ./gltests/test-renameat.too
10381           make[1]: *** [distcleancheck] Error 1
10382         Reported by Tom G. Christensen.
10383
10384 2011-10-09  Bruno Haible  <bruno@clisp.org>
10385
10386         rint: Determine RINT_LIBM correctly on AIX 7.
10387         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10388         directly, not only through a function pointer. Also accept an optional
10389         4th argument with extra code.
10390         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10391         rintf() call by gcc when optimizing.
10392
10393         mathfunc.m4: Refactor.
10394         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10395         m4 variable.
10396
10397 2011-10-09  Bruno Haible  <bruno@clisp.org>
10398
10399         rintl: Simplify for platforms where 'long double' == 'double'.
10400         * lib/rintl.c: Include <config.h>.
10401         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10402         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10403         time.
10404         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10405         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10406         * modules/rintl (Depends-on): Add rint. Update conditions.
10407
10408 2011-10-09  Bruno Haible  <bruno@clisp.org>
10409
10410         roundl: Simplify for platforms where 'long double' == 'double'.
10411         * lib/roundl.c: Include <config.h>.
10412         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10413         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10414         time.
10415         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10416         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10417         * modules/roundl (Depends-on): Add round. Update conditions.
10418
10419 2011-10-09  Bruno Haible  <bruno@clisp.org>
10420
10421         truncl: Simplify for platforms where 'long double' == 'double'.
10422         * lib/truncl.c: Include <config.h>.
10423         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10424         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10425         time.
10426         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10427         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10428         * modules/truncl (Depends-on): Add trunc. Update conditions.
10429
10430 2011-10-09  Bruno Haible  <bruno@clisp.org>
10431
10432         ceill: Simplify for platforms where 'long double' == 'double'.
10433         * lib/ceill.c: Include <config.h>.
10434         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10435         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10436         time.
10437         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10438         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10439         * modules/ceill (Depends-on): Add ceil. Update conditions.
10440
10441 2011-10-09  Bruno Haible  <bruno@clisp.org>
10442
10443         floorl: Simplify for platforms where 'long double' == 'double'.
10444         * lib/floorl.c: Include <config.h>.
10445         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10446         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10447         time.
10448         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10449         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10450         * modules/floorl (Depends-on): Add floor. Update conditions.
10451
10452 2011-10-09  Bruno Haible  <bruno@clisp.org>
10453
10454         rint: Fix ordering constraints.
10455         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10456         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10457         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10458
10459 2011-10-09  Bruno Haible  <bruno@clisp.org>
10460
10461         copysignl: Simplify for platforms where 'long double' == 'double'.
10462         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10463         alternative.
10464         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10465         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10466         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10467
10468 2011-10-09  Bruno Haible  <bruno@clisp.org>
10469
10470         Tests for module 'rintl'.
10471         * modules/rintl-tests: New file.
10472         * tests/test-rintl.c: New file.
10473
10474         New module 'rintl'.
10475         * lib/math.in.h (rintl): New declaration.
10476         * lib/rintl.c: New file.
10477         * m4/rintl.m4: New file.
10478         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10480         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10481         * modules/rintl: New file.
10482         * tests/test-math-c++.cc: Check the declaration of rintl.
10483         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10484         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10485         * doc/posix-functions/rintl.texi: Mention the new module.
10486
10487 2011-10-09  Bruno Haible  <bruno@clisp.org>
10488
10489         Tests for module 'rintf'.
10490         * modules/rintf-tests: New file.
10491         * tests/test-rintf.c: New file.
10492
10493         New module 'rintf'.
10494         * lib/math.in.h (rintf): New declaration.
10495         * lib/rintf.c: New file.
10496         * m4/rintf.m4: New file.
10497         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10499         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10500         * modules/rintf: New file.
10501         * tests/test-math-c++.cc: Check the declaration of rintf.
10502         * doc/posix-functions/rintf.texi: Mention the new module.
10503
10504 2011-10-09  Bruno Haible  <bruno@clisp.org>
10505
10506         rint: Support for MSVC.
10507         * lib/math.in.h (rint): New declaration.
10508         * lib/rint.c: New file.
10509         * m4/rint.m4: New file.
10510         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10512         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10513         * modules/rint (Description): Fix.
10514         (Files): Add lib/rint.c, m4/rint.m4.
10515         (Depends-on): Add math.
10516         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10517         gl_MATH_MODULE_INDICATOR.
10518         * tests/test-math-c++.cc: Check the declaration of rint.
10519         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10520         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10521         * doc/posix-functions/rint.texi: Mention the replacement provided by
10522         the module.
10523
10524         rint tests: More tests.
10525         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10526         minus-zero.h, infinity.h, nan.h.
10527         (main): Skip the test if the current rounding mode is not standard. Add
10528         tests for negative numbers, minus zero, infinity, NaN.
10529         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10530         tests/nan.h.
10531         (Depends-on): Add isnand-nolibm.
10532
10533 2011-10-09  Bruno Haible  <bruno@clisp.org>
10534
10535         Tests for module 'copysignl'.
10536         * modules/copysignl-tests: New file.
10537         * tests/test-copysignl.c: New file.
10538
10539         New module 'copysignl'.
10540         * lib/math.in.h (copysignl): New declaration.
10541         * lib/copysignl.c: New file.
10542         * m4/copysignl.m4: New file.
10543         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10545         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10546         HAVE_COPYSIGNL.
10547         * modules/copysignl: New file.
10548         * tests/test-math-c++.cc: Check the declaration of copysignl.
10549         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10550         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10551         * doc/posix-functions/copysignl.texi: Mention the new module.
10552
10553 2011-10-09  Bruno Haible  <bruno@clisp.org>
10554
10555         Tests for module 'copysignf'.
10556         * modules/copysignf-tests: New file.
10557         * tests/test-copysignf.c: New file.
10558
10559         New module 'copysignf'.
10560         * lib/math.in.h (copysignf): New declaration.
10561         * lib/copysignf.c: New file.
10562         * m4/copysignf.m4: New file.
10563         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10565         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10566         HAVE_COPYSIGNF.
10567         * modules/copysignf: New file.
10568         * tests/test-math-c++.cc: Check the declaration of copysignf.
10569         * doc/posix-functions/copysignf.texi: Mention the new module.
10570
10571 2011-10-09  Bruno Haible  <bruno@clisp.org>
10572
10573         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10574         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10575         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10576         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10577         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10578         gl_SIGNAL_H_DEFAULTS.
10579
10580 2011-10-09  Bruno Haible  <bruno@clisp.org>
10581
10582         poll: Make macro safer.
10583         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10584         ac_cv_header_poll_h is not set.
10585
10586 2011-10-09  Bruno Haible  <bruno@clisp.org>
10587
10588         copysign: Provide replacement.
10589         * lib/math.in.h (copysign): New declaration.
10590         * lib/copysign.c: New file.
10591         * m4/copysign.m4: New file.
10592         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10594         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10595         HAVE_COPYSIGN.
10596         * modules/copysign (Description): Clarify.
10597         (Files): Add lib/copysign.c, m4/copysign.m4.
10598         (Depends-on): Add math, signbit.
10599         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10600         gl_MATH_MODULE_INDICATOR.
10601         * tests/test-math-c++.cc: Check the declaration of copysign.
10602         * doc/posix-functions/copysign.texi: Mention the effects of the module
10603         on Minix and MSVC.
10604
10605 2011-10-09  Bruno Haible  <bruno@clisp.org>
10606
10607         isinf: Ensure macro on AIX 5.1.
10608         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10609         macro.
10610         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10611
10612 2011-10-09  Bruno Haible  <bruno@clisp.org>
10613
10614         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10615         * modules/snprintf-posix-tests (configure.ac): Require
10616         gl_LONG_DOUBLE_VS_DOUBLE.
10617         * modules/sprintf-posix-tests (configure.ac): Likewise.
10618         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10619         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10620         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10621         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10622         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10623         tests on platforms where 'long double' is the same as 'double'.
10624         * tests/test-sprintf-posix.h (test_function): Likewise.
10625         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10626         * tests/test-vasprintf-posix.c (test_function): Likewise.
10627
10628         *printf: Fix for platforms where 'long double' == 'double'.
10629         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10630         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10631         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10632         * modules/fprintf-posix (Files): Likewise.
10633         * modules/obstack-printf-posix (Files): Likewise.
10634         * modules/snprintf-posix (Files): Likewise.
10635         * modules/sprintf-posix (Files): Likewise.
10636         * modules/vasnprintf (Files): Likewise.
10637         * modules/vasnprintf-posix (Files): Likewise.
10638         * modules/vasprintf-posix (Files): Likewise.
10639         * modules/vdprintf-posix (Files): Likewise.
10640         * modules/vfprintf-posix (Files): Likewise.
10641         * modules/vsnprintf-posix (Files): Likewise.
10642         * modules/vsprintf-posix (Files): Likewise.
10643         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10644         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10645         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10646         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10647         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10648         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10649         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10650
10651         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10652         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10653         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10654         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10655         'long double'.
10656         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10657
10658         isinf: Fix for platforms where 'long double' == 'double'.
10659         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10660         Don't blindly assume 80-bit 'long double'.
10661
10662         isfinite: Fix for platforms where 'long double' == 'double'.
10663         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10664         Don't blindly assume 80-bit 'long double'.
10665
10666         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10667         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10668         * modules/isfinite-tests (configure.ac): Require
10669         gl_LONG_DOUBLE_VS_DOUBLE.
10670         * modules/isinf-tests (configure.ac): Likewise.
10671         * modules/isnan-tests (configure.ac): Likewise.
10672         * modules/isnanl-tests (configure.ac): Likewise.
10673         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10674         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10675         tests on platforms where 'long double' is the same as 'double'.
10676         * tests/test-isinf.c (test_isinfl): Likewise.
10677         * tests/test-isnan.c (test_long_double): Likewise.
10678         * tests/test-isnanl.h (main): Likewise.
10679
10680 2011-10-08  Bruno Haible  <bruno@clisp.org>
10681
10682         Tests for module 'tanhf'.
10683         * modules/tanhf-tests: New file.
10684         * tests/test-tanhf.c: New file.
10685
10686         New module 'tanhf'.
10687         * lib/math.in.h (tanhf): New declaration.
10688         * lib/tanhf.c: New file.
10689         * m4/tanhf.m4: New file.
10690         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10692         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10693         * modules/tanhf: New file.
10694         * tests/test-math-c++.cc: Check the declaration of tanhf.
10695         * doc/posix-functions/tanhf.texi: Mention the new module.
10696
10697         tanh: Use a .m4 file.
10698         * m4/tanh.m4: New file.
10699         * modules/tanh (Files): Add it.
10700         (configure.ac): Just invoke gl_FUNC_TANH.
10701
10702 2011-10-08  Bruno Haible  <bruno@clisp.org>
10703
10704         Tests for module 'coshf'.
10705         * modules/coshf-tests: New file.
10706         * tests/test-coshf.c: New file.
10707
10708         New module 'coshf'.
10709         * lib/math.in.h (coshf): New declaration.
10710         * lib/coshf.c: New file.
10711         * m4/coshf.m4: New file.
10712         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10714         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10715         * modules/coshf: New file.
10716         * tests/test-math-c++.cc: Check the declaration of coshf.
10717         * doc/posix-functions/coshf.texi: Mention the new module.
10718
10719         cosh: Use a .m4 file.
10720         * m4/cosh.m4: New file.
10721         * modules/cosh (Files): Add it.
10722         (configure.ac): Just invoke gl_FUNC_COSH.
10723
10724 2011-10-08  Bruno Haible  <bruno@clisp.org>
10725
10726         Tests for module 'sinhf'.
10727         * modules/sinhf-tests: New file.
10728         * tests/test-sinhf.c: New file.
10729
10730         New module 'sinhf'.
10731         * lib/math.in.h (sinhf): New declaration.
10732         * lib/sinhf.c: New file.
10733         * m4/sinhf.m4: New file.
10734         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10736         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10737         * modules/sinhf: New file.
10738         * tests/test-math-c++.cc: Check the declaration of sinhf.
10739         * doc/posix-functions/sinhf.texi: Mention the new module.
10740
10741         sinh: Use a .m4 file.
10742         * m4/sinh.m4: New file.
10743         * modules/sinh (Files): Add it.
10744         (configure.ac): Just invoke gl_FUNC_SINH.
10745
10746 2011-10-08  Bruno Haible  <bruno@clisp.org>
10747
10748         Tests for module 'atan2f'.
10749         * modules/atan2f-tests: New file.
10750         * tests/test-atan2f.c: New file.
10751
10752         New module 'atan2f'.
10753         * lib/math.in.h (atan2f): New declaration.
10754         * lib/atan2f.c: New file.
10755         * m4/atan2f.m4: New file.
10756         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10758         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10759         * modules/atan2f: New file.
10760         * tests/test-math-c++.cc: Check the declaration of atan2f.
10761         * doc/posix-functions/atan2f.texi: Mention the new module.
10762
10763         atan2: Use a .m4 file.
10764         * m4/atan2.m4: New file.
10765         * modules/atan2 (Files): Add it.
10766         (configure.ac): Just invoke gl_FUNC_ATAN2.
10767
10768 2011-10-08  Bruno Haible  <bruno@clisp.org>
10769
10770         Tests for module 'atanf'.
10771         * modules/atanf-tests: New file.
10772         * tests/test-atanf.c: New file.
10773
10774         New module 'atanf'.
10775         * lib/math.in.h (atanf): New declaration.
10776         * lib/atanf.c: New file.
10777         * m4/atanf.m4: New file.
10778         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10780         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10781         * modules/atanf: New file.
10782         * tests/test-math-c++.cc: Check the declaration of atanf.
10783         * doc/posix-functions/atanf.texi: Mention the new module.
10784
10785         atan: Use a .m4 file.
10786         * m4/atan.m4: New file.
10787         * modules/atan (Files): Add it.
10788         (configure.ac): Just invoke gl_FUNC_ATAN.
10789
10790 2011-10-08  Bruno Haible  <bruno@clisp.org>
10791
10792         Tests for module 'acosf'.
10793         * modules/acosf-tests: New file.
10794         * tests/test-acosf.c: New file.
10795
10796         New module 'acosf'.
10797         * lib/math.in.h (acosf): New declaration.
10798         * lib/acosf.c: New file.
10799         * m4/acosf.m4: New file.
10800         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10802         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10803         * modules/acosf: New file.
10804         * tests/test-math-c++.cc: Check the declaration of acosf.
10805         * doc/posix-functions/acosf.texi: Mention the new module.
10806
10807         acos: Use a .m4 file.
10808         * m4/acos.m4: New file.
10809         * modules/acos (Files): Add it.
10810         (configure.ac): Just invoke gl_FUNC_ACOS.
10811
10812 2011-10-08  Bruno Haible  <bruno@clisp.org>
10813
10814         Tests for module 'asinf'.
10815         * modules/asinf-tests: New file.
10816         * tests/test-asinf.c: New file.
10817
10818         New module 'asinf'.
10819         * lib/math.in.h (asinf): New declaration.
10820         * lib/asinf.c: New file.
10821         * m4/asinf.m4: New file.
10822         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10824         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10825         * modules/asinf: New file.
10826         * tests/test-math-c++.cc: Check the declaration of asinf.
10827         * doc/posix-functions/asinf.texi: Mention the new module.
10828
10829         asin: Use a .m4 file.
10830         * m4/asin.m4: New file.
10831         * modules/asin (Files): Add it.
10832         (configure.ac): Just invoke gl_FUNC_ASIN.
10833
10834 2011-10-08  Bruno Haible  <bruno@clisp.org>
10835
10836         Tests for module 'tanf'.
10837         * modules/tanf-tests: New file.
10838         * tests/test-tanf.c: New file.
10839
10840         New module 'tanf'.
10841         * lib/math.in.h (tanf): New declaration.
10842         * lib/tanf.c: New file.
10843         * m4/tanf.m4: New file.
10844         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10846         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10847         * modules/tanf: New file.
10848         * tests/test-math-c++.cc: Check the declaration of tanf.
10849         * doc/posix-functions/tanf.texi: Mention the new module.
10850
10851         tan: Use a .m4 file.
10852         * m4/tan.m4: New file.
10853         * modules/tan (Files): Add it.
10854         (configure.ac): Just invoke gl_FUNC_TAN.
10855
10856 2011-10-08  Bruno Haible  <bruno@clisp.org>
10857
10858         Tests for module 'cosf'.
10859         * modules/cosf-tests: New file.
10860         * tests/test-cosf.c: New file.
10861
10862         New module 'cosf'.
10863         * lib/math.in.h (cosf): New declaration.
10864         * lib/cosf.c: New file.
10865         * m4/cosf.m4: New file.
10866         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10868         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10869         * modules/cosf: New file.
10870         * tests/test-math-c++.cc: Check the declaration of cosf.
10871         * doc/posix-functions/cosf.texi: Mention the new module.
10872
10873         cos: Use a .m4 file.
10874         * m4/cos.m4: New file.
10875         * modules/cos (Files): Add it.
10876         (configure.ac): Just invoke gl_FUNC_COS.
10877
10878 2011-10-08  Bruno Haible  <bruno@clisp.org>
10879
10880         Tests for module 'sinf'.
10881         * modules/sinf-tests: New file.
10882         * tests/test-sinf.c: New file.
10883
10884         New module 'sinf'.
10885         * lib/math.in.h (sinf): New declaration.
10886         * lib/sinf.c: New file.
10887         * m4/sinf.m4: New file.
10888         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10890         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10891         * modules/sinf: New file.
10892         * tests/test-math-c++.cc: Check the declaration of sinf.
10893         * doc/posix-functions/sinf.texi: Mention the new module.
10894
10895         sin: Use a .m4 file.
10896         * m4/sin.m4: New file.
10897         * modules/sin (Files): Add it.
10898         (configure.ac): Just invoke gl_FUNC_SIN.
10899
10900 2011-10-08  Bruno Haible  <bruno@clisp.org>
10901
10902         Tests for module 'powf'.
10903         * modules/powf-tests: New file.
10904         * tests/test-powf.c: New file.
10905
10906         New module 'powf'.
10907         * lib/math.in.h (powf): New declaration.
10908         * lib/powf.c: New file.
10909         * m4/powf.m4: New file.
10910         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10912         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10913         * modules/powf: New file.
10914         * tests/test-math-c++.cc: Check the declaration of powf.
10915         * doc/posix-functions/powf.texi: Mention the new module.
10916
10917         pow: Use a .m4 file.
10918         * m4/pow.m4: New file.
10919         * modules/pow (Files): Add it.
10920         (configure.ac): Just invoke gl_FUNC_POW.
10921
10922 2011-10-08  Bruno Haible  <bruno@clisp.org>
10923
10924         Tests for module 'log10f'.
10925         * modules/log10f-tests: New file.
10926         * tests/test-log10f.c: New file.
10927
10928         New module 'log10f'.
10929         * lib/math.in.h (log10f): New declaration.
10930         * lib/log10f.c: New file.
10931         * m4/log10f.m4: New file.
10932         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10934         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10935         * modules/log10f: New file.
10936         * tests/test-math-c++.cc: Check the declaration of log10f.
10937         * doc/posix-functions/log10f.texi: Mention the new module.
10938
10939         log10: Use a .m4 file.
10940         * m4/log10.m4: New file.
10941         * modules/log10 (Files): Add it.
10942         (configure.ac): Just invoke gl_FUNC_LOG10.
10943
10944 2011-10-08  Bruno Haible  <bruno@clisp.org>
10945
10946         Tests for module 'logf'.
10947         * modules/logf-tests: New file.
10948         * tests/test-logf.c: New file.
10949
10950         New module 'logf'.
10951         * lib/math.in.h (logf): New declaration.
10952         * lib/logf.c: New file.
10953         * m4/logf.m4: New file.
10954         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10955         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10956         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10957         * modules/logf: New file.
10958         * tests/test-math-c++.cc: Check the declaration of logf.
10959         * doc/posix-functions/logf.texi: Mention the new module.
10960
10961         log: Use a .m4 file.
10962         * m4/log.m4: New file.
10963         * modules/log (Files): Add it.
10964         (configure.ac): Just invoke gl_FUNC_LOG.
10965
10966 2011-10-08  Bruno Haible  <bruno@clisp.org>
10967
10968         Tests for module 'expf'.
10969         * modules/expf-tests: New file.
10970         * tests/test-expf.c: New file.
10971
10972         New module 'expf'.
10973         * lib/math.in.h (expf): New declaration.
10974         * lib/expf.c: New file.
10975         * m4/expf.m4: New file.
10976         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10978         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10979         * modules/expf: New file.
10980         * tests/test-math-c++.cc: Check the declaration of expf.
10981         * doc/posix-functions/expf.texi: Mention the new module.
10982
10983         exp: Use a .m4 file.
10984         * m4/exp.m4: New file.
10985         * modules/exp (Files): Add it.
10986         (configure.ac): Just invoke gl_FUNC_EXP.
10987
10988 2011-10-08  Bruno Haible  <bruno@clisp.org>
10989
10990         Tests for module 'sqrtf'.
10991         * modules/sqrtf-tests: New file.
10992         * tests/test-sqrtf.c: New file.
10993
10994         New module 'sqrtf'.
10995         * lib/math.in.h (sqrtf): New declaration.
10996         * lib/sqrtf.c: New file.
10997         * m4/sqrtf.m4: New file.
10998         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11000         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11001         * modules/sqrtf: New file.
11002         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11003         * doc/posix-functions/sqrtf.texi: Mention the new module.
11004
11005 2011-10-08  Bruno Haible  <bruno@clisp.org>
11006
11007         Tests: Avoid link failures w.r.t. libintl.
11008         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11009         $(LIBINTL).
11010         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11011         $(LIBINTL).
11012         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11013         against $(LIBINTL).
11014         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11015         $(LIBINTL).
11016         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11017         $(LIBINTL).
11018         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11019
11020 2011-10-08  Bruno Haible  <bruno@clisp.org>
11021
11022         pow tests: Defeat compiler optimizations.
11023         * tests/test-pow.c (main): Assign arguments to x and y before use.
11024
11025 2011-10-08  Bruno Haible  <bruno@clisp.org>
11026
11027         gnulib-tool: Improve last commit.
11028         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11029         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11030         ignore dependencies that are not among the modules list.
11031
11032 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11033
11034         gnulib-tool: don't follow dependencies to avoided modules
11035         This fixes a bug that is related to the previous one.
11036         * gnulib-tool (func_modules_transitive_closure)
11037         (func_emit_autoconf_snippets):
11038         Check whether a dependency is acceptable before using it.
11039         (--extract-dependencies): Report an error if --avoid is also used,
11040         since this combination of options is not yet supported.
11041
11042         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11043         Problem reported by Peter Dyballa in
11044         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11045         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11046         when echoing "$condition".
11047
11048 2011-10-07  Bruno Haible  <bruno@clisp.org>
11049
11050         Fix documentation about math functions on MacOS X.
11051         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11052         MacOS X 10.5.
11053         * doc/posix-functions/fdim.texi: Likewise.
11054         * doc/posix-functions/feclearexcept.texi: Likewise.
11055         * doc/posix-functions/fegetenv.texi: Likewise.
11056         * doc/posix-functions/fegetround.texi: Likewise.
11057         * doc/posix-functions/feholdexcept.texi: Likewise.
11058         * doc/posix-functions/feraiseexcept.texi: Likewise.
11059         * doc/posix-functions/fesetenv.texi: Likewise.
11060         * doc/posix-functions/fesetround.texi: Likewise.
11061         * doc/posix-functions/fetestexcept.texi: Likewise.
11062         * doc/posix-functions/feupdateenv.texi: Likewise.
11063         * doc/posix-functions/fmax.texi: Likewise.
11064         * doc/posix-functions/fmin.texi: Likewise.
11065         * doc/posix-functions/log2.texi: Likewise.
11066         * doc/posix-functions/modff.texi: Likewise.
11067         * doc/posix-functions/nan.texi: Likewise.
11068         * doc/posix-functions/nanf.texi: Likewise.
11069         * doc/posix-functions/nextafterf.texi: Likewise.
11070         * doc/posix-functions/remquo.texi: Likewise.
11071
11072 2011-10-07  Bruno Haible  <bruno@clisp.org>
11073
11074         modff: Drop assumption about library that defines modff.
11075         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11076         AC_CHECK_FUNCS.
11077         * modules/modff (Files): Add m4/mathfunc.m4.
11078
11079 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11080
11081         raise tests: Avoid a GCC warning.
11082         * tests/test-raise.c (handler): Use _Noreturn.
11083
11084 2011-10-07  Bruno Haible  <bruno@clisp.org>
11085
11086         Tests for module 'ldexpf'.
11087         * modules/ldexpf-tests: New file.
11088         * tests/test-ldexpf.c: New file.
11089
11090         New module 'ldexpf'.
11091         * lib/math.in.h (ldexpf): New declaration.
11092         * lib/ldexpf.c: New file.
11093         * m4/ldexpf.m4: New file.
11094         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11096         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11097         * modules/ldexpf: New file.
11098         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11099         * doc/posix-functions/ldexpf.texi: Mention the new module.
11100
11101 2011-10-06  Bruno Haible  <bruno@clisp.org>
11102
11103         frexpf: Work around problems on IRIX and mingw.
11104         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11106         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11107         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11108         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11109         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11110         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11111
11112 2011-10-06  Bruno Haible  <bruno@clisp.org>
11113
11114         fabsf: Drop assumption about library that defines fabsf.
11115         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11116         AC_CHECK_FUNCS.
11117         * modules/fabsf (Files): Add m4/mathfunc.m4.
11118
11119 2011-10-06  Bruno Haible  <bruno@clisp.org>
11120
11121         frexpf: Drop assumption about library that defines frexpf.
11122         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11123         'int *', 'float *', 'long double *', 'float', 'long double'.
11124         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11125         AC_CHECK_FUNCS.
11126         * modules/frexpf (Files): Add m4/mathfunc.m4.
11127
11128         Tests for module 'frexpf'.
11129         * modules/frexpf-tests: New file.
11130         * tests/test-frexpf.c: New file.
11131
11132         New module 'frexpf'.
11133         * lib/math.in.h (frexpf): New declaration.
11134         * lib/frexpf.c: New file.
11135         * m4/frexpf.m4: New file.
11136         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11138         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11139         * modules/frexpf: New file.
11140         * tests/test-math-c++.cc: Check the declaration of frexpf.
11141         * doc/posix-functions/frexpf.texi: Mention the new module.
11142
11143 2011-10-06  Bruno Haible  <bruno@clisp.org>
11144
11145         math: Sort function declarations of math.in.h.
11146         * lib/math.in.h (frexp, logb): Move declarations.
11147
11148 2011-10-05  Bruno Haible  <bruno@clisp.org>
11149
11150         Tests for module 'modff'.
11151         * modules/modff-tests: New file.
11152         * tests/test-modff.c: New file.
11153
11154         New module 'modff'.
11155         * lib/math.in.h (modff): New declaration.
11156         * lib/modff.c: New file.
11157         * m4/modff.m4: New file.
11158         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11160         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11161         * modules/modff: New file.
11162         * tests/test-math-c++.cc: Check the declaration of modff.
11163         * doc/posix-functions/modff.texi: Mention the new module.
11164
11165         modf tests: Make test sharper.
11166         * tests/test-modf.c (main): Strengthen upper bound.
11167
11168         modf: Use a .m4 file.
11169         * m4/modf.m4: New file.
11170         * modules/modf (Files): Add it.
11171         (configure.ac): Just invoke gl_FUNC_MODF.
11172
11173 2011-10-05  Bruno Haible  <bruno@clisp.org>
11174
11175         Tests for module 'fmodf'.
11176         * modules/fmodf-tests: New file.
11177         * tests/test-fmodf.c: New file.
11178
11179         New module 'fmodf'.
11180         * lib/math.in.h (fmodf): New declaration.
11181         * lib/fmodf.c: New file.
11182         * m4/fmodf.m4: New file.
11183         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11185         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11186         * modules/fmodf: New file.
11187         * tests/test-math-c++.cc: Check the declaration of fmodf.
11188         * doc/posix-functions/fmodf.texi: Mention the new module.
11189
11190         fmod: Use a .m4 file.
11191         * m4/fmod.m4: New file.
11192         * modules/fmod (Files): Add it.
11193         (configure.ac): Just invoke gl_FUNC_FMOD.
11194
11195 2011-10-05  Bruno Haible  <bruno@clisp.org>
11196
11197         Tests for module 'fabsf'.
11198         * modules/fabsf-tests: New file.
11199         * tests/test-fabsf.c: New file.
11200
11201         New module 'fabsf'.
11202         * lib/math.in.h (fabsf): New declaration.
11203         * lib/fabsf.c: New file.
11204         * m4/fabsf.m4: New file.
11205         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11207         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11208         * modules/fabsf: New file.
11209         * tests/test-math-c++.cc: Check the declaration of fabsf.
11210         * doc/posix-functions/fabsf.texi: Mention the new module.
11211
11212         fabs: Use a .m4 file.
11213         * m4/fabs.m4: New file.
11214         * modules/fabs (Files): Add it.
11215         (configure.ac): Just invoke gl_FUNC_FABS.
11216
11217 2011-10-05  Jim Meyering  <meyering@redhat.com>
11218
11219         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11220         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11221         ls -lL regression introduced in coreutils-8.12, it does so at the
11222         cost of an additional stat call in the common case.  Besides, now
11223         that the kernel change that prompted commit 95f7c57f has been reverted
11224         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11225         we have no use for commit 95f7c57f, "file-has-acl: use
11226         acl_extended_file_nofollow if available".
11227
11228 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11229
11230         file-has-acl: revert unintended change in behavior of ls -L
11231         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11232         derived from...
11233         (file_has_acl): ...code here.  Call it.
11234         This problem was introduced with 2011-07-22 commit 95f7c57f,
11235         "file-has-acl: use acl_extended_file_nofollow if available".
11236         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11237
11238 2011-10-03  Bruno Haible  <bruno@clisp.org>
11239
11240         poll: Avoid link errors on MSVC.
11241         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11242         * modules/poll (Depends-on): Add sockets.
11243         (Link): New section.
11244         * NEWS: Mention the change.
11245         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11246         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11247         $(LIB_POLL) instead of $(LIBSOCKET).
11248
11249 2011-10-03  Bruno Haible  <bruno@clisp.org>
11250
11251         sys_select tests: Fix link error on MSVC 9.
11252         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11253         with $(LIB_SELECT) instead of $(LIBSOCKET).
11254
11255 2011-10-03  Bruno Haible  <bruno@clisp.org>
11256
11257         sys_select: Fix compilation error on mingw.
11258         * lib/sys_select.in.h: On native Windows, include <io.h>.
11259
11260 2011-10-03  Bruno Haible  <bruno@clisp.org>
11261
11262         wmemset: Support for MSVC.
11263         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11264         whether wmemset() exists.
11265
11266 2011-10-03  Bruno Haible  <bruno@clisp.org>
11267
11268         wmemmove: Support for MSVC.
11269         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11270         whether wmemmove() exists.
11271
11272 2011-10-03  Bruno Haible  <bruno@clisp.org>
11273
11274         wmemcpy: Support for MSVC.
11275         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11276         whether wmemcpy() exists.
11277
11278 2011-10-03  Bruno Haible  <bruno@clisp.org>
11279
11280         wmemcmp: Support for MSVC.
11281         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11282         whether wmemcmp() exists.
11283
11284 2011-10-03  Bruno Haible  <bruno@clisp.org>
11285
11286         wmemchr: Support for MSVC.
11287         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11288         whether wmemchr() exists.
11289
11290 2011-10-03  Bruno Haible  <bruno@clisp.org>
11291
11292         glthread/*, strsignal: Support for MSVC.
11293         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11294         including <winsock.h> on MSVC 9.
11295         * lib/glthread/lock.h: Likewise.
11296         * lib/glthread/thread.h: Likewise.
11297         * lib/glthread/tls.h: Likewise.
11298         * lib/glthread/yield.h: Likewise.
11299         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11300         if HAVE_UNISTD_H is false.
11301         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11302
11303 2011-10-03  Bruno Haible  <bruno@clisp.org>
11304
11305         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11306         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11307         Set to 100000.
11308
11309 2011-10-03  Bruno Haible  <bruno@clisp.org>
11310
11311         acl: Fix specification.
11312         * lib/file-has-acl.c (file_has_acl): Fix specification.
11313
11314 2011-10-03  Bruno Haible  <bruno@clisp.org>
11315
11316         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11317         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11318         (compute_curr_prefix, shared_library_fullname,
11319         find_shared_library_fullname, get_shared_library_fullname, relocate):
11320         Use it together with PIC && INSTALLDIR.
11321         Reported by <jojelino@gmail.com>
11322         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11323
11324 2011-10-01  Jim Meyering  <meyering@redhat.com>
11325
11326         maint.mk: adjust a release-related rule not to require use of gzip
11327         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11328         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11329         projects that build only .tar.xz files.  Also fix an erroneous test.
11330
11331         test-linkat: don't leave behind a temporary file
11332         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11333         Otherwise, coreutils' "make distcheck" would fail with this:
11334           Only in /c/cu/tests/torture/coreutils/test/\
11335             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11336           make[2]: *** [my-distcheck] Error 1
11337
11338         float, math: add omitted file
11339         * lib/itold.c: Add file, required for yesterday's float change.
11340
11341 2011-10-01  Bruno Haible  <bruno@clisp.org>
11342
11343         isinf: Fix for OpenBSD/x86.
11344         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11345         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11346         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11347
11348 2011-10-01  Bruno Haible  <bruno@clisp.org>
11349
11350         isfinite: Fix syntax error in configure test.
11351         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11352
11353         isfinite: Fix typo.
11354         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11355         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11356
11357 2011-10-01  Bruno Haible  <bruno@clisp.org>
11358
11359         nonblocking tests: Fix test failure on Linux/IA-64.
11360         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11361         Set to 270000.
11362
11363 2011-10-01  Bruno Haible  <bruno@clisp.org>
11364
11365         mkfifoat tests: Fix a test failure on mingw.
11366         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11367         with error ENOSYS.
11368
11369 2011-09-30  Bruno Haible  <bruno@clisp.org>
11370
11371         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11372         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11373         'long double'. Set REPLACE_ITOLD.
11374         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11375         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11376         * lib/itold.c: New file.
11377         * modules/float (Files): Add lib/itold.c.
11378         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11379         (Makefile.am): Substitute REPLACE_ITOLD.
11380         * modules/math (Depends-on): Add float.
11381         (Makefile.am): Substitute REPLACE_ITOLD.
11382         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11383         * doc/posix-headers/math.texi: Likewise.
11384         * doc/posix-functions/logl.texi: Likewise.
11385
11386 2011-09-30  Bruno Haible  <bruno@clisp.org>
11387
11388         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11389         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11390         Set to 140000.
11391
11392 2011-09-30  Bruno Haible  <bruno@clisp.org>
11393
11394         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11395         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11396         invocation, say "right after AC_PROG_CC_STDC", not "right after
11397         AC_PROG_CC".
11398         Reported by Gary V. Vaughan <gary@gnu.org>.
11399
11400 2011-09-30  Bruno Haible  <bruno@clisp.org>
11401
11402         Centralize C99 requirement.
11403         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11404         * modules/stdarg (configure.ac-early): Invoke it instead of
11405         AC_PROG_CC_STDC.
11406         Reported by Gary V. Vaughan and Paul Eggert.
11407
11408 2011-09-29  Bruno Haible  <bruno@clisp.org>
11409
11410         float: Fix LDBL_MAX value on Linux/PowerPC.
11411         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11412         on Linux/PowerPC.
11413         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11414         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11415         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11416         platform.
11417         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11418
11419 2011-09-29  Bruno Haible  <bruno@clisp.org>
11420
11421         doc: Improve doc about gl_EARLY.
11422         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11423         AC_PROG_CC_STDC invocation.
11424         Reported by Gary V. Vaughan <gary@gnu.org>.
11425
11426 2011-09-28  Bruno Haible  <bruno@clisp.org>
11427
11428         fgetc, fputc, fread, fwrite tests: Fix link error.
11429         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11430         on non-MSVC platforms.
11431         * tests/test-fputc.c (main): Likewise.
11432         * tests/test-fread.c (main): Likewise.
11433         * tests/test-fwrite.c (main): Likewise.
11434         Reported by Jim Meyering.
11435
11436 2011-09-27  Bruno Haible  <bruno@clisp.org>
11437
11438         fputc, fwrite tests: Avoid test failure on MSVC.
11439         * tests/test-fgetc.c: Include msvc-inval.h.
11440         (main): Invoke gl_msvc_inval_ensure_handler.
11441         * tests/test-fputc.c: Include msvc-inval.h.
11442         (main): Invoke gl_msvc_inval_ensure_handler.
11443         * tests/test-fread.c: Include msvc-inval.h.
11444         (main): Invoke gl_msvc_inval_ensure_handler.
11445         * tests/test-fwrite.c: Include msvc-inval.h.
11446         (main): Invoke gl_msvc_inval_ensure_handler.
11447         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11448         * modules/fputc-tests (Depends-on): Likewise.
11449         * modules/fread-tests (Depends-on): Likewise.
11450         * modules/fwrite-tests (Depends-on): Likewise.
11451
11452 2011-09-27  Bruno Haible  <bruno@clisp.org>
11453
11454         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11455         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11456         (raise): Remove older, duplicated declaration.
11457         (_gl_raise_SIGPIPE): New declaration.
11458         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11459         (rpl_raise): Remove function.
11460         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11461         a gnulib-defined SIGPIPE here.
11462         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11463         'sigprocmask' has detected missing signal-blocking and the module
11464         'sigpipe' is enabled.
11465         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11466
11467 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11468
11469         base64-tests: avoid memory leak
11470         * tests/test-base64.c (main): Plug memory leak.
11471
11472         base32: new module
11473         * modules/base32: New module.
11474         * lib/base32.c: New file.
11475         * lib/base32.h: Likewise.
11476         * m4/base32.m4: Likewise.
11477         * modules/base32-tests: New test.
11478         * tests/test-base32.c: Likewise.
11479         * MODULES.html.sh (Misc): Mention it.
11480
11481 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11482
11483         gnulib: use more-standard license notice wording
11484         * gnulib-tool (func_emit_copyright_notice): When emitting a
11485         license notice into a file, use the standard wording as suggested
11486         by the current information for GNU maintainers, except say "file"
11487         rather than "program".  The new wording gives a license version
11488         number, which addresses an issue raised by Glenn Morris in
11489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11490         * m4/onceonly.m4: Use that same wording here, too.
11491
11492         dup2: minor simplification
11493         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11494         as lib/dup2.c no longer uses 'inline'.
11495
11496 2011-09-25  Bruno Haible  <bruno@clisp.org>
11497
11498         strings: Fix compilation error on MSVC.
11499         * lib/strings.in.h: Include <stddef.h> for size_t.
11500
11501 2011-09-25  Bruno Haible  <bruno@clisp.org>
11502
11503         fflush et al.: Document limitation on MSVC.
11504         * doc/posix-functions/fflush.texi: Document possible crash in handling
11505         mode other than DEFAULT_HANDLING.
11506         * doc/posix-functions/fgetc.texi: Likewise.
11507         * doc/posix-functions/fputc.texi: Likewise.
11508         * doc/posix-functions/fread.texi: Likewise.
11509         * doc/posix-functions/fwrite.texi: Likewise.
11510
11511 2011-09-25  Bruno Haible  <bruno@clisp.org>
11512
11513         msvc-inval: Allow three invalid parameter handling modes.
11514         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11515         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11516         macros.
11517         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11518         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11519         SANE_LIBRARY_HANDLING as a no-op.
11520         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11521         <stdlib.h>.
11522         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11523
11524 2011-09-25  Bruno Haible  <bruno@clisp.org>
11525
11526         msvc-inval: Make handler multithread-safe.
11527         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11528         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11529         declarations.
11530         (gl_msvc_inval_current): New declaration.
11531         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11532         Operate on the structure returned by gl_msvc_inval_current().
11533         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11534         Remove varaiables.
11535         (tls_index, tls_initialized): New variables.
11536         (not_per_thread): New variable.
11537         (gl_msvc_inval_current): New function.
11538         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11539         returned by gl_msvc_inval_current().
11540
11541 2011-09-25  Bruno Haible  <bruno@clisp.org>
11542
11543         msvc-inval: Install handler globally.
11544         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11545         !_MSC_VER.
11546         (gl_msvc_invalid_parameter_handler): Remove declaration.
11547         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11548         declarations.
11549         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11550         Install the handler globally, don't uninstall it.
11551         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11552         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11553         currently valid, call RaiseException instead.
11554         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11555         for !_MSC_VER.
11556
11557 2011-09-25  Bruno Haible  <bruno@clisp.org>
11558
11559         strerror_r-posix: Fix for MSVC 9.
11560         * lib/strerror_r.c (local_snprintf): New function.
11561         (snprintf): Define to local_snprintf, not to _snprintf.
11562
11563 2011-09-25  Bruno Haible  <bruno@clisp.org>
11564
11565         ftruncate: Support for MSVC 9.
11566         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11567         (chsize_nothrow): New function.
11568         (chsize): Redefine as a macro.
11569         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11570         * modules/ftruncate (Depends-on): Add msvc-inval.
11571
11572 2011-09-25  Bruno Haible  <bruno@clisp.org>
11573
11574         New module 'fstat'.
11575         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11576         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11577         * lib/fchdir.c (rpl_fstat): Remove function.
11578         * m4/fstat.m4: New file.
11579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11580         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11581         declared.
11582         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11583         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11584         * modules/fstat: New file.
11585         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11586         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11587         is set.
11588         * doc/posix-functions/fstat.texi: Mention the new module and the
11589         problem on MSVC.
11590         * NEWS: Mention the change.
11591         * modules/acl (Depends-on): Add fstat.
11592         * modules/chdir-safer (Depends-on): Likewise.
11593         * modules/chown (Depends-on): Likewise.
11594         * modules/copy-file (Depends-on): Likewise.
11595         * modules/fchdir (Depends-on): Likewise.
11596         * modules/fdopendir (Depends-on): Likewise.
11597         * modules/fopen (Depends-on): Likewise.
11598         * modules/fts (Depends-on): Likewise.
11599         * modules/getcwd (Depends-on): Likewise.
11600         * modules/isapipe (Depends-on): Likewise.
11601         * modules/linkat (Depends-on): Likewise.
11602         * modules/lseek (Depends-on): Likewise.
11603         * modules/mkdir-p (Depends-on): Likewise.
11604         * modules/open (Depends-on): Likewise.
11605         * modules/openat (Depends-on): Likewise.
11606         * modules/read-file (Depends-on): Likewise.
11607         * modules/renameat (Depends-on): Likewise.
11608         * modules/utimens (Depends-on): Likewise.
11609
11610 2011-09-25  Bruno Haible  <bruno@clisp.org>
11611
11612         linkat: Fix compilation on MSVC 9.
11613         * lib/linkat.c: Don't include <stdint.h>.
11614
11615 2011-09-25  Bruno Haible  <bruno@clisp.org>
11616
11617         fclose: Support for MSVC 9.
11618         * lib/fclose.c: Include msvc-inval.h.
11619         (fclose_nothrow): New function.
11620         (rpl_fclose): Use it.
11621         * modules/fclose (Depends-on): Add msvc-inval.
11622         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11623
11624 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11625
11626         dup2: minor simplifications
11627         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11628         that it's a performance win.
11629         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11630         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11631
11632 2011-09-24  Jim Meyering  <meyering@redhat.com>
11633
11634         test-futimens: avoid a warning from gcc -Wshadow
11635         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11636         to avoid a shadowing warning.
11637
11638 2011-09-24  Bruno Haible  <bruno@clisp.org>
11639
11640         fdopen: Support for MSVC 9.
11641         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11642         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11643         * lib/fdopen.c: Include msvc-inval.h.
11644         (fdopen_nothrow): New function.
11645         (rpl_fdopen): Use it.
11646         * modules/fdopen (Depends-on): Add msvc-inval.
11647         * modules/fclose-tests (Depends-on): Add fdopen.
11648         * modules/fflush-tests (Depends-on): Likewise.
11649         * modules/fgetc-tests (Depends-on): Likewise.
11650         * modules/fputc-tests (Depends-on): Likewise.
11651         * modules/fread-tests (Depends-on): Likewise.
11652         * modules/freopen-tests (Depends-on): Likewise.
11653         * modules/fseeko-tests (Depends-on): Likewise.
11654         * modules/ftello-tests (Depends-on): Likewise.
11655         * modules/fwrite-tests  (Depends-on): Likewise.
11656         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11657
11658 2011-09-24  Bruno Haible  <bruno@clisp.org>
11659
11660         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11661         * modules/fgetc-tests (Depends-on): Add unistd.
11662         * modules/fputc-tests (Depends-on): Likewise.
11663         * modules/fread-tests (Depends-on): Likewise.
11664         * modules/fwrite-tests (Depends-on): Likewise.
11665
11666 2011-09-24  Bruno Haible  <bruno@clisp.org>
11667
11668         dup: Simplify autoconf test.
11669         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11670         on gl_MSVC_INVAL's result.
11671
11672 2011-09-24  Bruno Haible  <bruno@clisp.org>
11673
11674         Tests for function fwrite().
11675         * modules/fwrite-tests: New file.
11676         * tests/test-fwrite.c: New file.
11677         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11678
11679         Tests for function fread().
11680         * modules/fread-tests: New file.
11681         * tests/test-fread.c: New file.
11682         * modules/stdio-tests (Depends-on): Add fread-tests.
11683
11684         Activate fputc tests.
11685         * modules/stdio-tests (Depends-on): Add fputc-tests.
11686
11687         Enhance fgetc, fputc tests.
11688         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11689         * tests/test-fputc.c (main): Likewise.
11690
11691 2011-09-24  Bruno Haible  <bruno@clisp.org>
11692
11693         write: Support for MSVC 9.
11694         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11695         is not 1.
11696         * lib/write.c (write_nothrow): New function.
11697         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11698         not 1. Use write_nothrow.
11699         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11700         invalid parameter handler.
11701         (gl_PREREQ_WRITE): New macro.
11702         * modules/write (Depends-on): Add msvc-inval.
11703         (configure.ac): Invoke gl_PREREQ_WRITE.
11704         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11705
11706 2011-09-24  Bruno Haible  <bruno@clisp.org>
11707
11708         read: Fix last commit.
11709         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11710
11711 2011-09-24  Bruno Haible  <bruno@clisp.org>
11712
11713         dup2: Fix last commit.
11714         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11715         (rpl_dup2): Disable fcntl workaround on native Windows.
11716
11717         sigprocmask: Make code safer.
11718         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11719         section that changes macro definitions for this compilation unit.
11720
11721 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11722
11723         dup2: clarify by coalescing Windows-specific material
11724         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11725         "msvc-nothrow.h"' to the Windows-specific section, so that the
11726         Emacs source need not contain these include files.
11727         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11728         Windows-specific fixes into this function rather than just the
11729         nothrow fix, as this shortens and clarifies the code.  Always
11730         define as a function, as that's a bit cleaner than having it be
11731         sometimes a function and sometimes a macro.
11732         (rpl_dup2): Move the Windows-specific stuff out of here and into
11733         ms_windows_dup2.  Don't protect the Haiku-related fix with
11734         "#if !defined __linux__", as the same code also works around
11735         a Linux kernel bug, and it doesn't add any system calls on any
11736         platform.  Add comment about FreeBSD 6.1.
11737
11738         sigprocmask: move #include directive
11739         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11740         Windows-specific section, so that the Emacs source need not
11741         contain msvc-inval.h.
11742
11743 2011-09-23  Bruno Haible  <bruno@clisp.org>
11744
11745         read: Support for MSVC 9.
11746         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11747         is not 1.
11748         * lib/read.c (read_nothrow): New function.
11749         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11750         read_nothrow.
11751         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11752         invalid parameter handler.
11753         (gl_PREREQ_READ): New macro.
11754         * modules/read (Depends-on): Add msvc-inval.
11755         (configure.ac): Invoke gl_PREREQ_READ.
11756         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11757
11758 2011-09-23  Bruno Haible  <bruno@clisp.org>
11759
11760         close: Support for MSVC 9.
11761         * lib/close.c: Include <errno.h>, msvc-inval.h.
11762         (close_nothrow): New function.
11763         (rpl_close): Use it.
11764         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11765         invalid parameter handler.
11766         * modules/close (Depends-on): Add msvc-inval.
11767         * modules/dup2-tests (Depends-on): Add close.
11768         * modules/dup3-tests (Depends-on): Likewise.
11769         * modules/fcntl-tests (Depends-on): Likewise.
11770         * modules/spawn-pipe-tests (Depends-on): Likewise.
11771         * modules/unistd-safer-tests (Depends-on): Likewise.
11772         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11773
11774 2011-09-23  Bruno Haible  <bruno@clisp.org>
11775
11776         New module 'dup'.
11777         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11778         Allow replacement.
11779         * lib/dup.c: New file.
11780         * lib/fchdir.c (rpl_dup): Remove function.
11781         * m4/dup.m4: New file.
11782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11783         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11784         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11785         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11786         * modules/dup: New file.
11787         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11788         'dup' module is in use.
11789         * modules/fdopendir (Depends-on): Add dup.
11790         * modules/fdutimensat-tests (Depends-on): Likewise.
11791         * modules/fts (Depends-on): Likewise.
11792         * modules/futimens-tests (Depends-on): Likewise.
11793         * modules/posix_spawnp-tests (Depends-on): Likewise.
11794         * modules/unistd-safer-tests (Depends-on): Likewise.
11795         * modules/utimens-tests (Depends-on): Likewise.
11796         * doc/posix-functions/dup.texi: Mention the new module and the problem
11797         on MSVC.
11798
11799 2011-09-23  Bruno Haible  <bruno@clisp.org>
11800
11801         getdtablesize: Support for MSVC 9.
11802         * lib/getdtablesize.c: Include msvc-inval.h.
11803         (_setmaxstdio_nothrow): New function.
11804         (_setmaxstdio): Redefine it.
11805         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11806         * modules/getdtablesize (Depends-on): Add msvc-inval.
11807         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11808
11809 2011-09-23  Bruno Haible  <bruno@clisp.org>
11810
11811         signal-h: Rename from signal.
11812         * modules/signal-h: Renamed from modules/signal.
11813         * modules/pthread_sigmask (Depends-on): Update.
11814         * modules/raise (Depends-on): Likewise.
11815         * modules/sigaction (Depends-on): Likewise.
11816         * modules/sigpipe (Depends-on): Likewise.
11817         * modules/sigprocmask (Depends-on): Likewise.
11818         * modules/sys_select (Depends-on): Likewise.
11819         * modules/signal-h-tests: Renamed from modules/signal-tests.
11820         (Files, Depends-on, Makefile.am): Update.
11821         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11822         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11823         (Files, Makefile.am): Update.
11824         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11825         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11826         * modules/signal: New placeholder file.
11827         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11828         * doc/posix-headers/signal.texi: Update.
11829         * NEWS: Mention the change.
11830
11831 2011-09-23  Bruno Haible  <bruno@clisp.org>
11832
11833         sigprocmask: Avoid crashes through signal() on MSVC 9.
11834         * lib/sigprocmask.c: Include msvc-inval.h.
11835         (signal_nothrow): New function.
11836         (signal): Redefine it.
11837         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11838         * modules/sigprocmask (Depends-on): Add msvc-inval.
11839         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11840
11841 2011-09-23  Bruno Haible  <bruno@clisp.org>
11842
11843         Tests for module 'raise'.
11844         * modules/raise-tests: New file.
11845         * tests/test-raise.c: New file.
11846
11847         raise: Support for MSVC.
11848         * lib/signal.in.h (raise): New declaration.
11849         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11850         for native Windows platforms.
11851         * m4/raise.m4: New file.
11852         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11853         HAVE_RAISE, REPLACE_RAISE.
11854         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11855         REPLACE_RAISE.
11856         * modules/raise (Status, Notice): Remove fields.
11857         (Files): Add m4/raise.m4.
11858         (Depends-on): Add signal, msvc-inval.
11859         (configure.ac): Use the common idioms.
11860         (Maintainer): Add me.
11861         * tests/test-signal-c++.cc: Check the signature of raise.
11862         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11863
11864 2011-09-23  Bruno Haible  <bruno@clisp.org>
11865
11866         pipe2: Fix compilation on pre-C99 compilers.
11867         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11868
11869 2011-09-23  Bruno Haible  <bruno@clisp.org>
11870
11871         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11872         * lib/msvc-nothrow.h: New file.
11873         * lib/msvc-nothrow.c: New file.
11874         * m4/msvc-nothrow.m4: New file.
11875         * modules/msvc-nothrow: New file.
11876         * lib/dup2.c: Include msvc-nothrow.h.
11877         (rpl_dup2): No need to protect _get_osfhandle call here.
11878         * lib/accept4.c: Include msvc-nothrow.h.
11879         * lib/error.c: Likewise.
11880         * lib/fcntl.c: Likewise.
11881         * lib/lseek.c: Likewise.
11882         * lib/nonblocking.c: Likewise.
11883         * lib/poll.c: Likewise.
11884         * lib/read.c: Likewise.
11885         * lib/select.c: Likewise.
11886         * lib/sockets.h: Likewise.
11887         * lib/sockets.c: Likewise.
11888         * lib/stdio-read.c: Likewise.
11889         * lib/stdio-write.c: Likewise.
11890         * lib/write.c: Likewise.
11891         * lib/w32sock.h: Likewise.
11892         * lib/w32spawn.h: Likewise.
11893         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11894         * lib/fsync.c: Likewise.
11895         * lib/isapipe.c: Likewise.
11896         * modules/dup2 (Depends-on): Add msvc-nothrow.
11897         * modules/accept4 (Depends-on): Likewise.
11898         * modules/error (Depends-on): Likewise.
11899         * modules/fcntl (Depends-on): Likewise.
11900         * modules/lseek (Depends-on): Likewise.
11901         * modules/nonblocking (Depends-on): Likewise.
11902         * modules/poll (Depends-on): Likewise.
11903         * modules/read (Depends-on): Likewise.
11904         * modules/select (Depends-on): Likewise.
11905         * modules/sockets (Depends-on): Likewise.
11906         * modules/sigpipe (Depends-on): Likewise.
11907         * modules/write (Depends-on): Likewise.
11908         * modules/accept (Depends-on): Likewise.
11909         * modules/bind (Depends-on): Likewise.
11910         * modules/connect (Depends-on): Likewise.
11911         * modules/gethostname (Depends-on): Likewise.
11912         * modules/getpeername (Depends-on): Likewise.
11913         * modules/getsockname (Depends-on): Likewise.
11914         * modules/getsockopt (Depends-on): Likewise.
11915         * modules/ioctl (Depends-on): Likewise.
11916         * modules/listen (Depends-on): Likewise.
11917         * modules/recv (Depends-on): Likewise.
11918         * modules/recvfrom (Depends-on): Likewise.
11919         * modules/send (Depends-on): Likewise.
11920         * modules/sendto (Depends-on): Likewise.
11921         * modules/setsockopt (Depends-on): Likewise.
11922         * modules/shutdown (Depends-on): Likewise.
11923         * modules/socket (Depends-on): Likewise.
11924         * modules/execute (Depends-on): Likewise.
11925         * modules/spawn-pipe (Depends-on): Likewise.
11926         * modules/flock (Depends-on): Likewise.
11927         * modules/fsync (Depends-on): Likewise.
11928         * modules/isapipe (Depends-on): Likewise.
11929         * tests/test-cloexec.c: Include msvc-nothrow.h.
11930         * tests/test-dup-safer.c: Likewise.
11931         * tests/test-dup2.c: Likewise.
11932         * tests/test-dup3.c: Likewise.
11933         * tests/test-fcntl.c: Likewise.
11934         * tests/test-pipe.c: Likewise.
11935         * tests/test-pipe2.c: Likewise.
11936         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11937         * modules/unistd-safer-tests (Depends-on): Likewise.
11938         * modules/dup2-tests (Depends-on): Likewise.
11939         * modules/dup3-tests (Depends-on): Likewise.
11940         * modules/fcntl-tests (Depends-on): Likewise.
11941         * modules/pipe-posix-tests (Depends-on): Likewise.
11942         * modules/pipe2-tests (Depends-on): Likewise.
11943
11944 2011-09-23  Bruno Haible  <bruno@clisp.org>
11945
11946         dup2: Make code more maintainable.
11947         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11948         (rpl_dup2): Use it.
11949         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11950         * modules/dup2 (configure.ac): Invoke it.
11951         Reported by Paul Eggert.
11952
11953 2011-09-23  Bruno Haible  <bruno@clisp.org>
11954
11955         msvc-inval: Fix compilation error.
11956         * lib/msvc-inval.h: Include <excpt.h>.
11957
11958 2011-09-23  Bruno Haible  <bruno@clisp.org>
11959
11960         mkdir: Tweak for MSVC 9.
11961         * lib/sys_stat.in.h: Update comments.
11962         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11963
11964         Tests for module 'chdir'.
11965         * modules/chdir-tests: New file.
11966         * tests/test-chdir.c: New file.
11967
11968         New module 'chdir'.
11969         * modules/chdir: New file.
11970         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11971         (chdir): New declaration.
11972         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11973         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11974         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11975         * tests/test-unistd-c++.cc: Check signature of chdir.
11976         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11977         * modules/chdir-long (Depends-on): Add chdir.
11978         * modules/fchdir (Depends-on): Likewise.
11979         * modules/rename (Depends-on): Likewise.
11980         * modules/savewd (Depends-on): Likewise.
11981
11982         rmdir: Support for mingw, MSVC 9.
11983         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11984         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11985
11986         getcwd: Tweak for MSVC 9.
11987         * lib/unistd.in.h: Update comments.
11988         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11989
11990 2011-09-22  Bruno Haible  <bruno@clisp.org>
11991
11992         strerror_r-posix: Avoid a link error on MSVC.
11993         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11994         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11995
11996 2011-09-22  Bruno Haible  <bruno@clisp.org>
11997
11998         select: Avoid link errors on MSVC.
11999         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12000         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12001         * modules/pselect (Link): Likewise.
12002         * NEWS: Mention the change.
12003         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12004         test-select-stdin against $(LIB_SELECT).
12005         * modules/pselect-tests (Makefile.am): Link test-pselect against
12006         $(LIB_SELECT).
12007
12008 2011-09-22  Bruno Haible  <bruno@clisp.org>
12009
12010         select: Avoid compilation error on MSVC.
12011         * lib/select.c: Don't include <stdbool.h>.
12012
12013 2011-09-21  Bruno Haible  <bruno@clisp.org>
12014
12015         Consolidate all uses of PATH_MAX in *.m4 files.
12016         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12017         macros.
12018         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12019         and gl_PATHMAX_SNIPPET.
12020         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12021         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12022         * modules/chdir-long (Files): Add m4/pathmax.m4.
12023         * modules/getcwd (Files): Likewise.
12024
12025 2011-09-21  Bruno Haible  <bruno@clisp.org>
12026
12027         ftruncate: Un-deprecate, concentrate on Win32 support.
12028         * modules/ftruncate (Status, Notice): Remove sections.
12029         (Depends-on): Add largefile.
12030         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12031         non-mingw platforms.
12032         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12033         include <io.h>.
12034         * modules/perror-tests (Depends-on): Add ftruncate.
12035         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12036         'ftruncate' module.
12037
12038 2011-09-21  Bruno Haible  <bruno@clisp.org>
12039
12040         Add dependencies to new dirent related modules.
12041         * modules/opendir (Depends-on): Add closedir.
12042         * modules/getcwd (Depends-on): Add opendir, closedir.
12043         * modules/dirent-safer-tests (Depends-on): Likewise.
12044         * modules/fdopendir-tests (Depends-on): Likewise.
12045         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12046         * modules/renameat-tests (Depends-on): Likewise.
12047
12048 2011-09-21  Bruno Haible  <bruno@clisp.org>
12049
12050         opendir: Avoid compilation error on mingw.
12051         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12052         * modules/opendir (Depends-on): Add unistd.
12053
12054 2011-09-21  Bruno Haible  <bruno@clisp.org>
12055
12056         ftruncate tests: Avoid a test failure on mingw.
12057         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12058
12059 2011-09-21  Bruno Haible  <bruno@clisp.org>
12060
12061         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12062         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12063         native Windows.
12064
12065 2011-09-21  Bruno Haible  <bruno@clisp.org>
12066
12067         New module 'fdopen'.
12068         * lib/stdio.in.h (fdopen): New declaration.
12069         * lib/fdopen.c: New file.
12070         * m4/fdopen.m4: New file.
12071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12072         REPLACE_FDOPEN.
12073         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12074         REPLACE_FDOPEN.
12075         * modules/fdopen: New file.
12076         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12077         * tests/test-stdio-c++.cc: Check signature of fdopen.
12078         * doc/posix-functions/fdopen.texi: Mention the new module.
12079
12080 2011-09-21  Bruno Haible  <bruno@clisp.org>
12081
12082         unlockpt tests: Avoid test failure on NetBSD 5.1.
12083         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12084         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12085
12086 2011-09-21  Bruno Haible  <bruno@clisp.org>
12087
12088         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12089         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12090         * tests/test-getlogin_r.c (main): Likewise.
12091
12092 2011-09-20  Bruno Haible  <bruno@clisp.org>
12093
12094         time tests: Don't require pid_t.
12095         * doc/posix-headers/time.texi: Revert last change.
12096         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12097         * tests/test-time.c: Comment out the check for pid_t.
12098
12099 2011-09-20  Bruno Haible  <bruno@clisp.org>
12100
12101         fsync tests: Avoid a test failure on mingw.
12102         * tests/test-fsync.c (main): Allow a failure with EIO.
12103
12104 2011-09-20  Bruno Haible  <bruno@clisp.org>
12105
12106         euidaccess: Update comments.
12107         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12108
12109 2011-09-20  Bruno Haible  <bruno@clisp.org>
12110
12111         Ensure EBADF returns for socket functions on mingw.
12112         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12113         descriptor is invalid.
12114         * lib/bind.c (rpl_bind): Likewise.
12115         * lib/connect.c (rpl_connect): Likewise.
12116         * lib/getpeername.c (rpl_getpeername): Likewise.
12117         * lib/getsockname.c (rpl_getsockname): Likewise.
12118         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12119         * lib/listen.c (rpl_listen): Likewise.
12120         * lib/recv.c (rpl_recv): Likewise.
12121         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12122         * lib/send.c (rpl_send): Likewise.
12123         * lib/sendto.c (rpl_sendto): Likewise.
12124         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12125         * lib/shutdown.c (rpl_shutdown): Likewise.
12126
12127 2011-09-20  Bruno Haible  <bruno@clisp.org>
12128
12129         select tests: EBADF tests.
12130         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12131         test_bad_fd): New functions.
12132         (test_function): Invoke also test_bad_fd.
12133
12134 2011-09-20  Bruno Haible  <bruno@clisp.org>
12135
12136         Tests for module 'posix_spawn_file_actions_addopen.
12137         * modules/posix_spawn_file_actions_addopen-tests: New file.
12138         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12139
12140         Tests for module 'posix_spawn_file_actions_adddup2'.
12141         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12142         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12143
12144         Tests for module 'posix_spawn_file_actions_addclose'.
12145         * modules/posix_spawn_file_actions_addclose-tests: New file.
12146         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12147
12148 2011-09-20  Bruno Haible  <bruno@clisp.org>
12149
12150         Tests for module 'unlockpt'.
12151         * modules/unlockpt-tests: New file.
12152         * tests/test-unlockpt.c: New file.
12153         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12154
12155         Tests for module 'grantpt'.
12156         * modules/grantpt-tests: New file.
12157         * tests/test-grantpt.c: New file.
12158         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12159
12160 2011-09-20  Bruno Haible  <bruno@clisp.org>
12161
12162         freopen tests: EBADF tests.
12163         * tests/test-freopen.c: Include errno.h, unistd.h.
12164         (main): Add tests for EBADF, commented out for the moment.
12165
12166         fclose tests: EBADF tests.
12167         * tests/test-fclose.c (main): Add tests for EBADF.
12168
12169         fflush tests: EBADF tests.
12170         * tests/test-fflush.c: Include errno.h, macros.h.
12171         (main): Add tests for EBADF.
12172
12173         ftello tests: EBADF tests.
12174         * tests/test-ftello4.sh: New file.
12175         * tests/test-ftello4.c: New file.
12176         * modules/ftello-tests (Files): Add them.
12177         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12178
12179         fseeko tests: EBADF tests.
12180         * tests/test-fseeko4.sh: New file.
12181         * tests/test-fseeko4.c: New file.
12182         * modules/fseeko-tests (Files): Add them.
12183         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12184
12185         Tests for function fputc().
12186         * modules/fputc-tests: New file.
12187         * tests/test-fputc.c: New file.
12188         * modules/stdio-tests (Depends-on): Add fputc-tests.
12189
12190         Tests for function fgetc().
12191         * modules/fgetc-tests: New file.
12192         * tests/test-fgetc.c: New file.
12193         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12194
12195         Tests for function fdopen().
12196         * modules/fdopen-tests: New file.
12197         * tests/test-fdopen.c: New file.
12198         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12199
12200         Tests for module 'vdprintf'.
12201         * modules/vdprintf-tests: New file.
12202         * tests/test-vdprintf.c: New file.
12203
12204         Tests for module 'dprintf'.
12205         * modules/dprintf-tests: New file.
12206         * tests/test-dprintf.c: New file.
12207
12208 2011-09-20  Bruno Haible  <bruno@clisp.org>
12209
12210         Tests for module 'ioctl'.
12211         * modules/ioctl-tests: New file.
12212         * tests/test-ioctl.c: New file.
12213
12214 2011-09-20  Bruno Haible  <bruno@clisp.org>
12215
12216         fcntl tests: EBADF tests.
12217         * tests/test-fcntl.c (main): Add more tests for EBADF.
12218
12219 2011-09-20  Bruno Haible  <bruno@clisp.org>
12220
12221         utimensat tests: EBADF tests.
12222         * tests/test-utimensat.c (main): Add tests for EBADF.
12223
12224         renameat tests: EBADF tests.
12225         * tests/test-renameat.c (main): Add tests for EBADF.
12226
12227         mkfifoat tests: EBADF tests.
12228         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12229
12230         readlinkat tests: EBADF tests.
12231         * tests/test-readlinkat.c (main): Add tests for EBADF.
12232
12233         symlinkat tests: EBADF tests.
12234         * tests/test-symlinkat.c (main): Add tests for EBADF.
12235
12236         linkat tests: EBADF tests.
12237         * tests/test-linkat.c (main): Add tests for EBADF.
12238
12239         Tests for module 'faccessat'.
12240         * modules/faccessat-tests: New file.
12241         * tests/test-faccessat.c: New file.
12242
12243         fdopendir tests: EBADF tests.
12244         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12245
12246         openat tests: EBADF tests.
12247         * tests/test-fchownat.c (main): Add tests for EBADF.
12248         * tests/test-fstatat.c (main): Likewise.
12249         * tests/test-mkdirat.c (main): Likewise.
12250         * tests/test-openat.c (main): Likewise.
12251         * tests/test-unlinkat.c (main): Likewise.
12252         * tests/test-fchmodat.c: New file.
12253         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12254         (Makefile.am): Also run 'test-fchmodat'.
12255
12256 2011-09-20  Bruno Haible  <bruno@clisp.org>
12257
12258         utimens, futimens, fdutimensat tests: EBADF tests.
12259         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12260
12261         Tests for function fstat().
12262         * modules/fstat-tests: New file.
12263         * tests/test-fstat.c: New file.
12264         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12265
12266 2011-09-20  Bruno Haible  <bruno@clisp.org>
12267
12268         test-ttyname_r tests: EBADF tests.
12269         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12270
12271         Tests for module 'isatty'.
12272         * modules/isatty-tests: New file.
12273         * tests/test-isatty.c: New file.
12274
12275         Tests for module 'write'.
12276         * modules/write-tests: New file.
12277         * tests/test-write.c: New file.
12278
12279         Tests for module 'read'.
12280         * modules/read-tests: New file.
12281         * tests/test-read.c: New file.
12282
12283         pwrite tests: EBADF tests.
12284         * tests/test-pwrite.c (main): Add tests for EBADF.
12285
12286         pread tests: EBADF tests.
12287         * tests/test-pread.c (main): Add tests for EBADF.
12288
12289         lseek tests: EBADF tests.
12290         * tests/test-lseek.c (main): Add more tests for EBADF.
12291
12292         Tests for module 'ftruncate'.
12293         * modules/ftruncate-tests: New file.
12294         * tests/test-ftruncate.sh: New file.
12295         * tests/test-ftruncate.c: New file.
12296
12297         fsync tests: EBADF tests.
12298         * tests/test-fsync.c (main): Add more tests for EBADF.
12299
12300         fdatasync tests: EBADF tests.
12301         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12302
12303         Tests for module 'fchown'.
12304         * modules/fchown-tests: New file.
12305         * tests/test-fchown.c: New file.
12306
12307         Tests for module 'fchmod'.
12308         * modules/fchmod-tests: New file.
12309         * tests/test-fchmod.c: New file.
12310
12311         fchdir tests: EBADF tests.
12312         * tests/test-fchdir.c (main): Add more tests for EBADF.
12313
12314         dup2 tests: EBADF tests.
12315         * tests/test-dup2.c (main): Add more tests for EBADF.
12316
12317         Tests for module 'dup'.
12318         * modules/dup-tests: New file.
12319         * tests/test-dup.c: New file.
12320
12321         Tests for module 'close'.
12322         * modules/close-tests: New file.
12323         * tests/test-close.c: New file.
12324
12325 2011-09-20  Bruno Haible  <bruno@clisp.org>
12326
12327         Tests for module 'shutdown'.
12328         * modules/shutdown-tests: New file.
12329         * tests/test-shutdown.c: New file.
12330
12331         Tests for module 'setsockopt'.
12332         * modules/setsockopt-tests: New file.
12333         * tests/test-setsockopt.c: New file.
12334
12335         Tests for module 'sendto'.
12336         * modules/sendto-tests: New file.
12337         * tests/test-sendto.c: New file.
12338
12339         Tests for module 'send'.
12340         * modules/send-tests: New file.
12341         * tests/test-send.c: New file.
12342
12343         Tests for module 'recvfrom'.
12344         * modules/recvfrom-tests: New file.
12345         * tests/test-recvfrom.c: New file.
12346
12347         Tests for module 'recv'.
12348         * modules/recv-tests: New file.
12349         * tests/test-recv.c: New file.
12350
12351         Tests for module 'listen'.
12352         * modules/listen-tests: New file.
12353         * tests/test-listen.c: New file.
12354
12355         Tests for module 'getsockopt'.
12356         * modules/getsockopt-tests: New file.
12357         * tests/test-getsockopt.c: New file.
12358
12359         Tests for module 'getsockname'.
12360         * modules/getsockname-tests: New file.
12361         * tests/test-getsockname.c: New file.
12362
12363         Tests for module 'getpeername'.
12364         * modules/getpeername-tests: New file.
12365         * tests/test-getpeername.c: New file.
12366
12367         Tests for module 'connect'.
12368         * modules/connect-tests: New file.
12369         * tests/test-connect.c: New file.
12370
12371         Tests for module 'bind'.
12372         * modules/bind-tests: New file.
12373         * tests/test-bind.c: New file.
12374
12375         accept4 tests: Fix for native Windows.
12376         * tests/test-accept4.c: Include sockets.h.
12377         (main): Invoke gl_sockets_startup.
12378         * modules/accept4-tests (Depends-on): Add sockets.
12379
12380         accept tests: Fix for native Windows.
12381         * tests/test-accept.c: Include sockets.h.
12382         (main): Invoke gl_sockets_startup.
12383         * modules/accept-tests (Depends-on): Add sockets.
12384
12385 2011-09-19  Bruno Haible  <bruno@clisp.org>
12386
12387         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12388         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12389         do...while(0).
12390         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12391         Suggested by Paul Eggert.
12392
12393 2011-09-19  Bruno Haible  <bruno@clisp.org>
12394
12395         sched: Ensure pid_t is defined.
12396         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12397         not define pid_t.
12398         * lib/sched.in.h: Include <sys/types.h>.
12399         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12401
12402 2011-09-19  Bruno Haible  <bruno@clisp.org>
12403
12404         msvc-inval: Ensure the entire expansion is a single statement.
12405         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12406         of braces.
12407
12408 2011-09-19  Jim Meyering  <meyering@redhat.com>
12409
12410         tests: use printf, not echo in init.sh's warn_ function
12411         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12412         misbehave when given strings containing a backslash or starting
12413         with e.g., -n.  James Youngman suggested setting IFS.
12414
12415 2011-09-19  Eric Blake  <eblake@redhat.com>
12416
12417         futimens: enhance test
12418         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12419         closed non-negative fd.
12420
12421         date: accept 'hence' as opposite of 'ago'
12422         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12423         * tests/test-parse-datetime.c (main): Enhance test.
12424         Suggested by Jesse Wilson.
12425
12426 2011-09-19  Jim Meyering  <meyering@redhat.com>
12427
12428         getcwd: don't fail in a deep directory on a system without openat
12429         Before this change, getcwd would fail when called from a directory
12430         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12431         the non-openat implementation used "..", "../..", "../../..", etc.
12432         to access ancestor directories.  With too many, that string would
12433         be longer than PATH_MAX.
12434         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12435         using gnulib's openat replacement.
12436         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12437         we're using the replacement function.
12438
12439 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12440
12441         maint.mk: avoid warnings from perl about missing files
12442         * top/maint.mk (def_sym_regex): Ignore files listed in
12443         $(gl_other_headers_) that do not exist, say because a project
12444         does not use a corresponding module.
12445
12446 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12447
12448         stat: use pathmax.h only if needed
12449         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12450         This is better for Emacs, which does not have a mingw port and
12451         therefore can avoid the pathmax module.
12452
12453         utimens: remove dependency on dup2
12454         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12455         to work around the Linux kernel bug.
12456         * modules/utimens (Depends-on): Remove dup2.
12457
12458 2011-09-18  Bruno Haible  <bruno@clisp.org>
12459
12460         inet_ntop, inet_pton: Look for it also in libresolv.
12461         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12462         libnsl, search for it in libresolv.
12463         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12464         Needed on Solaris 7.
12465
12466 2011-09-18  Bruno Haible  <bruno@clisp.org>
12467
12468         accept, accept4 tests: Avoid link error on Solaris.
12469         * modules/accept-tests (Makefile.am): Link test-accept against
12470         $(LIBSOCKET).
12471         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12472         $(LIBSOCKET).
12473
12474         accept4: Avoid link error on Solaris.
12475         * modules/accept4 (Link): New section.
12476
12477         socket functions: Avoid link errors on Solaris.
12478         * modules/accept (Depends-on): Add socketlib.
12479         (Link): New section.
12480         * modules/bind (Depends-on): Add socketlib.
12481         (Link): New section.
12482         * modules/connect (Depends-on): Add socketlib.
12483         (Link): New section.
12484         * modules/getpeername (Depends-on): Add socketlib.
12485         (Link): New section.
12486         * modules/getsockname (Depends-on): Add socketlib.
12487         (Link): New section.
12488         * modules/getsockopt (Depends-on): Add socketlib.
12489         (Link): New section.
12490         * modules/listen (Depends-on): Add socketlib.
12491         (Link): New section.
12492         * modules/recv (Depends-on): Add socketlib.
12493         (Link): New section.
12494         * modules/recvfrom (Depends-on): Add socketlib.
12495         (Link): New section.
12496         * modules/send (Depends-on): Add socketlib.
12497         (Link): New section.
12498         * modules/sendto (Depends-on): Add socketlib.
12499         (Link): New section.
12500         * modules/setsockopt (Depends-on): Add socketlib.
12501         (Link): New section.
12502         * modules/shutdown (Depends-on): Add socketlib.
12503         (Link): New section.
12504         * modules/socket (Depends-on): Add socketlib.
12505         (Link): New section.
12506
12507 2011-09-18  Bruno Haible  <bruno@clisp.org>
12508
12509         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12510         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12511         than 5 seconds.
12512         * modules/ptsname-tests (configure.ac): Test for alarm.
12513
12514 2011-09-18  Bruno Haible  <bruno@clisp.org>
12515
12516         posix_spawn_file_actions_add*: Fix module dependencies.
12517         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12518         posix_spawn_file_actions_init.
12519         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12520         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12521
12522 2011-09-18  Bruno Haible  <bruno@clisp.org>
12523
12524         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12525         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12526         * tests/test-renameat.c (main): Likewise.
12527
12528 2011-09-18  Bruno Haible  <bruno@clisp.org>
12529
12530         Tests for module 'accept4'.
12531         * modules/accept4-tests: New file.
12532         * tests/test-accept4.c: New file.
12533
12534 2011-09-18  Bruno Haible  <bruno@clisp.org>
12535
12536         Tests for module 'accept'.
12537         * modules/accept-tests: New file.
12538         * tests/test-accept.c: New file.
12539
12540 2011-09-18  Bruno Haible  <bruno@clisp.org>
12541
12542         dup2: Support for MSVC.
12543         * lib/dup2.c: Include msvc-inval.h.
12544         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12545         _get_osfhandle calls.
12546         * modules/dup2 (Depends-on): Add msvc-inval.
12547         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12548
12549         New module 'msvc-inval'.
12550         * lib/msvc-inval.h: New file.
12551         * lib/msvc-inval.c: New file.
12552         * m4/msvc-inval.m4: New file.
12553         * modules/msvc-inval: New file.
12554
12555 2011-09-17  Bruno Haible  <bruno@clisp.org>
12556
12557         Tests for module 'pclose'.
12558         * modules/pclose-tests: New file.
12559
12560         New module 'pclose'.
12561         * lib/stdio.in.h (pclose): New declaration.
12562         * lib/pclose.c: New file.
12563         * m4/pclose.m4: New file.
12564         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12565         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12566         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12567         * modules/pclose: New file.
12568         * modules/popen-tests (Depends-on): Add pclose.
12569         * modules/popen-safer-tests (Depends-on): Likewise.
12570         * doc/posix-functions/pclose.texi: Mention the new module.
12571
12572 2011-09-17  Bruno Haible  <bruno@clisp.org>
12573
12574         popen: Support for MSVC.
12575         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12576         * lib/popen.c (popen): Provide alternate definition for native Windows.
12577         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12579         * modules/popen (Depends-on, configure.ac): Update condition.
12580         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12581         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12582         fixed.
12583
12584 2011-09-17  Bruno Haible  <bruno@clisp.org>
12585
12586         isnanl, isnand, isnanf: Work around MSVC bug.
12587         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12588
12589 2011-09-17  Bruno Haible  <bruno@clisp.org>
12590
12591         sys_socket tests: Fix recent mistake.
12592         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12593
12594 2011-09-17  Bruno Haible  <bruno@clisp.org>
12595
12596         putenv: Support for MSVC.
12597         * modules/putenv (Depends-on): Add environ.
12598         * lib/putenv.c (environ): Disable declaration.
12599         * lib/unistd.in.h: Update comment.
12600
12601 2011-09-17  Bruno Haible  <bruno@clisp.org>
12602
12603         math: Avoid macro redefinition warnings on MSVC.
12604         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12605         Undefine before redefining.
12606
12607 2011-09-17  Bruno Haible  <bruno@clisp.org>
12608
12609         doc: Mention functions which are declared as macros.
12610         * doc/posix-functions/*[fl].texi: Mention that some functions are
12611         defined as macros with arguments only.
12612
12613 2011-09-17  Bruno Haible  <bruno@clisp.org>
12614
12615         Add dependencies to new dirent related modules.
12616         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12617         * modules/fts (Depends-on): Likewise.
12618         * modules/glob (Depends-on): Likewise.
12619         * modules/savedir (Depends-on): Likewise.
12620         * modules/scandir (Depends-on): Likewise.
12621         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12622         * modules/fdopendir (Depends-on): Add opendir.
12623
12624 2011-09-17  Bruno Haible  <bruno@clisp.org>
12625
12626         inet_pton: Support for MSVC on Windows Vista or newer.
12627         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12628         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12629         HAVE_DECL_INET_PTON is defined.
12630         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12631         On platforms with <winsock2.h>, test whether inet_pton is declared in
12632         <ws2tcpip.h>. If so, arrange to replace it.
12633         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12634         REPLACE_INET_PTON.
12635         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12636         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12637         (Depends-on, configure.ac): Update condition.
12638         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12639
12640 2011-09-17  Bruno Haible  <bruno@clisp.org>
12641
12642         inet_ntop: Support for MSVC on Windows Vista or newer.
12643         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12644         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12645         HAVE_DECL_INET_NTOP is defined.
12646         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12647         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12648         <ws2tcpip.h>. If so, arrange to replace it.
12649         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12650         REPLACE_INET_NTOP.
12651         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12652         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12653         (Depends-on, configure.ac): Update condition.
12654         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12655
12656 2011-09-16  Eric Blake  <eblake@redhat.com>
12657
12658         test-fsync: yet another enhancement
12659         * tests/test-fsync.c (main): Also test behavior on read-only text
12660         file.
12661
12662 2011-09-16  Bruno Haible  <bruno@clisp.org>
12663
12664         Enhance fsync, fdatasync tests.
12665         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12666         * tests/test-fdatasync.c (main): Likewise.
12667
12668 2011-09-16  Bruno Haible  <bruno@clisp.org>
12669
12670         Support for MSVC compiler: Ensure mode_t gets defined.
12671         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12672         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12673         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12674         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12675         * tests/test-fcntl-h.c: Check that mode_t is defined.
12676         * tests/test-sys_stat.c: Likewise.
12677         * tests/test-sys_types.c: Likewise.
12678         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12679         * doc/posix-headers/sys_stat.texi: Likewise.
12680         * doc/posix-headers/sys_types.texi: Likewise.
12681
12682 2011-09-16  Bruno Haible  <bruno@clisp.org>
12683
12684         sys_stat: Support for MSVC.
12685         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12686         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12687         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12688         MSVC.
12689
12690 2011-09-16  Bruno Haible  <bruno@clisp.org>
12691
12692         Support for MSVC compiler: Ensure off_t gets defined.
12693         * lib/unistd.in.h: Include <sys/types.h>.
12694         * tests/test-fcntl-h.c: Check that off_t is defined.
12695         * tests/test-sys_stat.c: Likewise.
12696         * tests/test-sys_types.c: Likewise.
12697
12698 2011-09-16  Eric Blake  <eblake@redhat.com>
12699
12700         fdatasync: port to Solaris
12701         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12702         * modules/fdatasync (Link): Document it.
12703         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12704
12705         fdatasync: port to MacOS X 10.7
12706         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12707         declared.
12708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12709         * modules/unistd (Makefile.am): Substitute it.
12710         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12711         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12712
12713         fdatasync: minor improvements
12714         * modules/fdatasync (Depends-on): Add condition for fsync.
12715         * lib/fdatasync.c (fdatasync): Add comment.
12716         * tests/test-unistd-c++.cc: Test fdatasync.
12717
12718         unistd: update refs to newer POSIX
12719         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12720         Suggested by Bruno Haible.
12721
12722         fdatasync: new module
12723         * modules/fsync (Description): Document difference to fdatasync.
12724         * modules/fdatasync: New module.
12725         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12726         * lib/fdatasync.c (fdatasync): Likewise.
12727         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12728         defaults.
12729         * modules/unistd (Makefile.am): Set witnesses.
12730         * lib/unistd.in.h (fdatasync): Declare.
12731         * MODULES.html.sh: Document it.
12732         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12733         * modules/fdatasync-tests: New test.
12734         * tests/test-fdatasync.c: Likewise.
12735
12736 2011-09-16  Eric Blake  <eblake@redhat.com>
12737
12738         test-fsync: enhance tests
12739         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12740         * tests/test-fsync.c (main): Enhance test.
12741
12742 2011-09-15  Bruno Haible  <bruno@clisp.org>
12743
12744         Support for MSVC compiler: Ensure ssize_t gets defined.
12745         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12746         * doc/posix-headers/stdio.texi: Likewise.
12747         * modules/stdio (Depends-on): Add ssize_t.
12748         * modules/sys_socket (Depends-on): Likewise.
12749         * modules/sys_types (Depends-on): Likewise.
12750         * modules/sys_uio (Depends-on): Likewise.
12751         * modules/unistd (Depends-on): Likewise.
12752         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12753         * tests/test-sys_types.c: Check that ssize_t is defined.
12754
12755 2011-09-14  Bruno Haible  <bruno@clisp.org>
12756
12757         Avoid using #, the m4 comment starter character, near brackets.
12758         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12759         delimiter character in sed expressions.
12760         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12761         Suggested by Eric Blake.
12762
12763         Properly quote AC_CHECK_DECLS' 4th argument.
12764         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12765         argument.
12766         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12767         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12768         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12769         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12770         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12771         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12772         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12773         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12774         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12775         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12776         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12777         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12778         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12779         * m4/isinf.m4 (gl_ISINF): Likewise.
12780         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12781         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12782         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12783         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12784         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12785         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12786         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12787         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12788         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12789         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12790         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12791         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12793         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12795         Reported by Eric Blake.
12796
12797         Properly quote AC_CHECK_DECL's 4th argument.
12798         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12799         argument.
12800         * m4/argp.m4 (gl_ARGP): Likewise.
12801         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12802         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12803         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12804         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12805         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12806         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12807         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12808         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12809         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12810         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12811         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12812         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12813         Reported by Eric Blake.
12814
12815 2011-09-14  Eric Blake  <eblake@redhat.com>
12816
12817         opendir: avoid compile warning
12818         * lib/opendir.c (includes): Always include errno.h.
12819         Reported by Tatsuro MATSUOKA.
12820
12821 2011-09-14  Jim Meyering  <meyering@redhat.com>
12822
12823         maint.mk: sc_tight_scope: propagate failure from sub-make
12824         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12825         Reported by Martin von Gagern.
12826
12827 2011-09-13  Bruno Haible  <bruno@clisp.org>
12828
12829         tempname: Support for MSVC.
12830         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12831         MSVC.
12832         * modules/tempname (Depends-on): Add fcntl-h.
12833
12834 2011-09-13  Bruno Haible  <bruno@clisp.org>
12835
12836         sys_time: Support for MSVC.
12837         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12838         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12839         include <winsock2.h>.
12840         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12841         function declarations that collide with POSIX.
12842         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12843         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12844
12845 2011-09-13  Bruno Haible  <bruno@clisp.org>
12846
12847         stat: Support for MSVC.
12848         * lib/stat.c: Include pathmax.h.
12849         * modules/stat (Depends-on): Add pathmax.
12850
12851         pathmax: Support for native Windows.
12852         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12853
12854 2011-09-12  Bruno Haible  <bruno@clisp.org>
12855
12856         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12857         * lib/dirent.in.h (struct dirent): New type.
12858         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12859         DT_WHT): New macros.
12860         (DIR): New type.
12861         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12862         (readdir, rewinddir): New declarations.
12863         * lib/dirent-private.h: New file.
12864         * lib/opendir.c: New file.
12865         * lib/readdir.c: New file.
12866         * lib/rewinddir.c: New file.
12867         * lib/closedir.c: New file.
12868         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12869         * m4/opendir.m4: New file.
12870         * m4/readdir.m4: New file.
12871         * m4/rewinddir.m4: New file.
12872         * m4/closedir.m4: New file.
12873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12874         REPLACE_CLOSEDIR here.
12875         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12876         readdir, rewinddir are declared.
12877         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12878         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12879         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12880         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12881         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12882         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12883         * modules/opendir: New file.
12884         * modules/readdir: New file.
12885         * modules/rewinddir: New file.
12886         * modules/closedir: New file.
12887         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12888         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12889         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12890         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12891         * NEWS: Mention the 'fchdir' change.
12892
12893 2011-09-11  Bruno Haible  <bruno@clisp.org>
12894
12895         asm-underscore.m4: Support for MSVC.
12896         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12897         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12898
12899 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12900
12901         Doc about crypt functions.
12902         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12903         needing for _GNU_SOURCE to get crypt.
12904         * doc/posix-functions/encrypt.texi: Likewise.
12905         * doc/posix-functions/setkey.texi: Likewise.
12906
12907 2011-09-11  Bruno Haible  <bruno@clisp.org>
12908
12909         doc: Update regarding MSVC 9.
12910         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12911         tested".
12912         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12913         * doc/posix-headers/*.texi: Likewise.
12914         * doc/pastposix-functions/*.texi: Likewise.
12915         * doc/glibc-functions/*.texi: Likewise.
12916         * doc/glibc-headers/*.texi: Likewise.
12917
12918 2011-09-11  Bruno Haible  <bruno@clisp.org>
12919
12920         unistd et al.: Don't assume <unistd.h> exists.
12921         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12922         does not exist.
12923         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12924         exist. But include <stdlib.h>.
12925         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12926         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12927         symlink() does not exist.
12928         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12929         include <io.h> instead.
12930         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12931         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12932         include <direct.h> instead.
12933         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12934         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12935         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12936         <io.h> instead.
12937         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12938         correctly if the system does not have hard links.
12939         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12940         <direct.h> instead.
12941         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12942         it when looking for function declarations.
12943         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12944         <direct.h> and <io.h> instead.
12945         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12946
12947 2011-09-11  Bruno Haible  <bruno@clisp.org>
12948
12949         strcase: Support for MSVC.
12950         * modules/strcase (Status, Notice): Remove obsoletion mark.
12951         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12952         * doc/posix-functions/strncasecmp.texi: Likewise.
12953
12954         strings: Don't assume <strings.h> exists.
12955         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12956         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12957         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12958         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12959
12960 2011-09-11  Bruno Haible  <bruno@clisp.org>
12961
12962         dirent: Don't assume <dirent.h> exists.
12963         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12964         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12965         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12966         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12967
12968 2011-09-11  Bruno Haible  <bruno@clisp.org>
12969
12970         Fix wint_t on MSVC.
12971         * lib/wchar.in.h (wint_t): On MSVC, override it.
12972         * lib/wctype.in.h (wint_t): Likewise.
12973         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12974         MSVC.
12975         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12976         * doc/posix-headers/wctype.texi: Likewise.
12977
12978 2011-09-11  Bruno Haible  <bruno@clisp.org>
12979
12980         sys_types: Fix typo.
12981         * lib/sys_types.in.h: Fix typo in comment.
12982         Reported by Paul Eggert.
12983
12984         Support for MSVC compiler: Ensure size_t gets defined.
12985         * modules/strings (Depends-on): Add 'sys_types'.
12986         * modules/sys_uio (Depends-on): Likewise.
12987         * lib/sys_uio.in.h: Update comment.
12988
12989         C++ tests for module 'sys_types'.
12990         * modules/sys_types-c++-tests: New file.
12991         * tests/test-sys_types-c++.cc: New file.
12992
12993         Tests for module 'sys_types'.
12994         * modules/sys_types-tests: New file.
12995         * tests/test-sys_types.c: New file.
12996
12997         New module 'sys_types'.
12998         * lib/sys_types.in.h: New file.
12999         * m4/sys_types_h.m4: New file.
13000         * modules/sys_types: New file.
13001         * doc/posix-headers/sys_types.texi: Mention the new module and the
13002         size_t problem on MSVC 9.
13003
13004 2011-09-11  Bruno Haible  <bruno@clisp.org>
13005
13006         Support for MSVC compiler: Avoid division by a literal 0.
13007         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13008         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13009         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13010         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13011         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13012         * tests/infinity.h: New file.
13013         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13014         on MSVC.
13015         * tests/test-ceilf1.c: Include infinity.h.
13016         (main): Use Infinityf.
13017         * tests/test-ceil1.c: Include infinity.h.
13018         (main): Use Infinityd.
13019         * tests/test-ceill.c: Include infinity.h.
13020         (main): Use Infinityl.
13021         * tests/test-dprintf-posix.c: Include infinity.h.
13022         (test_function): Use Infinityd.
13023         * tests/test-floorf1.c: Include infinity.h.
13024         (main): Use Infinityf.
13025         * tests/test-floor1.c: Include infinity.h.
13026         (main): Use Infinityd.
13027         * tests/test-floorl.c: Include infinity.h.
13028         (main): Use Infinityl.
13029         * tests/test-fprintf-posix.c: Include infinity.h.
13030         (test_function): Use Infinityd.
13031         * tests/test-frexp.c: Include infinity.h.
13032         (main): Use Infinityd.
13033         * tests/test-frexpl.c: Include infinity.h.
13034         (main): Use Infinityl.
13035         * tests/test-isfinite.c: Include infinity.h.
13036         (test_isfinitef): Use Infinityf.
13037         (test_isfinited): Use Infinityd.
13038         (test_isfinitel): Use Infinityl.
13039         * tests/test-isinf.c: Include infinity.h.
13040         (test_isinff): Use Infinityf.
13041         (test_isinfd): Use Infinityd.
13042         (test_isinfl): Use Infinityl.
13043         * tests/test-isnan.c: Include infinity.h.
13044         (test_float): Use Infinityf.
13045         (test_double): Use Infinityd.
13046         (test_long_double): Use Infinityl.
13047         * tests/test-isnanf.h: Include infinity.h.
13048         (main): Use Infinityf.
13049         * tests/test-isnand.h: Include infinity.h.
13050         (main): Use Infinityd.
13051         * tests/test-isnanl.h: Include infinity.h.
13052         (main): Use Infinityl.
13053         * tests/test-ldexpl.c: Include infinity.h.
13054         (main): Use Infinityl.
13055         * tests/test-printf-posix.h: Include infinity.h.
13056         (test_function): Use Infinityd.
13057         * tests/test-roundf1.c: Include infinity.h.
13058         (main): Use Infinityf.
13059         * tests/test-round1.c: Include infinity.h.
13060         (main): Use Infinityd.
13061         * tests/test-roundl.c: Include infinity.h.
13062         (main): Use Infinityl.
13063         * tests/test-signbit.c: Include infinity.h.
13064         (test_signbitf): Use Infinityf.
13065         (test_signbitd): Use Infinityd.
13066         (test_signbitl): Use Infinityl.
13067         * tests/test-snprintf-posix.h: Include infinity.h.
13068         (test_function): Use Infinityd, Infinityl.
13069         * tests/test-sprintf-posix.h: Include infinity.h.
13070         (test_function): Use Infinityd, Infinityl.
13071         * tests/test-truncf1.c: Include infinity.h.
13072         (main): Use Infinityf.
13073         * tests/test-trunc1.c: Include infinity.h.
13074         (main): Use Infinityd.
13075         * tests/test-truncl.c: Include infinity.h.
13076         (main): Use Infinityl.
13077         * tests/test-vasnprintf-posix.c: Include infinity.h.
13078         (test_function): Use Infinityd, Infinityl.
13079         * tests/test-vasprintf-posix.c: Include infinity.h.
13080         (test_function): Use Infinityd, Infinityl.
13081         * modules/ceilf-tests (Files): Add tests/infinity.h.
13082         * modules/ceil-tests (Files): Likewise.
13083         * modules/ceill-tests (Files): Likewise.
13084         * modules/dprintf-posix-tests (Files): Likewise.
13085         * modules/floorf-tests (Files): Likewise.
13086         * modules/floor-tests (Files): Likewise.
13087         * modules/floorl-tests (Files): Likewise.
13088         * modules/fprintf-posix-tests (Files): Likewise.
13089         * modules/frexp-tests (Files): Likewise.
13090         * modules/frexp-nolibm-tests (Files): Likewise.
13091         * modules/frexpl-tests (Files): Likewise.
13092         * modules/frexpl-nolibm-tests (Files): Likewise.
13093         * modules/isfinite-tests (Files): Likewise.
13094         * modules/isinf-tests (Files): Likewise.
13095         * modules/isnan-tests (Files): Likewise.
13096         * modules/isnanf-tests (Files): Likewise.
13097         * modules/isnanf-nolibm-tests (Files): Likewise.
13098         * modules/isnand-tests (Files): Likewise.
13099         * modules/isnand-nolibm-tests (Files): Likewise.
13100         * modules/isnanl-tests (Files): Likewise.
13101         * modules/isnanl-nolibm-tests (Files): Likewise.
13102         * modules/ldexpl-tests (Files): Likewise.
13103         * modules/printf-posix-tests (Files): Likewise.
13104         * modules/roundf-tests (Files): Likewise.
13105         * modules/round-tests (Files): Likewise.
13106         * modules/roundl-tests (Files): Likewise.
13107         * modules/signbit-tests (Files): Likewise.
13108         * modules/snprintf-posix-tests (Files): Likewise.
13109         * modules/sprintf-posix-tests (Files): Likewise.
13110         * modules/truncf-tests (Files): Likewise.
13111         * modules/trunc-tests (Files): Likewise.
13112         * modules/truncl-tests (Files): Likewise.
13113         * modules/vasnprintf-posix-tests (Files): Likewise.
13114         * modules/vasprintf-posix-tests (Files): Likewise.
13115         * modules/vdprintf-posix-tests (Files): Likewise.
13116         * modules/vfprintf-posix-tests (Files): Likewise.
13117         * modules/vprintf-posix-tests (Files): Likewise.
13118         * modules/vsnprintf-posix-tests (Files): Likewise.
13119         * modules/vsprintf-posix-tests (Files): Likewise.
13120         * modules/xprintf-posix-tests (Files): Likewise.
13121
13122 2011-09-11  Bruno Haible  <bruno@clisp.org>
13123
13124         Ensure pid_t gets defined.
13125         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13126         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13127         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13128         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13129         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13130         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13131         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13132         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13133         * tests/test-fcntl-h.c: Check that pid_t is defined.
13134         * tests/test-sched.c: Likewise.
13135         * tests/test-termios.c: Likewise.
13136         * tests/test-time.c: Likewise.
13137         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13138         * doc/posix-headers/signal.texi: Likewise.
13139         * doc/posix-headers/sys_types.texi: Likewise.
13140         * doc/posix-headers/time.texi: Likewise.
13141
13142 2011-09-11  Bruno Haible  <bruno@clisp.org>
13143
13144         acl: Fix compilation on Solaris 10 (older version).
13145         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13146         of ACE_EVERYONE.
13147         * lib/set-mode-acl.c (qset_acl): Likewise.
13148         Reported by Christian Jullien <eligis@orange.fr>.
13149
13150 2011-09-10  Bruno Haible  <bruno@clisp.org>
13151
13152         iconv, unsetenv: Add support for MSVC compiler.
13153         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13154         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13155
13156 2011-09-10  Bruno Haible  <bruno@clisp.org>
13157
13158         *printf: Add support for MSVC compiler.
13159         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13160         handles the exception caused by the %n directive. When cross-compiling,
13161         guess no on native Windows.
13162         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13163         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13164         emulate it through vsnprintf.
13165         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13166         * doc/posix-functions/dprintf.texi: Update documentation regarding
13167         MSVC 9.
13168         * doc/posix-functions/fprintf.texi: Likewise.
13169         * doc/posix-functions/printf.texi: Likewise.
13170         * doc/posix-functions/snprintf.texi: Likewise.
13171         * doc/posix-functions/sprintf.texi: Likewise.
13172         * doc/posix-functions/swprintf.texi: Likewise.
13173         * doc/posix-functions/vdprintf.texi: Likewise.
13174         * doc/posix-functions/vfprintf.texi: Likewise.
13175         * doc/posix-functions/vprintf.texi: Likewise.
13176         * doc/posix-functions/vsnprintf.texi: Likewise.
13177         * doc/posix-functions/vsprintf.texi: Likewise.
13178         * doc/glibc-functions/asprintf.texi: Likewise.
13179         * doc/glibc-functions/obstack_printf.texi: Likewise.
13180         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13181         * doc/glibc-functions/vasprintf.texi: Likewise.
13182
13183 2011-09-10  Bruno Haible  <bruno@clisp.org>
13184
13185         nocrash: Add support for native Windows.
13186         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13187
13188 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13189             Bruno Haible  <bruno@clisp.org>
13190
13191         absolute-header, include-next: Add support for MSVC compiler.
13192         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13193         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13194         directory separator in #line directives.
13195         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13196         recognize also backslash as directory separator in #line directives.
13197
13198 2011-09-08  Jim Meyering  <meyering@redhat.com>
13199
13200         maint.mk: mark the post-release commit log with "maint: " prefix
13201         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13202         one-line commit-log summary.
13203
13204 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13205             Bruno Haible  <bruno@clisp.org>
13206
13207         Doc about crypt functions.
13208         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13209         systems.
13210         * doc/posix-functions/encrypt.texi: Likewise.
13211         * doc/posix-functions/setkey.texi: Likewise.
13212
13213 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13214
13215         * lib/gc.h: Fix copyright header.
13216
13217 2011-09-07  Bruno Haible  <bruno@clisp.org>
13218
13219         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13220         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13221         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13222
13223 2011-09-07  Bruno Haible  <bruno@clisp.org>
13224
13225         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13226         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13227         * lib/freopen.c: Likewise.
13228         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13229         * lib/lstat.c: Likewise.
13230         * lib/stat.c: Likewise.
13231         * lib/open.c: Use different syntax for include of <fcntl.h>.
13232         * lib/openat.c: Include fcntl.h again, explicitly.
13233
13234 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13235
13236         parse-datetime: document the newly accepted format
13237         * doc/parse-datetime.texi (Combined date and time of day items):
13238         New section.
13239
13240 2011-09-06  Bruno Haible  <bruno@clisp.org>
13241
13242         acl: Fix a test failure on newer Solaris 10 with ZFS.
13243         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13244         ENOSYS as no ACL.
13245         Reported by Jim Meyering.
13246
13247 2011-09-06  Bruno Haible  <bruno@clisp.org>
13248
13249         acl: Update for AIX >= 5.3 with NFS.
13250         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13251         ENOSYS as no ACL.
13252
13253         acl: Fix a test failure on AIX >= 5.3 with NFS.
13254         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13255         as no ACL.
13256
13257 2011-09-06  Bruno Haible  <bruno@clisp.org>
13258
13259         acl: Fix a test failure on IRIX 6.5 with NFS.
13260         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13261         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13262         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13263         * lib/copy-acl.c (qcopy_acl): Likewise.
13264
13265 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13266
13267         openat: port to AIX 7.1 with large files
13268         AIX 7.1 does a "#define openat open64at" if large files are in use,
13269         so we can't simply #undef openat.  Use the orig_openat trick (similar
13270         to orig_open in lib/open.c) to work around the problem.  Problem
13271         reported by Kevin Brott for GNU tar, in the thread containing
13272         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13273         * lib/openat.c (__need_system_fcntl_h): Define first.
13274         Include <fcntl.h> and <sys/types.h> before undefining.
13275         (orig_openat) [HAVE_OPENAT]: New inline function.
13276         (openat) [HAVE_OPENAT]: Do not undef.
13277         (rpl_openat): Use orig_openat, not openat.
13278
13279 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13280             Bruno Haible  <bruno@clisp.org>
13281
13282         acl: Avoid errors on NonStop Kernel.
13283         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13284         ENOTSUP errors.
13285
13286 2011-09-05  Bruno Haible  <bruno@clisp.org>
13287
13288         acl: Clean up Solaris code.
13289         * lib/acl-internal.h: Remove no-op #if.
13290         * lib/file-has-acl.c: Likewise.
13291         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13292         * lib/copy-acl.c (qcopy_acl): Likewise.
13293
13294 2011-09-05  Bruno Haible  <bruno@clisp.org>
13295
13296         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13297         binaries built on the original Solaris 10.
13298         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13299         trivial.
13300
13301 2011-09-05  Bruno Haible  <bruno@clisp.org>
13302
13303         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13304         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13305         10.
13306         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13307         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13308         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13309         instead of acl_get, facl_get, acl_set, facl_set.
13310
13311 2011-09-05  Bruno Haible  <bruno@clisp.org>
13312
13313         copy-file: Try unit tests on more file systems.
13314         * tests/test-copy-file-1.sh: New file.
13315         * tests/test-copy-file-2.sh: New file.
13316         * modules/copy-file-tests (Files): Add them.
13317         (Makefile.am): Add them to TESTS.
13318
13319         acl: Try unit tests on more file systems.
13320         * tests/test-file-has-acl-1.sh: New file.
13321         * tests/test-file-has-acl-2.sh: New file.
13322         * tests/test-set-mode-acl-1.sh: New file.
13323         * tests/test-set-mode-acl-2.sh: New file.
13324         * tests/test-copy-acl-1.sh: New file.
13325         * tests/test-copy-acl-2.sh: New file.
13326         * modules/acl-tests (Files): Add them.
13327         (Makefile.am): Add them to TESTS.
13328
13329 2011-09-04  Bruno Haible  <bruno@clisp.org>
13330
13331         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13332         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13333         10.
13334         (OLD_ALLOW, OLD_DENY): New macros.
13335         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13336         ACE_ACCESS_ALLOWED_ACE_TYPE.
13337         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13338         ACE_ACCESS_DENIED_ACE_TYPE.
13339         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13340         (NEW_ACE_EXECUTE): Fix value.
13341         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13342         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13343         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13344         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13345         NEW_ACE_SYNCHRONIZE): New macros.
13346         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13347         instead of acl_fromtext, acl_set, facl_set.
13348         Fixes a coreutils/tests/cp/perm failure.
13349
13350 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13351
13352         openat: test for fstatat (..., 0) bug
13353         Further testing with tar suggests that fstatat (..., 0)
13354         does not work in general, on AIX 7.1; see
13355         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13356         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13357         replacement fstatat (which is what older AIX releases were using
13358         anyway).
13359         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13360         use is now changed to orig_fstatat.  This was probably the right
13361         thing to do anyway.
13362         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13363         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13364         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13365         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13366         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13367         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13368         if the bug is found.
13369
13370         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13371         This tests for another fstatat bug on AIX 7.1:
13372         fstatat (AT_FDCWD, ..., 0) does not work.  See
13373         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13374         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13375         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13376         (rpl_fstatat): Adjust so that it works around either (or both)
13377         bugs if present.
13378         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13379
13380 2011-09-03  Karl Berry  <karl@gnu.org>
13381
13382         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13383         in index entries.
13384
13385 2011-09-02  Bruno Haible  <bruno@clisp.org>
13386
13387         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13388         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13389         values of AR, ARFLAGS, RANLIB.
13390         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13391
13392 2011-09-02  Bruno Haible  <bruno@clisp.org>
13393
13394         Find 'ar' program that fits with --host argument.
13395         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13396
13397 2011-09-02  Bruno Haible  <bruno@clisp.org>
13398
13399         tests: init.sh: Support any non-GNU diff.
13400         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13401         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13402         Solaris 8.
13403
13404 2011-09-02  Bruno Haible  <bruno@clisp.org>
13405
13406         tests: init.sh: work also with any non-GNU diff that supports -u
13407         * tests/init.sh: Relax check for diff -u support.
13408         Rather than checking for GNU diff via --version, simply check
13409         for support for -u itself.  Useful at least on OpenBSD 4.9,
13410         AIX 7.1, IRIX 6.5, and Solaris 10.
13411
13412 2011-09-01  Bruno Haible  <bruno@clisp.org>
13413
13414         strtoimax, strtoumax: Document problem on HP-UX 11.
13415         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13416         * doc/posix-functions/strtoumax.texi: Likewise.
13417
13418 2011-09-01  Bruno Haible  <bruno@clisp.org>
13419
13420         strtoumax: Avoid link error on OSF/1 with DTK cc.
13421         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13422         defined as a function.
13423         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13424         strtoumax is defined, not whether it is declared.
13425
13426 2011-09-01  Bruno Haible  <bruno@clisp.org>
13427
13428         strtoimax: Avoid link error on OSF/1 with DTK cc.
13429         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13430         defined as a function.
13431         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13432         strtoimax is defined, not whether it is declared.
13433
13434 2011-09-01  Bruno Haible  <bruno@clisp.org>
13435
13436         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13437         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13438         as a function.
13439         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13440         whether it is declared.
13441
13442 2011-09-01  Bruno Haible  <bruno@clisp.org>
13443
13444         imaxabs: Avoid link error on OSF/1 with DTK cc.
13445         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13446         as a function.
13447         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13448         whether it is declared.
13449
13450 2011-09-01  Bruno Haible  <bruno@clisp.org>
13451
13452         Tests for module 'strtoumax'.
13453         * modules/strtoumax-tests: New file.
13454         * tests/test-strtoumax.c: New file.
13455
13456         Tests for module 'strtoimax'.
13457         * modules/strtoimax-tests: New file.
13458         * tests/test-strtoimax.c: New file.
13459
13460         Tests for module 'imaxdiv'.
13461         * modules/imaxdiv-tests: New file.
13462         * tests/test-imaxdiv.c: New file.
13463
13464         Tests for module 'imaxabs'.
13465         * modules/imaxabs-tests: New file.
13466         * tests/test-imaxabs.c: New file.
13467
13468 2011-09-01  Bruno Haible  <bruno@clisp.org>
13469
13470         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13471         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13472         pthread_create.
13473
13474 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13475
13476         openat: work around AIX 7.1 fstatat issue
13477         This should fix the problem that was not properly fixed
13478         in the previous change, dated 2011-08-30.
13479         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13480         __need_system_stat_h defined.
13481         (orig_fstatat) [HAVE_FSTATAT]: New function.
13482         (rpl_fstatat): Go back to the old way of doing things,
13483         except call orig_fstatat instead of fstatat.
13484         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13485         Remove unnecessary check whether fstatat fills in st_size etc.
13486
13487 2011-09-01  Bruno Haible  <bruno@clisp.org>
13488
13489         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13490         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13491         just include the system's header.
13492
13493 2011-08-31  Jim Meyering  <meyering@redhat.com>
13494
13495         tests: avoid spurious assertion failure in test-float.c on ppc64
13496         * tests/test-float.c (test_long_double): Comment out an assertion,
13497         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13498         with gcc-4.4.4.
13499
13500         maint: indent with spaces, not TABs
13501         I need to get in the habit of running gnulib's "make check".
13502         Both of these would have been caught.
13503         * m4/largefile.m4: Indent with spaces, not TABs.
13504         * lib/parse-datetime.y (iso_8601_time): Likewise.
13505         Spotted by Pádraig Brady.
13506
13507         test-parse-datetime.c: accommodate a relatively strict gcc warning
13508         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13509         to avoid a warning from gcc's -Werror=missing-declarations.
13510         Insert a few spaces-before-funcall-parenthesis.
13511
13512 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13513
13514         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13515         The parser now accepts ISO 8601 date-time strings with "T" as the
13516         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13517         with a space between the date and time strings.  Now it also parses
13518         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13519         variants like "2004-02-29T16:21:42.333-07:00"
13520         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13521         of day representation using the 'T' separator character.
13522         * doc/parse-datetime.texi (General date syntax): replace use of
13523         deprecated --iso-8601 option with --rfc-3339 in example of date
13524         command output formats that can be parsed.
13525         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13526         lib/parse-datetime.y.
13527         (gmt_offset): New function.
13528         (main): Add additional test cases to validate ISO8601 extended
13529         date and time of day parsing.
13530
13531 2011-08-31  Bruno Haible  <bruno@clisp.org>
13532
13533         freopen: Documentation.
13534         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13535         name.
13536         Reported by Claudio Bley <claudio.bley@gmail.com>.
13537
13538 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13539
13540         freopen: Don't crash if the filename argument is NULL.
13541         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13542         NULL.
13543
13544 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13545
13546         openat: work around AIX 7.1 fstatat bug
13547         Problem reported by Kevin Brott for GNU tar, in the thread containing
13548         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13549         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13550         FSTATAT_ST_SIZE_ETC_BROKEN.
13551         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13552         rpl_fstatat.
13553         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13554         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13555         AC_CHECK_FUNCS_ONCE for fstatat.
13556         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13557         fchmodat, mkdirat, openat and unlinkat.
13558
13559 2011-08-30  Bruno Haible  <bruno@clisp.org>
13560
13561         Avoid endless recursions if config.h includes some header files.
13562         * lib/fopen.c (__need_FILE): Define already before including config.h.
13563         * lib/freopen.c (__need_FILE): Likewise.
13564         * lib/open.c (__need_system_fcntl_h): Likewise.
13565         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13566         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13567         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13568
13569 2011-08-25  Karl Berry  <karl@gnu.org>
13570
13571         * config/srclist.txt (ylwrap): new try.
13572         * build-aux/ylwrap: new file.
13573
13574 2011-08-23  Bruno Haible  <bruno@clisp.org>
13575
13576         tmpdir: Use a good default directory on native Windows.
13577         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13578         (P_tmpdir): Default to _P_tmpdir on native Windows.
13579         (path_search): On native Windows, try the value returned by GetTempPath
13580         before trying P_tmpdir.
13581         * modules/tmpdir (Depends-on): Add pathmax.
13582         Suggested by John Darrington <john@darrington.wattle.id.au>.
13583
13584 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13585
13586         doc: fix typo in README-release
13587         * top/README-release: Capitalize first word of a sentence.
13588
13589 2011-08-19  Jim Meyering  <meyering@redhat.com>
13590
13591         fts: do not exhaust memory when processing million-entry directories
13592         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13593         directory would require about 256*N bytes of memory.  Thus, it was
13594         easy to construct a directory too large to be processed by any of
13595         those tools.  With this change, fts' maximum memory utilization is
13596         now limited to around 30MB.
13597         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13598         (fts_read): When we've processed the final entry (i.e., when
13599         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13600         using the parent entry to read any remaining entries.  Dispatch
13601         depending on what fts_build returns:
13602         - NULL+stop, aka failure: stop
13603         - NULL otherwise: move up in the dir hierarchy
13604         - non-NULL: handle this new entry
13605         (fts_build): Declare and use new local, continue_readdir.
13606         Prepare to be called from fts_read, when the entries
13607         from a partially-read directory have just been exhausted.
13608         In that case, we'll skip the opendir and instead use the parent's
13609         fts_dirp and derive dir_fd from that.
13610         Finally, in the readdir loop, if we read max_entries entries,
13611         exit the loop ensuring *not* to call closedir.  This is required
13612         so that fts_dirp can be reused on a subsequent call.
13613         Prompted by Ben England's report of memory exhaustion in find
13614         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13615
13616         maint: fts: move decl of `dp' down into while loop; split a long line
13617         * lib/fts.c (fts_build): No semantic change.
13618
13619         fts: add/use new struct member, fts_dirp
13620         We are about to use this to manage any directory with
13621         too many entries to read all of them into memory at once.
13622         To do that, we'll need to save the DIR* pointer in each
13623         affected FTSENT struct.
13624         * lib/fts_.h: Include <dirent.h>.
13625         (struct FTSENT) [fts_dirp]: New member.
13626         * lib/fts.c (closedir_and_clear): Define.
13627         Use it in place of closedir so that we are sure to
13628         clear the new fts_dirp member when done with it.
13629         (fts_alloc): Initialize the new member.
13630         (fts_lfree): Free, if needed.
13631
13632         maint: fts: give __opendir2 a new parameter and rename
13633         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13634         than surreptitiously using sole caller's "dir_fd".
13635         (fts_opendir): Rename from __opendir2.
13636
13637         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13638         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13639
13640         maint: fts.c: correct off-by-one indentation
13641         * lib/fts.c (fts_build): Correct indentation, change style
13642         of a couple of block comments, and bracing style.
13643
13644         maint: fts.c: move __opendir2 #define "up" out of function body
13645         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13646
13647         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13648         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13649         out for a long time and besides was useful only on BSD systems.
13650
13651 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13652
13653         regex: port to Stratus OpenVOS
13654         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13655         define to empty, rather than attempting nonportable optimizations.
13656         Problem reported by Paul Green in:
13657         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13658         and fix suggested by Eric Blake in:
13659         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13660
13661 2011-08-17  Eric Blake  <eblake@redhat.com>
13662
13663         getcwd: fix test failures on mingw
13664         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13665         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13666         test if long directory cannot be created, and allow mingw errno.
13667
13668         getcwd-lgpl: fix m4 to match relaxed test for BSD
13669         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13670         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13671         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13672         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13673         signature problem.
13674
13675         getcwd: fix compilation on mingw64
13676         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13677         getcwd.
13678         Reported by Marc-André Lureau.
13679
13680         pipe2: silence compiler warning
13681         * lib/pipe2.c (pipe2): Hide label if it is not used.
13682
13683 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13684
13685         relocatable-prog: fix link error
13686         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13687         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13688         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13689         into modules/relocatable-lib without noticing that
13690         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13691         also needs to build relocatable.c.
13692
13693 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13694
13695         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13696         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13697         shell code: it contained a 'break' that was not in a loop.
13698         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13699         via a shell-language loop; this may have been true in old Autoconf
13700         versions, but it's not true in Autoconf 2.68.  I found this bug
13701         when testing coreutils git on Solaris 8, whose shell complains
13702         about the syntax error.
13703
13704 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13705
13706         * lib/base64.c: Fix comment to reference RFC 4648.
13707         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13708         <gvtulder@gmail.com>.
13709
13710 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13711
13712         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13713
13714         po/Makefile.in.in: fix make -q problem
13715         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13716         rule, since there's no file named 'check-macro-version' and its
13717         use as a file breaks make -q.
13718         (all): Don't depend on check-macro-version.
13719         (CHECK_MACRO_VERSION): New macro.
13720         (stamp-po): Use it.
13721
13722         configmake: fix make -q problem
13723         * modules/configmake (configmake.h): Update configmake.h's time stamp
13724         even if the file does not change.  Otherwise, 'make -q' fails.
13725         Problem reported by Simon Josefsson in
13726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13727
13728 2011-08-11  Jim Meyering  <meyering@redhat.com>
13729
13730         git-version-gen: correct the advice in a comment
13731         * build-aux/git-version-gen: Correct comment.
13732         Don't recommend to list .tarball-version in .gitignore.
13733
13734 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13735
13736         base64: fix off-by-one buffer size bug
13737         Problem and (trivial) fix reported by Gijs van Tulder in
13738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13739         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13740         * tests/test-base64.c (main): Catch the bug.
13741
13742 2011-08-10  Eric Blake  <eblake@redhat.com>
13743
13744         closein: correct comments
13745         * lib/closein.c (close_stdin): Improve comments.
13746
13747 2011-08-09  Bruno Haible  <bruno@clisp.org>
13748
13749         More tests for 'fseeko'.
13750         * tests/test-fseeko3.c: New file, from Eric Blake.
13751         * tests/test-fseeko3.sh: New file.
13752         * modules/fseeko-tests (Files): Add them.
13753         (TESTS): Add test-fseeko3.sh.
13754         (check_PROGRAMS): Add test-fseeko3.
13755
13756 2011-08-09  Eric Blake  <eblake@redhat.com>
13757
13758         fseeko: remove unneeded hack
13759         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13760
13761         fseeko: fix bug on glibc
13762         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13763         Reported by John W. Eaton.
13764
13765 2011-08-08  Bruno Haible  <bruno@clisp.org>
13766
13767         unictype/base: Fix interoperability with preinstalled libunistring.
13768         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13769         Reported by Simon Josefsson.
13770
13771 2011-08-08  Bruno Haible  <bruno@clisp.org>
13772
13773         iswblank: Detect declaration correctly.
13774         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13775         AC_CHECK_DECLS invocation.
13776
13777 2011-08-08  Bruno Haible  <bruno@clisp.org>
13778
13779         tcgetsid: Detect declaration correctly.
13780         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13781         AC_CHECK_DECLS invocation.
13782         Reported by Simon Josefsson.
13783
13784 2011-08-08  Eric Blake  <eblake@redhat.com>
13785
13786         largefile: fix typo that regressed large file support
13787         * modules/largefile (configure.ac-early): Fix section name.
13788
13789 2011-08-06  Karl Berry  <karl@gnu.org>
13790
13791         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13792         a separate module.
13793
13794 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13795
13796         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13797         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13798         get prototype for free.
13799
13800 2011-08-04  Bruno Haible  <bruno@clisp.org>
13801
13802         Tests for module 'pathmax'.
13803         * modules/pathmax-tests: New file.
13804         * tests/test-pathmax.c: New file.
13805
13806         canonicalize-lgpl: Support larger filenames on the Hurd.
13807         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13808         Reported by Paul Eggert.
13809
13810         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13811         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13812         * lib/chdir-long.h: Include pathmax.h.
13813         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13814         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13815         (PATH_MAX): Remove code that is done by pathmax.h.
13816         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13817         * lib/tmpfile.c: Add a comment.
13818         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13819         * modules/chdir-long (Depends-on): Add pathmax.
13820         * modules/getcwd (Depends-on): Add pathmax.
13821         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13822         is not defined.
13823         * doc/posix-headers/limits.texi: Mention the pathmax module.
13824         * NEWS: Mention the change.
13825
13826 2011-08-02  Bruno Haible  <bruno@clisp.org>
13827
13828         pthread_sigmask: Actually use results of gl_THREADLIB.
13829         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13830         gl_THREADLIB, not gl_[]THREADLIB.
13831         Reported by Eric Blake.
13832
13833 2011-08-02  Jim Meyering  <meyering@redhat.com>
13834
13835         maint.mk: relax the default _gl_TS_function_match regexp
13836         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13837         space between function name and "(" in an "extern" declaration.
13838         That would fail to match a decl with no space there: extern void foo();
13839
13840 2011-07-31  Iain Nicol  <iain@thenicols.net>
13841
13842         git-version-gen: document that EXTRA_DIST must include .version
13843         * build-aux/git-version-gen: In the how-to-use comment, document
13844         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13845         will fail when run from an unpacked distribution tarball.
13846
13847 2011-08-01  Bruno Haible  <bruno@clisp.org>
13848
13849         wctype-h: Fix last change.
13850         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13851         REPLACE_TOWLOWER to 0.
13852         Reported by Sam Steingold <sds@gnu.org>.
13853
13854 2011-07-31  Bruno Haible  <bruno@clisp.org>
13855
13856         frexpl: Update autoconf test.
13857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13858         according to changes of 2011-06-20.
13859
13860 2011-07-31  Bruno Haible  <bruno@clisp.org>
13861
13862         sys_utsname: Add support for Minix.
13863         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13864         <sys/utsname.h>.
13865         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13866         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13867
13868 2011-07-31  Bruno Haible  <bruno@clisp.org>
13869
13870         strings: Add support for Minix.
13871         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13872         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13873         * doc/posix-headers/strings.texi: Document the Minix problem.
13874
13875 2011-07-31  Bruno Haible  <bruno@clisp.org>
13876
13877         wctype-h: Add support for Minix.
13878         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13879         REPLACE_TOWLOWER.
13880         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13881         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13882         REPLACE_ISWCNTRL.
13883
13884 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13885
13886         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13887         This is a performance improvement for 64-bit hosts: it causes the
13888         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13889
13890 2011-07-31  Bruno Haible  <bruno@clisp.org>
13891
13892         stdioext: Add support for Minix.
13893         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13894         * lib/fpurge.c (fpurge): Likewise.
13895         * lib/freadahead.c (freadahead): Likewise.
13896         * lib/freadable.c (freadable): Likewise.
13897         * lib/freading.c (freading): Likewise.
13898         * lib/freadptr.c (freadptr): Likewise.
13899         * lib/freadseek.c (freadptrinc): Likewise.
13900         * lib/fseeko.c (rpl_fseeko): Likewise.
13901         * lib/fseterr.c (fseterr): Likewise.
13902         * lib/fwritable.c (fwritable): Likewise.
13903         * lib/fwriting.c (fwriting): Likewise.
13904         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13905         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13906
13907 2011-07-31  Bruno Haible  <bruno@clisp.org>
13908
13909         errno: Port to Minix.
13910         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13911         ECONNABORTED are defined.
13912         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13913         GNULIB_defined_ECONNABORTED): New macros.
13914         * lib/strerror-override.h (strerror_override): Test also
13915         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13916         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13917         ECONNABORTED.
13918         * doc/posix-headers/errno.texi: Mention the Minix problem.
13919
13920 2011-07-31  Bruno Haible  <bruno@clisp.org>
13921
13922         Work around declaration collisions on Minix.
13923         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13924         defined, set REPLACE_MBSINIT.
13925         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13926         defined, set REPLACE_MBRTOWC.
13927         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13928         set REPLACE_MBRLEN.
13929         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13930         defined, set REPLACE_MBSRTOWCS.
13931         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13932         defined, set REPLACE_WCRTOMB.
13933         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13934         defined, set REPLACE_WCSRTOMBS.
13935
13936 2011-07-31  Bruno Haible  <bruno@clisp.org>
13937
13938         Add support for Minix with ACK compiler.
13939         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13940         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13941         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13942
13943 2011-07-31  Bruno Haible  <bruno@clisp.org>
13944
13945         Documentation about Minix.
13946         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13947         * doc/glibc-headers/*.texi: Likewise.
13948         * doc/posix-functions/*.texi: Likewise.
13949         * doc/glibc-functions/*.texi: Likewise.
13950
13951 2011-07-31  Bruno Haible  <bruno@clisp.org>
13952
13953         snippet/warn-on-use: Fix indentation.
13954         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13955
13956 2011-07-25  Jim Meyering  <meyering@redhat.com>
13957
13958         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13959         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13960         commands.
13961
13962 2011-07-27  Jim Meyering  <meyering@redhat.com>
13963
13964         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13965         * top/maint.mk (gl_extract_significant_defines_): Now that
13966         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13967         gnulib/lib/signal.in.h, and now that we recommend to
13968         define-if-undefined those two symbols in application code,
13969         we must filter them out of the "significant" list.
13970         This avoids a "make syntax-check" failure in coreutils.
13971
13972 2011-07-26  Eric Blake  <eblake@redhat.com>
13973
13974         warnings: add comments about previous patch
13975         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13976         * m4/include_next.m4: Likewise.
13977         * m4/warn-on-use.m4: Likewise.
13978         * m4/warnings.m4: Likewise, and simplify use.
13979         Suggested by Stefano Lattarini.
13980
13981         include-next, warnings: support older autoconf
13982         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13983         AS_VAR_PUSHDEF in a way that works with older autoconf.
13984         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13985         Reported by Daniel P. Berrange.
13986
13987 2011-07-25  Bruno Haible  <bruno@clisp.org>
13988
13989         fseek, ftell: Fix doc.
13990         * doc/posix-functions/fseek.texi: Reword statement about
13991         AC_SYS_LARGEFILE.
13992         * doc/posix-functions/ftell.texi: Likewise.
13993
13994 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13995             Bruno Haible  <bruno@clisp.org>
13996
13997         Add dependencies to the 'largefile' module.
13998         * modules/fopen (Depends-on): Add 'largefile'.
13999         * modules/freopen (Depends-on): Likewise.
14000         * modules/fseeko (Depends-on): Likewise.
14001         * modules/ftello (Depends-on): Likewise.
14002         * modules/glob (Depends-on): Likewise.
14003         * modules/lseek (Depends-on): Likewise.
14004         * modules/lstat (Depends-on): Likewise.
14005         * modules/mkostemp (Depends-on): Likewise.
14006         * modules/mkostemps (Depends-on): Likewise.
14007         * modules/mkstemp (Depends-on): Likewise.
14008         * modules/mkstemps (Depends-on): Likewise.
14009         * modules/open (Depends-on): Likewise.
14010         * modules/openat (Depends-on): Likewise.
14011         * modules/pread (Depends-on): Likewise.
14012         * modules/pwrite (Depends-on): Likewise.
14013         * modules/scandir (Depends-on): Likewise.
14014         * modules/stat (Depends-on): Likewise.
14015         * modules/tmpfile (Depends-on): Likewise.
14016         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14017         since the containing module now depends on the largefile module.
14018         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14019         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14020         off_t is fixed by gnulib.
14021         * doc/posix-functions/freopen.texi: Likewise.
14022         * doc/posix-functions/fseeko.texi: Likewise.
14023         * doc/posix-functions/fstatat.texi: Likewise.
14024         * doc/posix-functions/ftello.texi: Likewise.
14025         * doc/posix-functions/glob.texi: Likewise.
14026         * doc/posix-functions/lseek.texi: Likewise.
14027         * doc/posix-functions/lstat.texi: Likewise.
14028         * doc/posix-functions/mkstemp.texi: Likewise.
14029         * doc/posix-functions/open.texi: Likewise.
14030         * doc/posix-functions/openat.texi: Likewise.
14031         * doc/posix-functions/pread.texi: Likewise.
14032         * doc/posix-functions/pwrite.texi: Likewise.
14033         * doc/posix-functions/scandir.texi: Likewise.
14034         * doc/posix-functions/stat.texi: Likewise.
14035         * doc/posix-functions/tmpfile.texi: Likewise.
14036         * doc/glibc-functions/mkostemp.texi: Likewise.
14037         * doc/glibc-functions/mkostemps.texi: Likewise.
14038         * doc/glibc-functions/mkstemps.texi: Likewise.
14039
14040 2011-07-25  Bruno Haible  <bruno@clisp.org>
14041
14042         fcntl: Move AC_LIBOBJ invocation to module description.
14043         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14044         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14045
14046         fcntl: Remove call-in from fchdir.m4.
14047         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14049
14050         dup3: Remove potential call-in from fchdir.m4.
14051         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14053
14054         dup2: Move AC_LIBOBJ invocation to module description.
14055         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14056         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14057         Don't invoke AC_LIBOBJ.
14058         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14059
14060         dup2: Remove call-in from fchdir.m4.
14061         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14063
14064         fclose: Move AC_LIBOBJ invocation to module description.
14065         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14066         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14067         to 1.
14068         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14069
14070         fclose: Remove call-in from close.m4.
14071         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14072         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14073
14074         close: Move AC_LIBOBJ invocation to module description.
14075         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14076         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14077         1.
14078         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14079
14080         close: Remove call-in from fchdir.m4.
14081         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14082         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14083
14084         open: Move AC_LIBOBJ invocation to module description.
14085         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14086         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14087         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14088
14089         open: Remove call-in from fchdir.m4.
14090         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14091         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14092
14093         fchdir: Start to remove gl_REPLACE_* idiom.
14094         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14095         (gl_FUNC_FCHDIR): Invoke it.
14096
14097 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14098
14099         * lib/ftell.c (ftell): Comment out cast.
14100
14101         close: use gl_REPLACE_FCLOSE only if defined
14102         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14103         is defined.  The close module doesn't depend on the fclose module
14104         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14106         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14107
14108 2011-07-24  Jim Meyering  <meyering@redhat.com>
14109
14110         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14111         * tests/test-select.h (test_function): Declare as "static".
14112
14113 2011-07-24  Bruno Haible  <bruno@clisp.org>
14114
14115         doc: Mention the effects of AC_SYS_LARGEFILE.
14116         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14117         on this function.
14118         * doc/posix-functions/aio_error.texi: Likewise.
14119         * doc/posix-functions/aio_fsync.texi: Likewise.
14120         * doc/posix-functions/aio_read.texi: Likewise.
14121         * doc/posix-functions/aio_return.texi: Likewise.
14122         * doc/posix-functions/aio_suspend.texi: Likewise.
14123         * doc/posix-functions/aio_write.texi: Likewise.
14124         * doc/posix-functions/fgetpos.texi: Likewise.
14125         * doc/posix-functions/fopen.texi: Likewise.
14126         * doc/posix-functions/freopen.texi: Likewise.
14127         * doc/posix-functions/fsetpos.texi: Likewise.
14128         * doc/posix-functions/fstatvfs.texi: Likewise.
14129         * doc/posix-functions/ftruncate.texi: Likewise.
14130         * doc/posix-functions/ftw.texi: Likewise.
14131         * doc/posix-functions/getrlimit.texi: Likewise.
14132         * doc/posix-functions/glob.texi: Likewise.
14133         * doc/posix-functions/lio_listio.texi: Likewise.
14134         * doc/posix-functions/lockf.texi: Likewise.
14135         * doc/posix-functions/mkstemp.texi: Likewise.
14136         * doc/posix-functions/mmap.texi: Likewise.
14137         * doc/posix-functions/nftw.texi: Likewise.
14138         * doc/posix-functions/openat.texi: Likewise.
14139         * doc/posix-functions/opendir.texi: Likewise.
14140         * doc/posix-functions/posix_fadvise.texi: Likewise.
14141         * doc/posix-functions/posix_fallocate.texi: Likewise.
14142         * doc/posix-functions/pread.texi: Likewise.
14143         * doc/posix-functions/pwrite.texi: Likewise.
14144         * doc/posix-functions/readdir.texi: Likewise.
14145         * doc/posix-functions/readdir_r.texi: Likewise.
14146         * doc/posix-functions/rewinddir.texi: Likewise.
14147         * doc/posix-functions/scandir.texi: Likewise.
14148         * doc/posix-functions/seekdir.texi: Likewise.
14149         * doc/posix-functions/setrlimit.texi: Likewise.
14150         * doc/posix-functions/statvfs.texi: Likewise.
14151         * doc/posix-functions/telldir.texi: Likewise.
14152         * doc/posix-functions/tmpfile.texi: Likewise.
14153         * doc/posix-functions/truncate.texi: Likewise.
14154         * doc/glibc-functions/fallocate.texi: Likewise.
14155         * doc/glibc-functions/fstatfs.texi: Likewise.
14156         * doc/glibc-functions/fts_children.texi: Likewise.
14157         * doc/glibc-functions/fts_read.texi: Likewise.
14158         * doc/glibc-functions/getdirentries.texi: Likewise.
14159         * doc/glibc-functions/mkostemp.texi: Likewise.
14160         * doc/glibc-functions/mkostemps.texi: Likewise.
14161         * doc/glibc-functions/mkstemps.texi: Likewise.
14162         * doc/glibc-functions/preadv.texi: Likewise.
14163         * doc/glibc-functions/pwritev.texi: Likewise.
14164         * doc/glibc-functions/sendfile.texi: Likewise.
14165         * doc/glibc-functions/statfs.texi: Likewise.
14166
14167 2011-07-24  Bruno Haible  <bruno@clisp.org>
14168
14169         doc: Fix typo.
14170         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14171
14172 2011-07-24  Bruno Haible  <bruno@clisp.org>
14173
14174         doc: Mention fsusage.
14175         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14176
14177 2011-07-24  Bruno Haible  <bruno@clisp.org>
14178
14179         doc: Mention new glibc headers and functions.
14180         * doc/glibc-headers/gshadow.texi: New file.
14181         * doc/glibc-functions/endsgent.texi: New file.
14182         * doc/glibc-functions/fgetsgent.texi: New file.
14183         * doc/glibc-functions/fgetsgent_r.texi: New file.
14184         * doc/glibc-functions/getsgent.texi: New file.
14185         * doc/glibc-functions/getsgent_r.texi: New file.
14186         * doc/glibc-functions/getsgnam.texi: New file.
14187         * doc/glibc-functions/getsgnam_r.texi: New file.
14188         * doc/glibc-functions/putsgent.texi: New file.
14189         * doc/glibc-functions/setsgent.texi: New file.
14190         * doc/glibc-functions/sgetsgent.texi: New file.
14191         * doc/glibc-functions/sgetsgent_r.texi: New file.
14192         * doc/glibc-functions/malloc_info.texi: New file.
14193         * doc/glibc-functions/preadv.texi: New file.
14194         * doc/glibc-functions/pwritev.texi: New file.
14195         * doc/glibc-functions/register_printf_modifier.texi: New file.
14196         * doc/glibc-functions/register_printf_specifier.texi: New file.
14197         * doc/glibc-functions/register_printf_type.texi: New file.
14198         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14199         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14200         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14201         * doc/glibc-functions/pthread_getname_np.texi: New file.
14202         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14203         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14204         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14205         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14206         * doc/glibc-functions/pthread_setname_np.texi: New file.
14207         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14208         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14209         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14210         * doc/glibc-functions/qsort_r.texi: New file.
14211         * doc/glibc-functions/quick_exit.texi: New file.
14212         * doc/glibc-functions/syncfs.texi: New file.
14213         * doc/gnulib.texi: Include them.
14214         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14215         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14216         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14217         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14218         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14219         * doc/glibc-functions/execvpe.texi: Likewise.
14220
14221 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14222
14223         ftell: don't include <unistd.h>
14224         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14225         guaranteed to define off_t, and the ftell module depends on the
14226         stdio module.
14227
14228         ftell: do not assume wraparound signed arithmetic
14229         * lib/ftell.c: Include <limits.h>.
14230         (ftell): Don't assume wraparound signed arithmetic.
14231
14232 2011-07-24  Bruno Haible  <bruno@clisp.org>
14233
14234         close: No longer depend on module 'fclose'.
14235         * modules/close (Depends-on): Remove fclose.
14236         * NEWS: Mention the change.
14237         Suggested by Sam Steingold <sds@gnu.org>.
14238
14239 2011-07-24  Bruno Haible  <bruno@clisp.org>
14240
14241         fsusage: Enable large volume support on AIX >= 5.2.
14242         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14243         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14244         instead of STAT_STATVFS.
14245         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14246
14247         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14248         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14249         f_blocks field only on MacOS X.
14250
14251         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14252         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14253         * modules/fsusage (Depends-on): Add largefile.
14254
14255 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14256
14257         * README: Modernize discussion of signed integers.
14258         Assuming overflow wraparound is no longer safe.
14259         Mention ones' complement and signed magnitude.
14260
14261 2011-07-22  Bruno Haible  <bruno@clisp.org>
14262
14263         select tests, pselect tests: Refactor.
14264         * tests/test-select.h: New file, extracted from tests/test-select.c.
14265         (select_fn): New type.
14266         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14267         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14268         test_pipe): Add my_select argument.
14269         (test_function): Renamed from main. Add my_select argument.
14270         * tests/test-select.c: Move most code to tests/test-select.h. Include
14271         test-select.h.
14272         * modules/select-tests (Files): Add tests/test-select.h.
14273         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14274         (my_select, main): New functions.
14275         * modules/pselect-tests (Files): Add tests/test-select.h,
14276         tests/macros.h, tests/signature.h.
14277         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14278         (configure.ac): Check for <sys/wait.h>.
14279
14280 2011-07-22  Bruno Haible  <bruno@clisp.org>
14281
14282         sys_select tests: Check the signature of FD_*.
14283         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14284         signature tests from here...
14285         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14286         here.
14287         * modules/sys_select-tests (Files): Add tests/signature.h.
14288
14289 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14290
14291         largefile: new module, replacing large-inode
14292         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14293         * MODULES.html.sh: Add largefile, remove large-inode.
14294         * modules/largefile, m4/largefile.m4: New files.
14295         * modules/large-inode, m4/large-inode.m4: Remove.
14296
14297         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14299         implementations that use only 32 bits to count blocks.
14300         On typical hosts with 1024-byte blocks, this fails with file
14301         systems as small as 4 TiB.  Problem reported by Herb Wartens
14302         <http://debbugs.gnu.org/9140> and this should also fix a similar
14303         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14304
14305         large-inode: New module
14306         * MODULES.html.sh: Add it.
14307         * modules/large-inode, m4/large-inode.m4: New files.
14308
14309         extensions: Enable extensions on MacOS X 10.5 and later.
14310         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14311
14312 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14313
14314         file-has-acl: use acl_extended_file_nofollow if available
14315         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14316         (acl_extended_file): New macro.
14317         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14318         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14319
14320 2011-07-21  Bruno Haible  <bruno@clisp.org>
14321
14322         Declare system functions in a way that works with C++.
14323         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14324         declare fdopendir as extern "C".
14325         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14326         declare frexpl as extern "C".
14327         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14328         declare gai_strerror as extern "C".
14329         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14330         programs, declare gai_strerror as extern "C".
14331         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14332         declare getlogin_r as extern "C".
14333         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14334         as extern "C".
14335         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14336         declare ldexpl as extern "C".
14337         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14338         as extern "C".
14339         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14340         program, declare getmntinfo as extern "C".
14341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14342         stpncpy as extern "C".
14343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14344         program, declare __xpg_strerror_r as extern "C".
14345         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14346         strndup as extern "C".
14347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14348         declare memset and bzero as extern "C".
14349         Reported by Sam Steingold <sds@gnu.org>.
14350
14351 2011-07-12  Jim Meyering  <meyering@redhat.com>
14352
14353         maint.mk: prohibit inclusion of "verify.h" without use
14354         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14355
14356 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14357
14358         timer-time: A new module to check for timer_settime()
14359         * m4/timer_time.m4: Check for the posix function.
14360         * modules/timer-time: Add the new module.
14361         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14362         Mention it.
14363
14364 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14365             Bruno Haible  <bruno@clisp.org>
14366
14367         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14368         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14369         not defined, assume POSIX threads and look for pthread_sigmask in
14370         $LIBS, without changing $CPPFLAGS.
14371
14372 2011-07-19  Bruno Haible  <bruno@clisp.org>
14373
14374         strstr: Update cross-compilation guess.
14375         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14376         CPUs, guess no, in view of glibc
14377         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14378         Suggested by Eric Blake. Reported by Reuben Thomas.
14379
14380 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14381
14382         getopt-gnu: suppress core dumps from detection code
14383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14384         to suppress core dumps that may well occur on glibc systems.
14385         * modules/getopt-gnu: Depend on nocrash.
14386
14387 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         pthread_sigmask: ensure usleep is declared
14390         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14391         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14392
14393 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14394
14395         doc: Document NonStop portability issues.
14396         * doc/posix-functions/sigaction.texi (sigaction):
14397         * doc/posix-headers/signal.texi (signal.h):
14398         Document NonStop.  See Joachim Schmitz in
14399         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14400
14401 2011-07-15  Bruno Haible  <bruno@clisp.org>
14402
14403         ffsl, ffsll: Avoid unportable behaviour.
14404         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14405
14406 2011-07-15  Bruno Haible  <bruno@clisp.org>
14407
14408         ffs: More tests.
14409         * tests/test-ffs.c (NBITS): New macro.
14410         (main): Add more tests.
14411         * tests/test-ffsl.c (NBITS): New macro.
14412         (main): Add more tests.
14413         * tests/test-ffsll.c (NBITS): New macro.
14414         (main): Add more tests.
14415
14416 2011-07-15  Eric Blake  <eblake@redhat.com>
14417
14418         ffsl, ffsll: new modules
14419         * modules/ffsl: New file.
14420         * modules/ffsll: Likewise.
14421         * m4/ffsl.m4: Likewise.
14422         * m4/ffsll.m4: Likewise.
14423         * lib/ffsl.c: Likewise.
14424         * lib/ffsl.h: Likewise.
14425         * lib/ffsll.c: Likewise.
14426         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14427         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14428         * modules/string (Makefile.am): Substitute witnesses.
14429         * lib/strings.in.h (ffsl, ffsll): Declare.
14430         * modules/ffsl-tests: New test file.
14431         * modules/ffsll-tests: Likewise.
14432         * tests/test-ffsl.c: Likewise.
14433         * tests/test-ffsll.c: Likewise.
14434         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14435         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14436         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14437
14438         ffs: fix m4 prerequisite
14439         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14440
14441         ffs: avoid undefined behavior
14442         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14443         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14444         Reported by Bruno Haible.
14445
14446 2011-07-12  Bruno Haible  <bruno@clisp.org>
14447
14448         pthread_sigmask: Rely on module 'threadlib'.
14449         * modules/pthread_sigmask (Depends-on): Add threadlib.
14450         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14451         is defined.
14452
14453 2011-07-12  Bruno Haible  <bruno@clisp.org>
14454
14455         regex: Depend on module 'strcase'.
14456         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14457
14458 2011-07-12  Jim Meyering  <meyering@redhat.com>
14459
14460         warn-on-use: fix typo in file name
14461         * modules/snippet/warn-on-use (Files): Correct file name:
14462         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14463
14464 2011-07-12  Bruno Haible  <bruno@clisp.org>
14465
14466         strings: Document module.
14467         * doc/posix-headers/strings.texi: Mention module 'strings'.
14468
14469 2011-07-12  Bruno Haible  <bruno@clisp.org>
14470
14471         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14472         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14473         (Files, Makefile.am): Update.
14474         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14475         * modules/stdlib (Depends-on): Update.
14476
14477 2011-07-12  Bruno Haible  <bruno@clisp.org>
14478
14479         * NEWS: Mention the changes.
14480
14481         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14482         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14483         (Files, Makefile.am): Update.
14484         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14485         * modules/arpa_inet (Depends-on): Update.
14486         * modules/ctype (Depends-on): Update.
14487         * modules/dirent (Depends-on): Update.
14488         * modules/fcntl-h (Depends-on): Update.
14489         * modules/glob (Depends-on): Update.
14490         * modules/iconv-h (Depends-on): Update.
14491         * modules/inttypes-incomplete (Depends-on): Update.
14492         * modules/langinfo (Depends-on): Update.
14493         * modules/locale (Depends-on): Update.
14494         * modules/math (Depends-on): Update.
14495         * modules/netdb (Depends-on): Update.
14496         * modules/poll-h (Depends-on): Update.
14497         * modules/pty (Depends-on): Update.
14498         * modules/search (Depends-on): Update.
14499         * modules/signal (Depends-on): Update.
14500         * modules/spawn (Depends-on): Update.
14501         * modules/stdio (Depends-on): Update.
14502         * modules/stdlib (Depends-on): Update.
14503         * modules/string (Depends-on): Update.
14504         * modules/strings (Depends-on): Update.
14505         * modules/sys_file (Depends-on): Update.
14506         * modules/sys_ioctl (Depends-on): Update.
14507         * modules/sys_select (Depends-on): Update.
14508         * modules/sys_socket (Depends-on): Update.
14509         * modules/sys_stat (Depends-on): Update.
14510         * modules/sys_time (Depends-on): Update.
14511         * modules/sys_times (Depends-on): Update.
14512         * modules/sys_utsname (Depends-on): Update.
14513         * modules/sys_wait (Depends-on): Update.
14514         * modules/termios (Depends-on): Update.
14515         * modules/time (Depends-on): Update.
14516         * modules/unistd (Depends-on): Update.
14517         * modules/wchar (Depends-on): Update.
14518         * modules/wctype-h (Depends-on): Update.
14519         * MODULES.html.sh (Support for building libraries and executables):
14520         Update.
14521
14522         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14523         * modules/snippet/unused-parameter: Renamed from
14524         modules/unused-parameter.
14525         (Files, Makefile.am): Update.
14526         * build-aux/snippet/unused-parameter.h: Renamed from
14527         build-aux/unused-parameter.h.
14528         * modules/selinux-h (Depends-on): Update.
14529         * modules/unistr/base (Depends-on): Update.
14530         * MODULES.html.sh (Core language properties): Update.
14531
14532         Rename module 'link-warning' to 'snippet/link-warning'.
14533         * modules/snippet/link-warning: Renamed from modules/link-warning.
14534         (Files, Makefile.am): Update.
14535         * build-aux/snippet/link-warning.h: Renamed from
14536         build-aux/link-warning.h.
14537         * MODULES.html.sh (Support for building libraries and executables):
14538         Update.
14539
14540         Rename module 'c++defs' to 'snippet/c++defs'.
14541         * modules/snippet/c++defs: Renamed from modules/c++defs.
14542         (Files, Makefile.am): Update.
14543         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14544         * modules/arpa_inet (Depends-on): Update.
14545         * modules/ctype (Depends-on): Update.
14546         * modules/dirent (Depends-on): Update.
14547         * modules/fcntl-h (Depends-on): Update.
14548         * modules/glob (Depends-on): Update.
14549         * modules/iconv-h (Depends-on): Update.
14550         * modules/langinfo (Depends-on): Update.
14551         * modules/locale (Depends-on): Update.
14552         * modules/math (Depends-on): Update.
14553         * modules/netdb (Depends-on): Update.
14554         * modules/poll-h (Depends-on): Update.
14555         * modules/pty (Depends-on): Update.
14556         * modules/search (Depends-on): Update.
14557         * modules/signal (Depends-on): Update.
14558         * modules/spawn (Depends-on): Update.
14559         * modules/stdio (Depends-on): Update.
14560         * modules/stdlib (Depends-on): Update.
14561         * modules/string (Depends-on): Update.
14562         * modules/strings (Depends-on): Update.
14563         * modules/sys_ioctl (Depends-on): Update.
14564         * modules/sys_select (Depends-on): Update.
14565         * modules/sys_socket (Depends-on): Update.
14566         * modules/sys_stat (Depends-on): Update.
14567         * modules/sys_time (Depends-on): Update.
14568         * modules/sys_wait (Depends-on): Update.
14569         * modules/termios (Depends-on): Update.
14570         * modules/time (Depends-on): Update.
14571         * modules/unistd (Depends-on): Update.
14572         * modules/wchar (Depends-on): Update.
14573         * modules/wctype-h (Depends-on): Update.
14574
14575         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14576         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14577         (Files, Makefile.am): Update.
14578         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14579         * modules/argv-iter (Depends-on): Update.
14580         * modules/arpa_inet (Depends-on): Update.
14581         * modules/dirent (Depends-on): Update.
14582         * modules/fcntl-h (Depends-on): Update.
14583         * modules/fnmatch (Depends-on): Update.
14584         * modules/getopt-posix (Depends-on): Update.
14585         * modules/glob (Depends-on): Update.
14586         * modules/iconv-h (Depends-on): Update.
14587         * modules/inttypes-incomplete (Depends-on): Update.
14588         * modules/locale (Depends-on): Update.
14589         * modules/math (Depends-on): Update.
14590         * modules/netdb (Depends-on): Update.
14591         * modules/search (Depends-on): Update.
14592         * modules/signal (Depends-on): Update.
14593         * modules/spawn (Depends-on): Update.
14594         * modules/stdio (Depends-on): Update.
14595         * modules/stdlib (Depends-on): Update.
14596         * modules/string (Depends-on): Update.
14597         * modules/strings (Depends-on): Update.
14598         * modules/sys_socket (Depends-on): Update.
14599         * modules/sys_stat (Depends-on): Update.
14600         * modules/sys_time (Depends-on): Update.
14601         * modules/sys_times (Depends-on): Update.
14602         * modules/sys_utsname (Depends-on): Update.
14603         * modules/time (Depends-on): Update.
14604         * modules/unistd (Depends-on): Update.
14605         * modules/wchar (Depends-on): Update.
14606         * MODULES.html.sh (Support for building libraries and executables):
14607         Update.
14608
14609 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14610
14611         Improvements on _Noreturn and related modules.
14612
14613         modules/_Exit-tests: test _Noreturn too
14614         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14615         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14616         (main): Use them.
14617
14618         stdnoreturn, stdnoreturn-tests: remove modules
14619         They're not needed here and a bit premature for use elsewhere.  See
14620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14621         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14622         * tests/test-stdnoreturn.c: Remove files.
14623         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14624         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14625         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14626         and using noreturn.
14627         * modules/openat, modules/sigpipe-die, modules/xalloc:
14628         * modules/xmemdup0, modules/xstrtol:
14629         Remove dependency on stdnoreturn.
14630
14631         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14632         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14633         Reparenthesize to avoid GCC warning.
14634         Support Microsoft's syntax.
14635         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14636
14637         _Noreturn-tests: remove module
14638         * modules/_Noreturn-tests: Remove.
14639         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14640         * tests/test-_Noreturn.c: Remove.
14641         * tests/test-stdnoreturn.c: Merge from the old
14642         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14643
14644 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14645
14646         _Noreturn, stdnoreturn, and related modules.
14647
14648         * top/maint.mk: Adjust to new noreturn support.
14649         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14650         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14651
14652         xalloc: use stdnoreturn.h
14653         * lib/xalloc.h: Include <stdnoreturn.h>.
14654         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14655         * modules/xalloc (Depends-on): Add stdnoreturn.
14656
14657         xstrtol: use stdnoreturn.h
14658         * lib/xstrtol.h: Include <stdnoreturn.h>.
14659         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14660         * modules/xstrtol (Depends-on): Add stdnoreturn.
14661
14662         xmemdup0: use stdnoreturn.h
14663         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14664         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14665         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14666
14667         sigpipe-die: use stdnoreturn.h
14668         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14669         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14670         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14671
14672         openat: use stdnoreturn.h
14673         * lib/openat.h: Include <stdnoreturn.h>.
14674         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14675         * modules/openat (Depends-on): Add stdnoreturn.
14676
14677         * lib/openat-die.c (openat_save_fail): Modernize comment.
14678
14679         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14680
14681         * lib/glthread/thread.h: Modernize comment.
14682
14683         obstack: use _Noreturn
14684         * lib/obstack.c (__attribute__): Remove macro.
14685         (print_and_abort): Use _Noreturn.
14686
14687         c-stack: use _Noreturn
14688         * lib/c-stack.c (die, overflow_handler, segv_handler):
14689         Use _Noreturn rather than __attribute__((noreturn)).
14690
14691         argmatch-tests, exclude_tests: use _Noreturn
14692         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14693         Remove.
14694         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14695
14696         stdlib: use _Noreturn
14697         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14698         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14699         * modules/stdlib (Depends-on): Add _Noreturn.
14700         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14701
14702         stdnoreturn-tests: new module
14703         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14704
14705         stdnoreturn: new module
14706         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14707         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14708
14709         _Noreturn-tests: new module
14710         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14711
14712         _Noreturn: new module
14713         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14714         New section, mentioning it.
14715         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14716
14717         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14718
14719 2011-07-11  Eric Blake  <eblake@redhat.com>
14720
14721         ffs: new module
14722         * modules/ffs: New file.
14723         * m4/ffs.m4: Likewise.
14724         * lib/ffs.c: Likewise.
14725         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14726         * modules/strings (Makefile.am): Substitute witness.
14727         (Depends-on): Add c++defs.
14728         * lib/strings.in.h (ffs): Declare.
14729         * modules/ffs-tests: New test file.
14730         * tests/test-ffs.c: Test new module.
14731         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14732         * doc/posix-functions/ffs.texi (ffs): Likewise.
14733
14734         regex: avoid compiler warning
14735         * lib/regex.c (includes): Include <strings.h>, for use of
14736         strcasecmp in regcomp.c.
14737         Reported by Joachim Schmitz.
14738
14739 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14740
14741         stdint: respect system's intmax_t if INTMAX_MAX
14742         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14743         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14744         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14745         long but int64_t is long long, and where we will clash with the
14746         system intmax_t if we override it.  See
14747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14748         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14749         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14750         similarly for UINTMAX_C.
14751
14752 2011-07-08  Bruno Haible  <bruno@clisp.org>
14753
14754         pthread_sigmask tests: Avoid a compiler warning.
14755         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14756         non-zero.
14757
14758         sigprocmask tests: A better way to avoid a compiler warning.
14759         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14760         (main): Complain if system() returns non-zero.
14761         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14762
14763 2011-07-08  Bruno Haible  <bruno@clisp.org>
14764
14765         pthread_sigmask: Work around IRIX bug.
14766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14767         bug.
14768         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14769         there may be unblocked pending signals.
14770         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14771
14772 2011-07-08  Bruno Haible  <bruno@clisp.org>
14773
14774         pthread_sigmask: Work around Cygwin bug.
14775         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14776         bug.
14777         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14778         the system's pthread_sigmask function.
14779         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14780
14781 2011-07-08  Bruno Haible  <bruno@clisp.org>
14782
14783         pthread_sigmask: Work around bug in single-threaded implementation.
14784         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14785         FreeBSD, HP-UX, Solaris bug.
14786         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14787         * lib/pthread_sigmask.c: Include <stddef.h>.
14788         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14789         the system's pthread_sigmask function.
14790         * modules/pthread_sigmask (configure.ac): Invoke
14791         gl_PREREQ_PTHREAD_SIGMASK.
14792         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14793         HP-UX, Solaris.
14794
14795 2011-07-08  Eric Blake  <eblake@redhat.com>
14796
14797         test-sigprocmask: avoid compiler warning
14798         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14799         * tests/test-sigprocmask.c (main): Use it to silence warning.
14800         Reported by Jim Meyering.
14801
14802         test-snprintf: avoid compiler warning
14803         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14804         * tests/test-vsnprintf.c (main): Likewise.
14805         Reported by Jim Meyering.
14806
14807 2011-07-08  Bruno Haible  <bruno@clisp.org>
14808
14809         Tests for module 'pthread_sigmask'.
14810         * modules/pthread_sigmask-tests: New file.
14811         * tests/test-pthread_sigmask1.c: New file, based on
14812         tests/test-sigprocmask.c.
14813         * tests/test-pthread_sigmask2.c: New file.
14814
14815 2011-07-08  Jim Meyering  <meyering@redhat.com>
14816
14817         test-getopt.h: avoid warning about an unused variable
14818         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14819
14820 2011-07-07  Jim Meyering  <meyering@redhat.com>
14821
14822         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14823         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14824         now that it no longer contains leading TABs.
14825         Remove unused "url=FIXME" statement.
14826
14827 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14828
14829         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14830         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14831         When gl_THREADLIB is not in use, assume that the POSIX sematics
14832         are desired.  This is better for Emacs, which uses POSIX semantics
14833         on GNUish and/or POSIXish platforms, and does not use threads at
14834         all otherwise.
14835
14836         pthread_sigmask: fix typo when testing for libraries
14837         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14838         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14839
14840 2011-07-08  Eric Blake  <eblake@redhat.com>
14841
14842         fts: introduce FTS_NOATIME
14843         * lib/fts_.h (FTS_NOATIME): New bit flag.
14844         (FTS_OPTIONMASK): Adjust.
14845         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14846         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14847
14848 2011-07-08  Bruno Haible  <bruno@clisp.org>
14849
14850         Tests for module 'thread'.
14851         * modules/thread-tests: New file.
14852         * tests/test-thread_self.c: New file.
14853         * tests/test-thread_create.cc: New file.
14854
14855 2011-07-08  Bruno Haible  <bruno@clisp.org>
14856
14857         thread: Avoid gcc warnings when using gl_thread_self().
14858         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14859         'void *'.
14860         (gl_thread_self_pointer): Update.
14861
14862 2011-07-07  Bruno Haible  <bruno@clisp.org>
14863
14864         signal-c++-tests: Check declaration of pthread_sigmask.
14865         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14866         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14867         $(LIB_PTHREAD_SIGMASK).
14868
14869 2011-07-07  Bruno Haible  <bruno@clisp.org>
14870
14871         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14872         * lib/signal.in.h (pthread_sigmask): Override if
14873         REPLACE_PTHREAD_SIGMASK is 1.
14874         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14875         REPLACE_PTHREAD_SIGMASK.
14876         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14877         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14878         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14879         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14880         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14881
14882 2011-07-07  Bruno Haible  <bruno@clisp.org>
14883
14884         pthread_sigmask: Ensure declaration in <signal.h>.
14885         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14886         include <pthread.h>.
14887         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14888         problem.
14889
14890 2011-07-07  Bruno Haible  <bruno@clisp.org>
14891
14892         pthread_sigmask: Document the module.
14893         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14894
14895 2011-07-07  Bruno Haible  <bruno@clisp.org>
14896
14897         pthread_sigmask: Follow gnulib conventions.
14898         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14899         gl_PTHREAD_SIGMASK.
14900         * modules/pthread_sigmask (configure.ac): Update.
14901
14902 2011-07-07  Bruno Haible  <bruno@clisp.org>
14903
14904         pthread_sigmask: Make declaration C++ safe.
14905         * lib/signal.in.h: In two special conditions, just do an #include_next.
14906         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14907         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14908         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14909         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14910         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14911         not REPLACE_PTHREAD_MASK.
14912         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14913         not REPLACE_PTHREAD_MASK.
14914         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14915
14916 2011-07-07  Bruno Haible  <bruno@clisp.org>
14917
14918         pthread_sigmask: Fix return value.
14919         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14920         * lib/pthread_sigmask.c: New file.
14921         * modules/pthread_sigmask (Files): Add it.
14922         (configure.ac): Invoke AC_LIBOBJ.
14923
14924 2011-07-07  Eric Blake  <eblake@redhat.com>
14925
14926         getopt: more portable argv creation
14927         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14928         const, use char arrays rather than strings.
14929         Suggested by Paul Eggert.
14930
14931 2011-07-07  Bruno Haible  <bruno@clisp.org>
14932
14933         Tests for module 'sigprocmask'.
14934         * modules/sigprocmask-tests: New file.
14935         * tests/test-sigprocmask.c: New file.
14936
14937 2011-07-07  Bruno Haible  <bruno@clisp.org>
14938
14939         float tests: Tweak.
14940         * tests/test-float.c (main): Tweak skip message.
14941
14942 2011-07-07  Eric Blake  <eblake@redhat.com>
14943
14944         getopt: avoid compiler warning during configure
14945         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14946         assigning string literals to non-const pointer.
14947
14948         getopt-gnu: avoid crash in glibc getopt
14949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14950         * tests/test-getopt.h (test_getopt): Enhance test.
14951         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14952         * doc/posix-functions/getopt.texi (getopt): Document it.
14953         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14954         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14955         Likewise.
14956
14957 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14958
14959         getopt: handle W; without long options in getopt [BZ #12922]
14960         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14961         but no long options are defined, just return 'W'.
14962
14963 2011-07-07  Bruno Haible  <bruno@clisp.org>
14964
14965         Avoid literal tabs.
14966         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14967         variable containing a tab instead of a literal tab.
14968         Reported by Jim Meyering.
14969
14970 2011-07-07  Bruno Haible  <bruno@clisp.org>
14971
14972         Comments.
14973         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14974
14975 2011-07-06  Bruno Haible  <bruno@clisp.org>
14976
14977         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14978         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14979         <winsock2.h>.
14980         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14981         lib/sys_socket.in.h.
14982         (close, gethostname): Hide declarations from <winsock2.h>.
14983         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14984         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14985         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14986         (select): Don't override if gnulib's <sys/select.h> was already
14987         included.
14988         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14989         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14990         setsockopt, shutdown, select): Tweak indentation.
14991
14992 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14993
14994         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14995         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14996         in an application that does not use the sys_select module.
14997
14998 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14999
15000         poll: do not return 0 on timeout=-1
15001         * lib/poll.c: Loop with yield if no events occured
15002
15003 2011-07-06  Eric Blake  <eblake@redhat.com>
15004
15005         pthread_sigmask: always replace when not using pthread
15006         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15007         replacement when using some threading other than pthread.  Fix
15008         logic bug.
15009
15010 2011-07-06  Bruno Haible  <bruno@clisp.org>
15011
15012         Comments.
15013         * m4/printf.m4: Update comments about mingw.
15014
15015 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15016
15017         sys_select: define sigset_t more portably
15018         * lib/sys_select.in.h: Always include <sys/types.h>, since
15019         we now need sigset_t and mingw defines it there.
15020         Include <signal.h> before split inclusion guard, to avoid
15021         mishaps on Solaris, whose <signal.h> eventually includes us.
15022         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15023         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15024         which come from ...
15025         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15026         gl_CHECK_TYPE_SIGSET_T.
15027         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15028         does the real work.
15029         * modules/sys_select (Depends-on): Add 'signal'.
15030
15031         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15032         Suggested by Bruno Haible.
15033
15034         pselect: Use pthread_sigmask, not sigprocmask.
15035         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15036         multithreaded apps better than sigprocmask does.
15037         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15038         sigprocmask directly.
15039
15040 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15041
15042         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15043         Don't #undef,  since we don't need any underlying pselect.
15044         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15045         (Depends-on): Add select.
15046         (Link): Add $(LIBSOCKET).
15047         These changes suggested by Bruno Haible.
15048
15049         pselect: document better
15050         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15051         * doc/posix-functions/pselect.texi (pselect): Document new module.
15052
15053         pthread_sigmask: new module
15054         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15055         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15056         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15057         This is done only as a macro; I don't know how well that'll
15058         work for C++.  Move <sys/types.h> include before the include_next,
15059         to avoid mishap on Solaris.
15060         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15061         * modules/signal (Makefile.am): Substitute the check's results.
15062         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15063
15064         test-pselect: new module
15065         * modules/pselect-tests, tests/test-pselect.c: New files.
15066         * tests/test-select.c, tests/test-sys_select-c++.cc:
15067         If TEST_PSELECT is defined, test pselect instead of testing select.
15068
15069         * tests/test-sys_select.c (sigset_t): Test for it, too.
15070         Suggested by Bruno Haible.
15071
15072 2011-07-05  Eric Blake  <eblake@redhat.com>
15073
15074         snprintf: guarantee %1$d, for libintl
15075         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15076         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15077         * doc/posix-functions/snprintf.texi (snprintf): Update.
15078         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15079         * tests/test-snprintf.c (main): Enhance test.
15080         * tests/test-vsnprintf.c (main): Likewise.
15081
15082 2011-07-05  Jim Meyering  <meyering@redhat.com>
15083
15084         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15085         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15086         per Bruno's request, to accommodate this idiom (no space after "#")
15087         even when the function is inside an #if block:
15088         char *
15089         gets (char *s)
15090         #undef gets
15091         {
15092           ...
15093         }
15094
15095 2011-07-04  Jim Meyering  <meyering@redhat.com>
15096
15097         maint: indent with spaces, not TABs, and add a rule to check this
15098         * tests/test-userspec.c: Indent with spaces, not TABs.
15099         * tests/test-argp.c: Likewise.
15100         * tests/test-c-stack2.sh: Likewise.
15101         * tests/test-parse-duration.sh: Likewise
15102         * m4/strtod.m4: Likewise.
15103         * m4/alloca.m4: Likewise.
15104         * m4/pselect.m4: Likewise.
15105         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15106
15107 2011-07-03  Jim Meyering  <meyering@redhat.com>
15108
15109         maint.mk: correct omissions in prohibit_argmatch_without_use check
15110         This rule would mistakenly report that argmatch.h is included without
15111         use even when both the argmatch and invalid_arg macro were used.
15112         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15113         of argmatch and invalid_arg.
15114
15115 2011-07-03  Bruno Haible  <bruno@clisp.org>
15116
15117         Comments about EINTR.
15118         * lib/safe-read.h: Explain the purpose of this module.
15119         * lib/safe-write.h: Likewise.
15120         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15121         module.
15122         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15123         module.
15124         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15125
15126 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15127
15128         xnanosleep: Rewrite to use new dtotimespec module.
15129         It has the conversion code that used to be in xnanosleep.
15130         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15131         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15132         (TIME_T_MAX): Remove.
15133         (xnanosleep): Rewrite in terms of dtotimespec.
15134         * modules/xnanosleep (Depends-on): Add dtotimespec.
15135         Remove intprops, stdbool.
15136
15137         timespec-add, timespec-sub: new modules
15138         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15139         * lib/timespec-add.c, lib/timespec-sub.c:
15140         * modules/timespec-add, modules/timespec-sub: New files.
15141
15142         dtotimespec: new module
15143         * lib/timespec.h (dtotimespec): New decl.
15144         * lib/dtotimespec.c, modules/dtotimespec: New files.
15145
15146         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15147
15148         pselect: new module
15149         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15150         (pselect): New decls.
15151         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15152         since the standard pselect decl uses 'restrict'.
15153         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15154         HAVE_PSELECT, REPLACE_PSELECT.
15155         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15156         HAVE_PSELECT, REPLACE_PSELECT.
15157         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15158
15159         sys_select: don't depend on sys_socket
15160         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15162         This fix works on GNU and GNU-like platforms, but has not been tested
15163         on native Windows.
15164         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15165         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15166         gl_HEADER_SYS_SOCKET.
15167         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15168         gl_PREREQ_SYS_H_WINSOCK2.
15169
15170 2011-06-29  Eric Blake  <eblake@redhat.com>
15171
15172         pipe2: fix C89 compile problem
15173         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15174         Reported by Bruno Haible.
15175
15176         pipe, pipe2: don't corrupt fd on error
15177         * lib/pipe.c (pipe): Leave fd unchanged on error.
15178         * lib/pipe2.c (pipe2): Likewise.
15179         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15180         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15181
15182 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15183
15184         mmap-anon: do not use regular expressions inadvertently
15185         * m4/mmap-anon.m4: Remove trailing period from strings sought
15186         in the output.
15187
15188 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         nanosleep: fix integer overflow problem
15191         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15192         arithmetic wraps around on overflow.
15193
15194         nanosleep: simplify carrying
15195         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15196         first call to the underyling nanosleep, not for the last one.
15197         This doesn't fix any bugs, but it simplifies the computation of
15198         the remaining delay.  Found while auditing integer overflow issues.
15199
15200         dup2: remove test for existence of fcntl
15201         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15202         "#if HAVE_FCNTL", in the configure-time test program.
15203         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15204         and therefore speeds up "configure" a bit.  Found while
15205         adding the dup2 module to Emacs.
15206
15207 2011-06-24  Eric Blake  <eblake@redhat.com>
15208
15209         maint.mk: enhance useless header checks
15210         * top/maint.mk (_sc_header_without_use): Check both include
15211         styles.
15212         (sc_prohibit_assert_without_use)
15213         (sc_prohibit_close_stream_without_use)
15214         (sc_prohibit_getopt_without_use)
15215         (sc_prohibit_quotearg_without_use)
15216         (sc_prohibit_quote_without_use)
15217         (sc_prohibit_long_options_without_use)
15218         (sc_prohibit_inttostr_without_use)
15219         (sc_prohibit_ignore_value_without_use)
15220         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15221         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15222         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15223         (sc_prohibit_hash_pjw_without_use)
15224         (sc_prohibit_safe_read_without_use)
15225         (sc_prohibit_argmatch_without_use)
15226         (sc_prohibit_canonicalize_without_use)
15227         (sc_prohibit_root_dev_ino_without_use)
15228         (sc_prohibit_openat_without_use)
15229         (sc_prohibit_c_ctype_without_use)
15230         (sc_prohibit_signal_without_use)
15231         (sc_prohibit_stdio--_without_use)
15232         (sc_prohibit_stdio-safer_without_use)
15233         (sc_prohibit_strings_without_use)
15234         (sc_prohibit_intprops_without_use)
15235         (sc_prohibit_stddef_without_use)
15236         (sc_prohibit_xfreopen_without_use): Update clients.
15237
15238 2011-06-24  Jim Meyering  <meyering@redhat.com>
15239
15240         syntax-check: keep one maint.mk rule in sync with its header
15241         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15242         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15243         I prefer to avoid temporary files here, so use <(...), but that
15244         is not supported by /bin/sh, so...
15245         (SHELL): Define to /bin/bash.
15246
15247 2011-06-24  Eric Blake  <eblake@redhat.com>
15248
15249         maint.mk: update sc_prohibit_intprops_without_use
15250         * top/maint.mk (_intprops_names): Match recent changes.
15251
15252 2011-06-24  Bruno Haible  <bruno@clisp.org>
15253
15254         strerror-override: No-op tweak.
15255         * lib/strerror-override.h (strerror_override): Reorder conditions,
15256         for consistency with lib/strerror-override.c.
15257
15258 2011-06-23  Eric Blake  <eblake@redhat.com>
15259
15260         maint.mk: test further PATH_MAX issues
15261         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15262         (sc_prohibit_path_max_allocation): ...and also test alloca.
15263         Suggested by Jim Meyering.
15264
15265 2011-06-22  Eric Blake  <eblake@redhat.com>
15266
15267         maint.mk: add syntax-check to avoid char[PATH_MAX]
15268         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15269
15270         stat: be robust to PATH_MAX definition
15271         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15272         * modules/stat (Depends-on): Add verify.
15273
15274         link: work around IRIX bug
15275         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15276         * lib/link.c (rpl_link): Work around it.
15277         * tests/test-link.h (test_link): Enhance test.
15278         * doc/posix-functions/link.texi (link): Document the bug.
15279
15280         getopt: silence clang warning
15281         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15282         dereference.
15283         Reported by Gustavo Martin Domato.
15284
15285 2011-06-22  Jim Meyering  <meyering@redhat.com>
15286
15287         bootstrap: do not insert a blank line into each .gitignore file
15288         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15289
15290 2011-06-21  Eric Blake  <eblake@redhat.com>
15291
15292         perror: test for output mismatch
15293         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15294         perror on IRIX.
15295
15296         strerror_r: fix OpenBSD behavior on out-of-range
15297         * lib/strerror_r.c (strerror_r): Always use maximal string.
15298         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15299
15300         strerror_r: fix OpenBSD behavior on 0
15301         * lib/strerror-override.c (strerror_override): Also override 0
15302         when needed.
15303         * lib/strerror-override.h (strerror_override): Likewise.
15304         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15305         earlier.
15306         * lib/strerror_r.c (strerror_r): Likewise.
15307         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15308         behavior...
15309         (gl_FUNC_STRERROR_0): ...into new macro.
15310         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15311         is overridden.
15312         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15313         * modules/strerror-override (Files): Add strerror.m4.
15314         (configure.ac): Also provide override for 0 when needed.
15315         * doc/posix-functions/strerror.texi (strerror): Document this.
15316         * doc/posix-functions/perror.texi (perror): Likewise.
15317
15318         perror: adjust array size
15319         * modules/perror (Depends-on): Add strerror-override.
15320         * lib/perror.c (perror): Use it to avoid magic number.
15321
15322         strerror-override: reduce size
15323         * lib/strerror-override.c (strerror_override): Use fewer lines.
15324
15325 2011-06-20  Bruno Haible  <bruno@clisp.org>
15326
15327         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15328         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15329
15330 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15331
15332         alloca: port to compilers that can optimize like GCC 4.6.0
15333         * lib/alloca.c (find_stack_direction): New signature, taken from
15334         Autoconf git.  This works with GCC 4.6.0.  This code should never
15335         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15336         be used with other compilers that optimize as well as GCC 4.6.0 does.
15337         (alloca): Adjust to new signature.
15338         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15339         New macro, which patches Autoconf in a similar way.
15340
15341         c-stack: stop worrying about stack direction
15342         * lib/c-stack.c (find_stack_direction): Remove.
15343         (segv_handler): Don't worry about stack direction growth, as it's
15344         too much of a pain to configure this correctly, given how compilers
15345         are optimizing-away our stack-growth detection code.  Instead, assume
15346         that any access to just before or just after the stack is OK.
15347         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15348         Don't require AC_FUNC_ALLOCA; no longer needed.
15349
15350 2011-06-20  Eric Blake  <eblake@redhat.com>
15351
15352         test-stat: don't allocate PATH_MAX bytes
15353         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15354         PATH_MAX-sized buffer.
15355         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15356         * modules/stat-tests (Depends-on): Likewise.
15357         * tests/test-fstatat.c (includes): Drop pathmax.h.
15358         * tests/test-stat.c (includes): Likewise.
15359         Reported by Bruno Haible.
15360
15361 2011-06-20  Bruno Haible  <bruno@clisp.org>
15362
15363         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15364         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15365         * lib/float.c: New file.
15366         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15367         REPLACE_FLOAT_LDBL.
15368         * modules/float (Files): Add lib/float.c.
15369         (configure.ac): Invoke AC_LIBOBJ.
15370         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15371
15372 2011-06-20  Bruno Haible  <bruno@clisp.org>
15373
15374         Tests for module 'float'.
15375         * modules/float-tests: New file.
15376         * tests/test-float.c: New file.
15377
15378 2011-06-19  Bruno Haible  <bruno@clisp.org>
15379
15380         isinf: Coding style.
15381         * lib/isinf.c: Use GNU coding style.
15382
15383 2011-06-19  Bruno Haible  <bruno@clisp.org>
15384
15385         linkat test: Avoid test failure on AIX 7.1.
15386         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15387         * tests/test-link.h (test_link): Likewise.
15388
15389 2011-06-19  Bruno Haible  <bruno@clisp.org>
15390
15391         pread test: Avoid test failure on OpenBSD 4.9.
15392         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15393
15394 2011-06-19  Bruno Haible  <bruno@clisp.org>
15395
15396         sprintf-posix: Fix test failure on AIX 7.1.
15397         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15398         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15399         on AIX.
15400         * doc/posix-functions/fprintf.texi: Likewise.
15401         * doc/posix-functions/printf.texi: Likewise.
15402         * doc/posix-functions/snprintf.texi: Likewise.
15403         * doc/posix-functions/sprintf.texi: Likewise.
15404         * doc/posix-functions/vdprintf.texi: Likewise.
15405         * doc/posix-functions/vfprintf.texi: Likewise.
15406         * doc/posix-functions/vprintf.texi: Likewise.
15407         * doc/posix-functions/vsnprintf.texi: Likewise.
15408         * doc/posix-functions/vsprintf.texi: Likewise.
15409
15410 2011-06-19  Bruno Haible  <bruno@clisp.org>
15411
15412         roundl-ieee: Fix test failure on AIX 7.1.
15413         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15414         * doc/posix-functions/roundl.texi: Mention problem with negative
15415         arguments.
15416
15417 2011-06-19  Bruno Haible  <bruno@clisp.org>
15418
15419         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15420         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15421         * doc/posix-functions/round.texi: Mention problem with negative
15422         arguments.
15423         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15424
15425 2011-06-19  Bruno Haible  <bruno@clisp.org>
15426
15427         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15428         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15429         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15430         * doc/posix-functions/roundf.texi: Mention problem with negative
15431         arguments.
15432         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15433
15434 2011-06-19  Bruno Haible  <bruno@clisp.org>
15435
15436         ceilf-ieee: Work around bug on MacOS X 10.5.
15437         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15438
15439         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15440         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15441         IEEE compliant, avoid compiler optimizations.
15442         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15443         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15444         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15445         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15446         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15447         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15448         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15449         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15450         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15451         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15452
15453 2011-06-19  Bruno Haible  <bruno@clisp.org>
15454
15455         ceilf-ieee: Work around bug on AIX 7.1.
15456         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15457         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15458
15459 2011-06-19  Bruno Haible  <bruno@clisp.org>
15460
15461         ceil-ieee: Work around bug on AIX 7.1.
15462         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15463         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15464
15465 2011-06-18  Bruno Haible  <bruno@clisp.org>
15466
15467         fsync test: Avoid test failure on MacOS X and AIX.
15468         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15469         EINVAL.
15470
15471 2011-06-18  Bruno Haible  <bruno@clisp.org>
15472
15473         openat, fdopendir tests: Fix link errors.
15474         * modules/openat-tests (Depends-on): Add progname.
15475         * modules/fdopendir-tests (Depends-on): Likewise.
15476         * tests/test-fchownat.c: Include progname.h.
15477         (main): Call set_program_name.
15478         * tests/test-fstatat.c: Include progname.h.
15479         (main): Call set_program_name.
15480         * tests/test-mkdirat.c: Include progname.h.
15481         (main): Call set_program_name.
15482         * tests/test-openat.c: Include progname.h.
15483         (main): Call set_program_name.
15484         * tests/test-unlinkat.c: Include progname.h.
15485         (main): Call set_program_name.
15486         * tests/test-fdopendir.c: Include progname.h.
15487         (main): Call set_program_name.
15488
15489 2011-06-18  Bruno Haible  <bruno@clisp.org>
15490
15491         Doc update.
15492         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15493         HP-UX.
15494         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15495
15496 2011-06-18  Bruno Haible  <bruno@clisp.org>
15497
15498         getcwd tests: Avoid compilation error on HP-UX 11.31.
15499         * modules/getcwd-tests (Depends-on): Add pathmax.
15500         * tests/test-getcwd.c: Include pathmax.h.
15501
15502 2011-06-18  Bruno Haible  <bruno@clisp.org>
15503
15504         isfinite, isinf: Fix link error on AIX 6 and 7.
15505         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15506         needed, also test the macro with a 'float' argument.
15507         * m4/isinf.m4 (gl_ISINF): Likewise.
15508
15509 2011-06-18  Bruno Haible  <bruno@clisp.org>
15510
15511         getloadavg: Don't clobber LIBS. Regression from previous commit.
15512         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15513         AC_CHECK_LIB from here...
15514         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15515         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15516         gl_func_getloadavg_done.
15517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15518
15519 2011-06-18  Bruno Haible  <bruno@clisp.org>
15520
15521         clean-temp: Improve documentation.
15522         * lib/clean-temp.h: Explain better how to use this module.
15523         Reported by John Darrington <john@darrington.wattle.id.au>.
15524
15525 2011-06-17  Bruno Haible  <bruno@clisp.org>
15526
15527         pread, pwrite: Avoid cc warning on AIX.
15528         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15529         (pwrite): Likewise.
15530
15531 2011-06-17  Bruno Haible  <bruno@clisp.org>
15532
15533         spawn-pipe tests: Fix link error.
15534         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15536
15537 2011-06-17  Bruno Haible  <bruno@clisp.org>
15538
15539         Tests: Remove unnecessary dependency.
15540         * modules/canonicalize-tests (Depends-on): Remove progname.
15541         * modules/chown-tests (Depends-on): Likewise.
15542         * modules/dirname-tests (Depends-on): Likewise.
15543         * modules/fdopendir-tests (Depends-on): Likewise.
15544         * modules/fdutimensat-tests (Depends-on): Likewise.
15545         * modules/hash-tests (Depends-on): Likewise.
15546         * modules/lchown-tests (Depends-on): Likewise.
15547         * modules/linkat-tests (Depends-on): Likewise.
15548         * modules/renameat-tests (Depends-on): Likewise.
15549         * modules/spawn-pipe-tests (Depends-on): Likewise.
15550         * modules/utimensat-tests (Depends-on): Likewise.
15551
15552 2011-06-17  Bruno Haible  <bruno@clisp.org>
15553
15554         spawn-pipe tests: Fix link error.
15555         * tests/test-spawn-pipe-child.c: Undefine fflush.
15556
15557 2011-06-17  Bruno Haible  <bruno@clisp.org>
15558
15559         Fix tests link errors.
15560         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15561         * modules/chown-tests (Makefile.am): Don't link test-chown with
15562         LIBINTL.
15563         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15564         LIBINTL.
15565         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15566         LIBINTL.
15567         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15568         LIBINTL.
15569
15570 2011-06-16  Bruno Haible  <bruno@clisp.org>
15571
15572         crypto/gc-sha1: Fix recent regression.
15573         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15574         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15575
15576         crypto/gc-md5: Fix recent regression.
15577         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15578
15579         crypto/gc-md4: Fix recent regression.
15580         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15581         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15582
15583         crypto/gc-arctwo: Fix recent regression.
15584         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15585         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15586
15587         crypto/gc-rijndael: Fix recent regression.
15588         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15589         (configure.ac): Invoke AC_LIBOBJ here.
15590         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15592
15593         crypto/gc-hmac-sha1: Fix recent regression.
15594         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15595         (configure.ac): Invoke AC_LIBOBJ here.
15596         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15598
15599         crypto/gc-hmac-md5: Fix recent regression.
15600         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15601         (configure.ac): Invoke AC_LIBOBJ here.
15602         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15604
15605         crypto/gc-des: Fix recent regression.
15606         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15607         (configure.ac): Invoke AC_LIBOBJ here.
15608         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15610
15611         crypto/gc-arcfour: Fix recent regression.
15612         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15613         (configure.ac): Invoke AC_LIBOBJ here.
15614         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15616
15617 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15618
15619         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15620         After the 2011-05-21 change, this macro requires
15621         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15622         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15623
15624 2011-06-16  Bruno Haible  <bruno@clisp.org>
15625
15626         fprintftime: Move AC_LIBOBJ invocations to module description.
15627         * m4/fprintftime.m4: Remove file.
15628         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15629         (configure.ac): Remove gl_FPRINTFTIME call.
15630         (Makefile.am): Augment lib_SOURCES.
15631         Reported by Jim Meyering.
15632
15633 2011-06-16  Bruno Haible  <bruno@clisp.org>
15634
15635         tmpfile-safer: Finish 2011-05-23 commit.
15636         * m4/stdio-safer.m4: Really remove file.
15637         Reported by Jim Meyering.
15638
15639 2011-06-16  Bruno Haible  <bruno@clisp.org>
15640
15641         syntax-check: Fix typo.
15642         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15643         printf-posix.m4.
15644         Reported by Jim Meyering.
15645
15646 2011-06-13  Jim Meyering  <meyering@redhat.com>
15647
15648         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15649         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15650
15651 2011-05-23  Bruno Haible  <bruno@clisp.org>
15652
15653         yesno: Move AC_LIBOBJ invocations to module description.
15654         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15655         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15656
15657 2011-05-23  Bruno Haible  <bruno@clisp.org>
15658
15659         xstrtol: Move AC_LIBOBJ invocations to module description.
15660         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15661         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15662
15663 2011-05-23  Bruno Haible  <bruno@clisp.org>
15664
15665         xstrtold: Move AC_LIBOBJ invocations to module description.
15666         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15667         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15668
15669 2011-05-23  Bruno Haible  <bruno@clisp.org>
15670
15671         xstrtod: Move AC_LIBOBJ invocations to module description.
15672         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15673         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15674
15675 2011-05-23  Bruno Haible  <bruno@clisp.org>
15676
15677         xnanosleep: Move AC_LIBOBJ invocations to module description.
15678         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15679         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15680
15681 2011-05-23  Bruno Haible  <bruno@clisp.org>
15682
15683         xgetcwd: Move AC_LIBOBJ invocations to module description.
15684         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15685         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15686
15687 2011-05-23  Bruno Haible  <bruno@clisp.org>
15688
15689         xalloc: Move AC_LIBOBJ invocations to module description.
15690         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15691         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15692
15693 2011-05-23  Bruno Haible  <bruno@clisp.org>
15694
15695         write-any-file: Move AC_LIBOBJ invocations to module description.
15696         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15697         invocation.
15698         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15699
15700 2011-05-23  Bruno Haible  <bruno@clisp.org>
15701
15702         utimens: Move AC_LIBOBJ invocations to module description.
15703         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15704         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15705
15706 2011-05-23  Bruno Haible  <bruno@clisp.org>
15707
15708         utimecmp: Move AC_LIBOBJ invocations to module description.
15709         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15710         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15711
15712 2011-05-23  Bruno Haible  <bruno@clisp.org>
15713
15714         userspec: Move AC_LIBOBJ invocations to module description.
15715         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15716         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15717
15718 2011-05-23  Bruno Haible  <bruno@clisp.org>
15719
15720         unlinkdir: Move AC_LIBOBJ invocations to module description.
15721         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15722         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15723
15724 2011-05-23  Bruno Haible  <bruno@clisp.org>
15725
15726         unistd-safer: Move AC_LIBOBJ invocations to module description.
15727         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15728         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15729
15730 2011-05-23  Bruno Haible  <bruno@clisp.org>
15731
15732         tempname: Move AC_LIBOBJ invocations to module description.
15733         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15734         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15735
15736 2011-05-23  Bruno Haible  <bruno@clisp.org>
15737
15738         strftime: Move AC_LIBOBJ invocations to module description.
15739         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15740         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15741
15742 2011-05-23  Bruno Haible  <bruno@clisp.org>
15743
15744         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15745         * m4/stdlib-safer.m4: Remove file.
15746         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15747         (configure.ac): Remove gl_STDLIB_SAFER call.
15748         (Makefile.am): Augment lib_SOURCES.
15749
15750 2011-05-23  Bruno Haible  <bruno@clisp.org>
15751
15752         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15753         * m4/stdio-safer.m4: Remove file.
15754         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15755         (configure.ac): Remove gl_TMPFILE_SAFER call.
15756         (Makefile.am): Augment lib_SOURCES.
15757
15758 2011-05-23  Bruno Haible  <bruno@clisp.org>
15759
15760         popen-safer: Move AC_LIBOBJ invocations to module description.
15761         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15762         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15763         (configure.ac): Remove gl_POPEN_SAFER call.
15764         (Makefile.am): Augment lib_SOURCES.
15765
15766 2011-05-23  Bruno Haible  <bruno@clisp.org>
15767
15768         freopen-safer: Move AC_LIBOBJ invocations to module description.
15769         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15770         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15771         (configure.ac): Remove gl_FREOPEN_SAFER call.
15772         (Makefile.am): Augment lib_SOURCES.
15773
15774 2011-05-23  Bruno Haible  <bruno@clisp.org>
15775
15776         fopen-safer: Move AC_LIBOBJ invocations to module description.
15777         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15778         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15779         (configure.ac): Remove gl_FOPEN_SAFER call.
15780         (Makefile.am): Augment lib_SOURCES.
15781
15782 2011-05-23  Bruno Haible  <bruno@clisp.org>
15783
15784         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15785         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15786         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15787
15788 2011-05-23  Bruno Haible  <bruno@clisp.org>
15789
15790         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15791         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15792         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15793
15794 2011-05-23  Bruno Haible  <bruno@clisp.org>
15795
15796         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15797         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15798         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15799
15800 2011-05-23  Bruno Haible  <bruno@clisp.org>
15801
15802         settime: Move AC_LIBOBJ invocations to module description.
15803         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15804         * modules/settime (Makefile.am): Augment lib_SOURCES.
15805
15806 2011-05-23  Bruno Haible  <bruno@clisp.org>
15807
15808         savedir: Move AC_LIBOBJ invocations to module description.
15809         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15810         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15811
15812 2011-05-23  Bruno Haible  <bruno@clisp.org>
15813
15814         save-cwd: Move AC_LIBOBJ invocations to module description.
15815         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15816         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15817
15818 2011-05-23  Bruno Haible  <bruno@clisp.org>
15819
15820         same: Move AC_LIBOBJ invocations to module description.
15821         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15822         * modules/same (Makefile.am): Augment lib_SOURCES.
15823
15824 2011-05-23  Bruno Haible  <bruno@clisp.org>
15825
15826         safe-write: Move AC_LIBOBJ invocations to module description.
15827         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15828         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15829         instead of gl_SAFE_WRITE.
15830         (Makefile.am): Augment lib_SOURCES.
15831
15832 2011-05-23  Bruno Haible  <bruno@clisp.org>
15833
15834         safe-read: Move AC_LIBOBJ invocations to module description.
15835         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15836         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15837         of gl_SAFE_READ.
15838         (Makefile.am): Augment lib_SOURCES.
15839
15840 2011-05-23  Bruno Haible  <bruno@clisp.org>
15841
15842         safe-alloc: Move AC_LIBOBJ invocations to module description.
15843         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15844         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15845
15846 2011-05-23  Bruno Haible  <bruno@clisp.org>
15847
15848         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15849         * m4/rijndael.m4: Remove file.
15850         * modules/crypto/rijndael (Files): Remove it.
15851         (configure.ac): Remove gl_RIJNDAEL call.
15852         (Makefile.am): Augment lib_SOURCES.
15853
15854 2011-05-23  Bruno Haible  <bruno@clisp.org>
15855
15856         readtokens: Move AC_LIBOBJ invocations to module description.
15857         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15858         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15859
15860 2011-05-23  Bruno Haible  <bruno@clisp.org>
15861
15862         read-file: Move AC_LIBOBJ invocations to module description.
15863         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15864         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15865         of gl_FUNC_READ_FILE.
15866         (Makefile.am): Augment lib_SOURCES.
15867
15868 2011-05-23  Bruno Haible  <bruno@clisp.org>
15869
15870         quotearg: Move AC_LIBOBJ invocations to module description.
15871         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15872         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15873
15874 2011-05-23  Bruno Haible  <bruno@clisp.org>
15875
15876         quote: Move AC_LIBOBJ invocations to module description.
15877         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15878         * modules/quote (Makefile.am): Augment lib_SOURCES.
15879
15880 2011-05-23  Bruno Haible  <bruno@clisp.org>
15881
15882         posixver: Move AC_LIBOBJ invocations to module description.
15883         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15884         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15885
15886 2011-05-23  Bruno Haible  <bruno@clisp.org>
15887
15888         posixtm: Move AC_LIBOBJ invocations to module description.
15889         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15890         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15891
15892 2011-05-23  Bruno Haible  <bruno@clisp.org>
15893
15894         physmem: Move AC_LIBOBJ invocations to module description.
15895         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15896         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15897
15898 2011-05-23  Bruno Haible  <bruno@clisp.org>
15899
15900         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15901         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15902         invocation.
15903         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15904
15905 2011-05-23  Bruno Haible  <bruno@clisp.org>
15906
15907         mpsort: Move AC_LIBOBJ invocations to module description.
15908         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15909         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15910
15911 2011-05-23  Bruno Haible  <bruno@clisp.org>
15912
15913         modechange: Move AC_LIBOBJ invocations to module description.
15914         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15915         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15916
15917 2011-05-23  Bruno Haible  <bruno@clisp.org>
15918
15919         mkdir-p: Move AC_LIBOBJ invocations to module description.
15920         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15921         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15922
15923 2011-05-23  Bruno Haible  <bruno@clisp.org>
15924
15925         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15926         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15927         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15928
15929 2011-05-23  Bruno Haible  <bruno@clisp.org>
15930
15931         mgetgroups: Move AC_LIBOBJ invocations to module description.
15932         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15933         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15934
15935 2011-05-23  Bruno Haible  <bruno@clisp.org>
15936
15937         memxor: Move AC_LIBOBJ invocations to module description.
15938         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15939         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15940
15941 2011-05-23  Bruno Haible  <bruno@clisp.org>
15942
15943         memcoll: Move AC_LIBOBJ invocations to module description.
15944         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15945         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15946
15947 2011-05-23  Bruno Haible  <bruno@clisp.org>
15948
15949         memcasecmp: Move AC_LIBOBJ invocations to module description.
15950         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15951         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15952
15953 2011-05-23  Bruno Haible  <bruno@clisp.org>
15954
15955         crypto/md5: Move AC_LIBOBJ invocations to module description.
15956         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15957         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15958
15959 2011-05-23  Bruno Haible  <bruno@clisp.org>
15960
15961         crypto/md4: Move AC_LIBOBJ invocations to module description.
15962         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15963         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15964
15965 2011-05-23  Bruno Haible  <bruno@clisp.org>
15966
15967         crypto/md2: Move AC_LIBOBJ invocations to module description.
15968         * m4/md2.m4: Remove file.
15969         * modules/crypto/md2 (Files): Remove it.
15970         (configure.ac): Remove gl_MD2 call.
15971         (Makefile.am): Augment lib_SOURCES.
15972
15973 2011-05-23  Bruno Haible  <bruno@clisp.org>
15974
15975         long-options: Move AC_LIBOBJ invocations to module description.
15976         * m4/long-options.m4: Remove file.
15977         * modules/long-options (Files): Remove it.
15978         (configure.ac): Remove gl_LONG_OPTIONS call.
15979         (Makefile.am): Augment lib_SOURCES.
15980
15981 2011-05-23  Bruno Haible  <bruno@clisp.org>
15982
15983         i-ring: Move AC_LIBOBJ invocations to module description.
15984         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15985         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15986
15987 2011-05-23  Bruno Haible  <bruno@clisp.org>
15988
15989         idcache: Move AC_LIBOBJ invocations to module description.
15990         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15991         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15992
15993 2011-05-23  Bruno Haible  <bruno@clisp.org>
15994
15995         human: Move AC_LIBOBJ invocations to module description.
15996         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15997         * modules/human (Makefile.am): Augment lib_SOURCES.
15998
15999 2011-05-23  Bruno Haible  <bruno@clisp.org>
16000
16001         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16002         * m4/hmac-sha1.m4: Remove file.
16003         * modules/crypto/hmac-sha1 (Files): Remove it.
16004         (configure.ac): Remove gl_HMAC_SHA1 call.
16005         (Makefile.am): Augment lib_SOURCES.
16006
16007 2011-05-23  Bruno Haible  <bruno@clisp.org>
16008
16009         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16010         * m4/hmac-md5.m4: Remove file.
16011         * modules/crypto/hmac-md5 (Files): Remove it.
16012         (configure.ac): Remove gl_HMAC_MD5 call.
16013         (Makefile.am): Augment lib_SOURCES.
16014
16015 2011-05-23  Bruno Haible  <bruno@clisp.org>
16016
16017         hash: Move AC_LIBOBJ invocations to module description.
16018         * m4/hash.m4: Remove file.
16019         * modules/hash (Files): Remove it.
16020         (configure.ac): Remove gl_HASH call.
16021         (Makefile.am): Augment lib_SOURCES.
16022
16023 2011-05-23  Bruno Haible  <bruno@clisp.org>
16024
16025         hard-locale: Move AC_LIBOBJ invocations to module description.
16026         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16027         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16028
16029 2011-05-23  Bruno Haible  <bruno@clisp.org>
16030
16031         getugroups: Move AC_LIBOBJ invocations to module description.
16032         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16033         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16034
16035 2011-05-23  Bruno Haible  <bruno@clisp.org>
16036
16037         gettime: Move AC_LIBOBJ invocations to module description.
16038         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16039         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16040
16041 2011-05-23  Bruno Haible  <bruno@clisp.org>
16042
16043         getndelim2: Move AC_LIBOBJ invocations to module description.
16044         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16045         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16046
16047 2011-05-23  Bruno Haible  <bruno@clisp.org>
16048
16049         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16050         * m4/gc-pbkdf2-sha1.m4: Remove file.
16051         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16052         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16053         (Makefile.am): Augment lib_SOURCES.
16054
16055 2011-05-23  Bruno Haible  <bruno@clisp.org>
16056
16057         fts: Move AC_LIBOBJ invocations to module description.
16058         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16059         * modules/fts (configure.ac): ... to here.
16060
16061 2011-05-23  Bruno Haible  <bruno@clisp.org>
16062
16063         file-type: Move AC_LIBOBJ invocations to module description.
16064         * m4/file-type.m4: Remove file.
16065         * modules/file-type (Files): Remove it.
16066         (configure.ac): Remove gl_FILE_TYPE call.
16067         (Makefile.am): Augment lib_SOURCES.
16068
16069 2011-05-23  Bruno Haible  <bruno@clisp.org>
16070
16071         filenamecat*: Respect rules for use of AC_LIBOBJ.
16072         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16073         Remove AC_LIBOBJ invocation.
16074         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16075         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16076
16077 2011-05-23  Bruno Haible  <bruno@clisp.org>
16078
16079         filemode: Move AC_LIBOBJ invocations to module description.
16080         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16081         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16082
16083 2011-05-23  Bruno Haible  <bruno@clisp.org>
16084
16085         openat-safer: Move AC_LIBOBJ invocations to module description.
16086         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16087         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16088
16089 2011-05-23  Bruno Haible  <bruno@clisp.org>
16090
16091         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16092         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16093         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16094
16095 2011-05-23  Bruno Haible  <bruno@clisp.org>
16096
16097         exclude: Move AC_LIBOBJ invocations to module description.
16098         * m4/exclude.m4: Remove file.
16099         * modules/exclude (Files): Remove it.
16100         (configure.ac): Remove gl_EXCLUDE call.
16101         (Makefile.am): Augment lib_SOURCES.
16102
16103 2011-05-23  Bruno Haible  <bruno@clisp.org>
16104
16105         dirname*: Respect rules for use of AC_LIBOBJ.
16106         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16107         invocations.
16108         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16109         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16110
16111 2011-05-23  Bruno Haible  <bruno@clisp.org>
16112
16113         dirent-safer: Move AC_LIBOBJ invocations to module description.
16114         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16115         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16116
16117 2011-05-23  Bruno Haible  <bruno@clisp.org>
16118
16119         crypto/des: Move AC_LIBOBJ invocations to module description.
16120         * m4/des.m4: Remove file.
16121         * modules/crypto/des (Files): Remove it.
16122         (configure.ac): Remove gl_DES call.
16123         (Makefile.am): Augment lib_SOURCES.
16124
16125 2011-05-23  Bruno Haible  <bruno@clisp.org>
16126
16127         cycle-check: Move AC_LIBOBJ invocations to module description.
16128         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16129         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16130
16131 2011-05-23  Bruno Haible  <bruno@clisp.org>
16132
16133         c-strtold: Move AC_LIBOBJ invocations to module description.
16134         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16135         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16136
16137 2011-05-23  Bruno Haible  <bruno@clisp.org>
16138
16139         c-strtod: Move AC_LIBOBJ invocations to module description.
16140         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16141         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16142
16143 2011-05-23  Bruno Haible  <bruno@clisp.org>
16144
16145         crc: Move AC_LIBOBJ invocations to module description.
16146         * m4/crc.m4: Remove file.
16147         * modules/crc (Files): Remove it.
16148         (configure.ac): Remove gl_CRC call.
16149         (Makefile.am): Augment lib_SOURCES.
16150
16151 2011-05-23  Bruno Haible  <bruno@clisp.org>
16152
16153         close-stream: Move AC_LIBOBJ invocations to module description.
16154         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16155         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16156
16157 2011-05-23  Bruno Haible  <bruno@clisp.org>
16158
16159         closeout: Move AC_LIBOBJ invocations to module description.
16160         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16161         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16162
16163 2011-05-23  Bruno Haible  <bruno@clisp.org>
16164
16165         closein: Move AC_LIBOBJ invocations to module description.
16166         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16167         * modules/closein (Makefile.am): Augment lib_SOURCES.
16168
16169 2011-05-23  Bruno Haible  <bruno@clisp.org>
16170
16171         cloexec: Move AC_LIBOBJ invocations to module description.
16172         * m4/cloexec.m4: Remove file.
16173         * modules/cloexec (Files): Remove it.
16174         (configure.ac): Remove gl_CLOEXEC call.
16175         (Makefile.am): Augment lib_SOURCES.
16176
16177 2011-05-23  Bruno Haible  <bruno@clisp.org>
16178
16179         check-version: Move AC_LIBOBJ invocations to module description.
16180         * m4/check-version.m4: Remove file.
16181         * modules/check-version (Files): Remove it.
16182         (configure.ac): Remove gl_CHECK_VERSION call.
16183         (Makefile.am): Augment lib_SOURCES.
16184
16185 2011-05-23  Bruno Haible  <bruno@clisp.org>
16186
16187         chdir-safer: Move AC_LIBOBJ invocations to module description.
16188         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16189         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16190
16191 2011-05-23  Bruno Haible  <bruno@clisp.org>
16192
16193         canonicalize: Move AC_LIBOBJ invocations to module description.
16194         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16195         AC_LIBOBJ invocation.
16196         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16197
16198 2011-05-23  Bruno Haible  <bruno@clisp.org>
16199
16200         canon-host: Move AC_LIBOBJ invocations to module description.
16201         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16202         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16203         instead of gl_CANON_HOST.
16204         (Makefile.am): Augment lib_SOURCES.
16205
16206 2011-05-23  Bruno Haible  <bruno@clisp.org>
16207
16208         backupfile: Move AC_LIBOBJ invocations to module description.
16209         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16210         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16211
16212 2011-05-23  Bruno Haible  <bruno@clisp.org>
16213
16214         argmatch: Move AC_LIBOBJ invocations to module description.
16215         * m4/argmatch.m4: Remove file.
16216         * modules/argmatch (Files): Remove it.
16217         (configure.ac): Remove gl_ARGMATCH call.
16218         (Makefile.am): Augment lib_SOURCES.
16219
16220 2011-05-23  Bruno Haible  <bruno@clisp.org>
16221
16222         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16223         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16224         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16225
16226 2011-05-23  Bruno Haible  <bruno@clisp.org>
16227
16228         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16229         * m4/arcfour.m4: Remove file.
16230         * modules/crypto/arcfour (Files): Remove it.
16231         (configure.ac): Remove gl_ARCFOUR call.
16232         (Makefile.am): Augment lib_SOURCES.
16233
16234 2011-05-22  Bruno Haible  <bruno@clisp.org>
16235
16236         write: Move AC_LIBOBJ invocations to module description.
16237         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16238         * modules/write (configure.ac): ... to here.
16239
16240 2011-05-22  Bruno Haible  <bruno@clisp.org>
16241
16242         wmemset: Move AC_LIBOBJ invocations to module description.
16243         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16244         here...
16245         * modules/wmemset (configure.ac): ... to here.
16246
16247 2011-05-22  Bruno Haible  <bruno@clisp.org>
16248
16249         wmemmove: Move AC_LIBOBJ invocations to module description.
16250         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16251         here...
16252         * modules/wmemmove (configure.ac): ... to here.
16253
16254 2011-05-22  Bruno Haible  <bruno@clisp.org>
16255
16256         wmemcpy: Move AC_LIBOBJ invocations to module description.
16257         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16258         here...
16259         * modules/wmemcpy (configure.ac): ... to here.
16260
16261 2011-05-22  Bruno Haible  <bruno@clisp.org>
16262
16263         wmemcmp: Move AC_LIBOBJ invocations to module description.
16264         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16265         here...
16266         * modules/wmemcmp (configure.ac): ... to here.
16267
16268 2011-05-22  Bruno Haible  <bruno@clisp.org>
16269
16270         wmemchr: Move AC_LIBOBJ invocations to module description.
16271         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16272         here...
16273         * modules/wmemchr (configure.ac): ... to here.
16274
16275 2011-05-22  Bruno Haible  <bruno@clisp.org>
16276
16277         wcswidth: Move AC_LIBOBJ invocations to module description.
16278         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16279         here...
16280         * modules/wcswidth (configure.ac): ... to here.
16281
16282 2011-05-22  Bruno Haible  <bruno@clisp.org>
16283
16284         wcwidth: Respect rules for use of AC_LIBOBJ.
16285         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16286         invocation from here...
16287         * modules/wcwidth (configure.ac): ... to here.
16288         (Depends-on): Update conditions.
16289
16290 2011-05-22  Bruno Haible  <bruno@clisp.org>
16291
16292         wctype: Move AC_LIBOBJ invocations to module description.
16293         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16294         invocation from here...
16295         * modules/wctype (configure.ac): ... to here.
16296         (Depends-on): Update conditions.
16297
16298 2011-05-22  Bruno Haible  <bruno@clisp.org>
16299
16300         wctrans: Move AC_LIBOBJ invocations to module description.
16301         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16302         invocation from here...
16303         * modules/wctrans (configure.ac): ... to here.
16304
16305 2011-05-22  Bruno Haible  <bruno@clisp.org>
16306
16307         wctomb: Move AC_LIBOBJ invocations to module description.
16308         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16309         invocations from here...
16310         * modules/wctomb (configure.ac): ... to here.
16311
16312 2011-05-22  Bruno Haible  <bruno@clisp.org>
16313
16314         wctob: Move AC_LIBOBJ invocations to module description.
16315         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16316         gl_PREREQ_WCTOB invocations from here...
16317         * modules/wctob (configure.ac): ... to here.
16318         (Depends-on): Update conditions.
16319
16320 2011-05-22  Bruno Haible  <bruno@clisp.org>
16321
16322         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16323         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16324         here...
16325         * modules/wcsxfrm (configure.ac): ... to here.
16326
16327 2011-05-22  Bruno Haible  <bruno@clisp.org>
16328
16329         wcstok: Move AC_LIBOBJ invocations to module description.
16330         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16331         * modules/wcstok (configure.ac): ... to here.
16332
16333 2011-05-22  Bruno Haible  <bruno@clisp.org>
16334
16335         wcsstr: Move AC_LIBOBJ invocations to module description.
16336         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16337         * modules/wcsstr (configure.ac): ... to here.
16338
16339 2011-05-22  Bruno Haible  <bruno@clisp.org>
16340
16341         wcsspn: Move AC_LIBOBJ invocations to module description.
16342         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16343         * modules/wcsspn (configure.ac): ... to here.
16344
16345 2011-05-22  Bruno Haible  <bruno@clisp.org>
16346
16347         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16348         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16349         gl_PREREQ_WCSRTOMBS invocations from here...
16350         * modules/wcsrtombs (configure.ac): ... to here.
16351
16352 2011-05-22  Bruno Haible  <bruno@clisp.org>
16353
16354         wcsrchr: Move AC_LIBOBJ invocations to module description.
16355         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16356         here...
16357         * modules/wcsrchr (configure.ac): ... to here.
16358
16359 2011-05-22  Bruno Haible  <bruno@clisp.org>
16360
16361         wcspbrk: Move AC_LIBOBJ invocations to module description.
16362         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16363         here...
16364         * modules/wcspbrk (configure.ac): ... to here.
16365
16366 2011-05-22  Bruno Haible  <bruno@clisp.org>
16367
16368         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16369         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16370         gl_PREREQ_WCSNRTOMBS invocations from here...
16371         * modules/wcsnrtombs (configure.ac): ... to here.
16372
16373 2011-05-22  Bruno Haible  <bruno@clisp.org>
16374
16375         wcsnlen: Move AC_LIBOBJ invocations to module description.
16376         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16377         here...
16378         * modules/wcsnlen (configure.ac): ... to here.
16379
16380 2011-05-22  Bruno Haible  <bruno@clisp.org>
16381
16382         wcsncpy: Move AC_LIBOBJ invocations to module description.
16383         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16384         here...
16385         * modules/wcsncpy (configure.ac): ... to here.
16386
16387 2011-05-22  Bruno Haible  <bruno@clisp.org>
16388
16389         wcsncmp: Move AC_LIBOBJ invocations to module description.
16390         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16391         here...
16392         * modules/wcsncmp (configure.ac): ... to here.
16393
16394 2011-05-22  Bruno Haible  <bruno@clisp.org>
16395
16396         wcsncat: Move AC_LIBOBJ invocations to module description.
16397         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16398         here...
16399         * modules/wcsncat (configure.ac): ... to here.
16400
16401 2011-05-22  Bruno Haible  <bruno@clisp.org>
16402
16403         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16404         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16405         from here...
16406         * modules/wcsncasecmp (configure.ac): ... to here.
16407
16408 2011-05-22  Bruno Haible  <bruno@clisp.org>
16409
16410         wcslen: Move AC_LIBOBJ invocations to module description.
16411         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16412         * modules/wcslen (configure.ac): ... to here.
16413
16414 2011-05-22  Bruno Haible  <bruno@clisp.org>
16415
16416         wcsdup: Move AC_LIBOBJ invocations to module description.
16417         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16418         * modules/wcsdup (configure.ac): ... to here.
16419
16420 2011-05-22  Bruno Haible  <bruno@clisp.org>
16421
16422         wcscspn: Move AC_LIBOBJ invocations to module description.
16423         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16424         here...
16425         * modules/wcscspn (configure.ac): ... to here.
16426
16427 2011-05-22  Bruno Haible  <bruno@clisp.org>
16428
16429         wcscpy: Move AC_LIBOBJ invocations to module description.
16430         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16431         * modules/wcscpy (configure.ac): ... to here.
16432
16433 2011-05-22  Bruno Haible  <bruno@clisp.org>
16434
16435         wcscoll: Move AC_LIBOBJ invocations to module description.
16436         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16437         here...
16438         * modules/wcscoll (configure.ac): ... to here.
16439
16440 2011-05-22  Bruno Haible  <bruno@clisp.org>
16441
16442         wcscmp: Move AC_LIBOBJ invocations to module description.
16443         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16444         * modules/wcscmp (configure.ac): ... to here.
16445
16446 2011-05-22  Bruno Haible  <bruno@clisp.org>
16447
16448         wcschr: Move AC_LIBOBJ invocations to module description.
16449         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16450         * modules/wcschr (configure.ac): ... to here.
16451
16452 2011-05-22  Bruno Haible  <bruno@clisp.org>
16453
16454         wcscat: Move AC_LIBOBJ invocations to module description.
16455         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16456         * modules/wcscat (configure.ac): ... to here.
16457
16458 2011-05-22  Bruno Haible  <bruno@clisp.org>
16459
16460         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16461         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16462         here...
16463         * modules/wcscasecmp (configure.ac): ... to here.
16464
16465 2011-05-22  Bruno Haible  <bruno@clisp.org>
16466
16467         wcrtomb: Move AC_LIBOBJ invocations to module description.
16468         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16469         invocations from here...
16470         * modules/wcrtomb (configure.ac): ... to here.
16471
16472 2011-05-22  Bruno Haible  <bruno@clisp.org>
16473
16474         wcpncpy: Move AC_LIBOBJ invocations to module description.
16475         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16476         here...
16477         * modules/wcpncpy (configure.ac): ... to here.
16478
16479 2011-05-22  Bruno Haible  <bruno@clisp.org>
16480
16481         wcpcpy: Move AC_LIBOBJ invocations to module description.
16482         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16483         * modules/wcpcpy (configure.ac): ... to here.
16484
16485 2011-05-22  Bruno Haible  <bruno@clisp.org>
16486
16487         waitpid: Move AC_LIBOBJ invocations to module description.
16488         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16489         invocation from here...
16490         * modules/waitpid (configure.ac): ... to here.
16491
16492 2011-05-22  Bruno Haible  <bruno@clisp.org>
16493
16494         utimensat: Move AC_LIBOBJ invocations to module description.
16495         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16496         here...
16497         * modules/utimensat (configure.ac): ... to here.
16498
16499 2011-05-22  Bruno Haible  <bruno@clisp.org>
16500
16501         usleep: Move AC_LIBOBJ invocations to module description.
16502         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16503         here...
16504         * modules/usleep (configure.ac): ... to here.
16505
16506 2011-05-22  Bruno Haible  <bruno@clisp.org>
16507
16508         unlockpt: Move AC_LIBOBJ invocations to module description.
16509         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16510         gl_PREREQ_UNLOCKPT invocations from here...
16511         * modules/unlockpt (configure.ac): ... to here.
16512
16513 2011-05-22  Bruno Haible  <bruno@clisp.org>
16514
16515         unlink: Respect rules for use of AC_LIBOBJ.
16516         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16517         * modules/unlink (configure.ac): ... to here.
16518
16519 2011-05-22  Bruno Haible  <bruno@clisp.org>
16520
16521         uname: Move AC_LIBOBJ invocations to module description.
16522         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16524         here...
16525         * modules/uname (configure.ac): ... to here.
16526
16527 2011-05-22  Bruno Haible  <bruno@clisp.org>
16528
16529         ttyname_r: Move AC_LIBOBJ invocations to module description.
16530         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16531         gl_PREREQ_TTYNAME_R invocations from here...
16532         * modules/ttyname_r (configure.ac): ... to here.
16533
16534 2011-05-22  Bruno Haible  <bruno@clisp.org>
16535
16536         tsearch: Move AC_LIBOBJ invocations to module description.
16537         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16538         invocations from here...
16539         * modules/tsearch (configure.ac): ... to here.
16540
16541 2011-05-22  Bruno Haible  <bruno@clisp.org>
16542
16543         towctrans: Move AC_LIBOBJ invocations to module description.
16544         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16545         AC_LIBOBJ invocation from here...
16546         * modules/towctrans (configure.ac): ... to here.
16547
16548 2011-05-22  Bruno Haible  <bruno@clisp.org>
16549
16550         tmpfile: Move AC_LIBOBJ invocations to module description.
16551         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16552         invocations from here...
16553         * modules/tmpfile (configure.ac): ... to here.
16554
16555 2011-05-22  Bruno Haible  <bruno@clisp.org>
16556
16557         times: Move AC_LIBOBJ invocations to module description.
16558         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16559         * modules/times (configure.ac): ... to here.
16560
16561 2011-05-22  Bruno Haible  <bruno@clisp.org>
16562
16563         time_r: Move AC_LIBOBJ invocations to module description.
16564         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16565         invocations from here...
16566         * modules/time_r (configure.ac): ... to here.
16567
16568 2011-05-22  Bruno Haible  <bruno@clisp.org>
16569
16570         timegm: Move AC_LIBOBJ invocations to module description.
16571         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16572         invocations from here...
16573         * modules/timegm (configure.ac): ... to here.
16574
16575 2011-05-22  Bruno Haible  <bruno@clisp.org>
16576
16577         tcgetsid: Move AC_LIBOBJ invocations to module description.
16578         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16579         and gl_PREREQ_TCGETSID invocations from here...
16580         * modules/tcgetsid (configure.ac): ... to here.
16581         (Depends-on): Update conditions.
16582
16583 2011-05-22  Bruno Haible  <bruno@clisp.org>
16584
16585         symlinkat: Move AC_LIBOBJ invocations to module description.
16586         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16587         here...
16588         * modules/symlinkat (configure.ac): ... to here.
16589
16590 2011-05-22  Bruno Haible  <bruno@clisp.org>
16591
16592         symlink: Move AC_LIBOBJ invocations to module description.
16593         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16594         here...
16595         * modules/symlink (configure.ac): ... to here.
16596
16597 2011-05-22  Bruno Haible  <bruno@clisp.org>
16598
16599         strverscmp: Move AC_LIBOBJ invocations to module description.
16600         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16601         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16602         from here...
16603         * modules/strverscmp (configure.ac): ... to here.
16604
16605 2011-05-22  Bruno Haible  <bruno@clisp.org>
16606
16607         strtok_r: Move AC_LIBOBJ invocations to module description.
16608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16609         and gl_PREREQ_STRTOK_R invocations from here...
16610         * modules/strtok_r (configure.ac): ... to here.
16611         (Depends-on): Update conditions.
16612
16613 2011-05-22  Bruno Haible  <bruno@clisp.org>
16614
16615         strtoumax: Move AC_LIBOBJ invocations to module description.
16616         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16618         from here...
16619         * modules/strtoumax (configure.ac): ... to here.
16620
16621 2011-05-22  Bruno Haible  <bruno@clisp.org>
16622
16623         strtoimax: Move AC_LIBOBJ invocations to module description.
16624         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16626         from here...
16627         * modules/strtoimax (configure.ac): ... to here.
16628
16629 2011-05-22  Bruno Haible  <bruno@clisp.org>
16630
16631         strtoull: Move AC_LIBOBJ invocations to module description.
16632         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16633         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16634         from here...
16635         * modules/strtoull (configure.ac): ... to here.
16636
16637 2011-05-22  Bruno Haible  <bruno@clisp.org>
16638
16639         strtoll: Move AC_LIBOBJ invocations to module description.
16640         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16641         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16642         here...
16643         * modules/strtoll (configure.ac): ... to here.
16644
16645 2011-05-22  Bruno Haible  <bruno@clisp.org>
16646
16647         strtoul: Move AC_LIBOBJ invocations to module description.
16648         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16649         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16650         * modules/strtoul (configure.ac): ... to here.
16651
16652 2011-05-22  Bruno Haible  <bruno@clisp.org>
16653
16654         strtol: Move AC_LIBOBJ invocations to module description.
16655         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16656         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16657         * modules/strtol (configure.ac): ... to here.
16658
16659 2011-05-22  Bruno Haible  <bruno@clisp.org>
16660
16661         strtod: Move AC_LIBOBJ invocations to module description.
16662         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16663         invocations from here...
16664         * modules/strtod (configure.ac): ... to here.
16665
16666 2011-05-22  Bruno Haible  <bruno@clisp.org>
16667
16668         strstr*: Move AC_LIBOBJ invocations to module description.
16669         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16670         invocations from here...
16671         * modules/strstr-simple (configure.ac): ... to here.
16672         * modules/strstr (configure.ac): ... and here.
16673
16674 2011-05-22  Bruno Haible  <bruno@clisp.org>
16675
16676         strsignal: Move AC_LIBOBJ invocations to module description.
16677         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16678         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16679         * modules/strsignal (configure.ac): ... to here.
16680         (Depends-on): Update conditions.
16681
16682 2011-05-22  Bruno Haible  <bruno@clisp.org>
16683
16684         strsep: Move AC_LIBOBJ invocations to module description.
16685         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16686         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16687         here...
16688         * modules/strsep (configure.ac): ... to here.
16689
16690 2011-05-22  Bruno Haible  <bruno@clisp.org>
16691
16692         strptime: Move AC_LIBOBJ invocations to module description.
16693         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16694         gl_PREREQ_STRPTIME invocations from here...
16695         * modules/strptime (configure.ac): ... to here.
16696
16697 2011-05-22  Bruno Haible  <bruno@clisp.org>
16698
16699         strpbrk: Move AC_LIBOBJ invocations to module description.
16700         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16701         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16702         here...
16703         * modules/strpbrk (configure.ac): ... to here.
16704
16705 2011-05-22  Bruno Haible  <bruno@clisp.org>
16706
16707         strnlen: Move AC_LIBOBJ invocations to module description.
16708         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16709         invocations from here...
16710         * modules/strnlen (configure.ac): ... to here.
16711
16712 2011-05-22  Bruno Haible  <bruno@clisp.org>
16713
16714         strndup: Move AC_LIBOBJ invocations to module description.
16715         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16716         invocations from here...
16717         * modules/strndup (configure.ac): ... to here.
16718         (Depends-on): Update conditions.
16719
16720 2011-05-22  Bruno Haible  <bruno@clisp.org>
16721
16722         strncat: Move AC_LIBOBJ invocations to module description.
16723         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16724         invocations from here...
16725         * modules/strncat (configure.ac): ... to here.
16726
16727 2011-05-22  Bruno Haible  <bruno@clisp.org>
16728
16729         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16730         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16731         invocations from here...
16732         * modules/strdup (configure.ac): ... to here.
16733         * modules/strdup-posix (configure.ac): ... and here.
16734
16735 2011-05-22  Bruno Haible  <bruno@clisp.org>
16736
16737         strcspn: Move AC_LIBOBJ invocations to module description.
16738         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16740         here...
16741         * modules/strcspn (configure.ac): ... to here.
16742
16743 2011-05-22  Bruno Haible  <bruno@clisp.org>
16744
16745         strchrnul: Move AC_LIBOBJ invocations to module description.
16746         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16747         gl_PREREQ_STRCHRNUL invocations from here...
16748         * modules/strchrnul (configure.ac): ... to here.
16749
16750 2011-05-22  Bruno Haible  <bruno@clisp.org>
16751
16752         strcasestr*: Move AC_LIBOBJ invocations to module description.
16753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16754         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16755         * modules/strcasestr-simple (configure.ac): ... to here.
16756         * modules/strcasestr (configure.ac): ... and here.
16757
16758 2011-05-22  Bruno Haible  <bruno@clisp.org>
16759
16760         strcase: Move AC_LIBOBJ invocations to module description.
16761         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16762         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16763         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16764         gl_PREREQ_STRNCASECMP invocations from here...
16765         * modules/strcase (configure.ac): ... to here.
16766
16767 2011-05-22  Bruno Haible  <bruno@clisp.org>
16768
16769         stpncpy: Move AC_LIBOBJ invocations to module description.
16770         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16771         here...
16772         * modules/stpncpy (configure.ac): ... to here.
16773
16774 2011-05-22  Bruno Haible  <bruno@clisp.org>
16775
16776         stpcpy: Move AC_LIBOBJ invocations to module description.
16777         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16778         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16779         here...
16780         * modules/stpcpy (configure.ac): ... to here.
16781
16782 2011-05-21  Bruno Haible  <bruno@clisp.org>
16783
16784         stat: Move AC_LIBOBJ invocations to module description.
16785         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16786         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16787         here...
16788         * modules/stat (configure.ac): ... to here.
16789
16790 2011-05-21  Bruno Haible  <bruno@clisp.org>
16791
16792         sleep: Move AC_LIBOBJ invocations to module description.
16793         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16794         * modules/sleep (configure.ac): ... to here.
16795
16796 2011-05-21  Bruno Haible  <bruno@clisp.org>
16797
16798         signbit: Move AC_LIBOBJ invocations to module description.
16799         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16800         * modules/signbit (configure.ac): ... to here.
16801
16802 2011-05-21  Bruno Haible  <bruno@clisp.org>
16803
16804         sigprocmask: Move AC_LIBOBJ invocations to module description.
16805         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16806         gl_PREREQ_SIGPROMASK invocations from here...
16807         * modules/sigprocmask (configure.ac): ... to here.
16808
16809 2011-05-21  Bruno Haible  <bruno@clisp.org>
16810
16811         sigaction: Move AC_LIBOBJ invocations to module description.
16812         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16813         gl_PREREQ_SIGACTION invocations from here...
16814         * modules/sigaction (configure.ac): ... to here.
16815
16816 2011-05-21  Bruno Haible  <bruno@clisp.org>
16817
16818         sig2str: Move AC_LIBOBJ invocations to module description.
16819         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16820         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16821         here...
16822         * modules/sig2str (configure.ac): ... to here.
16823
16824 2011-05-21  Bruno Haible  <bruno@clisp.org>
16825
16826         setlocale: Move AC_LIBOBJ invocations to module description.
16827         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16828         gl_PREREQ_SETLOCALE invocations from here...
16829         * modules/setlocale (configure.ac): ... to here.
16830
16831 2011-05-21  Bruno Haible  <bruno@clisp.org>
16832
16833         unsetenv: Move AC_LIBOBJ invocations to module description.
16834         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16835         and gl_PREREQ_UNSETENV invocations from here...
16836         * modules/unsetenv (configure.ac): ... to here.
16837         (Depends-on): Update.
16838
16839 2011-05-21  Bruno Haible  <bruno@clisp.org>
16840
16841         setenv: Move AC_LIBOBJ invocations to module description.
16842         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16843         here...
16844         * modules/setenv (configure.ac): ... to here.
16845
16846 2011-05-21  Bruno Haible  <bruno@clisp.org>
16847
16848         selinux-h: Move AC_LIBOBJ invocations to module description.
16849         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16850         AC_LIBOBJ invocation from here...
16851         * modules/selinux-h (configure.ac): ... to here.
16852
16853 2011-05-21  Bruno Haible  <bruno@clisp.org>
16854
16855         select: Respect rules for use of AC_LIBOBJ.
16856         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16857         here...
16858         * modules/select (configure.ac): ... to here.
16859
16860 2011-05-21  Bruno Haible  <bruno@clisp.org>
16861
16862         scandir: Move AC_LIBOBJ invocations to module description.
16863         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16864         invocations from here...
16865         * modules/scandir (configure.ac): ... to here.
16866
16867 2011-05-21  Bruno Haible  <bruno@clisp.org>
16868
16869         rpmatch: Move AC_LIBOBJ invocations to module description.
16870         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16872         here...
16873         * modules/rpmatch (configure.ac): ... to here.
16874
16875 2011-05-21  Bruno Haible  <bruno@clisp.org>
16876
16877         rmdir: Respect rules for use of AC_LIBOBJ.
16878         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16879         * modules/rmdir (configure.ac): ... to here.
16880
16881 2011-05-21  Bruno Haible  <bruno@clisp.org>
16882
16883         renameat: Move AC_LIBOBJ invocations to module description.
16884         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16885         here...
16886         * modules/renameat (configure.ac): ... to here.
16887
16888 2011-05-21  Bruno Haible  <bruno@clisp.org>
16889
16890         rename: Respect rules for use of AC_LIBOBJ.
16891         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16892         here...
16893         * modules/rename (configure.ac): ... to here.
16894
16895 2011-05-21  Bruno Haible  <bruno@clisp.org>
16896
16897         remove: Move AC_LIBOBJ invocations to module description.
16898         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16899         here...
16900         * modules/remove (configure.ac): ... to here.
16901
16902 2011-05-21  Bruno Haible  <bruno@clisp.org>
16903
16904         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16905         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16906         macro.
16907         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16908         * modules/relocatable-lib (configure.ac): ... to here.
16909         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16910         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16911
16912 2011-05-21  Bruno Haible  <bruno@clisp.org>
16913
16914         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16915         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16916         here...
16917         * modules/relocatable-prog (configure.ac): ... to here.
16918
16919 2011-05-21  Bruno Haible  <bruno@clisp.org>
16920
16921         regex: Move AC_LIBOBJ invocations to module description.
16922         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16923         invocations from here...
16924         * modules/regex (configure.ac): ... to here.
16925
16926 2011-05-21  Bruno Haible  <bruno@clisp.org>
16927
16928         realloc-*: Move AC_LIBOBJ invocations to module description.
16929         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16930         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16931         AC_LIBOBJ invocations from here...
16932         * modules/realloc-gnu (configure.ac): ... to here.
16933         * modules/realloc-posix (configure.ac): ... and here.
16934
16935 2011-05-21  Bruno Haible  <bruno@clisp.org>
16936
16937         readutmp: Move AC_LIBOBJ invocations to module description.
16938         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16939         * modules/readutmp (configure.ac): ... to here.
16940
16941 2011-05-21  Bruno Haible  <bruno@clisp.org>
16942
16943         readlinkat: Move AC_LIBOBJ invocations to module description.
16944         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16945         here...
16946         * modules/readlinkat (configure.ac): ... to here.
16947
16948 2011-05-21  Bruno Haible  <bruno@clisp.org>
16949
16950         readlink: Move AC_LIBOBJ invocations to module description.
16951         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16952         gl_PREREQ_READLINK invocations from here...
16953         * modules/readlink (configure.ac): ... to here.
16954
16955 2011-05-21  Bruno Haible  <bruno@clisp.org>
16956
16957         readline: Move AC_LIBOBJ invocations to module description.
16958         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16959         gl_PREREQ_READLINE invocations from here...
16960         * modules/readline (configure.ac): ... to here.
16961
16962 2011-05-21  Bruno Haible  <bruno@clisp.org>
16963
16964         read: Move AC_LIBOBJ invocations to module description.
16965         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16966         * modules/read (configure.ac): ... to here.
16967
16968 2011-05-21  Bruno Haible  <bruno@clisp.org>
16969
16970         rawmemchr: Move AC_LIBOBJ invocations to module description.
16971         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16973         from here...
16974         * modules/rawmemchr (configure.ac): ... to here.
16975
16976 2011-05-21  Bruno Haible  <bruno@clisp.org>
16977
16978         random_r: Move AC_LIBOBJ invocations to module description.
16979         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16980         gl_PREREQ_RANDOM_R invocations from here...
16981         * modules/random_r (configure.ac): ... to here.
16982
16983 2011-05-21  Bruno Haible  <bruno@clisp.org>
16984
16985         pwrite: Move AC_LIBOBJ invocations to module description.
16986         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16987         * modules/pwrite (configure.ac): ... to here.
16988
16989 2011-05-21  Bruno Haible  <bruno@clisp.org>
16990
16991         putenv: Move AC_LIBOBJ invocations to module description.
16992         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16993         * modules/putenv (configure.ac): ... to here.
16994
16995 2011-05-21  Bruno Haible  <bruno@clisp.org>
16996
16997         login_tty: Move AC_LIBOBJ invocations to module description.
16998         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16999         * modules/login_tty (configure.ac): ... to here.
17000
17001 2011-05-21  Bruno Haible  <bruno@clisp.org>
17002
17003         openpty: Move AC_LIBOBJ invocations to module description.
17004         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17005         * modules/openpty (configure.ac): ... to here.
17006
17007 2011-05-21  Bruno Haible  <bruno@clisp.org>
17008
17009         forkpty: Move AC_LIBOBJ invocations to module description.
17010         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17011         * modules/forkpty (configure.ac): ... to here.
17012
17013 2011-05-21  Bruno Haible  <bruno@clisp.org>
17014
17015         ptsname: Move AC_LIBOBJ invocations to module description.
17016         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17017         invocations from here...
17018         * modules/ptsname (configure.ac): ... to here.
17019
17020 2011-05-21  Bruno Haible  <bruno@clisp.org>
17021
17022         pread: Move AC_LIBOBJ invocations to module description.
17023         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17024         * modules/pread (configure.ac): ... to here.
17025
17026 2011-05-21  Bruno Haible  <bruno@clisp.org>
17027
17028         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17029         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17030         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17031         * modules/posix_spawn (configure.ac): ... to here.
17032         * modules/posix_spawnp (configure.ac): ... and here.
17033
17034 2011-05-21  Bruno Haible  <bruno@clisp.org>
17035
17036         popen: Move AC_LIBOBJ invocations to module description.
17037         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17038         invocations from here...
17039         * modules/popen (configure.ac): ... to here.
17040
17041 2011-05-21  Bruno Haible  <bruno@clisp.org>
17042
17043         poll: Move AC_LIBOBJ invocations to module description.
17044         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17045         invocations from here...
17046         * modules/poll (configure.ac): ... to here.
17047
17048 2011-05-21  Bruno Haible  <bruno@clisp.org>
17049
17050         pipe-posix: Move AC_LIBOBJ invocations to module description.
17051         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17052         * modules/pipe-posix (configure.ac): ... to here.
17053
17054 2011-05-21  Bruno Haible  <bruno@clisp.org>
17055
17056         openat: Respect rules for use of AC_LIBOBJ.
17057         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17058         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17059         * modules/openat (configure.ac): ... to here.
17060
17061 2011-05-21  Bruno Haible  <bruno@clisp.org>
17062
17063         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17064         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17065         invocation from here...
17066         * modules/obstack-printf (configure.ac): ... to here.
17067         * modules/obstack-printf-posix (configure.ac): ... and here.
17068
17069 2011-05-21  Bruno Haible  <bruno@clisp.org>
17070
17071         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17072         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17073         from here...
17074         * modules/nl_langinfo (configure.ac): ... to here.
17075
17076 2011-05-21  Bruno Haible  <bruno@clisp.org>
17077
17078         nanosleep: Move AC_LIBOBJ invocations to module description.
17079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17080         gl_PREREQ_NANOSLEEP invocations from here...
17081         * modules/nanosleep (configure.ac): ... to here.
17082
17083 2011-05-21  Bruno Haible  <bruno@clisp.org>
17084
17085         mountlist: Move AC_LIBOBJ invocations to module description.
17086         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17087         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17088         * modules/mountlist (configure.ac): ... to here.
17089
17090 2011-05-21  Bruno Haible  <bruno@clisp.org>
17091
17092         mktime: Respect rules for use of AC_LIBOBJ.
17093         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17094         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17095         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17096         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17097         * modules/mktime (configure.ac): ... to here.
17098         * modules/mktime-internal (configure.ac): ... and here.
17099         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17100
17101 2011-05-21  Bruno Haible  <bruno@clisp.org>
17102
17103         mkstemps: Move AC_LIBOBJ invocations to module description.
17104         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17105         here...
17106         * modules/mkstemps (configure.ac): ... to here.
17107
17108 2011-05-21  Bruno Haible  <bruno@clisp.org>
17109
17110         mkstemp: Move AC_LIBOBJ invocations to module description.
17111         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17112         gl_PREREQ_MKSTEMP invocations from here...
17113         * modules/mkstemp (configure.ac): ... to here.
17114
17115 2011-05-21  Bruno Haible  <bruno@clisp.org>
17116
17117         mkostemps: Move AC_LIBOBJ invocations to module description.
17118         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17119         here...
17120         * modules/mkostemps (configure.ac): ... to here.
17121
17122 2011-05-21  Bruno Haible  <bruno@clisp.org>
17123
17124         mkostemp: Move AC_LIBOBJ invocations to module description.
17125         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17126         gl_PREREQ_MKOSTEMP invocations from here...
17127         * modules/mkostemp (configure.ac): ... to here.
17128
17129 2011-05-21  Bruno Haible  <bruno@clisp.org>
17130
17131         mknod: Move AC_LIBOBJ invocations to module description.
17132         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17133         * modules/mknod (configure.ac): ... to here.
17134
17135 2011-05-21  Bruno Haible  <bruno@clisp.org>
17136
17137         mkfifoat: Move AC_LIBOBJ invocations to module description.
17138         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17139         here...
17140         * modules/mkfifoat (configure.ac): ... to here.
17141
17142 2011-05-21  Bruno Haible  <bruno@clisp.org>
17143
17144         mkfifo: Respect rules for use of AC_LIBOBJ.
17145         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17146         here...
17147         * modules/mkfifo (configure.ac): ... to here.
17148
17149 2011-05-21  Bruno Haible  <bruno@clisp.org>
17150
17151         mkdtemp: Move AC_LIBOBJ invocations to module description.
17152         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17153         invocations from here...
17154         * modules/mkdtemp (configure.ac): ... to here.
17155
17156 2011-05-21  Bruno Haible  <bruno@clisp.org>
17157
17158         mkdir: Move AC_LIBOBJ invocations to module description.
17159         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17160         * modules/mkdir (configure.ac): ... to here.
17161
17162 2011-05-21  Bruno Haible  <bruno@clisp.org>
17163
17164         memset: Move AC_LIBOBJ invocations to module description.
17165         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17167         here...
17168         * modules/memset (configure.ac): ... to here.
17169
17170 2011-05-21  Bruno Haible  <bruno@clisp.org>
17171
17172         memrchr: Move AC_LIBOBJ invocations to module description.
17173         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17175         here...
17176         * modules/memrchr (configure.ac): ... to here.
17177
17178 2011-05-21  Bruno Haible  <bruno@clisp.org>
17179
17180         mempcpy: Move AC_LIBOBJ invocations to module description.
17181         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17183         here...
17184         * modules/mempcpy (configure.ac): ... to here.
17185
17186 2011-05-21  Bruno Haible  <bruno@clisp.org>
17187
17188         memmove: Move AC_LIBOBJ invocations to module description.
17189         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17191         here...
17192         * modules/memmove (configure.ac): ... to here.
17193
17194 2011-05-21  Bruno Haible  <bruno@clisp.org>
17195
17196         memmem*: Move AC_LIBOBJ invocations to module description.
17197         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17198         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17199         here...
17200         (gl_FUNC_MEMMEM): ... and here...
17201         * modules/memmem-simple (configure.ac): ... to here.
17202         * modules/memmem (configure.ac): ... and here.
17203
17204 2011-05-21  Bruno Haible  <bruno@clisp.org>
17205
17206         memcpy: Move AC_LIBOBJ invocations to module description.
17207         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17208         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17209         here...
17210         * modules/memcpy (configure.ac): ... to here.
17211
17212 2011-05-21  Bruno Haible  <bruno@clisp.org>
17213
17214         memcmp: Simplify autoconf macro.
17215         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17216         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17217         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17218
17219 2011-05-21  Bruno Haible  <bruno@clisp.org>
17220
17221         memcmp: Move AC_LIBOBJ invocations to module description.
17222         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17223         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17224         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17225         * modules/memcmp (configure.ac): ... to here.
17226         (Depends-on): Update conditions.
17227
17228 2011-05-21  Bruno Haible  <bruno@clisp.org>
17229
17230         memchr: Respect rules for use of AC_LIBOBJ.
17231         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17232         invocations from here...
17233         * modules/memchr (configure.ac): ... to here.
17234
17235 2011-05-21  Bruno Haible  <bruno@clisp.org>
17236
17237         mbtowc: Move AC_LIBOBJ invocations to module description.
17238         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17239         invocations from here...
17240         * modules/mbtowc (configure.ac): ... to here.
17241
17242 2011-05-21  Bruno Haible  <bruno@clisp.org>
17243
17244         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17245         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17246         gl_PREREQ_MBSRTOWCS invocations from here...
17247         * modules/mbsrtowcs (configure.ac): ... to here.
17248
17249 2011-05-21  Bruno Haible  <bruno@clisp.org>
17250
17251         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17252         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17253         gl_PREREQ_MBSNRTOWCS invocations from here...
17254         * modules/mbsnrtowcs (configure.ac): ... to here.
17255
17256 2011-05-21  Bruno Haible  <bruno@clisp.org>
17257
17258         mbsinit: Move AC_LIBOBJ invocations to module description.
17259         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17260         invocations from here...
17261         * modules/mbsinit (configure.ac): ... to here.
17262
17263 2011-05-21  Bruno Haible  <bruno@clisp.org>
17264
17265         mbrlen: Move AC_LIBOBJ invocations to module description.
17266         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17267         invocations from here...
17268         * modules/mbrlen (configure.ac): ... to here.
17269
17270 2011-05-21  Bruno Haible  <bruno@clisp.org>
17271
17272         mbrtowc: Respect rules for use of AC_LIBOBJ.
17273         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17274         invocations from here...
17275         * modules/mbrtowc (configure.ac): ... to here.
17276
17277 2011-05-21  Bruno Haible  <bruno@clisp.org>
17278
17279         malloc-*: Move AC_LIBOBJ invocations to module description.
17280         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17281         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17282         AC_LIBOBJ invocations from here...
17283         * modules/malloc-gnu (configure.ac): ... to here.
17284         * modules/malloc-posix (configure.ac): ... and here.
17285
17286 2011-05-21  Bruno Haible  <bruno@clisp.org>
17287
17288         lstat, openat: Respect rules for use of AC_LIBOBJ.
17289         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17290         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17291         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17292         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17293         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17294         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17295         here.
17296         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17297
17298 2011-05-21  Bruno Haible  <bruno@clisp.org>
17299
17300         lseek: Move AC_LIBOBJ invocations to module description.
17301         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17302         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17303         * modules/lseek (configure.ac): ... to here.
17304
17305 2011-05-21  Bruno Haible  <bruno@clisp.org>
17306
17307         linkat: Move AC_LIBOBJ invocations to module description.
17308         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17309         here...
17310         * modules/linkat (configure.ac): ... to here.
17311
17312 2011-05-21  Bruno Haible  <bruno@clisp.org>
17313
17314         link: Respect rules for use of AC_LIBOBJ.
17315         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17316         * modules/link (configure.ac): ... to here.
17317
17318 2011-05-21  Bruno Haible  <bruno@clisp.org>
17319
17320         lchown: Move AC_LIBOBJ invocations to module description.
17321         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17322         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17323         * modules/lchown (configure.ac): ... to here.
17324
17325 2011-05-21  Bruno Haible  <bruno@clisp.org>
17326
17327         iswctype: Move AC_LIBOBJ invocations to module description.
17328         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17329         here...
17330         * modules/iswctype (configure.ac): ... to here.
17331
17332 2011-05-21  Bruno Haible  <bruno@clisp.org>
17333
17334         iswblank: Move AC_LIBOBJ invocations to module description.
17335         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17336         here...
17337         * modules/iswblank (configure.ac): ... to here.
17338
17339 2011-05-21  Bruno Haible  <bruno@clisp.org>
17340
17341         atanl: Move AC_LIBOBJ invocations to module description.
17342         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17343         * modules/atanl (configure.ac): ... to here.
17344
17345 2011-05-21  Bruno Haible  <bruno@clisp.org>
17346
17347         acosl: Move AC_LIBOBJ invocations to module description.
17348         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17349         * modules/acosl (configure.ac): ... to here.
17350
17351 2011-05-21  Bruno Haible  <bruno@clisp.org>
17352
17353         asinl: Respect rules for use of AC_LIBOBJ.
17354         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17355         * modules/asinl (configure.ac): ... to here.
17356
17357 2011-05-21  Bruno Haible  <bruno@clisp.org>
17358
17359         tanl: Move AC_LIBOBJ invocations to module description.
17360         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17361         * modules/tanl (configure.ac): ... to here.
17362
17363 2011-05-21  Bruno Haible  <bruno@clisp.org>
17364
17365         cosl: Move AC_LIBOBJ invocations to module description.
17366         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17367         * modules/cosl (configure.ac): ... to here.
17368
17369 2011-05-21  Bruno Haible  <bruno@clisp.org>
17370
17371         sinl: Move AC_LIBOBJ invocations to module description.
17372         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17373         * modules/sinl (configure.ac): ... to here.
17374
17375 2011-05-21  Bruno Haible  <bruno@clisp.org>
17376
17377         logl: Move AC_LIBOBJ invocations to module description.
17378         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17379         * modules/logl (configure.ac): ... to here.
17380
17381 2011-05-21  Bruno Haible  <bruno@clisp.org>
17382
17383         expl: Move AC_LIBOBJ invocations to module description.
17384         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17385         * modules/expl (configure.ac): ... to here.
17386
17387 2011-05-21  Bruno Haible  <bruno@clisp.org>
17388
17389         roundl: Move AC_LIBOBJ invocations to module description.
17390         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17391         * modules/roundl (configure.ac): ... to here.
17392
17393 2011-05-21  Bruno Haible  <bruno@clisp.org>
17394
17395         round: Move AC_LIBOBJ invocations to module description.
17396         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17397         * modules/round (configure.ac): ... to here.
17398
17399 2011-05-21  Bruno Haible  <bruno@clisp.org>
17400
17401         roundf: Move AC_LIBOBJ invocations to module description.
17402         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17403         * modules/roundf (configure.ac): ... to here.
17404
17405 2011-05-21  Bruno Haible  <bruno@clisp.org>
17406
17407         truncl: Move AC_LIBOBJ invocations to module description.
17408         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17409         * modules/truncl (configure.ac): ... to here.
17410
17411 2011-05-21  Bruno Haible  <bruno@clisp.org>
17412
17413         trunc: Move AC_LIBOBJ invocations to module description.
17414         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17415         * modules/trunc (configure.ac): ... to here.
17416
17417 2011-05-21  Bruno Haible  <bruno@clisp.org>
17418
17419         truncf: Move AC_LIBOBJ invocations to module description.
17420         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17421         * modules/truncf (configure.ac): ... to here.
17422
17423 2011-05-21  Bruno Haible  <bruno@clisp.org>
17424
17425         ceill: Move AC_LIBOBJ invocations to module description.
17426         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17427         * modules/ceill (configure.ac): ... to here.
17428
17429 2011-05-21  Bruno Haible  <bruno@clisp.org>
17430
17431         ceil: Move AC_LIBOBJ invocations to module description.
17432         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17433         * modules/ceil (configure.ac): ... to here.
17434
17435 2011-05-21  Bruno Haible  <bruno@clisp.org>
17436
17437         ceilf: Move AC_LIBOBJ invocations to module description.
17438         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17439         * modules/ceilf (configure.ac): ... to here.
17440
17441 2011-05-21  Bruno Haible  <bruno@clisp.org>
17442
17443         floorl: Respect rules for use of AC_LIBOBJ.
17444         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17445         * modules/floorl (configure.ac): ... to here.
17446
17447 2011-05-21  Bruno Haible  <bruno@clisp.org>
17448
17449         floor: Respect rules for use of AC_LIBOBJ.
17450         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17451         * modules/floor (configure.ac): ... to here.
17452
17453 2011-05-21  Bruno Haible  <bruno@clisp.org>
17454
17455         floorf: Move AC_LIBOBJ invocations to module description.
17456         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17457         * modules/floorf (configure.ac): ... to here.
17458
17459 2011-05-20  Bruno Haible  <bruno@clisp.org>
17460
17461         sqrtl: Respect rules for use of AC_LIBOBJ.
17462         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17463         * modules/sqrtl (configure.ac): ... to here.
17464
17465 2011-05-20  Bruno Haible  <bruno@clisp.org>
17466
17467         ldexpl: Respect rules for use of AC_LIBOBJ.
17468         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17469         * modules/ldexpl (configure.ac): ... to here.
17470
17471 2011-05-20  Bruno Haible  <bruno@clisp.org>
17472
17473         frexpl*: Respect rules for use of AC_LIBOBJ.
17474         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17475         invocation from here...
17476         * modules/frexpl (configure.ac): ... to here.
17477         * modules/frexpl-nolibm (configure.ac): ... and here.
17478
17479 2011-05-20  Bruno Haible  <bruno@clisp.org>
17480
17481         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17482         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17483         invocation from here...
17484         * modules/frexp (configure.ac): ... to here.
17485         * modules/frexp-nolibm (configure.ac): ... and here.
17486
17487 2011-05-20  Bruno Haible  <bruno@clisp.org>
17488
17489         isnan: Respect rules for use of AC_LIBOBJ.
17490         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17491         invocations here.
17492         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17493         REPLACE_ISNAN.
17494         * modules/isnand (configure.ac): Likewise.
17495         * modules/isnanl (configure.ac): Likewise.
17496
17497 2011-05-20  Bruno Haible  <bruno@clisp.org>
17498
17499         isnanl*: Respect rules for use of AC_LIBOBJ.
17500         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17501         invocation from here...
17502         * modules/isnanl (configure.ac): ... to here.
17503         * modules/isnanl-nolibm (configure.ac): ... and here.
17504
17505 2011-05-20  Bruno Haible  <bruno@clisp.org>
17506
17507         isnand*: Move AC_LIBOBJ invocations to module description.
17508         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17509         invocation from here...
17510         * modules/isnand (configure.ac): ... to here.
17511         * modules/isnand-nolibm (configure.ac): ... and here.
17512
17513 2011-05-20  Bruno Haible  <bruno@clisp.org>
17514
17515         isnanf*: Move AC_LIBOBJ invocations to module description.
17516         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17517         invocation from here...
17518         * modules/isnanf (configure.ac): ... to here.
17519         * modules/isnanf-nolibm (configure.ac): ... and here.
17520
17521 2011-05-20  Bruno Haible  <bruno@clisp.org>
17522
17523         isnan*: Separate the AC_LIBOBJ invocations.
17524         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17525         AC_LIBOBJ invocation.
17526         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17527         here.
17528         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17529         AC_LIBOBJ invocation.
17530         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17531         here.
17532         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17533         AC_LIBOBJ invocation.
17534         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17535         here.
17536         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17537
17538 2011-05-08  Bruno Haible  <bruno@clisp.org>
17539
17540         isinf: Move AC_LIBOBJ invocations to module description.
17541         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17542         * modules/isinf (configure.ac): ... to here.
17543
17544 2011-05-08  Bruno Haible  <bruno@clisp.org>
17545
17546         isfinite: Move AC_LIBOBJ invocations to module description.
17547         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17548         * modules/isfinite (configure.ac): ... to here.
17549
17550 2011-05-08  Bruno Haible  <bruno@clisp.org>
17551
17552         isblank: Move AC_LIBOBJ invocations to module description.
17553         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17554         here...
17555         * modules/isblank (configure.ac): ... to here.
17556
17557 2011-05-08  Bruno Haible  <bruno@clisp.org>
17558
17559         isapipe: Move AC_LIBOBJ invocations to module description.
17560         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17561         gl_PREREQ_ISAPIPE invocations from here...
17562         * modules/isapipe (configure.ac): ... to here.
17563         (Depends-on): Update condition.
17564
17565 2011-05-08  Bruno Haible  <bruno@clisp.org>
17566
17567         ioctl: Move AC_LIBOBJ invocations to module description.
17568         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17569         invocations from here...
17570         * modules/ioctl (configure.ac): ... to here.
17571         (Depends-on): Update condition.
17572
17573 2011-05-08  Bruno Haible  <bruno@clisp.org>
17574
17575         imaxdiv: Move AC_LIBOBJ invocations to module description.
17576         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17577         invocations from here...
17578         * modules/imaxdiv (configure.ac): ... to here.
17579
17580 2011-05-08  Bruno Haible  <bruno@clisp.org>
17581
17582         imaxabs: Move AC_LIBOBJ invocations to module description.
17583         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17584         invocations from here...
17585         * modules/imaxabs (configure.ac): ... to here.
17586
17587 2011-05-08  Bruno Haible  <bruno@clisp.org>
17588
17589         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17590         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17591         AC_LIBOBJ invocations from here...
17592         * modules/getaddrinfo (configure.ac): ... to here.
17593         (Depends-on): Add conditions.
17594
17595 2011-05-08  Bruno Haible  <bruno@clisp.org>
17596
17597         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17598         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17599         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17600         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17601         (gl_PREREQ_INET_PTON): ... from here.
17602         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17603         gl_PREREQ_INET_PTON here.
17604         (Depends-on): Update condition.
17605
17606 2011-05-08  Bruno Haible  <bruno@clisp.org>
17607
17608         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17609         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17610         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17611         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17612         (gl_PREREQ_INET_NTOP): ... from here.
17613         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17614         gl_PREREQ_INET_NTOP here.
17615         (Depends-on): Update condition.
17616
17617 2011-05-08  Bruno Haible  <bruno@clisp.org>
17618
17619         iconv_open: Move AC_LIBOBJ invocations to module description.
17620         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17621         AC_LIBOBJ invocations from here...
17622         * modules/iconv_open (configure.ac): ... to here.
17623
17624 2011-05-08  Bruno Haible  <bruno@clisp.org>
17625
17626         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17627         If module 'iconv_open' is among the main modules and module
17628         'iconv_open-utf' is among the tests dependencies, then
17629         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17630         return the special iconv_t values. Therefore iconv() and iconv_close()
17631         must support these special iconv_t values, already in lib, not only in
17632         tests.
17633         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17634         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17635         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17636         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17637         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17638         (Depends-on): Add the dependencies of iconv_open-utf.
17639         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17640         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17641         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17642
17643 2011-05-08  Bruno Haible  <bruno@clisp.org>
17644
17645         group-member: Move AC_LIBOBJ invocations to module description.
17646         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17647         gl_PREREQ_GROUP_MEMBER invocations from here...
17648         * modules/group-member (configure.ac): ... to here.
17649
17650 2011-05-08  Bruno Haible  <bruno@clisp.org>
17651
17652         grantpt: Move AC_LIBOBJ invocations to module description.
17653         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17654         invocations from here...
17655         * modules/grantpt (configure.ac): ... to here.
17656
17657 2011-05-08  Bruno Haible  <bruno@clisp.org>
17658
17659         glob: Move AC_LIBOBJ invocations to module description.
17660         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17661         from here...
17662         * modules/glob (configure.ac): ... to here.
17663
17664 2011-05-08  Bruno Haible  <bruno@clisp.org>
17665
17666         getusershell: Move AC_LIBOBJ invocations to module description.
17667         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17668         Move AC_LIBOBJ invocation from here...
17669         * modules/getusershell (configure.ac): ... to here.
17670         (Depends-on): Update condition.
17671
17672 2011-05-08  Bruno Haible  <bruno@clisp.org>
17673
17674         gettimeofday: Move AC_LIBOBJ invocations to module description.
17675         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17676         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17677         gl_PREREQ_GETTIMEOFDAY invocations from here...
17678         * modules/gettimeofday (configure.ac): ... to here.
17679
17680 2011-05-08  Bruno Haible  <bruno@clisp.org>
17681
17682         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17683         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17684         just gl_FUNC_TZSET.
17685         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17686         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17687         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17688         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17689
17690 2011-05-08  Bruno Haible  <bruno@clisp.org>
17691
17692         getsubopt: Move AC_LIBOBJ invocations to module description.
17693         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17694         gl_PREREQ_GETSUBOPT invocations from here...
17695         * modules/getsubopt (configure.ac): ... to here.
17696
17697 2011-05-08  Bruno Haible  <bruno@clisp.org>
17698
17699         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17700         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17701         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17702         * modules/getpass-gnu (configure.ac): ... to here.
17703
17704 2011-05-08  Bruno Haible  <bruno@clisp.org>
17705
17706         getpass: Move AC_LIBOBJ invocations to module description.
17707         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17708         gl_PREREQ_GETPASS invocations from here...
17709         * modules/getpass (configure.ac): ... to here.
17710
17711 2011-05-08  Bruno Haible  <bruno@clisp.org>
17712
17713         getpagesize: Move AC_LIBOBJ invocations to module description.
17714         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17715         from here...
17716         * modules/getpagesize (configure.ac): ... to here.
17717
17718 2011-05-08  Bruno Haible  <bruno@clisp.org>
17719
17720         getopt: Move AC_LIBOBJ invocations to module description.
17721         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17722         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17723         invocations from here...
17724         * modules/getopt-gnu (configure.ac): ... to here.
17725         * modules/getopt-posix (configure.ac): ... and here.
17726         (Depends-on): Update condition.
17727
17728 2011-05-08  Bruno Haible  <bruno@clisp.org>
17729
17730         getopt, argp: Respect rules for use of AC_LIBOBJ.
17731         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17732         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17733         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17734         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17735
17736 2011-05-08  Bruno Haible  <bruno@clisp.org>
17737
17738         getlogin_r: Move AC_LIBOBJ invocations to module description.
17739         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17740         gl_PREREQ_GETLOGIN_R invocations from here...
17741         * modules/getlogin_r (configure.ac): ... to here.
17742
17743 2011-05-08  Bruno Haible  <bruno@clisp.org>
17744
17745         getlogin: Move AC_LIBOBJ invocations to module description.
17746         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17747         here...
17748         * modules/getlogin (configure.ac): ... to here.
17749
17750 2011-05-08  Bruno Haible  <bruno@clisp.org>
17751
17752         getloadavg: Move AC_LIBOBJ invocations to module description.
17753         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17754         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17755         * modules/getloadavg (configure.ac): ... to here.
17756
17757 2011-05-08  Bruno Haible  <bruno@clisp.org>
17758
17759         gethrxtime: Move AC_LIBOBJ invocations to module description.
17760         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17761         LIB_GETHRXTIME from here...
17762         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17763         invocations from here...
17764         * modules/gethrxtime (configure.ac): ... to here.
17765
17766 2011-05-08  Bruno Haible  <bruno@clisp.org>
17767
17768         gethostname: Move AC_LIBOBJ invocations to module description.
17769         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17770         gl_PREREQ_GETHOSTNAME invocations from here...
17771         * modules/gethostname (configure.ac): ... to here.
17772
17773 2011-05-08  Bruno Haible  <bruno@clisp.org>
17774
17775         getgroups: Move AC_LIBOBJ invocations to module description.
17776         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17777         here...
17778         * modules/getgroups (configure.ac): ... to here.
17779
17780 2011-05-08  Bruno Haible  <bruno@clisp.org>
17781
17782         getdtablesize: Move AC_LIBOBJ invocations to module description.
17783         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17784         invocation from here...
17785         * modules/getdtablesize (configure.ac): ... to here.
17786
17787 2011-05-08  Bruno Haible  <bruno@clisp.org>
17788
17789         getdomainname: Move AC_LIBOBJ invocations to module description.
17790         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17791         gl_PREREQ_GETDOMAINNAME invocations from here...
17792         * modules/getdomainname (configure.ac): ... to here.
17793
17794 2011-05-08  Bruno Haible  <bruno@clisp.org>
17795
17796         getline: Move AC_LIBOBJ invocations to module description.
17797         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17798         invocations from here...
17799         * modules/getline (configure.ac): ... to here.
17800
17801 2011-05-08  Bruno Haible  <bruno@clisp.org>
17802
17803         getline: Simplify.
17804         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17805         It's already handled through the module dependency.
17806
17807 2011-05-08  Bruno Haible  <bruno@clisp.org>
17808
17809         getdelim: Move AC_LIBOBJ invocations to module description.
17810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17811         and gl_PREREQ_GETDELIM invocations from here...
17812         * modules/getdelim (configure.ac): ... to here.
17813         (Depends-on): Fix condition.
17814
17815 2011-05-08  Bruno Haible  <bruno@clisp.org>
17816
17817         getcwd: Move AC_LIBOBJ invocations to module description.
17818         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17819         invocations from here...
17820         * modules/getcwd (configure.ac): ... to here.
17821
17822 2011-05-08  Bruno Haible  <bruno@clisp.org>
17823
17824         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17825         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17826         here...
17827         * modules/getcwd-lgpl (configure.ac): ... to here.
17828
17829 2011-05-07  Bruno Haible  <bruno@clisp.org>
17830
17831         crypto/gc: Move AC_LIBOBJ invocations to module description.
17832         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17833         * modules/crypto/gc (configure.ac): ... to here.
17834
17835 2011-05-07  Bruno Haible  <bruno@clisp.org>
17836
17837         fwriting: Move AC_LIBOBJ invocations to module description.
17838         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17839         here...
17840         * modules/fwriting (configure.ac): ... to here.
17841
17842 2011-05-07  Bruno Haible  <bruno@clisp.org>
17843
17844         fwritable: Move AC_LIBOBJ invocations to module description.
17845         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17846         here...
17847         * modules/fwritable (configure.ac): ... to here.
17848
17849 2011-05-07  Bruno Haible  <bruno@clisp.org>
17850
17851         futimens: Move AC_LIBOBJ invocations to module description.
17852         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17853         here...
17854         * modules/futimens (configure.ac): ... to here.
17855
17856 2011-05-07  Bruno Haible  <bruno@clisp.org>
17857
17858         ftruncate: Move AC_LIBOBJ invocations to module description.
17859         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17860         gl_PREREQ_FTRUNCATE invocations from here...
17861         * modules/ftruncate (configure.ac): ... to here.
17862
17863 2011-05-07  Bruno Haible  <bruno@clisp.org>
17864
17865         fsync: Move AC_LIBOBJ invocations to module description.
17866         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17867         invocations from here...
17868         * modules/fsync (configure.ac): ... to here.
17869
17870 2011-05-07  Bruno Haible  <bruno@clisp.org>
17871
17872         fsusage: Move AC_LIBOBJ invocations to module description.
17873         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17874         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17875         * modules/fsusage (configure.ac): ... to here.
17876
17877 2011-05-07  Bruno Haible  <bruno@clisp.org>
17878
17879         freopen: Move AC_LIBOBJ invocations to module description.
17880         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17881         invocations from here...
17882         * modules/freopen (configure.ac): ... to here.
17883
17884 2011-05-07  Bruno Haible  <bruno@clisp.org>
17885
17886         free: Move AC_LIBOBJ invocations to module description.
17887         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17888         invocations from here...
17889         * modules/free (configure.ac): ... to here.
17890
17891 2011-05-07  Bruno Haible  <bruno@clisp.org>
17892
17893         freadable: Move AC_LIBOBJ invocations to module description.
17894         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17895         here...
17896         * modules/freadable (configure.ac): ... to here.
17897
17898 2011-05-07  Bruno Haible  <bruno@clisp.org>
17899
17900         fpurge: Move AC_LIBOBJ invocations to module description.
17901         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17902         invocations from here...
17903         * modules/fpurge (configure.ac): ... to here.
17904
17905 2011-05-07  Bruno Haible  <bruno@clisp.org>
17906
17907         fpending: Move AC_LIBOBJ invocations to module description.
17908         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17909         gl_FUNC_FPENDING.
17910         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17911         invocations from here...
17912         * modules/fpending (configure.ac): ... to here.
17913
17914 2011-05-07  Bruno Haible  <bruno@clisp.org>
17915
17916         fopen: Move AC_LIBOBJ invocations to module description.
17917         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17918         invocations from here...
17919         * modules/fopen (configure.ac): ... to here.
17920
17921 2011-05-07  Bruno Haible  <bruno@clisp.org>
17922
17923         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17924         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17925         gl_FUNC_FNMATCH_POSIX.
17926         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17927         invocations from here...
17928         * modules/fnmatch (configure.ac): ... to here.
17929         * modules/fnmatch-gnu (configure.ac): ... and here.
17930
17931 2011-05-07  Bruno Haible  <bruno@clisp.org>
17932
17933         flock: Move AC_LIBOBJ invocations to module description.
17934         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17935         invocations from here...
17936         * modules/flock (configure.ac): ... to here.
17937
17938 2011-05-07  Bruno Haible  <bruno@clisp.org>
17939
17940         fileblocks: Move AC_LIBOBJ invocations to module description.
17941         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17942         gl_PREREQ_FILEBLOCKS invocations from here...
17943         * modules/fileblocks (configure.ac): ... to here.
17944
17945 2011-05-06  Bruno Haible  <bruno@clisp.org>
17946
17947         fflush: Move AC_LIBOBJ invocations to module description.
17948         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17949         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17950         invocations from here...
17951         * modules/fflush (configure.ac): ... to here.
17952
17953 2011-05-06  Bruno Haible  <bruno@clisp.org>
17954
17955         fdopendir: Move AC_LIBOBJ invocations to module description.
17956         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17957         here...
17958         * modules/fdopendir (configure.ac): ... to here.
17959         (Depends-on): Improve conditions.
17960
17961 2011-05-06  Bruno Haible  <bruno@clisp.org>
17962
17963         _Exit: Move AC_LIBOBJ invocations to module description.
17964         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17965         invocations from here...
17966         * modules/_Exit (configure.ac): ... to here.
17967
17968 2011-05-21  Bruno Haible  <bruno@clisp.org>
17969
17970         euidaccess: Respect rules for use of AC_LIBOBJ.
17971         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17973         from here...
17974         * modules/euidaccess (configure.ac): ... to here.
17975
17976 2011-05-06  Bruno Haible  <bruno@clisp.org>
17977
17978         error: Move AC_LIBOBJ invocations to module description.
17979         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17980         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17981         invocations from here...
17982         * modules/error (configure.ac): ... to here.
17983
17984 2011-05-06  Bruno Haible  <bruno@clisp.org>
17985
17986         duplocale: Move AC_LIBOBJ invocations to module description.
17987         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17988         gl_PREREQ_DUPLOCALE invocations from here...
17989         * modules/duplocale (configure.ac): ... to here.
17990
17991 2011-05-05  Bruno Haible  <bruno@clisp.org>
17992
17993         dirfd: Move AC_LIBOBJ invocations to module description.
17994         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17995         gl_FUNC_DIRFD.
17996         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17997         here...
17998         * modules/dirfd (configure.ac): ... to here.
17999         (Depends-on): Fix condition.
18000
18001 2011-05-05  Bruno Haible  <bruno@clisp.org>
18002
18003         chown: Respect rules for use of AC_LIBOBJ.
18004         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18005         * modules/chown (configure.ac): ... to here.
18006
18007 2011-05-05  Bruno Haible  <bruno@clisp.org>
18008
18009         chdir-long: Move AC_LIBOBJ invocations to module description.
18010         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18011         gl_PREREQ_CHDIR_LONG invocations from here...
18012         * modules/chdir-long (configure.ac): ... to here.
18013
18014 2011-05-05  Bruno Haible  <bruno@clisp.org>
18015
18016         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18017         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18018         from here...
18019         * modules/canonicalize-lgpl (configure.ac): ... to here.
18020
18021 2011-05-05  Bruno Haible  <bruno@clisp.org>
18022
18023         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18024         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18025         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18026         REPLACE_CALLOC.
18027         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18028         * modules/calloc-gnu (configure.ac): Likewise.
18029
18030 2011-05-05  Bruno Haible  <bruno@clisp.org>
18031
18032         btowc: Move AC_LIBOBJ invocations to module description.
18033         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18034         invocations from here...
18035         * modules/btowc (configure.ac): ... to here.
18036
18037 2011-05-21  Bruno Haible  <bruno@clisp.org>
18038
18039         atexit: Move AC_LIBOBJ invocations to module description.
18040         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18041         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18042         here...
18043         * modules/atexit (configure.ac): ... to here.
18044
18045 2011-05-05  Bruno Haible  <bruno@clisp.org>
18046
18047         atoll: Move AC_LIBOBJ invocations to module description.
18048         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18049         invocations from here...
18050         * modules/atoll (configure.ac): ... to here.
18051
18052 2011-05-05  Bruno Haible  <bruno@clisp.org>
18053
18054         argz: Move AC_LIBOBJ invocations to module description.
18055         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18056         * modules/argz (configure.ac): ... to here.
18057
18058 2011-05-05  Bruno Haible  <bruno@clisp.org>
18059
18060         alphasort: Move AC_LIBOBJ invocations to module description.
18061         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18062         gl_PREREQ_ALPHASORT invocations from here...
18063         * modules/alphasort (configure.ac): ... to here.
18064
18065 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18066
18067         verify: new macro verify_expr; verify_true deprecated
18068         * NEWS: Mention this.
18069         * doc/verify.texi (Compile-time Assertions): Document this.
18070         * lib/verify.h (verify_true): Deprecate.
18071         (verify_expr): New macro.
18072         * tests/test-verify.c (function): Test verify_expr.
18073
18074 2011-06-14  Jim Meyering  <meyering@redhat.com>
18075
18076         init.sh: give more portable redirection-related advice in a comment
18077         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18078         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18079         for lots of discussion.  Stefano Lattarini suggested the solution
18080         of putting "9>&2" after the command.  Reported by Bruno Haible.
18081
18082 2011-06-13  Bruno Haible  <bruno@clisp.org>
18083
18084         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18085         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18086         'none'.
18087
18088 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18089
18090         ftoastr: use strtof only if HAVE_STRTOF
18091         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18093         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18094         * modules/ftoastr (configure.ac): Check for strtof.
18095
18096 2011-06-13  Bruno Haible  <bruno@clisp.org>
18097
18098         gnulib-tool: Addendum to 2011-06-08 commit.
18099         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18100         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18101
18102 2011-06-13  Bruno Haible  <bruno@clisp.org>
18103
18104         fseeko: Provide a non-inline replacement of fseek().
18105         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18106         * modules/fseeko (Depends-on): Add fseek.
18107         * modules/fseek (License): Change to LGPLv2+.
18108
18109 2011-06-13  Bruno Haible  <bruno@clisp.org>
18110
18111         ftello: Provide a non-inline replacement of ftell().
18112         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18113         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18114         not have ftello() (such as on mingw).
18115         * modules/ftello (Depends-on): Add ftell.
18116         * modules/ftell (License): Change to LGPLv2+.
18117
18118 2011-05-07  Bruno Haible  <bruno@clisp.org>
18119
18120         ftell: Move AC_LIBOBJ invocations to module description.
18121         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18122         * modules/ftell (configure.ac): ... to here.
18123
18124 2011-05-07  Bruno Haible  <bruno@clisp.org>
18125
18126         ftello: Respect rules for use of AC_LIBOBJ.
18127         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18128         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18129         here...
18130         * modules/ftello (configure.ac): ... to here.
18131
18132 2011-05-07  Bruno Haible  <bruno@clisp.org>
18133
18134         fseeko: Simplify.
18135         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18136         (gl_FUNC_FSEEKO): Inline it here.
18137
18138 2011-05-07  Bruno Haible  <bruno@clisp.org>
18139
18140         fseek: Move AC_LIBOBJ invocations to module description.
18141         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18142         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18143         * modules/fseek (configure.ac): ... to here.
18144
18145 2011-05-07  Bruno Haible  <bruno@clisp.org>
18146
18147         fseek: Respect rules for use of AC_LIBOBJ.
18148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18149         here...
18150         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18151
18152 2011-05-07  Bruno Haible  <bruno@clisp.org>
18153
18154         fseeko: Respect rules for use of AC_LIBOBJ.
18155         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18156         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18157         here...
18158         * modules/fseeko (configure.ac): ... to here.
18159
18160 2011-06-13  Bruno Haible  <bruno@clisp.org>
18161
18162         gnulib-tool: Allow comments in the 'Depends-on' section.
18163         * doc/gnulib.texi (Module description): Mention comment syntax in the
18164         Depends-on section.
18165         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18166
18167 2011-06-13  Bruno Haible  <bruno@clisp.org>
18168
18169         file-set.h: guard __attibute__ use, now that it's not always defined
18170         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18171         versions that support it.  This fixes a coreutils build failure with
18172         the vendor cc on HP-UX 11.31.
18173
18174 2011-06-12  Bruno Haible  <bruno@clisp.org>
18175
18176         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18177         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18178         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18179         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18180         (acl, aclsort): New declarations.
18181         (aclv_nontrivial): New declaration.
18182         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18183         (file_has_acl): Read also the second kind of HP-UX ACLs.
18184         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18185         kind of HP-UX ACLs if the first kind fails.
18186         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18187         second kind of HP-UX ACLs.
18188         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18189         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18190         agree.
18191         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18192         hpuxjfs.
18193         Handle hpuxjfs.
18194         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18195         hpuxjfs.
18196         Handle hpuxjfs.
18197         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18198         (func_test_same_acls): Use both lsacl and getacl.
18199         Handle hpuxjfs.
18200         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18201         (func_test_same_acls): Use both lsacl and getacl.
18202         Handle hpuxjfs.
18203
18204 2011-06-12  Bruno Haible  <bruno@clisp.org>
18205
18206         acl: Complete the 2010-08-10 fix.
18207         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18208         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18209         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18210         explicitly.
18211         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18212         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18213
18214 2011-06-12  Bruno Haible  <bruno@clisp.org>
18215
18216         spawn-pipe tests: Comments.
18217         * tests/test-spawn-pipe-child.c (main): Update comment.
18218         Reported by James Youngman <jay@gnu.org>.
18219
18220 2011-06-11  James Youngman  <jay@gnu.org>
18221
18222         New module 'stat-size'.
18223         * modules/stat-size: New module.  Provides macros for accessing
18224         file size information in instances of struct stat.  Depends on the
18225         fileblocks module because it calls st_blocks.
18226         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18227         * doc/gnulib.texi: Include stat-size.texi.
18228         * doc/stat-size.texi: Documentation for this module.
18229         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18230         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18231         AC_STRUCT_ST_BLOCKS.
18232
18233 2011-06-09  Bruno Haible  <bruno@clisp.org>
18234
18235         thread: Support pthreads-win32.
18236         * lib/glthread/thread.h (gl_thread_self): Define differently on
18237         pthreads-win32.
18238         (gl_null_thread): New declaration.
18239         (gl_thread_self_pointer): New macro.
18240         * lib/glthread/thread.c (gl_null_thread): New constant.
18241         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18242         gl_thread_self.
18243         * tests/test-tls.c: Likewise.
18244         Suggested by Paul Eggert. Reported by Eric Blake.
18245
18246 2011-06-09  Bruno Haible  <bruno@clisp.org>
18247
18248         thread: Fix confusion between NULL and 0.
18249         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18250         Reported by Paul Eggert.
18251
18252 2011-06-09  Bruno Haible  <bruno@clisp.org>
18253
18254         spawn-pipe tests: Avoid test failure on HP-UX 11.
18255         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18256         is closed.
18257
18258 2011-06-09  Bruno Haible  <bruno@clisp.org>
18259
18260         acl tests: Fix compilation error on HP-UX 11.
18261         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18262
18263 2011-06-09  Bruno Haible  <bruno@clisp.org>
18264
18265         rmdir: Avoid test failure on HP-UX 10.20.
18266         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18267         EEXIST.
18268
18269 2011-06-08  Eric Blake  <eblake@redhat.com>
18270
18271         perror: fix test on mingw
18272         * modules/perror-tests (Depends-on): Add dup2.
18273
18274         strerror_r-posix: fix on MacOS
18275         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18276         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18277         logic bug.
18278         * lib/strerror_r.c (strerror_r): Fix the bug.
18279         * lib/strerror.c (strerror): Likewise.
18280         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18281         problem.
18282         * doc/posix-functions/strerror.texi (strerror): Likewise.
18283         * doc/posix-functions/perror.texi (perror): Likewise.
18284         * tests/test-strerror.c (main): Enhance test.
18285         * tests/test-strerror_r.c (main): Likewise.
18286
18287 2011-06-08  Bruno Haible  <bruno@clisp.org>
18288
18289         gnulib-tool: Better isolation between different gnulib-tool invocations.
18290         * gnulib-tool: New option --witness-c-macro.
18291         (witness_c_macro): New variable.
18292         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18293         AM_CPPFLAGS define it as a C macro.
18294         (func_emit_tests_Makefile_am): Likewise.
18295         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18296         read it from there.
18297         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18298         m4_define, not AC_DEFUN.
18299         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18300         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18301         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18302         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18303         s|...|...|, to substitute the values of the GNULIB_* module indicator
18304         variables.
18305         * modules/dirent (Makefile.am): Likewise.
18306         * modules/fcntl-h (Makefile.am): Likewise.
18307         * modules/iconv-h (Makefile.am): Likewise.
18308         * modules/langinfo (Makefile.am): Likewise.
18309         * modules/locale (Makefile.am): Likewise.
18310         * modules/math (Makefile.am): Likewise.
18311         * modules/netdb (Makefile.am): Likewise.
18312         * modules/poll-h (Makefile.am): Likewise.
18313         * modules/pty (Makefile.am): Likewise.
18314         * modules/search (Makefile.am): Likewise.
18315         * modules/signal (Makefile.am): Likewise.
18316         * modules/spawn (Makefile.am): Likewise.
18317         * modules/stdio (Makefile.am): Likewise.
18318         * modules/stdlib (Makefile.am): Likewise.
18319         * modules/string (Makefile.am): Likewise.
18320         * modules/sys_ioctl (Makefile.am): Likewise.
18321         * modules/sys_select (Makefile.am): Likewise.
18322         * modules/sys_socket (Makefile.am): Likewise.
18323         * modules/sys_stat (Makefile.am): Likewise.
18324         * modules/sys_times (Makefile.am): Likewise.
18325         * modules/sys_utsname (Makefile.am): Likewise.
18326         * modules/sys_wait (Makefile.am): Likewise.
18327         * modules/termios (Makefile.am): Likewise.
18328         * modules/time (Makefile.am): Likewise.
18329         * modules/unistd (Makefile.am): Likewise.
18330         * modules/wchar (Makefile.am): Likewise.
18331
18332 2011-06-08  Eric Blake  <eblake@redhat.com>
18333
18334         strerror: simplify replacement
18335         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18336         * modules/strerror (configure.ac): No prereqs needed here...
18337         * modules/strerror-override (configure.ac): ...but this needs it.
18338         (Files): Add file for needed prereq macro.
18339
18340 2011-06-08  Bruno Haible  <bruno@clisp.org>
18341
18342         strerror_r-posix: Tweaks.
18343         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18344         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18345         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18346         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18347         (gl_FUNC_STRERROR_R): ... to here.
18348         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18349
18350 2011-06-07  Eric Blake  <eblake@redhat.com>
18351
18352         perror: document fixed bugs
18353         * doc/posix-functions/perror.texi (perror): Document recent
18354         patches.
18355
18356 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18357
18358         stat-time: get_stat_birthtime failure is better-defined
18359         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18360         return a timestamp whose tv_sec and tv_nsec values are both -1.
18361         Previously, the spec said only that the tv_nsec value was negative.
18362         This upward-compatible change simplifies GNU tar a bit.
18363
18364 2011-06-07  Eric Blake  <eblake@redhat.com>
18365
18366         strerror_r-posix: work around cygwin 1.7.9
18367         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18368         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18369         bug without replacing strerror_r.
18370         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18371         strerror_r is buggy, but without requiring strerror_r compilation.
18372         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18373
18374         test-perror: relax test to ignore cygwin bug
18375         * tests/test-perror2.c (main): Relax test on requiring detection
18376         of stream errors, and use unbuffered stream.
18377         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18378         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18379         * doc/posix-functions/fputc.texi (fputc): Likewise.
18380         * doc/posix-functions/fputs.texi (fputs): Likewise.
18381         * doc/posix-functions/fputws.texi (fputws): Likewise.
18382         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18383         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18384         * doc/posix-functions/getopt.texi (getopt): Likewise.
18385         * doc/posix-functions/perror.texi (perror): Likewise.
18386         * doc/posix-functions/printf.texi (printf): Likewise.
18387         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18388         * doc/posix-functions/psignal.texi (psignal): Likewise.
18389         * doc/posix-functions/putc.texi (putc): Likewise.
18390         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18391         Likewise.
18392         * doc/posix-functions/putchar.texi (putchar): Likewise.
18393         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18394         Likewise.
18395         * doc/posix-functions/puts.texi (puts): Likewise.
18396         * doc/posix-functions/putwc.texi (putwc): Likewise.
18397         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18398         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18399         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18400         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18401         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18402         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18403         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18404         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18405
18406 2011-05-22  Bruno Haible  <bruno@clisp.org>
18407
18408         strerror: Move AC_LIBOBJ invocations to module description.
18409         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18410         gl_PREREQ_STRERROR invocations from here...
18411         * modules/strerror (configure.ac): ... to here.
18412
18413 2011-05-21  Bruno Haible  <bruno@clisp.org>
18414
18415         perror: Use common idiom.
18416         * modules/perror (configure.ac): Reorder statements.
18417
18418 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18419
18420         tests: fix usage message in 'mktempd_'
18421         * tests/init.sh (mktempd_): In the usage message, use literal
18422         'mktempd_', not '$ME' (which is even undefined), as the name of
18423         the subroutine.
18424
18425 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18426
18427         tests init: new function 'fatal_', for hard errors
18428         Before this patch, the only way offered by tests/init.sh to
18429         properly signal a hard error was the `framework_failure_'
18430         function.  But the error message issued by that function,
18431         as its name would suggest, refers to a set-up failure in the
18432         testsuite, while hard errors can obviously also be due to
18433         other reasons.  The best way to fix this inconsistency is to
18434         introduce a new function with a more general error message.
18435         * tests/init.sh (fatal_): New function.
18436
18437 2011-06-06  Eric Blake  <eblake@redhat.com>
18438
18439         canonicalize-lgpl: use common idiom
18440         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18441         over newer POSIX -Rf.
18442         Reported by Bruno Haible.
18443
18444         canonicalize-lgpl: work around AIX realpath bug
18445         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18446         * doc/posix-functions/realpath.texi (realpath): Document it.
18447         Reported by Bruno Haible.
18448
18449         strerror: work around FreeBSD bug
18450         * lib/strerror.c (strerror): Special case 0.
18451         Reported by Bruno Haible.
18452
18453         strerror-override: avoid bloating errno module
18454         * modules/errno (Files, configure.ac): Move replacement strings...
18455         * modules/strerror-override: ...to new module.
18456         * modules/strerror (Depends-on): Add strerror-override.
18457         * modules/strerror_r-posix (Depends-on): Likewise.
18458         * MODULES.html.sh: Document new module.
18459         Reported by Bruno Haible.
18460
18461 2011-06-06  Bruno Haible  <bruno@clisp.org>
18462
18463         spawn-pipe tests: Rename program.
18464         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18465         * tests/test-spawn-pipe-child.c: Update comment.
18466         * tests/test-spawn-pipe.sh: Update.
18467         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18468
18469         spawn-pipe tests: Link the child program only against libc.
18470         * tests/test-spawn-pipe-child.c: New file, extracted from
18471         tests/test-spawn-pipe.c.
18472         (main): Expect only one argument.
18473         (is_open): New function, copied from tests/test-pipe.c.
18474         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18475         (child_main): Remove function.
18476         (test_pipe): Pass only one argument to the child program.
18477         (main): Remove child process code. Expect the child program's name as
18478         first argument.
18479         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18480         argument.
18481         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18482         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18483         test-spawn-pipe-child against no libraries.
18484
18485 2011-06-06  Bruno Haible  <bruno@clisp.org>
18486
18487         careadlinkat: Avoid mismatch between ssize_t and int.
18488         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18489         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18490
18491 2011-06-06  Jim Meyering  <meyering@redhat.com>
18492
18493         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18494         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18495         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18496
18497 2011-06-05  Bruno Haible  <bruno@clisp.org>
18498
18499         ansi-c++-opt: Interoperability with libtool.
18500         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18501         set the variable to "no", not to ":".
18502         * NEWS: Mention the change.
18503
18504 2011-06-05  Bruno Haible  <bruno@clisp.org>
18505
18506         acl: Fix test failure on AIX 7.
18507         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18508         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18509
18510 2011-06-05  Bruno Haible  <bruno@clisp.org>
18511
18512         pipe-filter-ii: Fix test failure on AIX and IRIX.
18513         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18514         with EAGAIN, retry with a smaller buffer size.
18515
18516 2011-06-05  Bruno Haible  <bruno@clisp.org>
18517
18518         localename: Fix link dependencies.
18519         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18520         * modules/localename-tests (Makefile.am): Link test-localename with
18521         $(LIBTHREAD).
18522
18523 2011-06-05  Bruno Haible  <bruno@clisp.org>
18524
18525         error: Avoid gcc warning.
18526         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18527
18528 2011-06-05  Bruno Haible  <bruno@clisp.org>
18529
18530         unsetenv: Avoid gcc warning.
18531         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18532
18533 2011-06-05  Bruno Haible  <bruno@clisp.org>
18534
18535         setenv: Avoid gcc warning.
18536         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18537
18538 2011-06-05  Bruno Haible  <bruno@clisp.org>
18539
18540         sys_select: Ensure memset is declared also on AIX 7.
18541         * lib/sys_select.in.h: Include <string.h> also on AIX.
18542         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18543         self-contained also on AIX 7.1.
18544
18545 2011-06-04  Jim Meyering  <meyering@redhat.com>
18546
18547         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18548         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18549         function name, "error".
18550         (_gl_translatable_diag_func_re): New configurable variable.
18551
18552 2011-06-04  Bruno Haible  <bruno@clisp.org>
18553
18554         getopt: Avoid gcc warning.
18555         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18556
18557 2011-06-04  Bruno Haible  <bruno@clisp.org>
18558
18559         strerror_r: Fix comments.
18560         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18561         commit.
18562
18563 2011-06-04  Bruno Haible  <bruno@clisp.org>
18564
18565         perror: Fix compilation error.
18566         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18567         Undefine fprintf, not sprintf.
18568         * modules/perror (Depends-on): Remove intprops, verify.
18569
18570 2011-06-04  Bruno Haible  <bruno@clisp.org>
18571
18572         setlocale: Enable replacement on Cygwin 1.5.
18573         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18574         Cygwin 1.5.x.
18575         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18576         LC_CTYPE category also exists on Cygwin 1.5.x.
18577
18578 2011-06-04  Bruno Haible  <bruno@clisp.org>
18579
18580         strerror-override: Don't disable symbol renamings.
18581         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18582         * lib/strerror-override.c: Include config.h.
18583         (strerror_override): Don't undefine.
18584
18585 2011-06-03  Bruno Haible  <bruno@clisp.org>
18586
18587         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18588         * lib/localename.h: Update copyright header.
18589         * lib/localename.c: Likewise.
18590         * lib/relocatable.h: Likewise.
18591         * lib/relocatable.c: Likewise.
18592
18593 2011-06-02  Bruno Haible  <bruno@clisp.org>
18594
18595         doc: Fix a module name.
18596         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18597
18598 2011-06-02  Bruno Haible  <bruno@clisp.org>
18599
18600         pipe2: Remove dependency on 'nonblocking' module.
18601         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18602         O_NONBLOCK is defined by gnulib.
18603         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18604         is zero.
18605         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18606         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18607         defined by gnulib.
18608         (get_nonblocking_flag): New function.
18609         (main): Test O_NONBLOCK flag only if it is nonzero.
18610         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18611
18612 2011-06-03  Jim Meyering  <meyering@redhat.com>
18613
18614         maint: three new prohibit-header-without-use rules
18615         Prohibit use of cloexec.h, posixver.h, same.h without use.
18616         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18617         (sc_prohibit_posixver_without_use): Likewise.
18618         (sc_prohibit_same_without_use): Likewise.
18619
18620 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18621
18622         allocator: 'die' routine is now given requested size
18623         * lib/allocator.h (struct allocator.die): New size arg.
18624         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18625         If the actual problem is an ssize_t limitation, not a size_t or
18626         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18627
18628 2011-06-01  Eric Blake  <eblake@redhat.com>
18629
18630         strerror: drop strerror_r dependency
18631         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18632         * lib/strerror-override.c (strerror_override): ...to new file.
18633         * lib/strerror-override.h: Add prototype.
18634         * lib/strerror-impl.h: Delete.
18635         * lib/strerror.c (strerror): New implementation.
18636         * modules/errno (Files): Add new files.
18637         (configure.ac): Compile new file as appropriate.
18638         * modules/strerror (Files): Drop unused file.
18639         (Depends-on): Drop strerror_r-posix.
18640         * MODULES.html.sh: Document strerror_r-posix.
18641         Requested by Sam Steingold.
18642
18643         perror: call strerror_r directly
18644         * modules/perror (Files): Drop strerror-impl.h.
18645         * lib/perror.c (perror): Use our own stack buffer, rather than
18646         calling a wrapper that uses static storage.
18647         * doc/posix-functions/perror.texi (perror): Document a limitation
18648         of our replacement.
18649
18650         strerror_r: fix includes for FreeBSD
18651         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18652         since we use abort on some platforms.
18653         Reported by Matthias Bolte.
18654
18655 2011-05-31  Bruno Haible  <bruno@clisp.org>
18656
18657         Fix link errors in tests: openat-die uses gettext-h.
18658         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18659         against $(LIBINTL).
18660         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18661         against $(LIBINTL).
18662         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18663         $(LIBINTL).
18664         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18665         against $(LIBINTL).
18666         * modules/linkat-tests (Makefile.am): Link test-linkat against
18667         $(LIBINTL).
18668         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18669         $(LIBINTL).
18670         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18671         against $(LIBINTL).
18672         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18673         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18674         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18675         $(LIBINTL).
18676         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18677         $(LIBINTL).
18678         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18679         $(LIBINTL).
18680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18681
18682 2011-05-31  Bruno Haible  <bruno@clisp.org>
18683
18684         Fix link errors in tests: wait-process uses gettext-h.
18685         * modules/nonblocking-pipe-tests (Makefile.am): Set
18686         test_nonblocking_pipe_main_LDADD.
18687         * modules/nonblocking-socket-tests (Makefile.am): Link
18688         test-nonblocking-socket-main against $(LIBINTL).
18689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18690
18691 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18692
18693         assert-h: work around 'verify' incompatibility
18694         * lib/verify.h: Use @...@ directives, not ifdef.
18695         * modules/assert-h (assert.h): Implement the directives.
18696         (assert.h): Substitute the symbol-prefix more consistently.
18697
18698 2011-05-29  Jim Meyering  <meyering@redhat.com>
18699
18700         trim: remove three superfluous assignments
18701         * lib/trim.c (trim2): Remove three superfluous assignments
18702         and correct brace positioning.
18703
18704 2011-05-29  Bruno Haible  <bruno@clisp.org>
18705
18706         wctype-h: Avoid namespace pollution on Solaris 2.6.
18707         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18708         identifiers.
18709         * doc/posix-headers/wctype.texi: Mention the problem.
18710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18711
18712 2011-05-28  Jim Meyering  <meyering@redhat.com>
18713
18714         parse-datetime.y: accommodate -Wstrict-overflow
18715         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18716         placate -Wstrict-overflow.
18717
18718         trim: avoid a warning from -O2 -Wstrict-overflow
18719         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18720
18721 2011-05-29  Bruno Haible  <bruno@clisp.org>
18722
18723         gnulib-tool: Fix bug in yesterday's commit.
18724         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18725         twice.
18726
18727 2011-05-29  Bruno Haible  <bruno@clisp.org>
18728
18729         Allow multiple gnulib generated include files to be combined.
18730         * gnulib-tool (func_compute_include_guard_prefix): New function.
18731         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18732         ${gl_include_guard_prefix} references.
18733         (func_import, func_create_testdir): Invoke
18734         func_compute_include_guard_prefix.
18735         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18736         * lib/ctype.in.h: Likewise.
18737         * lib/dirent.in.h: Likewise.
18738         * lib/errno.in.h: Likewise.
18739         * lib/fcntl.in.h: Likewise.
18740         * lib/float.in.h: Likewise.
18741         * lib/getopt.in.h: Likewise.
18742         * lib/iconv.in.h: Likewise.
18743         * lib/langinfo.in.h: Likewise.
18744         * lib/locale.in.h: Likewise.
18745         * lib/math.in.h: Likewise.
18746         * lib/netdb.in.h: Likewise.
18747         * lib/netinet_in.in.h: Likewise.
18748         * lib/poll.in.h: Likewise.
18749         * lib/pthread.in.h: Likewise.
18750         * lib/pty.in.h: Likewise.
18751         * lib/sched.in.h: Likewise.
18752         * lib/se-selinux.in.h: Likewise.
18753         * lib/search.in.h: Likewise.
18754         * lib/signal.in.h: Likewise.
18755         * lib/spawn.in.h: Likewise.
18756         * lib/stdarg.in.h: Likewise.
18757         * lib/stddef.in.h: Likewise.
18758         * lib/stdint.in.h: Likewise.
18759         * lib/stdio.in.h: Likewise.
18760         * lib/stdlib.in.h: Likewise.
18761         * lib/string.in.h: Likewise.
18762         * lib/strings.in.h: Likewise.
18763         * lib/sys_file.in.h: Likewise.
18764         * lib/sys_ioctl.in.h: Likewise.
18765         * lib/sys_select.in.h: Likewise.
18766         * lib/sys_socket.in.h: Likewise.
18767         * lib/sys_stat.in.h: Likewise.
18768         * lib/sys_time.in.h: Likewise.
18769         * lib/sys_times.in.h: Likewise.
18770         * lib/sys_uio.in.h: Likewise.
18771         * lib/sys_utsname.in.h: Likewise.
18772         * lib/sys_wait.in.h: Likewise.
18773         * lib/sysexits.in.h: Likewise.
18774         * lib/termios.in.h: Likewise.
18775         * lib/time.in.h: Likewise.
18776         * lib/unistd.in.h: Likewise.
18777         * lib/wchar.in.h: Likewise.
18778         * lib/wctype.in.h: Likewise.
18779         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18780         * modules/ctype (Makefile.am): Likewise.
18781         * modules/dirent (Makefile.am): Likewise.
18782         * modules/errno (Makefile.am): Likewise.
18783         * modules/fcntl-h (Makefile.am): Likewise.
18784         * modules/float (Makefile.am): Likewise.
18785         * modules/getopt-posix (Makefile.am): Likewise.
18786         * modules/iconv-h (Makefile.am): Likewise.
18787         * modules/langinfo (Makefile.am): Likewise.
18788         * modules/locale (Makefile.am): Likewise.
18789         * modules/math (Makefile.am): Likewise.
18790         * modules/netdb (Makefile.am): Likewise.
18791         * modules/netinet_in (Makefile.am): Likewise.
18792         * modules/poll-h (Makefile.am): Likewise.
18793         * modules/pthread (Makefile.am): Likewise.
18794         * modules/pty (Makefile.am): Likewise.
18795         * modules/sched (Makefile.am): Likewise.
18796         * modules/search (Makefile.am): Likewise.
18797         * modules/selinux-h (Makefile.am): Likewise.
18798         * modules/signal (Makefile.am): Likewise.
18799         * modules/spawn (Makefile.am): Likewise.
18800         * modules/stdarg (Makefile.am): Likewise.
18801         * modules/stddef (Makefile.am): Likewise.
18802         * modules/stdint (Makefile.am): Likewise.
18803         * modules/stdio (Makefile.am): Likewise.
18804         * modules/stdlib (Makefile.am): Likewise.
18805         * modules/string (Makefile.am): Likewise.
18806         * modules/strings (Makefile.am): Likewise.
18807         * modules/sys_file (Makefile.am): Likewise.
18808         * modules/sys_ioctl (Makefile.am): Likewise.
18809         * modules/sys_select (Makefile.am): Likewise.
18810         * modules/sys_socket (Makefile.am): Likewise.
18811         * modules/sys_stat (Makefile.am): Likewise.
18812         * modules/sys_time (Makefile.am): Likewise.
18813         * modules/sys_times (Makefile.am): Likewise.
18814         * modules/sys_uio (Makefile.am): Likewise.
18815         * modules/sys_utsname (Makefile.am): Likewise.
18816         * modules/sys_wait (Makefile.am): Likewise.
18817         * modules/sysexits (Makefile.am): Likewise.
18818         * modules/termios (Makefile.am): Likewise.
18819         * modules/time (Makefile.am): Likewise.
18820         * modules/unistd (Makefile.am): Likewise.
18821         * modules/wchar (Makefile.am): Likewise.
18822         * modules/wctype-h (Makefile.am): Likewise.
18823         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18824
18825 2011-05-29  Bruno Haible  <bruno@clisp.org>
18826
18827         assert-h: Allow multiple gnulib generated replacements to coexist.
18828         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18829
18830 2011-05-29  Bruno Haible  <bruno@clisp.org>
18831
18832         argp: Allow coexistence with strerror_r-posix module.
18833         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18834         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18835         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18836         not the glibc signature.
18837
18838 2011-05-28  Bruno Haible  <bruno@clisp.org>
18839
18840         gnulib-tool: Alternative structure of testdirs, similar to --import.
18841         * gnulib-tool: New option --single-configure.
18842         (func_usage): Document it.
18843         (single_configure): New variable.
18844         (func_modules_transitive_closure_separately,
18845         func_modules_transitive_closure_separately,
18846         func_determine_use_libtests, func_modules_add_dummy_separately,
18847         func_modules_to_filelist_separately): New functions, extracted from
18848         func_import.
18849         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18850         (func_import): Use the new functions.
18851         (func_create_testdir): Set final_modules. Handle $single_configure =
18852         true case.
18853
18854 2011-05-28  Bruno Haible  <bruno@clisp.org>
18855
18856         getloadavg: Remove an unreliable safety check.
18857         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18858         getloadavg.c is in place.
18859         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18860         Reported by Sam Steingold <sds@gnu.org>.
18861
18862 2011-05-28  Bruno Haible  <bruno@clisp.org>
18863
18864         doc: Cleanup yet another file produced by texinfo.tex.
18865         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18866
18867 2011-05-28  Bruno Haible  <bruno@clisp.org>
18868
18869         Finish the conditional dependencies mechanism.
18870         * gnulib-tool: New option --no-conditional-dependencies.
18871         (func_usage): Document it. Don't mark --conditional-dependencies as
18872         experimental.
18873         (cond_dependencies): The possible values can now be true, false, empty.
18874         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18875         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18876         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18877
18878 2011-05-28  Bruno Haible  <bruno@clisp.org>
18879
18880         doc: Use a recent texinfo.tex.
18881         * doc/Makefile (tex_opts): New variable.
18882         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18883
18884 2011-05-28  Jim Meyering  <meyering@redhat.com>
18885
18886         intprops.h: adjust comment to match code change
18887         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18888         only once, it *may* have side effects.  Also fix an unrelated typo.
18889         (_GL_INT_SIGNED): Likewise.
18890
18891 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18892
18893         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18894
18895 2011-05-26  Bruno Haible  <bruno@clisp.org>
18896
18897         mbsrchr: Avoid collision with system function on Interix.
18898         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18899         Reported by Markus Duft <mduft@gentoo.org>.
18900
18901 2011-05-15  James Youngman  <jay@gnu.org>
18902
18903         getopt: for ambiguous options, enumerate the possibilities.
18904         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18905         the ambiguous options when an ambiguous prefix is given. This was
18906         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18907         glibc change was
18908         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18909
18910 2011-05-25  Eric Blake  <eblake@redhat.com>
18911
18912         getcwd: work around mingw bug
18913         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18914         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18915         Reported by Matthias Bolte.
18916
18917 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18918
18919         test-intprops: disable -Wtype-limits diagnostics
18920         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18921         diagnostics.  Otherwise, the integer overflow macros generate many
18922         diagnostics.  Reported by Jim Meyering in
18923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18924
18925         intprops: shorten, to pacify gcc -Woverlength-strings
18926         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18927         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18928         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18929         likely to run afoul of C compiler limits for string constant lengths.
18930         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18931
18932 2011-05-24  Eric Blake  <eblake@redhat.com>
18933
18934         docs: document recently fixed glibc printf bug
18935         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18936         * doc/posix-functions/printf.texi (printf): Likewise.
18937         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18938         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18939
18940         closein-tests: convert to init.sh
18941         * modules/closein-tests (Files): Add init.sh
18942         * tests/test-closein.sh Use it.
18943
18944         yesno-tests: convert to init.sh
18945         * modules/yesno-tests (Files): Add init.sh.
18946         * tests/test-yesno.sh: Use it.
18947
18948         atexit-tests: ensure reliable exit status
18949         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18950         Reported by Bruno Haible.
18951
18952 2011-05-24  Bruno Haible  <bruno@clisp.org>
18953
18954         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18955         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18956         gl_PREREQ_STRERROR_R invocations from here...
18957         * modules/strerror_r-posix (configure.ac): ... to here.
18958
18959 2011-05-24  Eric Blake  <eblake@redhat.com>
18960
18961         strerror_r: fix missing header
18962         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18963
18964         strerror_r: fix AIX test failures
18965         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18966         ERANGE failure.
18967
18968         strerror_r: fix Solaris test failures
18969         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18970         failures.
18971         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18972
18973         strerror_r: enforce POSIX recommendations
18974         * lib/strerror_r.c (safe_copy): New helper method.
18975         (strerror_r): Guarantee a non-empty string.
18976         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18977         recent POSIX rulings and to match our strerror guarantees.
18978         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18979
18980 2011-05-24  Jim Meyering  <meyering@redhat.com>
18981
18982         test-perror2.c: avoid warning about unused variable
18983         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18984
18985 2011-05-24  Eric Blake  <eblake@redhat.com>
18986
18987         perror: avoid spurious test failure on HP-UX
18988         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18989
18990         tests: fix logic bug in init.sh
18991         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18992         shell.
18993
18994 2011-05-24  Jim Meyering  <meyering@redhat.com>
18995
18996         utimensat: do not reference an out-of-scope buffer
18997         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18998         declared in an inner scope, yet "times" would be dereferenced outside
18999         the scope in which "ts" was valid.
19000         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19001         of ts[2] "out/up", so that the use of aliased "times" (via
19002         "times = ts;") does not end up referencing an out-of-scope "ts"
19003
19004         opendir-safer.c: don't clobber errno; don't close negative FD
19005         * lib/opendir-safer.c (opendir_safer):
19006         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19007         file descriptor, and more importantly, don't clobber the
19008         offending errno value with EINVAL.  Before, upon failure
19009         of dup_safer, we would pass the negative file descriptor to
19010         fdopendir, which would clobber errno.
19011
19012 2011-05-23  Bruno Haible  <bruno@clisp.org>
19013
19014         idcache: Fix module description.
19015         * modules/idcache (Include): Set to "idcache.h".
19016
19017 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19018
19019         gnulib-tool: fix portability problem with MacOS sed
19020         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19021         before the "}".  Problem reported by Leo in
19022         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19023         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19024         sed_extract_condition1, sed_extract_condition2.
19025
19026 2011-05-23  Bruno Haible  <bruno@clisp.org>
19027
19028         hash: Simplify autoconf macro.
19029         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19030
19031 2011-05-23  Bruno Haible  <bruno@clisp.org>
19032
19033         getugroups: Fix module description.
19034         * modules/getugroups (Include): Set to "getugroups.h".
19035
19036 2011-05-23  Bruno Haible  <bruno@clisp.org>
19037
19038         linkat: Simplify autoconf macro.
19039         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19040
19041 2011-05-23  Bruno Haible  <bruno@clisp.org>
19042             Eric Blake  <eblake@redhat.com>
19043
19044         linkat, renameat: Update dependencies.
19045         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19046         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19047         symlinkat.
19048
19049 2011-05-23  Jim Meyering  <meyering@redhat.com>
19050
19051         maint.mk: more tight_scope improvements
19052         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19053         (_gl_TS_headers): Define only in if-0'd block.
19054         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19055         sometimes we must *not* use it.  Adjust uses accordingly.
19056         (sc_tight_scope): Use much simpler grep-based test to determine
19057         whether we skip this rule.
19058
19059         maint.mk: generalize/improve the tight-scope rule
19060         * top/maint.mk: Emit a warning when the test is skipped.
19061         (_gl_TS_dir): Add $(srcdir)/ prefix.
19062         (_gl_TS_function_match): Simplify, rather than trying
19063         to enumerate common types.  Otherwise, it would fail to match an
19064         "extern unsigned char const *" declaration in idutils.
19065         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19066         a way to support use of that type of macro.
19067         (_gl_TS_var_match): Simplify regexp.
19068         (_gl_TS_obj_files): New configurable variable.
19069         (_gl_TS_headers): Likewise.
19070
19071 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19072
19073         verify: fix bug when gnulib <assert.h> is also included
19074         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19075         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19076         Perhaps there's a better way, but this fixes the immediate problem.
19077         Problem reported by Bruno Haible in
19078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19079
19080 2011-05-22  Bruno Haible  <bruno@clisp.org>
19081
19082         xgetcwd: Simplify autoconf macro.
19083         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19084
19085 2011-05-22  Bruno Haible  <bruno@clisp.org>
19086
19087         New module 'mktime-internal'.
19088         * modules/mktime-internal: New file.
19089         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19090         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19091         mktime_internal as a C macro if libc has __mktime_internal.
19092         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19093         conditions.
19094         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19095
19096 2011-05-22  Bruno Haible  <bruno@clisp.org>
19097
19098         timegm: Correct mktime replacement statements.
19099         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19100         defining mktime as a C macro. This completes a 2009-07-28 commit.
19101
19102 2011-05-22  Bruno Haible  <bruno@clisp.org>
19103
19104         timegm: Simplify autoconf macro.
19105         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19106
19107 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19108
19109         clock-time: change to LGPLv2+.
19110         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19111         BSD-like but we have no mark for that; this is good enough for now.
19112
19113 2011-05-21  Bruno Haible  <bruno@clisp.org>
19114
19115         strerror_r: Fix comments.
19116         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19117
19118 2011-05-21  Bruno Haible  <bruno@clisp.org>
19119
19120         relocatable-prog-wrapper: Fix possible link error.
19121         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19122         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19123         (gl_FUNC_SETENV): ... to here.
19124         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19125         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19126
19127 2011-05-21  Bruno Haible  <bruno@clisp.org>
19128
19129         relocatable-prog-wrapper: Assume strerror() exists.
19130         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19131         m4/strerror.m4.
19132         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19133         * lib/relocwrapper.c: Remove mention of strerror module.
19134         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19135         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19136         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19137         C macro.
19138
19139 2011-05-21  Bruno Haible  <bruno@clisp.org>
19140
19141         select: Simplify replacement idiom.
19142         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19143         Win32 platforms.
19144         * lib/sys_select.in.h (select): Simplify accordingly.
19145         * modules/select (Depends-on): Likewise.
19146
19147 2011-05-21  Bruno Haible  <bruno@clisp.org>
19148
19149         mkdir-p: Simplify autoconf macro.
19150         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19151         gl_FUNC_LCHOWN.
19152
19153 2011-05-21  Eric Blake  <eblake@redhat.com>
19154
19155         strerror_r: avoid clobbering strerror on cygwin
19156         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19157         fall back instead to sys_errlist.
19158         * modules/strerror (configure.ac): Add witness.
19159         * tests/test-strerror_r.c (main): Enhance test.
19160         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19161         * tests/test-perror2.c (main): Free memory before exit.
19162
19163 2011-05-21  Bruno Haible  <bruno@clisp.org>
19164
19165         mkdtemp: Use gnulib naming conventions.
19166         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19167         * modules/mkdtemp (configure.ac): Update.
19168
19169 2011-05-20  Eric Blake  <eblake@redhat.com>
19170
19171         strerror_r: avoid corrupting errno on Solaris
19172         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19173         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19174
19175         strerror_r: avoid compiler warning
19176         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19177
19178         strerror_r: simplify AIX code
19179         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19180
19181         test-perror: avoid spurious failure on FreeBSD
19182         * modules/perror-tests (Depends-on): Add strerror, now that
19183         strerror_r no longer pulls it in.
19184
19185 2011-05-20  Bruno Haible  <bruno@clisp.org>
19186
19187         strerror_r-posix: Remove unused dependencies.
19188         * modules/strerror_r-posix (Depends-on): Remove strerror.
19189         Reported by Eric Blake.
19190
19191 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19192
19193         intprops: remove assumption about A|B representation
19194         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19195         is a valid integer if both A and B are.  Although this is true for
19196         all known practical hosts, the C standard doesn't guarantee it,
19197         and the code need not assume it.  Also, this change may work around
19198         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19200
19201 2011-05-20  Eric Blake  <eblake@redhat.com>
19202
19203         perror: work around FreeBSD bug
19204         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19205         is broken.  Move AC_LIBOBJ...
19206         * modules/perror (configure.ac): Here.
19207         * doc/posix-functions/perror.texi (perror): Document this.
19208         * tests/test-perror2.c (main): Enhance test.
19209
19210         test-perror: check for strerror interactions
19211         * tests/macros.h (STREQ): Add macro.
19212         * modules/perror-tests (Files): Add second test.
19213         * tests/test-perror2.c (main): New file.
19214         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19215
19216         test-perror: rewrite to use init script
19217         * modules/perror-tests (Files): Add init.sh.
19218         * tests/test-perror.sh: Use temporary directory.
19219
19220 2011-05-20  Jim Meyering  <meyering@redhat.com>
19221
19222         maint: replace misused "a" with "an"
19223         * doc/intprops.texi: "a integer"
19224         * doc/regex.texi: "a explanation"
19225         * lib/alignof.h: "a object"
19226         * lib/argmatch.h: "a explanation"
19227         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19228         * lib/stdint.in.h: "a integer"
19229         * lib/userspec.c: "a owner"
19230         * doc/gnulib.texi: Fix "a idea", and reword.
19231
19232 2011-05-19  Jim Meyering  <meyering@redhat.com>
19233
19234         maint: correct misuse of "a" and "an"
19235         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19236         * lib/argp-help.c: "an docum...": s/an/a/
19237         * lib/argp-parse.c: "An vector": s/An/A/
19238         * lib/execute.c: "an native": s/an/a/
19239         * lib/spawn-pipe.c: Likewise.
19240         * lib/gc.h: "an Gc_rc": s/an/a/
19241         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19242         * lib/fts.c: "an stat.st_dev": s/an/a/
19243
19244 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19245
19246         intprops-tests: work around HP-UX 11.23 cc bug with constants
19247         * tests/test-intprops.c (VERIFY): New macro.
19248         (main): Use it, instead of verify, to work around the compiler bug; see
19249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19250
19251         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19252         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19253         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19254         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19255         (_GL_REMAINDER_OVERFLOW): Use it.
19256
19257         intprops-tests: revert unsigned part of previous change
19258         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19259         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19260         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19262
19263 2011-05-19  Bruno Haible  <bruno@clisp.org>
19264
19265         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19266         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19267         strerror_r() returned without filling the buffer.
19268         Reported by Eric Blake.
19269
19270 2011-05-19  Eric Blake  <eblake@redhat.com>
19271
19272         strerror_r: guarantee unchanged errno
19273         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19274         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19275         failure.
19276         * tests/test-strerror_r.c (main): Enhance test.
19277
19278 2011-05-19  Bruno Haible  <bruno@clisp.org>
19279
19280         strerror_r: Reorder #if blocks.
19281         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19282         for consistency with the previous commit.
19283
19284 2011-05-19  Bruno Haible  <bruno@clisp.org>
19285
19286         perror: Avoid clobbering the strerror buffer when possible.
19287         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19288         * lib/strerror.c: Include it.
19289         * modules/strerror (Files): Add lib/strerror-impl.h.
19290         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19291         (my_strerror): New function, defined through lib/strerror-impl.h.
19292         (perror): Use it instead of strerror.
19293         * modules/perror (Files): Add lib/strerror-impl.h.
19294         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19295
19296 2011-05-19  Eric Blake  <eblake@redhat.com>
19297
19298         strerror_r: fix on newer cygwin
19299         * lib/strerror_r.c (strerror_r): Cygwin now has
19300         __xpg_strerror_r, use it.
19301
19302 2011-05-19  Bruno Haible  <bruno@clisp.org>
19303
19304         strerror_r: Avoid clobbering the strerror buffer when possible.
19305         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19306         (sys_nerr, sys_errlist): New declarations.
19307         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19308         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19309         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19310
19311 2011-05-19  Bruno Haible  <bruno@clisp.org>
19312
19313         strerror_r: Fix test failure on mingw.
19314         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19315         EXTEND_STRERROR_R.
19316         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19317         macros from errno.in.h instead.
19318
19319 2011-05-19  Eric Blake  <eblake@redhat.com>
19320
19321         strerror: relax test for Solaris
19322         * tests/test-strerror.c (main): Permit Solaris behavior.
19323         * tests/test-strerror_r.c (main): Likewise.
19324
19325         strerror: enforce POSIX ruling on strerror(0)
19326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19327         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19328         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19329         * doc/posix-functions/strerror.texi (strerror): Document it.
19330         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19331         * tests/test-strerror.c (main): Strengthen test.
19332         * tests/test-strerror_r.c (main): Likewise.
19333
19334 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19335
19336         intprop-tests: port to older and more-pedantic compilers
19337         * modules/intprops-tests (Files): Add tests/macros.h.
19338         * tests/test-intprops.c: Include macros.h.
19339         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19340         it's no longer documented to expand to an integer constant expression.
19341         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19342         argument is floating point, as it's no longer documented to expand
19343         to an integer constant expression in that case.
19344         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19345         compiler bugs reported by Bruno Haible.  See
19346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19347         (U0, U1): New constants, to work around the same bugs.  Also,
19348         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19349
19350         intprops: work around C compiler bugs
19351         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19352         bug in Sun C 5.11 2010/08/13 and other compilers; see
19353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19354
19355         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19356         * doc/intprops.texi (Integer Type Determination): Fix
19357         documentation for TYPE_IS_INTEGER: it returns an constant
19358         expression, not an integer constant expression.  Fix doc for
19359         TYPE_SIGNED: it returns an integer constant expression only if its
19360         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19361         hardly worth documented that way....)
19362
19363 2011-05-18  Bruno Haible  <bruno@clisp.org>
19364
19365         strerror_r: Avoid clobbering the strerror buffer when possible.
19366         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19367         Handle gnulib defined errno values here. When strerror() returns NULL
19368         or an empty string, return EINVAL.
19369         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19370         gnulib defined errno values here.
19371         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19372
19373 2011-05-18  Eric Blake  <eblake@redhat.com>
19374
19375         fnmatch: avoid compiler warning
19376         * lib/fnmatch_loop.c (FCT): Use correct type.
19377         Reported by Matthias Bolte.
19378
19379 2011-05-13  Jim Meyering  <meyering@redhat.com>
19380
19381         maint.mk: three new prohibit_<HDR>_without_use rules
19382         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19383         (sc_prohibit_stdio-safer_without_use): Likewise.
19384         (sc_prohibit_xfreopen_without_use): Likewise.
19385
19386 2011-05-17  Jim Meyering  <meyering@redhat.com>
19387
19388         announce-gen: fail if the NEWS delta is empty
19389         If there's nothing noteworthy in NEWS, then either you forgot
19390         or you shouldn't be releasing.
19391         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19392
19393 2011-05-17  Pádraig Brady <P@draigBrady.com>
19394
19395         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19396         reserved symbols starting with double underscore from the check.
19397
19398 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19399
19400         intprops: add doc
19401         * doc/intprops.texi: New file, documenting intprops.
19402         * doc/gnulib.texi (Particular Modules): Include it.
19403
19404         verify: add doc to gnulib manual and fix example
19405         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19406         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19407         (Compile-time Assertions): Fix example so it can't overflow.
19408
19409 2011-05-17  Jim Meyering  <meyering@redhat.com>
19410
19411         warnings.m4: don't usurp save_CPPFLAGS variable name
19412         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19413
19414         doc: fix typo
19415         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19416
19417 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19418             Bruno Haible  <bruno@clisp.org>
19419
19420         doc: Tweak recent change.
19421         * README (Portability guidelines): Tweak new text.
19422         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19423         Interix 6.1.
19424
19425 2011-05-16  Eric Blake  <eblake@redhat.com>
19426
19427         inttypes: avoid autoconf warning
19428         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19429         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19430
19431 2011-05-16  Sam Steingold <sds@gnu.org>
19432         and Eric Blake  <eblake@redhat.com>
19433
19434         vc-list-files: accept multiple directory operands
19435         * build-aux/vc-list-files: Iterate over all remaining operands.
19436
19437 2011-05-16  Bruno Haible  <bruno@clisp.org>
19438
19439         Fix confusion regarding deprecated modules.
19440         * modules/calloc (Status, Notice): Mark module as deprecated, not
19441         obsolete.
19442         * modules/fnmatch-posix (Status, Notice): Likewise.
19443         * modules/getdate (Status, Notice): Likewise.
19444         * modules/getopt (Status, Notice): Likewise.
19445         * modules/malloc (Status, Notice): Likewise.
19446         * modules/pipe (Status, Notice): Likewise.
19447         * modules/realloc (Status, Notice): Likewise.
19448         * modules/rename-dest-slash (Status, Notice): Likewise.
19449         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19450         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19451         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19452         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19453         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19454
19455 2011-05-16  Bruno Haible  <bruno@clisp.org>
19456
19457         doc: List the target platforms.
19458         * doc/gnulib-intro.texi (Target Platforms): New section.
19459         * doc/gnulib.texi (Introduction): Update menu.
19460         * README (Portability guidelines): Refer to the new section. Update
19461         statement about oldest supported environment. Remove rationale why
19462         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19463         unportable C89 function.
19464         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19465         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19466
19467 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19468
19469         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19470
19471 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19472
19473         intprops-tests: new module
19474         * modules/intprops-tests, tests/test-intprops.c: New files.
19475
19476         intprops: add safe, portable integer overflow checking
19477         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19478         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19479         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19480         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19481         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19482         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19483         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19484         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19485         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19486         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19487         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19488
19489 2011-05-12  James Youngman  <jay@gnu.org>
19490
19491         Add a test for glibc's Bugzilla bug #12378.
19492         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19493         doesn't allow the literal matching of a lone "[" (which is
19494         required by POSIX).
19495         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19496
19497 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19498
19499         Sync glibc change fixing Bugzilla bug #12378.
19500         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19501         beginning and fall back to matching as normal character if the
19502         string ends before the matching ']' is found.  This is what POSIX
19503         requires.
19504
19505 2011-05-13  Eric Blake  <eblake@redhat.com>
19506
19507         getcwd-lgpl: relax test for FreeBSD
19508         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19509         issue.
19510         * tests/test-getcwd-lgpl.c (main): Relax test.
19511         Reported by Matthias Bolte.
19512
19513 2011-05-11  Eric Blake  <eblake@redhat.com>
19514
19515         test-fflush: silence compiler warning
19516         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19517
19518 2011-05-11  Bruno Haible  <bruno@clisp.org>
19519
19520         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19521         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19522         * modules/canonicalize (Depends-on): Add 'nocrash'.
19523         * modules/canonicalize-lgpl (Depends-on): Likewise.
19524         * doc/posix-functions/realpath.texi: Update platforms list.
19525         Reported by Ryan Schmidt <ryandesign@macports.org>.
19526
19527 2011-05-11  Bruno Haible  <bruno@clisp.org>
19528
19529         group-member: Declare function in <unistd.h>.
19530         * lib/unistd.in.h (group_member): New declaration.
19531         * lib/group-member.h: Remove file.
19532         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19533         * tests/test-unistd-c++.cc: Check signature of group_member.
19534         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19535         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19536         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19537         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19538         HAVE_GROUP_MEMBER.
19539         * modules/group-member (Files): Remove lib/group-member.h.
19540         (Depends-on): Add unistd. Specify conditions.
19541         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19542         (Include): Change to <unistd.h>.
19543         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19544         HAVE_GROUP_MEMBER.
19545         * NEWS: Mention the change.
19546         * lib/euidaccess.c: Don't include group-member.h.
19547
19548 2011-05-11  Bruno Haible  <bruno@clisp.org>
19549
19550         group-member: Document module.
19551         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19552         module.
19553
19554 2011-05-11  Bruno Haible  <bruno@clisp.org>
19555
19556         fclose: Fix mistake earlier today.
19557         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19558
19559 2011-05-11  Eric Blake  <eblake@redhat.com>
19560
19561         fclose: preserve fflush errors
19562         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19563         Reported by Jim Meyering.
19564
19565         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19566         * build-aux/bootstrap (check_versions): When no specific version
19567         is required, merely check that the app produces an exit status
19568         that indicates its existence.
19569
19570         maint.mk: drop redundant check
19571         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19572         the same but better.
19573
19574 2011-05-11  Bruno Haible  <bruno@clisp.org>
19575
19576         fclose: Fix possible link error.
19577         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19578         unregister_shadow_fd. Improve comments.
19579         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19580         Eric Blake.
19581
19582 2011-05-11  Jim Meyering  <meyering@redhat.com>
19583
19584         maint.mk: improve "can not" detection and generalize rule name
19585         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19586         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19587         Use the same technique as in sc_prohibit_doubled_word, so that
19588         we recognize "can not" also when the words are separated by a newline.
19589         Suggested by Eric Blake.
19590         (perl_filename_lineno_text_): Define.  Factored out of...
19591         (prohibit_doubled_word_): ...here.  Use the new definition.
19592         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19593         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19594         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19595
19596 2011-05-10  Eric Blake  <eblake@redhat.com>
19597
19598         fclose: avoid double close race when possible
19599         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19600         all but WINDOWS_SOCKETS.
19601
19602 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19603
19604         openat: correct new comment
19605         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19606
19607 2011-05-10  Jim Meyering  <meyering@redhat.com>
19608
19609         openat: add comments
19610         * lib/openat-proc.c (openat_proc_name): Add comments,
19611         mostly from Eric Blake.
19612
19613 2011-05-09  Eric Blake  <eblake@redhat.com>
19614
19615         openat: reduce syscalls in first probe of /proc
19616         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19617         be a directory.  Simplify the probe for .. bugs.
19618         * modules/openat (Depends-on): Drop same-inode.
19619         Reported by Bastien ROUCARIES.
19620
19621 2011-05-09  Jim Meyering  <meyering@redhat.com>
19622
19623         maint.mk: change semantics/name of tight_scope variables
19624         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19625         Rename variables to align with semantics that make them more useful.
19626
19627         maint.mk: tweak new rule's name not to impinge
19628         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19629         (sc_tight_scope): Use new rule name rather than $@-0.
19630
19631         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19632         * top/maint.mk (sc_tight_scope): New rule.
19633         (sc_tight_scope-0): New rule, ifdef'd out.
19634         (_gl_TS_dir): Default.
19635         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19636         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19637
19638 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19639
19640         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19641         Haible <bruno@clisp.org>.
19642
19643 2011-05-08  Bruno Haible  <bruno@clisp.org>
19644
19645         Comments.
19646         * m4/isnanf.m4: Add comment.
19647         * m4/isnanl.m4: Likewise.
19648
19649 2011-05-08  Bruno Haible  <bruno@clisp.org>
19650
19651         glob: Remove obsolete macro.
19652         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19653
19654 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19655
19656         intprops: Sun C 5.11 supports __typeof__
19657         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19658         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19659         which is new.
19660         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19661
19662         intprops: switch to usual gnulib indenting and naming
19663         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19664         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19665
19666         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19667
19668 2011-05-08  Jim Meyering  <meyering@redhat.com>
19669
19670         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19671         * top/maint.mk (release-prep): Use make's --no-print-directory
19672         option when generating the announcement.  This eliminates the
19673         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19674         generated announcement template.
19675
19676 2011-05-08  Bruno Haible  <bruno@clisp.org>
19677
19678         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19679         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19680         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19681
19682 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19683
19684         ignore-value, verify: Omit include files from lib_SOURCES.
19685         * modules/ignore-value, modules/verify (Makefile.am):
19686         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19687         that leads Automake to duplicate use of am__objects_... variables
19688         in Makefile.in.  See
19689         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19690
19691 2011-05-07  Bruno Haible  <bruno@clisp.org>
19692
19693         fclose: Simplify autoconf macro.
19694         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19695         defined.
19696
19697 2011-05-07  Bruno Haible  <bruno@clisp.org>
19698
19699         canonicalize-lgpl: Fix autoconf macro ordering bug.
19700         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19701         gl_STDLIB_H_DEFAULTS.
19702
19703 2011-05-06  Eric Blake  <eblake@redhat.com>
19704
19705         maintainer-makefile: make sc_po_check easier to tune
19706         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19707         to probe for strings, such as an alternate location for gnulib.
19708
19709         fclose: guarantee behavior on seekable stdin
19710         * modules/fclose (Depends-on): Add fflush.
19711         * doc/posix-functions/fclose.texi (fclose): Document this.
19712         * tests/test-fclose.c (main): Make test for this unconditional.
19713
19714 2011-05-06  Bruno Haible  <bruno@clisp.org>
19715
19716         fflush, fpurge: Relicense under LGPLv2+.
19717         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19718         * modules/fpurge (License): Likewise.
19719         With permission from Eric Blake and Jim Meyering.
19720         Suggested by Eric Blake.
19721
19722 2011-05-06  Karl Berry  <karl@gnu.org>
19723
19724         * MODULES.html.sh (func_all_modules): remove exit.
19725
19726 2011-05-06  Jim Meyering  <meyering@redhat.com>
19727
19728         maint.mk: use info-gnu@ as the default only for a stable release
19729         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19730         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19731         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19732         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19733
19734 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19735
19736         assert-h: new module, which supports C1X-style static_assert
19737         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19738         * lib/verify.h: Revamp so that this can be copied into assert.h,
19739         while retaining the ability to use it standalone as before.
19740         Rename private identifiers so as not to encroach on the
19741         standard C namespace, since this is now used by assert.h.
19742         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19743         the old verify_true.
19744         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19745         the old verify_true.  Use _GL_VERIFY_TYPE.
19746         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19747         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19748         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19749         defined when this file is copied into the replacement assert.h.
19750         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19751         and _Static_assert is not built in.
19752         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19753         defined, and use the new macros mentioned above.
19754         * doc/posix-headers/assert.texi: Document this.
19755
19756 2011-05-05  Bruno Haible  <bruno@clisp.org>
19757
19758         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19759         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19760         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19761         gl_REPLACE_FCLOSE here.
19762         * modules/fflush (Depends-on): Remove fclose.
19763         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19764         combination with module 'fclose'.
19765
19766 2011-05-05  Bruno Haible  <bruno@clisp.org>
19767
19768         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19769         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19770         gl_FUNC_FFLUSH.
19771         (gl_FUNC_FFLUSH): Use it.
19772         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19773         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19774         gl_REPLACE_FSEEKO here.
19775
19776 2011-05-05  Bruno Haible  <bruno@clisp.org>
19777
19778         tzset: Relicense under LGPL.
19779         * modules/tzset (License): Change to LGPL.
19780         No agreement needed; it's a no-op.
19781
19782         strtoimax, strtoumax: Relicense under LGPL.
19783         * modules/strtoimax (License): Change to LGPL.
19784         * modules/strtoumax (License): Likewise.
19785         With permission from Jim Meyering, Paul Eggert:
19786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19788
19789         getgroups: Relicense under LGPL.
19790         * modules/getgroups (License): Change to LGPL.
19791         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19795
19796         nanosleep: Relicense under LGPL.
19797         * modules/nanosleep (License): Change to LGPL.
19798         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19799         Haible:
19800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19803         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19804
19805         futimens: Relicense under LGPL.
19806         * modules/futimens (License): Change to LGPL.
19807         With permission from Eric Blake:
19808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19809
19810         fflush: Relicense under LGPL.
19811         * modules/fflush (License): Change to LGPL.
19812         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19816
19817         tmpfile: Relicense under LGPL.
19818         * modules/tmpfile (License): Change to LGPL.
19819         With permission from Ben Pfaff:
19820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19821
19822         isfinite: Relicense under LGPL.
19823         * modules/isfinite (License): Change to LGPL.
19824         With permission from Ben Pfaff, Bruno Haible:
19825         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19827
19828         acosl..tanl: Relicense under LGPL.
19829         * modules/acosl (License): Change to LGPL.
19830         * modules/asinl (License): Likewise.
19831         * modules/atanl (License): Likewise.
19832         * modules/cosl (License): Likewise.
19833         * modules/expl (License): Likewise.
19834         * modules/logl (License): Likewise.
19835         * modules/sinl (License): Likewise.
19836         * modules/sqrtl (License): Likewise.
19837         * modules/tanl (License): Likewise.
19838         Source code originally from glibc and Paolo Bonzini. Agreements:
19839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19841
19842 2011-05-05  Bruno Haible  <bruno@clisp.org>
19843
19844         signal: Define sighandler_t.
19845         * lib/signal.in.h (sighandler_t): New type.
19846         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19847         whether sighandler_t is defined.
19848         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19849         * modules/signal (Depends-on): Add extensions.
19850         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19851         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19852         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19853
19854 2011-05-05  Eric Blake  <eblake@redhat.com>
19855
19856         maint: remove useless REPLACE_*_H macros
19857         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19858         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19859         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19860         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19861         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19862         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19863         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19864         * m4/btowc.m4: Update callers.
19865         * m4/dirfd.m4: Likewise.
19866         * m4/duplocale.m4: Likewise.
19867         * m4/fchdir.m4: Likewise.
19868         * m4/fdopendir.m4: Likewise.
19869         * m4/inet_ntop.m4: Likewise.
19870         * m4/inet_pton.m4: Likewise.
19871         * m4/ioctl.m4: Likewise.
19872         * m4/mbrlen.m4: Likewise.
19873         * m4/mbrtowc.m4: Likewise.
19874         * m4/mbsinit.m4: Likewise.
19875         * m4/mbsnrtowcs.m4: Likewise.
19876         * m4/mbsrtowcs.m4: Likewise.
19877         * m4/poll.m4: Likewise.
19878         * m4/setlocale.m4: Likewise.
19879         * m4/wcrtomb.m4: Likewise.
19880         * m4/wcsnrtombs.m4: Likewise.
19881         * m4/wcsrtombs.m4: Likewise.
19882         * m4/wctob.m4: Likewise.
19883         * m4/wcwidth.m4: Likewise.
19884         * modules/posix_spawn: Likewise.
19885         * modules/posix_spawn_file_actions_addclose: Likewise.
19886         * modules/posix_spawn_file_actions_adddup2: Likewise.
19887         * modules/posix_spawn_file_actions_addopen: Likewise.
19888         * modules/posix_spawn_file_actions_destroy: Likewise.
19889         * modules/posix_spawn_file_actions_init: Likewise.
19890         * modules/posix_spawnattr_destroy: Likewise.
19891         * modules/posix_spawnattr_getflags: Likewise.
19892         * modules/posix_spawnattr_getpgroup: Likewise.
19893         * modules/posix_spawnattr_getschedparam: Likewise.
19894         * modules/posix_spawnattr_getschedpolicy: Likewise.
19895         * modules/posix_spawnattr_getsigdefault: Likewise.
19896         * modules/posix_spawnattr_getsigmask: Likewise.
19897         * modules/posix_spawnattr_init: Likewise.
19898         * modules/posix_spawnattr_setflags: Likewise.
19899         * modules/posix_spawnattr_setpgroup: Likewise.
19900         * modules/posix_spawnattr_setschedparam: Likewise.
19901         * modules/posix_spawnattr_setschedpolicy: Likewise.
19902         * modules/posix_spawnattr_setsigdefault: Likewise.
19903         * modules/posix_spawnattr_setsigmask: Likewise.
19904         * modules/posix_spawnp: Likewise.
19905
19906 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19907
19908         Add option to do-release-commit-and-tag to specify branch.
19909         * build-aux/do-release-commit-and-tag: Add --branch.
19910
19911 2011-05-03  Bruno Haible  <bruno@clisp.org>
19912
19913         Avoid unnecessary compilation units, through conditional dependencies.
19914         * modules/accept (Depends-on): Add conditions to the dependencies.
19915         * modules/acosl (Depends-on): Likewise.
19916         * modules/argz (Depends-on): Likewise.
19917         * modules/asinl (Depends-on): Likewise.
19918         * modules/atanl (Depends-on): Likewise.
19919         * modules/atoll (Depends-on): Likewise.
19920         * modules/bind (Depends-on): Likewise.
19921         * modules/btowc (Depends-on): Likewise.
19922         * modules/canonicalize-lgpl (Depends-on): Likewise.
19923         * modules/ceil (Depends-on): Likewise.
19924         * modules/ceilf (Depends-on): Likewise.
19925         * modules/ceill (Depends-on): Likewise.
19926         * modules/chdir-long (Depends-on): Likewise.
19927         * modules/chown (Depends-on): Likewise.
19928         * modules/close (Depends-on): Likewise.
19929         * modules/connect (Depends-on): Likewise.
19930         * modules/cosl (Depends-on): Likewise.
19931         * modules/dirfd (Depends-on): Likewise.
19932         * modules/dprintf (Depends-on): Likewise.
19933         * modules/dprintf-posix (Depends-on): Likewise.
19934         * modules/error (Depends-on): Likewise.
19935         * modules/euidaccess (Depends-on): Likewise.
19936         * modules/expl (Depends-on): Likewise.
19937         * modules/faccessat (Depends-on): Likewise.
19938         * modules/fchdir (Depends-on): Likewise.
19939         * modules/fclose (Depends-on): Likewise.
19940         * modules/fcntl (Depends-on): Likewise.
19941         * modules/fdopendir (Depends-on): Likewise.
19942         * modules/fflush (Depends-on): Likewise.
19943         * modules/floor (Depends-on): Likewise.
19944         * modules/floorf (Depends-on): Likewise.
19945         * modules/floorl (Depends-on): Likewise.
19946         * modules/fnmatch (Depends-on): Likewise.
19947         * modules/fopen (Depends-on): Likewise.
19948         * modules/fprintf-posix (Depends-on): Likewise.
19949         * modules/frexp (Depends-on): Likewise.
19950         * modules/frexp-nolibm (Depends-on): Likewise.
19951         * modules/frexpl (Depends-on): Likewise.
19952         * modules/frexpl-nolibm (Depends-on): Likewise.
19953         * modules/fseek (Depends-on): Likewise.
19954         * modules/fsusage (Depends-on): Likewise.
19955         * modules/ftell (Depends-on): Likewise.
19956         * modules/ftello (Depends-on): Likewise.
19957         * modules/futimens (Depends-on): Likewise.
19958         * modules/getcwd (Depends-on): Likewise.
19959         * modules/getcwd-lgpl (Depends-on): Likewise.
19960         * modules/getdelim (Depends-on): Likewise.
19961         * modules/getdomainname (Depends-on): Likewise.
19962         * modules/getgroups (Depends-on): Likewise.
19963         * modules/gethostname (Depends-on): Likewise.
19964         * modules/getline (Depends-on): Likewise.
19965         * modules/getlogin_r (Depends-on): Likewise.
19966         * modules/getopt-posix (Depends-on): Likewise.
19967         * modules/getpeername (Depends-on): Likewise.
19968         * modules/getsockname (Depends-on): Likewise.
19969         * modules/getsockopt (Depends-on): Likewise.
19970         * modules/getsubopt (Depends-on): Likewise.
19971         * modules/getusershell (Depends-on): Likewise.
19972         * modules/glob (Depends-on): Likewise.
19973         * modules/grantpt (Depends-on): Likewise.
19974         * modules/iconv_open (Depends-on): Likewise.
19975         * modules/iconv_open-utf (Depends-on): Likewise.
19976         * modules/inet_ntop (Depends-on): Likewise.
19977         * modules/inet_pton (Depends-on): Likewise.
19978         * modules/ioctl (Depends-on): Likewise.
19979         * modules/isapipe (Depends-on): Likewise.
19980         * modules/isfinite (Depends-on): Likewise.
19981         * modules/isinf (Depends-on): Likewise.
19982         * modules/lchown (Depends-on): Likewise.
19983         * modules/ldexpl (Depends-on): Likewise.
19984         * modules/link (Depends-on): Likewise.
19985         * modules/linkat (Depends-on): Likewise.
19986         * modules/listen (Depends-on): Likewise.
19987         * modules/logl (Depends-on): Likewise.
19988         * modules/lstat (Depends-on): Likewise.
19989         * modules/mbrlen (Depends-on): Likewise.
19990         * modules/mbrtowc (Depends-on): Likewise.
19991         * modules/mbsinit (Depends-on): Likewise.
19992         * modules/mbsnrtowcs (Depends-on): Likewise.
19993         * modules/mbsrtowcs (Depends-on): Likewise.
19994         * modules/mbtowc (Depends-on): Likewise.
19995         * modules/memcmp (Depends-on): Likewise.
19996         * modules/mkdir (Depends-on): Likewise.
19997         * modules/mkdtemp (Depends-on): Likewise.
19998         * modules/mkfifo (Depends-on): Likewise.
19999         * modules/mkfifoat (Depends-on): Likewise.
20000         * modules/mknod (Depends-on): Likewise.
20001         * modules/mkostemp (Depends-on): Likewise.
20002         * modules/mkostemps (Depends-on): Likewise.
20003         * modules/mkstemp (Depends-on): Likewise.
20004         * modules/mkstemps (Depends-on): Likewise.
20005         * modules/mktime (Depends-on): Likewise.
20006         * modules/nanosleep (Depends-on): Likewise.
20007         * modules/open (Depends-on): Likewise.
20008         * modules/openat (Depends-on): Likewise.
20009         * modules/perror (Depends-on): Likewise.
20010         * modules/poll (Depends-on): Likewise.
20011         * modules/popen (Depends-on): Likewise.
20012         * modules/posix_spawn (Depends-on): Likewise.
20013         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20014         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20015         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20016         * modules/posix_spawnp (Depends-on): Likewise.
20017         * modules/pread (Depends-on): Likewise.
20018         * modules/printf-posix (Depends-on): Likewise.
20019         * modules/ptsname (Depends-on): Likewise.
20020         * modules/putenv (Depends-on): Likewise.
20021         * modules/pwrite (Depends-on): Likewise.
20022         * modules/readline (Depends-on): Likewise.
20023         * modules/readlink (Depends-on): Likewise.
20024         * modules/readlinkat (Depends-on): Likewise.
20025         * modules/recv (Depends-on): Likewise.
20026         * modules/recvfrom (Depends-on): Likewise.
20027         * modules/regex (Depends-on): Likewise.
20028         * modules/remove (Depends-on): Likewise.
20029         * modules/rename (Depends-on): Likewise.
20030         * modules/renameat (Depends-on): Likewise.
20031         * modules/rmdir (Depends-on): Likewise.
20032         * modules/round (Depends-on): Likewise.
20033         * modules/roundf (Depends-on): Likewise.
20034         * modules/roundl (Depends-on): Likewise.
20035         * modules/rpmatch (Depends-on): Likewise.
20036         * modules/select (Depends-on): Likewise.
20037         * modules/send (Depends-on): Likewise.
20038         * modules/sendto (Depends-on): Likewise.
20039         * modules/setenv (Depends-on): Likewise.
20040         * modules/setlocale (Depends-on): Likewise.
20041         * modules/setsockopt (Depends-on): Likewise.
20042         * modules/shutdown (Depends-on): Likewise.
20043         * modules/sigaction (Depends-on): Likewise.
20044         * modules/signbit (Depends-on): Likewise.
20045         * modules/sigprocmask (Depends-on): Likewise.
20046         * modules/sinl (Depends-on): Likewise.
20047         * modules/sleep (Depends-on): Likewise.
20048         * modules/snprintf (Depends-on): Likewise.
20049         * modules/snprintf-posix (Depends-on): Likewise.
20050         * modules/socket (Depends-on): Likewise.
20051         * modules/sprintf-posix (Depends-on): Likewise.
20052         * modules/sqrtl (Depends-on): Likewise.
20053         * modules/stat (Depends-on): Likewise.
20054         * modules/strchrnul (Depends-on): Likewise.
20055         * modules/strdup-posix (Depends-on): Likewise.
20056         * modules/strerror (Depends-on): Likewise.
20057         * modules/strerror_r-posix (Depends-on): Likewise.
20058         * modules/strndup (Depends-on): Likewise.
20059         * modules/strnlen (Depends-on): Likewise.
20060         * modules/strptime (Depends-on): Likewise.
20061         * modules/strsep (Depends-on): Likewise.
20062         * modules/strsignal (Depends-on): Likewise.
20063         * modules/strstr-simple (Depends-on): Likewise.
20064         * modules/strtod (Depends-on): Likewise.
20065         * modules/strtoimax (Depends-on): Likewise.
20066         * modules/strtok_r (Depends-on): Likewise.
20067         * modules/strtoumax (Depends-on): Likewise.
20068         * modules/symlink (Depends-on): Likewise.
20069         * modules/symlinkat (Depends-on): Likewise.
20070         * modules/tanl (Depends-on): Likewise.
20071         * modules/tcgetsid (Depends-on): Likewise.
20072         * modules/tmpfile (Depends-on): Likewise.
20073         * modules/trunc (Depends-on): Likewise.
20074         * modules/truncf (Depends-on): Likewise.
20075         * modules/truncl (Depends-on): Likewise.
20076         * modules/uname (Depends-on): Likewise.
20077         * modules/unlink (Depends-on): Likewise.
20078         * modules/unlockpt (Depends-on): Likewise.
20079         * modules/unsetenv (Depends-on): Likewise.
20080         * modules/usleep (Depends-on): Likewise.
20081         * modules/utimensat (Depends-on): Likewise.
20082         * modules/vasprintf (Depends-on): Likewise.
20083         * modules/vdprintf (Depends-on): Likewise.
20084         * modules/vdprintf-posix (Depends-on): Likewise.
20085         * modules/vfprintf-posix (Depends-on): Likewise.
20086         * modules/vprintf-posix (Depends-on): Likewise.
20087         * modules/vsnprintf (Depends-on): Likewise.
20088         * modules/vsnprintf-posix (Depends-on): Likewise.
20089         * modules/vsprintf-posix (Depends-on): Likewise.
20090         * modules/wcrtomb (Depends-on): Likewise.
20091         * modules/wcscasecmp (Depends-on): Likewise.
20092         * modules/wcscspn (Depends-on): Likewise.
20093         * modules/wcsdup (Depends-on): Likewise.
20094         * modules/wcsncasecmp (Depends-on): Likewise.
20095         * modules/wcsnrtombs (Depends-on): Likewise.
20096         * modules/wcspbrk (Depends-on): Likewise.
20097         * modules/wcsrtombs (Depends-on): Likewise.
20098         * modules/wcsspn (Depends-on): Likewise.
20099         * modules/wcsstr (Depends-on): Likewise.
20100         * modules/wcstok (Depends-on): Likewise.
20101         * modules/wcswidth (Depends-on): Likewise.
20102         * modules/wctob (Depends-on): Likewise.
20103         * modules/wctomb (Depends-on): Likewise.
20104         * modules/wctype (Depends-on): Likewise.
20105         * modules/wcwidth (Depends-on): Likewise.
20106         * modules/write (Depends-on): Likewise.
20107
20108 2011-05-03  Bruno Haible  <bruno@clisp.org>
20109
20110         Support for conditional dependencies.
20111         * doc/gnulib.texi (Module description): Document the syntax of
20112         conditional dependencies.
20113         * gnulib-tool: New option --conditional-dependencies.
20114         (func_usage): Document it.
20115         (cond_dependencies): New variable.
20116         (func_get_automake_snippet_conditional,
20117         func_get_automake_snippet_unconditional): New functions, extracted from
20118         func_get_automake_snippet.
20119         (func_get_automake_snippet): Use them.
20120         (sed_first_32_chars): New variable.
20121         (func_module_shellfunc_name): New function.
20122         (func_module_shellvar_name): New function.
20123         (func_module_conditional_name): New function.
20124         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20125         func_cond_module_condition): New functions.
20126         (func_modules_transitive_closure): Add support for conditional
20127         dependencies.
20128         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20129         conditional automake snippet in an automake conditional.
20130         (func_emit_autoconf_snippets): Emit shell functions that contain the
20131         code for conditional modules.
20132         (func_import, func_create_testdir): Update specification.
20133
20134 2011-05-03  Eric Blake  <eblake@redhat.com>
20135
20136         test-getaddrinfo: report error information
20137         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20138
20139 2011-05-03  Jim Meyering  <meyering@redhat.com>
20140
20141         bootstrap: avoid build failure when $GZIP is set
20142         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20143         program name.  If defined at all, it is supposed to list gzip options.
20144         Reported by Alan Curry in http://debbugs.gnu.org/8609
20145
20146 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20147
20148         readme-release: new module with release instructions
20149         * modules/readme-release: New module.
20150         * top/README-release: New file, from coreutils, grep, diffutils.
20151         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20152
20153 2011-05-02  Eric Blake  <eblake@redhat.com>
20154
20155         fflush: also replace fclose when fixing fflush
20156         * modules/fflush (Depends-on): Add fclose.
20157         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20158         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20159         memstreams with no backing fd.
20160         * doc/posix-functions/fclose.texi (fclose): Document the use of
20161         fflush module to fix the bug.
20162         * tests/test-fclose.c (main): Relax test when fclose is used in
20163         isolation.
20164
20165         fclose: add some tests
20166         * modules/fclose-tests: New test module.
20167         * tests/test-fclose.c: New file.
20168         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20169
20170         fclose: reduced dependencies
20171         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20172         simpler lseek.
20173         * lib/fclose.c (rpl_fclose): Likewise.
20174         Reported by Simon Josefsson.
20175
20176         exit: drop remaining clients
20177         * modules/argmatch (Depends-on): Replace exit with stdlib.
20178         * modules/copy-file (Depends-on): Likewise.
20179         * modules/execute (Depends-on): Likewise.
20180         * modules/exitfail (Depends-on): Likewise.
20181         * modules/obstack (Depends-on): Likewise.
20182         * modules/pagealign_alloc (Depends-on): Likewise.
20183         * modules/pipe-filter-gi (Depends-on): Likewise.
20184         * modules/pipe-filter-ii (Depends-on): Likewise.
20185         * modules/savewd (Depends-on): Likewise.
20186         * modules/spawn-pipe (Depends-on): Likewise.
20187         * modules/wait-process (Depends-on): Likewise.
20188         * modules/xsetenv (Depends-on): Likewise.
20189         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20190         * modules/git-merge-changelog (Depends-on): Likewise.
20191         * modules/long-options (Depends-on): Likewise.
20192         * modules/pt_chown (Depends-on): Likewise.
20193         * modules/sysexits (Depends-on): Likewise.
20194
20195         freading: relax license from LGPLv3+ to LGPLv2+
20196         * modules/freading (License): Relax LGPL version.
20197
20198 2011-05-02  Bruno Haible  <bruno@clisp.org>
20199
20200         fchdir: Remove unused dependencies.
20201         * modules/fchdir (Depends-on): Remove include_next.
20202
20203 2011-05-02  Bruno Haible  <bruno@clisp.org>
20204
20205         gnulib-tool: Refactor.
20206         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20207         from func_emit_autoconf_snippets.
20208         (func_emit_autoconf_snippets): Use it.
20209
20210 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20211
20212         * NEWS: Document removal of 'exit'.
20213         * modules/exit: Remove file.
20214
20215 2011-05-01  Bruno Haible  <bruno@clisp.org>
20216
20217         Update DEPENDENCIES.
20218         * DEPENDENCIES (gettext): Recommend the newest release.
20219         Reported by Simon Josefsson.
20220
20221 2011-05-01  Bruno Haible  <bruno@clisp.org>
20222
20223         gnulib-tool: Reduce code duplication.
20224         * gnulib-tool (func_emit_autoconf_snippets): New function.
20225         (func_import, func_create_testdir): Use it.
20226
20227 2011-04-30  Eric Blake  <eblake@redhat.com>
20228
20229         fclose: don't fail on non-seekable input stream
20230         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20231         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20232         since fflush is allowed to fail in that case.
20233
20234 2011-04-30  Bruno Haible  <bruno@clisp.org>
20235
20236         dup3: cleanup
20237         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20238
20239 2011-04-30  Bruno Haible  <bruno@clisp.org>
20240
20241         netdb: Make it work in C++ mode.
20242         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20243         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20244         module.
20245         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20246         gl_MODULE_INDICATOR_FOR_TESTS.
20247         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20248         * modules/netdb-c++-tests: New file.
20249         * tests/test-netdb-c++.cc: New file.
20250
20251 2011-04-30  Bruno Haible  <bruno@clisp.org>
20252
20253         New modules 'vfscanf', 'vscanf'.
20254         * modules/vfscanf: New file.
20255         * modules/vscanf: New file.
20256         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20257         here.
20258         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20259         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20260
20261 2011-04-30  Bruno Haible  <bruno@clisp.org>
20262
20263         passfd: Add comments.
20264         * lib/passfd.c: Add comments about platforms.
20265
20266 2011-04-30  Bruno Haible  <bruno@clisp.org>
20267
20268         sys_uio: Make <sys/uio.h> self-contained.
20269         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20270         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20271
20272 2011-04-30  Bruno Haible  <bruno@clisp.org>
20273
20274         sys_socket: Ensure 'struct iovec' definition.
20275         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20276         <sys/socket.h>.
20277         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20278
20279 2011-04-30  Bruno Haible  <bruno@clisp.org>
20280
20281         sys_uio: Protect definition of 'struct iovec'.
20282         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20283         it as a C struct.
20284
20285 2011-04-30  Bruno Haible  <bruno@clisp.org>
20286
20287         manywarnings: fix indentation
20288         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20289
20290 2011-04-30  Pádraig Brady <P@draigBrady.com>
20291
20292         manywarnings: add -Wno-missing-field-initializers if needed.
20293         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20294         option if it's needed to allow initialization with { 0, }
20295
20296 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20297
20298         announce-gen: cosmetic improvement
20299         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20300
20301 2011-04-29  Jim Meyering  <meyering@redhat.com>
20302
20303         vc-list-files: indent with spaces, not TABs
20304         * build-aux/vc-list-files: Convert leading TABs to spaces,
20305         to match the style of most other files in gnulib.
20306
20307         announce-gen: indent with spaces, not TABs
20308         * build-aux/announce-gen: Convert all TABs to spaces, to match
20309         the style of most other files in gnulib.
20310
20311 2011-04-29  Eric Blake  <eblake@redhat.com>
20312
20313         quotearg: avoid uninitialized variable use
20314         * lib/quotearg.c (quoting_options_from_style): Initialize
20315         remaining fields, and ensure that custom styles are only used via
20316         quoting_options rather than quoting_style.
20317
20318 2011-04-29  Jim Meyering  <meyering@redhat.com>
20319
20320         maint.mk: remove unused VC-tag variable
20321         * top/maint.mk (VC-tag): Remove unused variable.
20322
20323 2011-04-29  Bruno Haible  <bruno@clisp.org>
20324
20325         netdb: fix gai_strerror replacements
20326         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20327         * modules/netdb: Substitute it.
20328
20329 2011-04-29  Jim Meyering  <meyering@redhat.com>
20330
20331         test-getcwd.c: avoid new set-but-not-used warning
20332         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20333         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20334         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20335         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20336
20337         test-hash.c: avoid a new shadowing warning
20338         * tests/test-hash.c (main): Don't shadow "dup".
20339
20340 2011-04-28  Eric Blake  <eblake@redhat.com>
20341
20342         getaddrinfo: fix gai_strerror signature
20343         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20344         and work around mingw with UNICODE defined.
20345         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20346         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20347         * modules/netdb (Makefile.am): Substitute it.
20348         * lib/netdb.in.h (gai_strerror): Declare replacement.
20349         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20350         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20351         the fix.
20352
20353         getsockopt: avoid compiler warning
20354         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20355         Reported by Matthias Bolte.
20356
20357         tests: drop unused link dependency
20358         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20359         * modules/dirent-safer-tests (Makefile.am): Likewise.
20360         * modules/fdopendir-tests (Makefile.am): Likewise.
20361         * modules/mkfifoat-tests (Makefile.am): Likewise.
20362         * modules/openat-safer-tests (Makefile.am): Likewise.
20363         * modules/openat-tests (Makefile.am): Likewise.
20364         * modules/readlinkat-tests (Makefile.am): Likewise.
20365         * modules/symlinkat-tests (Makefile.am): Likewise.
20366         * modules/linkat-tests (Makefile.am): Likewise.
20367         (Depends-on): Switch to filenamecat-lgpl.
20368         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20369         LIBINTL.
20370         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20371         * tests/test-linkat.c (main): Don't require xalloc.
20372
20373         hash, mgetgroups: drop xalloc dependency
20374         * lib/hash.c (includes): Adjust includes.
20375         * lib/mgetgroups.c (includes): Likewise.
20376         (xgetgroups): Move...
20377         * lib/xgetgroups.c: ...to new file.
20378         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20379         * modules/xgetgroups: New file, split from...
20380         * modules/mgetgroups: ...here.
20381         (Depends-on): Add xalloc-oversized.
20382         * modules/hash (Depends-on): Likewise.
20383         * modules/hash-tests (Depends-on): Drop xalloc.
20384         (test_hash_LDADD): Drop unused library.
20385         * tests/test-hash.c (main): Break xalloc dependency.
20386         (includes): Drop unused include.
20387
20388         xalloc-oversized: new module
20389         * modules/xalloc-oversized: New module.
20390         * modules/xalloc (Depends-on): Add it.
20391         * lib/xalloc.h (xalloc_oversized): Move...
20392         * lib/xalloc-oversized.h: ...into new file.
20393
20394         utimecmp: drop dependency on xmalloc
20395         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20396         due to memory pressure.
20397         * modules/utimecmp (Depends-on): Drop xalloc.
20398
20399 2011-04-27  Eric Blake  <eblake@redhat.com>
20400
20401         getcwd: fix mingw bugs
20402         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20403         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20404         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20405
20406 2011-04-27  Bruno Haible  <bruno@clisp.org>
20407
20408         mkstemps: Ensure declaration on MacOS X 10.5.
20409         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20410         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20411         MacOS X.
20412
20413 2011-04-27  Bruno Haible  <bruno@clisp.org>
20414
20415         mkstemp: More documentation.
20416         * doc/posix-functions/mkstemp.texi: Document header file problem on
20417         MacOS X.
20418
20419 2011-04-27  Bruno Haible  <bruno@clisp.org>
20420
20421         mkstemp: Tweak configure message when cross-compiling.
20422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20423         result as a guess.
20424
20425 2011-04-27  Bruno Haible  <bruno@clisp.org>
20426
20427         clean-temp: Clarify what it does.
20428         * lib/clean-temp.h: Add more comments.
20429         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20430         module.
20431         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20432         * doc/glibc-functions/mkstemps.texi: Likewise.
20433         * doc/glibc-functions/mkostemps.texi: Likewise.
20434
20435 2011-04-27  Eric Blake  <eblake@redhat.com>
20436
20437         fchdir: avoid extra chdir and fix test
20438         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20439         getcwd-lgpl.
20440         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20441         have to be canonical.
20442         (canonicalize_file_name): Drop unused macro.
20443         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20444
20445         filenamecat-lgpl: fix licence
20446         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20447         when it was first created.
20448
20449         linkat, renameat: add missing dependency
20450         * modules/linkat (Depends-on): Require getcwd-lgpl.
20451         * modules/renameat (Depends-on): Likewise.
20452
20453         tests: reduce dependencies
20454         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20455         * tests/test-renameat.c (main): Likewise.
20456         * modules/linkat-tests (Depends-on): Relax dependency.
20457         * modules/renameat-tests (Depends-on): Likewise.
20458         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20459         dependency explicit.
20460
20461         save-cwd: reduce default dependency
20462         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20463         * lib/save-cwd.c: Update comments.
20464         * NEWS: Document the semantic change.
20465
20466         getcwd: enhance tests
20467         * tests/test-getcwd-lgpl.c: New file, taken from...
20468         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20469         repeat long path stress tests from m4 probe.
20470         * modules/getcwd-lgpl-tests: New module.
20471         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20472         * m4/getcwd-abort-bug.m4: Update comment.
20473         * m4/getcwd-path-max.m4: Likewise.
20474
20475         getcwd-lgpl: new module
20476         * modules/getcwd-lgpl: New module.
20477         * lib/getcwd-lgpl.c: New file.
20478         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20479         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20480         * modules/getcwd (configure.ac): Set C witness.
20481         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20482
20483         getcwd: tweak comments
20484         * m4/getcwd-abort-bug.m4: Fix comments.
20485         * m4/getcwd-path-max.m4: Likewise.
20486         * m4/getcwd.m4: Likewise.
20487
20488 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20489         and Eric Blake  <eblake@redhat.com>
20490
20491         mkstemp: replace if system version uses wrong permissions
20492         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20493         read/write mode bits set in file created by mkstemp.
20494         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20495
20496 2011-04-27  Eric Blake  <eblake@redhat.com>
20497
20498         passfd: avoid compiler warning
20499         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20500         Reported by Laine Stump.
20501
20502 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20503
20504         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20505         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20506
20507 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20508         and Eric Blake  <eblake@redhat.com>
20509
20510         mkstemp: mention clean-temp module
20511         * lib/mkstemp.c: Add comment.
20512         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20513
20514 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20515
20516         inttypes: also provide default values for 32-bit tests
20517         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20518         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20519
20520 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20521
20522         strtoumax: remove dependency on strtoimax
20523         This is like the strtoull change of yesterday.
20524         * modules/strtoumax (Files): Add lib/strtoimax.c.
20525         (Depends-on): Remove strtoimax and add verify.
20526
20527         inttypes-incomplete: new module
20528         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20529         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20530         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20531         of gl_INTTYPES_H.
20532         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20533         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20534         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20535         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20536         * modules/strtoumax, modules/xstrtol (Depends-on):
20537         Depend on inttypes-incomplete, not inttypes.
20538         * modules/inttypes-incomplete: New module, containing the contents
20539         of the old modules/inttypes module, except that the Files: section
20540         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20541         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20542         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20543         (Depends-on): Depend only on inttypes-incomplete.
20544         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20545
20546         inttypes: omit now-redundant strtoimax and strtoumax work
20547         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20548         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20549
20550         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20551         This supports apps that need pointers to strtoimax and strtoumax,
20552         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20553         nonexistent functions.  See
20554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20555         et seq.
20556         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20557         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20558         a macro.
20559         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20560
20561 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20562
20563         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20564
20565 2011-04-25  Bruno Haible  <bruno@clisp.org>
20566
20567         strtol, strtoul: Mark modules as obsolete.
20568         * modules/strtol (Status, Notice): New sections.
20569         * modules/strtoul (Status, Notice): New sections.
20570
20571 2011-04-25  Bruno Haible  <bruno@clisp.org>
20572
20573         strtod: Remove check for strtod, unless supporting old platforms.
20574         * modules/strtod-obsolete: New file.
20575         * m4/strtod-obsolete.m4: New file.
20576         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20577         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20578         * modules/strtod (Depends-on): Add strtod-obsolete.
20579         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20580
20581 2011-04-25  Bruno Haible  <bruno@clisp.org>
20582
20583         strcase: Make module obsolete.
20584         * modules/strcase (Status, Notice): New sections.
20585
20586 2011-04-25  Bruno Haible  <bruno@clisp.org>
20587
20588         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20589         * modules/dup2-obsolete: New file.
20590         * m4/dup2-obsolete.m4: New file.
20591         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20592         gl_FUNC_DUP2_OBSOLETE is not also defined.
20593         * modules/dup2 (Depends-on): Add dup2-obsolete.
20594         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20595
20596 2011-04-25  Bruno Haible  <bruno@clisp.org>
20597
20598         strnlen: Avoid memchr related link error on old obsolete platforms.
20599         * modules/memchr-obsolete: New file.
20600         * m4/memchr-obsolete.m4: New file.
20601         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20602         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20603         * modules/memchr (Depends-on): Add memchr-obsolete.
20604         * modules/strnlen (Depends-on): Likewise.
20605         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20606
20607 2011-04-25  Jim Meyering  <meyering@redhat.com>
20608
20609         maint.mk: makefile_at_at_check extend and clean up
20610         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20611         in addition to */Makefile.am.
20612         Exempt legitimate uses of @VAR@ notation, e.g.,
20613         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20614         Remove obsolete coreutils-specific comment.
20615         Prompted by discussion here:
20616         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20617
20618 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20619
20620         strtoul: remove dependency on strtol
20621         This is so that 'configure' need not check for strtol merely because
20622         the application needs strtoul.
20623         * modules/strtoul (Files): Add lib/strtol.c.
20624         (Depends-on): Remove strtol.
20625
20626         strtoull: remove dependency on strtoul
20627         This is like the strtoll change.
20628         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20629         (Depends-on): Remove strtoul.
20630
20631         strtoll: remove dependency on strtol
20632         This is so that 'configure' need not check for strtol merely because
20633         the application needs strtoll.
20634         * modules/strtoll (Files): Add lib/strtol.c.
20635         (Depends-on): Remove strtol.
20636
20637 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20638
20639         inttypes: Move some configure check to module 'imaxdiv'.
20640         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20641         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20642         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20643
20644 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20645
20646         inttypes: Move some configure check to module 'imaxabs'.
20647         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20648         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20649         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20650
20651 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20652
20653         inttypes: Remove configure tests that are not needed since 2009-12-31.
20654         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20655         gl_cv_header_working_inttypes_h.
20656
20657 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20658
20659         * modules/strnlen (Depends-on): Remove memchr.
20660         The strnlen implementation doesn't need the memchr module's fixes; see
20661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20662
20663         strtol: remove dependency on wchar
20664         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20665         * modules/strtol (Depends-on): Remove wchar.
20666
20667 2011-04-21  Eric Blake  <eblake@redhat.com>
20668
20669         passfd: fix test regression on Linux
20670         * modules/passfd-tests (configure.ac): Correct socketpair check.
20671
20672         passfd: speed up configure and drop unused code
20673         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20674         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20675         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20676         Instead of probing at configure for unix_scm_rights_bsd44_way,
20677         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20678         check to a struct member probe.
20679         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20680         (sendfd, recvfd): Update preprocessor checks.
20681         * modules/passfd (Files): Reflect rename, and drop unused file.
20682         (Depends-on): Drop unused dependency.
20683
20684         passfd: allow compilation on mingw
20685         * modules/sys_socket (Depends-on): Add sys_uio.
20686         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20687         iovec and a minimal struct msghdr.
20688         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20689         * tests/test-sys_socket.c (main): Enhance test.
20690         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20691         guaranteed to provide what we need.
20692         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20693         * modules/passfd-tests (Depends-on): Add sys_wait.
20694         * tests/test-passfd.c (main): Skip test on mingw, for now.
20695         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20696         partial 'struct msghdr' implementation.
20697
20698         sys_uio: new module
20699         * modules/sys_uio: New module.
20700         * modules/sys_uio-tests: Likewise.
20701         * lib/sys_uio.in.h: New file.
20702         * m4/sys_uio_h.m4: Likewise.
20703         * tests/test-sys_uio.c: Likewise.
20704         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20705         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20706
20707 2011-04-20  Jim Meyering  <meyering@redhat.com>
20708
20709         useless-if-before-free: avoid false-positive
20710         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20711         disjunct so that it too requires a terminating ";".  Without that,
20712         this script would identify as useless one statement from gcc that
20713         was not:
20714           if (aligned_ptr)
20715             free (((void **) aligned_ptr) [-1]);
20716
20717 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20718
20719         doc: update users.txt.
20720         * users.txt: Add barcode.
20721
20722 2011-04-19  Bruno Haible  <bruno@clisp.org>
20723
20724         ioctl: Remove link dependency on native Windows.
20725         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20726         (gl_close_fn, gl_ioctl_fn): New types.
20727         (struct fd_hook): Renamed from struct close_hook. Change type of
20728         private_close_fn field. Add private_ioctl_fn field.
20729         (close_hook_fn): Add parameter for primary close method.
20730         (execute_close_hooks, execute_all_close_hooks): Likewise.
20731         (ioctl_hook_fn): New type.
20732         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20733         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20734         argument.
20735         (unregister_fd_hook): Renamed from unregister_close_hook.
20736         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20737         Don't include <unistd.h>.
20738         (close): Remove undef.
20739         (anchor): Update.
20740         (execute_close_hooks): Add argument for primary close method.
20741         (execute_all_close_hooks): Likewise.
20742         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20743         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20744         argument. Allow each argument to be NULL.
20745         (unregister_fd_hook): Renamed from unregister_close_hook.
20746         * lib/close.c (rpl_close): Pass 'close' function pointer to
20747         execute_all_close_hooks.
20748         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20749         (primary_ioctl): New function.
20750         (ioctl): Don't call ioctlsocket here. Instead, call
20751         execute_all_ioctl_hooks.
20752         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20753         close method.
20754         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20755         (fd_sockets_hook): Renamed from close_sockets_hook.
20756         (gl_sockets_startup, gl_sockets_cleanup): Update.
20757         * modules/fd-hook: Renamed from modules/close-hook. Update.
20758         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20759         * modules/sockets (Depends-on): Likewise.
20760         * modules/ioctl (Depends-on): Add fd-hook.
20761         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20762         GNULIB_SOCKET.
20763
20764 2011-04-19  Bruno Haible  <bruno@clisp.org>
20765
20766         Move the support of O_NONBLOCK in open() to the 'open' module.
20767         * modules/nonblocking (Depends-on): Remove 'open'.
20768         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20769         gl_cv_have_open_O_NONBLOCK.
20770         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20771         O_NONBLOCK support.
20772         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20773
20774 2011-04-17  Bruno Haible  <bruno@clisp.org>
20775
20776         pipe2: Simplify code.
20777         * lib/pipe2.c (pipe2): Reduce code duplication.
20778
20779 2011-04-17  Bruno Haible  <bruno@clisp.org>
20780
20781         nonblocking: Add comment.
20782         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20783
20784 2011-04-17  Bruno Haible  <bruno@clisp.org>
20785
20786         nonblocking: Add tests for sockets.
20787         * tests/test-nonblocking-socket.sh: New file.
20788         * tests/test-nonblocking-socket-main.c: New file.
20789         * tests/test-nonblocking-socket-child.c: New file.
20790         * tests/test-nonblocking-socket.h: New file.
20791         * tests/socket-server.h: New file.
20792         * tests/socket-client.h: New file.
20793         * modules/nonblocking-socket-tests: New file.
20794         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20795
20796 2011-04-17  Bruno Haible  <bruno@clisp.org>
20797
20798         nonblocking: Add tests for pipes.
20799         * tests/test-nonblocking-pipe.sh: New file.
20800         * tests/test-nonblocking-pipe-main.c: New file.
20801         * tests/test-nonblocking-pipe-child.c: New file.
20802         * tests/test-nonblocking-pipe.h: New file.
20803         * tests/test-nonblocking-writer.h: New file.
20804         * tests/test-nonblocking-reader.h: New file.
20805         * tests/test-nonblocking-misc.h: New file.
20806         * modules/nonblocking-pipe-tests: New file.
20807         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20808
20809 2011-04-16  Bruno Haible  <bruno@clisp.org>
20810
20811         gettext: Clarify the needed programmer actions.
20812         * modules/gettext (Notice): New field.
20813         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20814
20815 2011-04-16  Bruno Haible  <bruno@clisp.org>
20816
20817         strchrnul: Tweak last commit.
20818         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20819         bug.
20820         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20821         as in _GL_FUNCDECL_SYS.
20822         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20823         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20824
20825 2011-04-15  Eric Blake  <eblake@redhat.com>
20826
20827         strchrnul: work around cygwin bug
20828         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20829         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20831         * modules/string (Makefile.am): Substitute it.
20832         * lib/string.in.h (strchrnul): Use it.
20833
20834 2011-04-15  Bruno Haible  <bruno@clisp.org>
20835
20836         Don't require lib/stdio-write.c when only module 'stdio' is used.
20837         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20838         invocation.
20839         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20840
20841 2011-04-14  Bruno Haible  <bruno@clisp.org>
20842
20843         Support non-blocking pipe I/O in read() on native Windows.
20844         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20845         (read): New declaration.
20846         * lib/read.c: New file.
20847         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20848         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20849         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20850         vscanf): New declarations.
20851         * lib/stdio-read.c: New file.
20852         * m4/read.m4: New file.
20853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20854         REPLACE_READ.
20855         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20856         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20857         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20858         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20859         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20860         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20861         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20862         * modules/read: New file.
20863         * modules/nonblocking (Files): Add lib/stdio-read.c.
20864         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20865         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20866         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20867         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20868         * modules/pread (Depends-on): Add read.
20869         * modules/safe-read (Depends-on): Likewise.
20870         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20871         gets, scanf, vfscanf, vscanf): Verify signatures.
20872         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20873         problem with non-blocking pipes.
20874         * doc/posix-functions/fgetc.texi: Likewise.
20875         * doc/posix-functions/fgets.texi: Likewise.
20876         * doc/posix-functions/fread.texi: Likewise.
20877         * doc/posix-functions/fscanf.texi: Likewise.
20878         * doc/posix-functions/getc.texi: Likewise.
20879         * doc/posix-functions/getchar.texi: Likewise.
20880         * doc/posix-functions/gets.texi: Likewise.
20881         * doc/posix-functions/scanf.texi: Likewise.
20882         * doc/posix-functions/vfscanf.texi: Likewise.
20883         * doc/posix-functions/vscanf.texi: Likewise.
20884
20885 2011-04-14  Bruno Haible  <bruno@clisp.org>
20886
20887         Support non-blocking pipe I/O in write() on native Windows.
20888         * lib/write.c (rpl_write): Split a write request that failed merely
20889         because the byte count was larger than the pipe buffer's size.
20890         * doc/posix-functions/write.texi: Mention the problem with large byte
20891         counts.
20892
20893 2011-04-14  Bruno Haible  <bruno@clisp.org>
20894
20895         wchar: Ensure that wchar_t gets defined on uClibc.
20896         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20897         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20898
20899 2011-04-13  Bruno Haible  <bruno@clisp.org>
20900
20901         safe-write, full-read: Avoid unnecessary compilation units.
20902         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20903         (Depends-on): Remove safe-read. Add ssize_t.
20904         * modules/full-read (Files): Add lib/full-write.c.
20905         (Depends-on): Add full-write.
20906
20907 2011-04-13  Bruno Haible  <bruno@clisp.org>
20908
20909         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20910         * modules/pwrite (Depends-on): Add 'write'.
20911
20912 2011-04-13  Bruno Haible  <bruno@clisp.org>
20913
20914         Support non-blocking pipe I/O in write() on native Windows.
20915         * lib/unistd.in.h (write): Enable replacement also if
20916         GNULIB_UNISTD_H_NONBLOCKING is 1.
20917         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20918         (rpl_write): When failing to write on a non-blocking pipe, change
20919         errno from ENOSPC to EAGAIN.
20920         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20921         putchar, puts, vfprintf, vprintf): Enable replacement also if
20922         GNULIB_STDIO_H_NONBLOCKING is 1.
20923         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20924         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20925         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20926         CALL_WITH_SIGPIPE_EMULATION.
20927         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20928         * m4/nonblocking.m4: New file.
20929         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20930         for non-blocking I/O support.
20931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20932         GNULIB_UNISTD_H_NONBLOCKING.
20933         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20934         required for non-blocking I/O support.
20935         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20936         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20937         lib/stdio-write.c, m4/asm-underscore.m4.
20938         (Depends-on): Add stdio, unistd.
20939         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20940         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20941         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20942         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20943         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20944         problem with non-blocking pipes.
20945         * doc/posix-functions/fputc.texi: Likewise.
20946         * doc/posix-functions/fputs.texi: Likewise.
20947         * doc/posix-functions/fwrite.texi: Likewise.
20948         * doc/posix-functions/printf.texi: Likewise.
20949         * doc/posix-functions/putc.texi: Likewise.
20950         * doc/posix-functions/putchar.texi: Likewise.
20951         * doc/posix-functions/puts.texi: Likewise.
20952         * doc/posix-functions/vfprintf.texi: Likewise.
20953         * doc/posix-functions/vprintf.texi: Likewise.
20954         * doc/posix-functions/write.texi: Likewise.
20955
20956 2011-04-10  Jim Meyering  <meyering@redhat.com>
20957
20958         maint.mk: prohibit doubled words
20959         Detect them also when they're separated by a newline.
20960         There are 3 ways to customize it:
20961           - disable the test on a per file basis, as usual with rules using
20962             $(VC_LIST_EXCEPT)
20963           - replace the default doubled-word-selecting regexp (affects all files)
20964           - ignore a particular file-vs-doubled-word match
20965         I nearly used that last one to ignore the "is is" match in
20966         coreutils' NEWS file, since the text was "ls -is is ..."
20967         To do that, I would have added this line to cfg.mk:
20968           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20969         but it would have ignored any "is is" match in NEWS.
20970         Low probability, but still...
20971         Instead, I changed the text, slightly:
20972           -  ls -is is now consistent with ls -lis in ignoring values returned
20973           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20974         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20975         (prohibit_doubled_word_): Define.
20976         (sc_prohibit_doubled_word): New rule.
20977         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20978
20979 2011-04-10  Jim Meyering  <meyering@redhat.com>
20980
20981         maint: fix doubled-word typo in comment
20982         * m4/gethostname.m4: s/is is/it is/
20983         * m4/getdomainname.m4: Likewise.
20984
20985 2011-04-10  Jim Meyering  <meyering@redhat.com>
20986
20987         maint: remove doubled word: s/it it/it/
20988         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20989
20990 2011-04-10  Jim Meyering  <meyering@redhat.com>
20991
20992         maint.mk: remove useless semicolon and backslash
20993         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20994         semicolon and backslash.
20995
20996 2011-04-10  Bruno Haible  <bruno@clisp.org>
20997
20998         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20999         * modules/stdint-tests (Depends-on): Add wchar.
21000
21001 2011-04-10  Jim Meyering  <meyering@redhat.com>
21002
21003         maint: remove doubled words in comments, e.g., s/a a/a/
21004         * lib/strptime.c (day_of_the_week): s/the the/the/
21005         * tests/test-chown.h (test_chown): s/a a/a/
21006
21007         test-chown.h: correct a cast
21008         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21009         when the destination is a stat.st_gid.
21010
21011 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21012
21013         getaddrinfo: Fix test for sa_len member.
21014         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21015         include <sys/types.h> before <sys/socket.h>.
21016
21017 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21018
21019         maint: change "can not" to "cannot"
21020         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21021         boundaries.
21022
21023 2011-04-09  Jim Meyering  <meyering@redhat.com>
21024
21025         maint: change "a a" to "a"
21026         * tests/test-lchown.h (test_lchown): s/a a/a/
21027
21028         maint.mk: prohibit \<the the\>
21029         * top/maint.mk (sc_prohibit_the_the): New rule.
21030
21031         maint: fix "the the" in comment
21032         * lib/count-one-bits.h: s/the the/the/
21033
21034         maint: change "can not" to "cannot"
21035         But do not change the occurrences in maintain.texi or in
21036         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21037         * doc/gnulib-tool.texi: s/can not/cannot/
21038         * doc/posix-functions/accept.texi (accept): Likewise.
21039         * doc/posix-functions/socket.texi (socket): Likewise.
21040         * lib/mbrtowc.c: Likewise.
21041
21042         maint.mk: prohibit use of "can not"
21043         * top/maint.mk (sc_prohibit_can_not): New rule.
21044         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21045
21046 2011-04-09  Bruno Haible  <bruno@clisp.org>
21047
21048         careadlinkat: Guard against misuse of careadlinkatcwd.
21049         * lib/careadlinkat.c: Include <stdlib.h>.
21050         (careadlinkatcwd): Check that the fd argument is as expected.
21051
21052 2011-04-09  Bruno Haible  <bruno@clisp.org>
21053
21054         careadlinkat: Use common coding style.
21055         * lib/careadlinkat.c: Move gnulib includes after system includes.
21056
21057 2011-04-09  Bruno Haible  <bruno@clisp.org>
21058
21059         careadlinkat: Clarify specification.
21060         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21061         (careadlinkatcwd): Add comment.
21062         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21063
21064 2011-04-09  Bruno Haible  <bruno@clisp.org>
21065
21066         areadlinkat: Avoid link error on many platforms.
21067         * modules/areadlinkat (Depends-on): Add areadlink.
21068
21069 2011-04-09  Bruno Haible  <bruno@clisp.org>
21070
21071         allocator, careadlinkat: Fix double-inclusion guard.
21072         * lib/allocator.h: Fix double-inclusion guard.
21073         * lib/careadlinkat.h: Likewise.
21074
21075 2011-04-09  Bruno Haible  <bruno@clisp.org>
21076
21077         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21078         * lib/relocwrapper.c: Update dependencies hierarchy.
21079         * build-aux/install-reloc: Update list of files to be compiled.
21080         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21081         lib/allocator.[hc].
21082
21083 2011-04-08  Eric Blake  <eblake@redhat.com>
21084
21085         strftime: silence gnulib-tool warning
21086         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21087
21088 2011-04-08  Bruno Haible  <bruno@clisp.org>
21089
21090         verify: Fix syntax error with GCC 4.6 in C++ mode.
21091         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21092         (HAVE_STATIC_ASSERT): New macro.
21093         (verify_true, verify): Use 'static_assert' if it is supported and
21094         '_Static_assert' is not supported.
21095
21096 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21097
21098         allocator: New module.
21099         * modules/allocator, lib/allocator.c: New files.
21100         * lib/allocator.h (stdlib_allocator): New decl.
21101         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21102         Remove.  Do not include <stdlib.h>.
21103         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21104         * modules/careadlinkat (Files): Remove lib/allocator.h.
21105         (Depends-on): Add allocator.
21106
21107         stdlib: let modules use system malloc, realloc
21108         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21109         if !_GL_USE_STDLIB_ALLOC.
21110         (malloc, realloc): Limit this change to a smaller scope.
21111
21112         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21113         (malloc, realloc): Don't #undef; no longer needed.
21114         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21115         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21116         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21117         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21118         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21119         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21120         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21121         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21122
21123         careadlinkat: rename members to avoid problem
21124         * lib/allocator.h (struct allocator): Rename members from
21125         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21126         and realloc are #define'd.  Reported by Eric Blake in
21127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21128         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21129
21130 2011-04-08  Eric Blake  <eblake@redhat.com>
21131
21132         nonblocking: reduce dependency
21133         * tests/test-nonblocking.c: Only test sockets when in use.
21134         * modules/nonblocking-tests (Depends-on): Drop socket.
21135         (Makefile.am): Link even if sockets are not present.
21136         * modules/pipe2-tests (Makefile.am): Likewise.
21137         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21138
21139         pipe2: fix O_NONBLOCK support on mingw
21140         * modules/pipe2 (Depends-on): Add nonblocking.
21141         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21142         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21143         * tests/test-nonblocking.c (main): Likewise.
21144         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21145
21146         fcntl-h: fix O_ACCMODE on cygwin
21147         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21148         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21149
21150         pipe-filter: drop O_NONBLOCK workarounds
21151         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21152         * modules/pipe-filter-ii (Depends-on): Likewise.
21153         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21154
21155         nonblocking: provide O_NONBLOCK for mingw
21156         * modules/nonblocking (Depends-on): Add open.
21157         (configure.ac): Set new witness macro.
21158         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21159         * modules/fcntl-h (Makefile.am): Substitute it.
21160         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21161         nonblocking module is in use.
21162         * lib/nonblocking.c: Adjust portability test.
21163         * lib/open.c (open): Don't let native open see gnulib flag.
21164         * tests/test-fcntl-h.c (main): Enhance test.
21165         * tests/test-open.h (test_open): Likewise.
21166         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21167
21168         careadlinkat: fix compilation error on mingw
21169         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21170         within struct allocator.
21171
21172 2011-04-06  Eric Blake  <eblake@redhat.com>
21173
21174         binary-io: relicense under LGPLv2+
21175         * modules/binary-io (License): Relax to LGPLv2+.
21176         Requested for libvirt, and required by pipe2.
21177
21178 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21179
21180         verify: use _Static_assert if available
21181         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21182         (verify_true, verify): Use it if available.  This generates better
21183         diagnostics with GCC 4.6.0 and later.
21184
21185 2011-04-05  Bruno Haible  <bruno@clisp.org>
21186
21187         Remove leftover generated .h files after config.status changed.
21188
21189         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21190         GL_GENERATE_ALLOCA_H.
21191         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21192         GL_GENERATE_ALLOCA_H evaluates to false.
21193
21194         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21195         GL_GENERATE_ARGZ_H.
21196         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21197         evaluates to false.
21198
21199         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21200         GL_GENERATE_BYTESWAP_H.
21201         * modules/byteswap (Makefile.am): Remove byteswap.h if
21202         GL_GENERATE_BYTESWAP_H evaluates to false.
21203
21204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21205         GL_GENERATE_ERRNO_H.
21206         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21207         evaluates to false.
21208
21209         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21210         GL_GENERATE_FLOAT_H.
21211         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21212         evaluates to false.
21213
21214         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21215         GL_GENERATE_FNMATCH_H.
21216         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21217         GL_GENERATE_FNMATCH_H evaluates to false.
21218
21219         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21220         GL_GENERATE_GLOB_H.
21221         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21222         evaluates to false.
21223
21224         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21225         automake conditional GL_GENERATE_ICONV_H.
21226         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21227         evaluates to false.
21228
21229         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21230         GL_GENERATE_NETINET_IN_H.
21231         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21232         GL_GENERATE_NETINET_IN_H evaluates to false.
21233
21234         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21235         conditional GL_GENERATE_PTHREAD_H.
21236         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21237         * modules/pthread (Makefile.am): Remove pthread.h if
21238         GL_GENERATE_PTHREAD_H evaluates to false.
21239
21240         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21241         GL_GENERATE_SCHED_H.
21242         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21243         evaluates to false.
21244
21245         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21246         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21247         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21248         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21249
21250         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21251         GL_GENERATE_STDARG_H.
21252         * modules/stdarg (Makefile.am): Remove stdarg.h if
21253         GL_GENERATE_STDARG_H evaluates to false.
21254
21255         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21256         GL_GENERATE_STDBOOL_H.
21257         * modules/stdbool (Makefile.am): Remove stdbool.h if
21258         GL_GENERATE_STDBOOL_H evaluates to false.
21259
21260         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21261         conditional GL_GENERATE_STDDEF_H.
21262         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21263         * modules/stddef (Makefile.am): Remove stddef.h if
21264         GL_GENERATE_STDDEF_H evaluates to false.
21265
21266         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21267         GL_GENERATE_STDINT_H.
21268         * modules/stdint (Makefile.am): Remove stdint.h if
21269         GL_GENERATE_STDINT_H evaluates to false.
21270
21271         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21272         GL_GENERATE_SYSEXITS_H.
21273         * modules/sysexits (Makefile.am): Remove sysexits.h if
21274         GL_GENERATE_SYSEXITS_H evaluates to false.
21275
21276         Reported by Karl Berry and Ralf Wildenhues.
21277
21278 2011-04-05  Bruno Haible  <bruno@clisp.org>
21279
21280         Ensure to rebuild generated .h files when config.status has changed.
21281         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21282         config.status.
21283         * modules/ctype (Makefile.am): Likewise.
21284         * modules/dirent (Makefile.am): Likewise.
21285         * modules/errno (Makefile.am): Likewise.
21286         * modules/fcntl-h (Makefile.am): Likewise.
21287         * modules/float (Makefile.am): Likewise.
21288         * modules/getopt-posix (Makefile.am): Likewise.
21289         * modules/glob (Makefile.am): Likewise.
21290         * modules/iconv-h (Makefile.am): Likewise.
21291         * modules/inttypes (Makefile.am): Likewise.
21292         * modules/langinfo (Makefile.am): Likewise.
21293         * modules/locale (Makefile.am): Likewise.
21294         * modules/math (Makefile.am): Likewise.
21295         * modules/netdb (Makefile.am): Likewise.
21296         * modules/netinet_in (Makefile.am): Likewise.
21297         * modules/poll-h (Makefile.am): Likewise.
21298         * modules/pthread (Makefile.am): Likewise.
21299         * modules/pty (Makefile.am): Likewise.
21300         * modules/sched (Makefile.am): Likewise.
21301         * modules/search (Makefile.am): Likewise.
21302         * modules/selinux-h (Makefile.am): Likewise.
21303         * modules/signal (Makefile.am): Likewise.
21304         * modules/spawn (Makefile.am): Likewise.
21305         * modules/stdarg (Makefile.am): Likewise.
21306         * modules/stdbool (Makefile.am): Likewise.
21307         * modules/stddef (Makefile.am): Likewise.
21308         * modules/stdint (Makefile.am): Likewise.
21309         * modules/stdio (Makefile.am): Likewise.
21310         * modules/stdlib (Makefile.am): Likewise.
21311         * modules/string (Makefile.am): Likewise.
21312         * modules/strings (Makefile.am): Likewise.
21313         * modules/sys_file (Makefile.am): Likewise.
21314         * modules/sys_ioctl (Makefile.am): Likewise.
21315         * modules/sys_select (Makefile.am): Likewise.
21316         * modules/sys_socket (Makefile.am): Likewise.
21317         * modules/sys_stat (Makefile.am): Likewise.
21318         * modules/sys_time (Makefile.am): Likewise.
21319         * modules/sys_times (Makefile.am): Likewise.
21320         * modules/sys_utsname (Makefile.am): Likewise.
21321         * modules/sys_wait (Makefile.am): Likewise.
21322         * modules/sysexits (Makefile.am): Likewise.
21323         * modules/termios (Makefile.am): Likewise.
21324         * modules/time (Makefile.am): Likewise.
21325         * modules/unistd (Makefile.am): Likewise.
21326         * modules/wchar (Makefile.am): Likewise.
21327         * modules/wctype-h (Makefile.am): Likewise.
21328         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21329
21330 2011-04-05  Bruno Haible  <bruno@clisp.org>
21331
21332         pipe2: Relicense under LGPLv2+.
21333         * modules/pipe2 (License): Change to LGPLv2+.
21334         Requested by Eric Blake, for libvirt.
21335
21336 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21337
21338         bootstrap: compute gnulib_extra_files after updating build_aux
21339         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21340         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21341
21342 2011-04-05  Eric Blake  <eblake@redhat.com>
21343
21344         bootstrap: preserve git whitelist item sorting
21345         * build-aux/bootstrap (sort_patterns): New function.
21346         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21347
21348 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21349
21350         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21351         sc_space_tab check.
21352
21353 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21354
21355         areadlink, areadlinkat: rewrite in terms of careadlinkat
21356         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21357         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21358         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21359         (malloc, realloc): Remove #undefs.
21360         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21361         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21362         readlink, ssize_t, stdint, unistd.
21363         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21364         areadlink, stdint.
21365
21366         careadlinkat: new module
21367         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21368         * modules/careadlinkat: New files, written by me with
21369         a review and feedback from Ben Pfaff in
21370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21371
21372 2011-04-01  Bruno Haible  <bruno@clisp.org>
21373
21374         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21375         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21376         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21377         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21378         Reported by Bruce Korb <bruce.korb@gmail.com>.
21379
21380 2011-04-01  Bruno Haible  <bruno@clisp.org>
21381
21382         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21383         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21384         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21385         * modules/wcpcpy (Depends-on): Add extensions.
21386         * modules/wcpncpy (Depends-on): Likewise.
21387         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21388         systems.
21389         * doc/posix-functions/wcpncpy.texi: Likewise.
21390         * doc/posix-functions/wcwidth.texi: Likewise.
21391
21392 2011-03-31  Eric Blake  <eblake@redhat.com>
21393
21394         nonblocking: fix mingw test failures
21395         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21396         non-blocking flag on regular file.
21397         (get_nonblocking_flag): Set errno on invalid fd.
21398         * tests/test-nonblocking.c (main): Avoid test failure on
21399         directories if fchdir is not active.
21400         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21401
21402 2011-03-31  Bruno Haible  <bruno@clisp.org>
21403
21404         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21405         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21406         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21407         Reported by Simon Josefsson <simon@josefsson.org>.
21408
21409 2011-03-31  Bruno Haible  <bruno@clisp.org>
21410         and Eric Blake  <eblake@redhat.com>
21411
21412         nonblocking: new module
21413         * modules/nonblocking: New module.
21414         * modules/nonblocking-tests: Likewise.
21415         * lib/nonblocking.h: New file.
21416         * lib/nonblocking.c: Likewise.
21417         * tests/test-nonblocking.c: New test.
21418         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21419
21420 2011-03-30  Bruno Haible  <bruno@clisp.org>
21421
21422         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21423         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21424         instead of 'printf' format for GCC >= 4.4.
21425         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21426         (fprintf, printf, vfprintf, vprintf): Declare with
21427         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21428         the system's vfprintf() function.
21429         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21430
21431 2011-03-30  Eric Blake  <eblake@redhat.com>
21432
21433         passfd: fix scoping bug
21434         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21435         before sendmsg/recvmsg.
21436
21437         passfd: standardize coding conventions
21438         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21439         can be learned at compile time.
21440         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21441         ifdefs.
21442         (sendfd, recvfd): Follow gnulib code conventions.
21443
21444         passfd: fix incorrect sendmsg arguments
21445         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21446         incorrect msg_controllen value.
21447         * modules/passfd-tests (Depends-on): Check for alarm.
21448         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21449         Reported by Bastien ROUCARIES.
21450
21451 2011-03-30  Bruno Haible  <bruno@clisp.org>
21452
21453         c-strcasestr: Relicense under LGPLv2+.
21454         * modules/c-strcasestr (License): Change to LGPLv2+.
21455         Requested by Eric Blake, for libvirt.
21456
21457 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21458
21459         * users.txt: Add libidn2.  Fix libtasn1 link.
21460
21461 2011-03-30  Jim Meyering  <meyering@redhat.com>
21462
21463         tests: readlink* ("",... fails with EINVAL on newer kernels
21464         readlink and readlinkat have typically failed with ENOENT for
21465         the invalid, empty file name,  "".  However, with the advent
21466         of linux-2.6.39, they fail with EINVAL.
21467         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21468         when operating on the empty file name.
21469         * tests/test-readlink.h (test_readlink): Likewise.
21470
21471 2011-03-29  Bruno Haible  <bruno@clisp.org>
21472
21473         Relicense some modules under LGPLv2+, for libidn2.
21474         * modules/array-mergesort (License): Change to LGPLv2+.
21475         * modules/c-strcaseeq (License): Likewise.
21476         * modules/striconveh (License): Likewise.
21477         * modules/striconveha (License): Likewise.
21478         * modules/uniconv/base (License): Likewise.
21479         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21480         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21481         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21482         * modules/unictype/base (License): Likewise.
21483         * modules/unictype/bidiclass-of (License): Likewise.
21484         * modules/unictype/category-M (License): Likewise.
21485         * modules/unictype/category-none (License): Likewise.
21486         * modules/unictype/category-of (License): Likewise.
21487         * modules/unictype/category-test (License): Likewise.
21488         * modules/unictype/category-test-withtable (License): Likewise.
21489         * modules/unictype/combining-class (License): Likewise.
21490         * modules/unictype/joiningtype-of (License): Likewise.
21491         * modules/unictype/scripts (License): Likewise.
21492         * modules/uninorm/base (License): Likewise.
21493         * modules/uninorm/canonical-decomposition (License): Likewise.
21494         * modules/uninorm/composition (License): Likewise.
21495         * modules/uninorm/decompose-internal (License): Likewise.
21496         * modules/uninorm/decomposition-table (License): Likewise.
21497         * modules/uninorm/nfc (License): Likewise.
21498         * modules/uninorm/nfd (License): Likewise.
21499         * modules/uninorm/u32-normalize (License): Likewise.
21500         * modules/unistr/base (License): Likewise.
21501         * modules/unistr/u32-cpy (License): Likewise.
21502         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21503         * modules/unistr/u32-to-u8 (License): Likewise.
21504         * modules/unistr/u32-uctomb (License): Likewise.
21505         * modules/unistr/u8-check (License): Likewise.
21506         * modules/unistr/u8-mblen (License): Likewise.
21507         * modules/unistr/u8-mbtouc (License): Likewise.
21508         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21509         * modules/unistr/u8-mbtoucr (License): Likewise.
21510         * modules/unistr/u8-prev (License): Likewise.
21511         * modules/unistr/u8-strlen (License): Likewise.
21512         * modules/unistr/u8-to-u32 (License): Likewise.
21513         * modules/unistr/u8-uctomb (License): Likewise.
21514         * modules/unitypes (License): Likewise.
21515         Requested by Simon Josefsson.
21516
21517 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21518
21519         lib-symbol-visibility: Add a notice.
21520         * modules/lib-symbol-visibility (Notice): New field.
21521
21522 2011-03-29  Bruno Haible  <bruno@clisp.org>
21523
21524         getaddrinfo: Doc fix.
21525         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21526         section "fixed in Gnulib".
21527
21528 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21529
21530         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21531         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21532
21533 2011-03-26  Bruno Haible  <bruno@clisp.org>
21534
21535         unictype/property-byname: Reduce the number of load-time relocations.
21536         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21537         (UC_PROPERTY_INDEX_*): New enumeration values.
21538         (uc_property_byname): Convert an index from the lookup table to an
21539         uc_property_t.
21540         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21541         values.
21542
21543 2011-03-26  Bruno Haible  <bruno@clisp.org>
21544
21545         unictype/property-byname: Allow omitted word separators and aliases.
21546         * lib/unictype/pr_byname.gperf: Add property names without word
21547         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21548         for 'space'.
21549
21550 2011-03-26  Bruno Haible  <bruno@clisp.org>
21551
21552         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21553         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21554         also hyphens to space.
21555         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21556         without spaces.
21557         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21558
21559 2011-03-26  Bruno Haible  <bruno@clisp.org>
21560
21561         unictype/joiningtype-byname: Recognize long names as well.
21562         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21563         a long name.
21564         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21565         unictype/joiningtype_byname.h.
21566         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21567         * lib/unictype/joiningtype_byname.gperf: New file.
21568         * modules/unictype/joiningtype-byname (Files): Add
21569         lib/unictype/joiningtype_byname.gperf.
21570         (Depends-on): Add gperf.
21571         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21572         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21573         long names.
21574
21575         Tests for module 'unictype/joiningtype-longname'.
21576         * modules/unictype/joiningtype-longname-tests: New file.
21577         * tests/unictype/test-joiningtype_longname.c: New file.
21578
21579         New module 'unictype/joiningtype-longname'.
21580         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21581         * lib/unictype/joiningtype_longname.c: New file.
21582         * modules/unictype/joiningtype-longname: New file.
21583         * modules/unictype/joiningtype-all (Depends-on): Add
21584         unictype/joiningtype-longname.
21585
21586 2011-03-26  Bruno Haible  <bruno@clisp.org>
21587
21588         unictype/bidiclass-byname: Recognize long names as well.
21589         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21590         name.
21591         * lib/unictype/bidi_byname.c: Include <string.h>,
21592         unictype/bidi_byname.h.
21593         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21594         * lib/unictype/bidi_byname.gperf: New file.
21595         * modules/unictype/bidiclass-byname (Files): Add
21596         lib/unictype/bidi_byname.gperf.
21597         (Depends-on): Add gperf.
21598         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21599         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21600         long names.
21601
21602         Tests for module 'unictype/bidiclass-longname'.
21603         * modules/unictype/bidiclass-longname-tests: New file.
21604         * tests/unictype/test-bidi_longname.c: New file.
21605
21606         New module 'unictype/bidiclass-longname'.
21607         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21608         * lib/unictype/bidi_longname.c: New file.
21609         * modules/unictype/bidiclass-longname: New file.
21610         * modules/unictype/bidiclass-all (Depends-on): Add
21611         unictype/bidiclass-longname.
21612
21613 2011-03-26  Bruno Haible  <bruno@clisp.org>
21614
21615         unictype/bidi*: Rename modules.
21616         * modules/unictype/bidiclass-all: Renamed from
21617         modules/unictype/bidicategory-all.
21618         * modules/unictype/bidiclass-name: Renamed from
21619         modules/unictype/bidiclass-name.
21620         (Description): Update.
21621         * modules/unictype/bidiclass-name-tests: Renamed from
21622         modules/unictype/bidicategory-name-tests.
21623         * modules/unictype/bidiclass-byname: Renamed from
21624         modules/unictype/bidicategory-byname.
21625         (Description): Update.
21626         * modules/unictype/bidiclass-byname-tests: Renamed from
21627         modules/unictype/bidicategory-byname-tests.
21628         * modules/unictype/bidiclass-of: Renamed from
21629         modules/unictype/bidicategory-of.
21630         (Description): Update.
21631         * modules/unictype/bidiclass-of-tests: Renamed from
21632         modules/unictype/bidicategory-of-tests.
21633         * modules/unictype/bidiclass-test: Renamed from
21634         modules/unictype/bidicategory-test.
21635         (Description): Update.
21636         * modules/unictype/bidiclass-test-tests: Renamed from
21637         modules/unictype/bidicategory-test-tests.
21638         * modules/unictype/bidicategory-all: New file, a simple redirection.
21639         * modules/unictype/bidicategory-name: Likewise.
21640         * modules/unictype/bidicategory-byname: Likewise.
21641         * modules/unictype/bidicategory-of: Likewise.
21642         * modules/unictype/bidicategory-test: Likewise.
21643         * modules/unictype/property-bidi-* (Dependencies): Update.
21644         * lib/unictype/bidi_*.c: Update comment.
21645
21646 2011-03-26  Bruno Haible  <bruno@clisp.org>
21647
21648         unictype/bidi*: Rename functions, part 2.
21649         * modules/unictype/bidicategory-name (configure.ac): Update required
21650         libunistring version.
21651         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21652
21653 2011-03-25  Bruno Haible  <bruno@clisp.org>
21654
21655         New module 'unictype/combining-class-all'.
21656         * modules/unictype/combining-class-all: New file.
21657
21658         Tests for module 'unictype/combining-class-byname'.
21659         * modules/unictype/combining-class-byname-tests: New file.
21660         * tests/unictype/test-combiningclass_byname.c: New file.
21661
21662         New module 'unictype/combining-class-byname'.
21663         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21664         * lib/unictype/combiningclass_byname.c: New file.
21665         * lib/unictype/combiningclass_byname.gperf: New file.
21666         * modules/unictype/combining-class-byname: New file.
21667
21668         Tests for module 'unictype/combining-class-longname'.
21669         * modules/unictype/combining-class-longname-tests: New file.
21670         * tests/unictype/test-combiningclass_longname.c: New file.
21671
21672         New module 'unictype/combining-class-longname'.
21673         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21674         * lib/unictype/combiningclass_longname.c: New file.
21675         * modules/unictype/combining-class-longname: New file.
21676
21677         Tests for module 'unictype/combining-class-name'.
21678         * modules/unictype/combining-class-name-tests: New file.
21679         * tests/unictype/test-combiningclass_name.c: New file.
21680
21681         New module 'unictype/combining-class-name'.
21682         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21683         * lib/unictype/combiningclass_name.c: New file.
21684         * modules/unictype/combining-class-name: New file.
21685
21686 2011-03-25  Bruno Haible  <bruno@clisp.org>
21687
21688         unictype/combining-class: Rename source files.
21689         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21690         of unictype/combining.h.
21691         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21692         Update.
21693         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21694         * modules/unictype/combining-class (Description): Fix.
21695         (Files, Makefile.am): Update.
21696         * tests/unictype/test-combiningclass.c: Renamed from
21697         tests/unictype/test-combining.c.
21698         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21699
21700 2011-03-25  Bruno Haible  <bruno@clisp.org>
21701
21702         unictype: Update list of canonical combining classes.
21703         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21704
21705 2011-03-25  Bruno Haible  <bruno@clisp.org>
21706
21707         unictype/category-byname: Recognize long names as well.
21708         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21709         a long name.
21710         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21711         unictype/categ_byname.h.
21712         (UC_CATEGORY_INDEX_*): New enumeration values.
21713         (uc_general_category_byname): Use uc_general_category_lookup and
21714         convert from index to value.
21715         * lib/unictype/categ_byname.gperf: New file.
21716         * modules/unictype/category-byname (Files): Add
21717         lib/unictype/categ_byname.gperf.
21718         (Depends-on): Add gperf.
21719         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21720         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21721         long names.
21722
21723         Tests for module 'unictype/category-longname'.
21724         * modules/unictype/category-longname-tests: New file.
21725         * tests/unictype/test-categ_longname.c: New file.
21726
21727         New module 'unictype/category-longname'.
21728         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21729         * lib/unictype/categ_longname.c: New file.
21730         * modules/unictype/category-longname: New file.
21731         * modules/unictype/category-all (Depends-on): Add it.
21732
21733 2011-03-25  Bruno Haible  <bruno@clisp.org>
21734
21735         Tests for module 'unictype/category-LC'.
21736         * modules/unictype/category-LC-tests: New file.
21737         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21738
21739         New module 'unictype/category-LC'.
21740         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21741         (UC_CATEGORY_LC): New declaration.
21742         (UC_CASED_LETTER): New macro.
21743         * lib/gen-uni-tables.c (is_category_LC): New function.
21744         (output_categories): Also handle category LC.
21745         (UC_CATEGORY_MASK_LC): New enumeration value.
21746         (general_category_byname): Also handle category LC.
21747         * lib/unictype/categ_LC.c: New file.
21748         * lib/unictype/categ_LC.h: New file, automatically generated.
21749         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21750         category LC.
21751         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21752         * modules/unictype/category-LC: New file.
21753         * modules/unictype/category-byname (Depends-on): Add
21754         unictype/category-LC.
21755         * modules/unictype/category-all (Depends-on): Likewise.
21756
21757 2011-03-25  Eric Blake  <eblake@redhat.com>
21758
21759         xmalloc: revert yesterday's regression
21760         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21761         realloc's underlying behavior (allowing allocation of zero-size
21762         objects, especially if malloc-gnu is also in use).
21763
21764 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21765
21766         maint.mk: add missing version to VC-tag
21767         * top/maint.mk: git tag was missing actual tag name; add it.
21768
21769         valgrind: do leak checking, and exit with code 1 on error (not 0)
21770         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21771         to VALGRIND.
21772
21773 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21774
21775         posix-modules: say what it does.
21776         * posix-modules: Add a line to the --help output saying what it does.
21777
21778 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21779
21780         xmalloc: Do not leak if underlying realloc is C99 compatible.
21781         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21782         This avoids a leak on C99-based systems.  See
21783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21784
21785 2011-03-24  Eric Blake  <eblake@redhat.com>
21786
21787         realloc: document portability problem
21788         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21789         passing 0 size to realloc.
21790
21791 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21792
21793         doc: update users.txt
21794         * users.txt: Add cvsps, tmpwatch
21795
21796 2011-03-23  Matt Rice  <ratmice@gmail.com>
21797
21798         doc: update users.txt
21799         * users.txt: Add gdb.
21800
21801 2011-03-23  Jim Meyering  <meyering@redhat.com>
21802
21803         doc: update users.txt
21804         Looking through matches up to the following URL (there are still
21805         several more pages), I found several projects that use gnulib:
21806         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21807         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21808         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21809
21810 2011-03-22  Bruno Haible  <bruno@clisp.org>
21811
21812         unictype/bidi*: Rename functions.
21813         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21814         uc_bidi_class, uc_is_bidi_class): New declarations.
21815         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21816         uc_bidi_category_byname.
21817         (uc_bidi_category_byname): New function.
21818         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21819         u_bidi_category_name.
21820         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21821         (uc_bidi_category_name): New function.
21822         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21823         uc_bidi_category.
21824         (uc_bidi_category): New function.
21825         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21826         uc_is_bidi_category. Invoke uc_bidi_class.
21827         (uc_is_bidi_category): New function.
21828         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21829         instead of uc_bidi_category_byname.
21830         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21831         instead of uc_bidi_category_name.
21832         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21833         uc_bidi_category.
21834         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21835         instead of uc_is_bidi_category.
21836
21837 2011-03-21  Bruno Haible  <bruno@clisp.org>
21838
21839         New module 'unictype/joininggroup-all'.
21840         * modules/unictype/joininggroup-all: New file.
21841
21842         Tests for module 'unictype/joininggroup-of'.
21843         * modules/unictype/joininggroup-of-tests: New file.
21844         * tests/unictype/test-joininggroup_of.c: New file.
21845         * tests/unictype/test-joininggroup_of.h: New file, automatically
21846         generated by gen-uni-tables.
21847
21848         New module 'unictype/joininggroup-of'.
21849         * modules/unictype/joininggroup-of: New file.
21850         * lib/unictype/joininggroup_of.c: New file.
21851         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21852         gen-uni-tables.
21853
21854         Tests for module 'unictype/joininggroup-byname'.
21855         * modules/unictype/joininggroup-byname-tests: New file.
21856         * tests/unictype/test-joininggroup_byname.c: New file.
21857
21858         New module 'unictype/joininggroup-byname'.
21859         * modules/unictype/joininggroup-byname: New file.
21860         * lib/unictype/joininggroup_byname.c: New file.
21861         * lib/unictype/joininggroup_byname.gperf: New file.
21862
21863         Tests for module 'unictype/joininggroup-name'.
21864         * modules/unictype/joininggroup-name-tests: New file.
21865         * tests/unictype/test-joininggroup_name.c: New file.
21866
21867         New module 'unictype/joininggroup-name'.
21868         * modules/unictype/joininggroup-name: New file.
21869         * lib/unictype/joininggroup_name.c: New file.
21870         * lib/unictype/joininggroup_name.h: New file.
21871
21872         New module 'unictype/joiningtype-all'.
21873         * modules/unictype/joiningtype-all: New file.
21874
21875         Tests for module 'unictype/joiningtype-of'.
21876         * modules/unictype/joiningtype-of-tests: New file.
21877         * tests/unictype/test-joiningtype_of.c: New file.
21878         * tests/unictype/test-joiningtype_of.h: New file, automatically
21879         generated by gen-uni-tables.
21880
21881         New module 'unictype/joiningtype-of'.
21882         * modules/unictype/joiningtype-of: New file.
21883         * lib/unictype/joiningtype_of.c: New file.
21884         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21885         gen-uni-tables.
21886
21887         Tests for module 'unictype/joiningtype-byname'.
21888         * modules/unictype/joiningtype-byname-tests: New file.
21889         * tests/unictype/test-joiningtype_byname.c: New file.
21890
21891         New module 'unictype/joiningtype-byname'.
21892         * modules/unictype/joiningtype-byname: New file.
21893         * lib/unictype/joiningtype_byname.c: New file.
21894
21895         Tests for module 'unictype/joiningtype-name'.
21896         * modules/unictype/joiningtype-name-tests: New file.
21897         * tests/unictype/test-joiningtype_name.c: New file.
21898
21899         New module 'unictype/joiningtype-name'.
21900         * modules/unictype/joiningtype-name: New file.
21901         * lib/unictype/joiningtype_name.c: New file.
21902
21903         unictype: Add support for Arabic shaping properties.
21904         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21905         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21906         declarations.
21907         (UC_JOINING_GROUP_*): New enumeration values.
21908         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21909         declarations.
21910         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21911         (unicode_joining_type): New variable.
21912         (UC_JOINING_GROUP_*): New enumeration values.
21913         (unicode_joining_group): New variable.
21914         (fill_arabicshaping, joining_type_as_c_identifier,
21915         output_joining_type_test, output_joining_type,
21916         joining_group_as_c_identifier, output_joining_group_test,
21917         output_joining_group): New functions.
21918         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21919         fill_arabicshaping and output_joining_type_test, output_joining_type,
21920         output_joining_group_test, output_joining_group.
21921         Reported by Simon Josefsson.
21922
21923 2011-03-21  Jim Meyering  <meyering@redhat.com>
21924
21925         strftime: fix a bug in yesterday's change
21926         * lib/strftime.c (add): Accommodate width's initial value of -1.
21927         Otherwise, nstrftime would copy uninitialized data into
21928         the result buffer.
21929
21930 2011-03-21  Jim Meyering  <meyering@redhat.com>
21931
21932         tests: add strftime-tests module
21933         * tests/test-strftime.c: New file.
21934         * modules/strftime-tests: New module.
21935
21936 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21937
21938         strftime: don't assume a byte count fits in 'int'
21939         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21940         found this problem by static analysis, using gcc -Wstrict-overflow
21941         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21942         on an integer overflow having undefined behavior, but it turns out
21943         that the argument is a size, which might not fit in 'int' anyway,
21944
21945 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21946
21947         stdio: don't require ignore_value around fwrite
21948
21949         This patch works around libc bug 11959
21950         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21951         Without this patch, applications must often write
21952         ignore_value (fwrite (...)) even though the ignore_value is
21953         not helpful here.  It's common to write many objects, using
21954         fwrite/printf/etc., and then use ferror to detect output error.
21955
21956         I considered making this patch optional, but decided against it,
21957         because libc is obviously being inconsistent here: there is no
21958         reason libc should insist that user code must inspect fwrite
21959         return's value without also insisting that it inspect printf's,
21960         putchar's, etc.  If user code wants to have a strict style where
21961         all these functions' values are checked (so that ferror need not
21962         be checked), we could add support for that style in a new gnulib
21963         module, but in the meantime it's better to be consistent and to
21964         support common usage.
21965
21966         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21967         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21968         that we are compiling in checking mode, and if not C++, and
21969         if not already wrapping fwrite for some other reason.
21970         (fwrite): #define to rpl_fwrite if the latter is defined.
21971
21972 2011-03-20  Bruno Haible  <bruno@clisp.org>
21973
21974         verror: Fix compilation error introduced on 2011-02-13.
21975         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21976         instead of __attribute__.
21977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21978
21979 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21980             Bruno Haible  <bruno@clisp.org>
21981
21982         socklen: do not depend on sys_socket
21983         While trying to modify Emacs to use gnulib's socklen module,
21984         I discovered a circular dependency: socklen depends on sys_socket
21985         and vice versa.  Emacs can use socklen, but it does not need
21986         sys_socket because it has its own substitute for sys/socket.h.
21987         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21988         gl_TYPE_SOCKLEN_T.
21989         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21990         gl_PREREQ_SYS_H_SOCKET.
21991         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21992         gl_PREREQ_SYS_H_SOCKET.
21993         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21994         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21995         * modules/socklen (Depends-on): Do not depend on sys_socket.
21996         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21997
21998 2011-03-20  Jim Meyering  <meyering@redhat.com>
21999
22000         maint.mk: sort file names *after* new transformation
22001         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22002         prefix would have led to an unwarranted failure in GNU parted.
22003         Sort after that transformation.
22004
22005 2011-03-19  Jim Meyering  <meyering@redhat.com>
22006
22007         maint.mk: fix po-file syntax-check rule
22008         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22009         Patch by Bruno Haible.
22010
22011 2011-03-19  Bruno Haible  <bruno@clisp.org>
22012
22013         socklen: Update comment.
22014         * m4/socklen.m4: Update comment about platforms.
22015
22016 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22017             Bruno Haible  <bruno@clisp.org>
22018
22019         inet_ntop, inet_pton: Simplify.
22020         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22021         documented to provide socklen_t and we already depend on sys_socket.
22022         * modules/inet_pton (Depends-on): Likewise.
22023         * lib/arpa_inet.in.h: Adjust comment.
22024
22025 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22026             Bruno Haible  <bruno@clisp.org>
22027
22028         netdb: Simplify.
22029         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22030         documented to provide socklen_t and we already depend on sys_socket.
22031         * lib/netdb.in.h: Adjust comment.
22032
22033 2011-03-19  Bruno Haible  <bruno@clisp.org>
22034
22035         sys_socket, netdb: Document problem with socklen_t.
22036         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22037         platforms.
22038         * doc/posix-headers/netdb.texi: Likewise.
22039
22040 2011-03-18  Eric Blake  <eblake@redhat.com>
22041
22042         maint.mk: let po check work in VPATH build
22043         * top/maint.mk (po_file): Allow cfg.mk override.
22044         (sc_po_check): Allow VPATH use.
22045         Reported by Jiri Denemark.
22046
22047 2011-03-16  Jim Meyering  <meyering@redhat.com>
22048
22049         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22050         Before, you would have had to create one .x-sc_ file per rule in order
22051         to exempt offending files.  Now, you may instead use a Make variable --
22052         usually defined in cfg.mk -- whose name identifies the affected rule.
22053         * top/maint.mk (_sc_excl): Define.
22054         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22055         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22056
22057 2011-03-13  Bruno Haible  <bruno@clisp.org>
22058
22059         ignore-value tests: Avoid warnings.
22060         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22061         empty for gcc < 3.4.
22062
22063 2011-03-13  Bruno Haible  <bruno@clisp.org>
22064
22065         passfd: Fix link error on Solaris.
22066         * modules/passfd (Description): Correct.
22067         (Depends-on): Add socketlib.
22068         (Link): New section.
22069         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22070
22071 2011-03-13  Bruno Haible  <bruno@clisp.org>
22072
22073         passfd: Fix link error on AIX 5.2.
22074         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22075
22076 2011-03-13  Bruno Haible  <bruno@clisp.org>
22077
22078         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22079         * lib/sys_socket.in.h: Include <stddef.h>.
22080         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22081         CMSG_FIRSTHDR. Remove unused variable.
22082
22083 2011-03-13  Bruno Haible  <bruno@clisp.org>
22084
22085         passfd: Fix compilation error on OpenBSD.
22086         * lib/passfd.c: Include <sys/uio.h>.
22087
22088 2011-03-13  Bruno Haible  <bruno@clisp.org>
22089
22090         passfd test: Fix warnings.
22091         * tests/test-passfd.c: Include <sys/wait.h>.
22092         (main): Fix typo.
22093
22094 2011-03-13  Bruno Haible  <bruno@clisp.org>
22095
22096         passfd module, part 4, tweaks.
22097         * tests/test-passfd.c: Reorder includes.
22098         (main): Fix perror and printf calls.
22099
22100 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22101
22102         passfd module, part 4.
22103         * modules/passfd-tests: New file.
22104         * tests/test-passfd.c: New file.
22105
22106 2011-03-13  Jim Meyering  <meyering@redhat.com>
22107
22108         Makefile: rely on GNU make; derive syntax-check rule names
22109         Rather than requiring that each sc_ rule be listed as a dependent
22110         of "check", use features of GNU make to derive the list.
22111         * Makefile (syntax-check-rules): Define.
22112         (check): Depend on the new variable, not the hard-coded list.
22113
22114 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22115             Bruno Haible  <bruno@clisp.org>
22116
22117         passfd module, part 3.
22118         * lib/passfd.h (recvfd): Add a flags argument.
22119         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22120         (recvfd): Add a flags argument.
22121         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22122         exists.
22123         * modules/passfd (Depends-on): Add cloexec.
22124         Suggested by Eric Blake.
22125
22126 2011-03-13  Bruno Haible  <bruno@clisp.org>
22127
22128         passfd module, part 2, tweaks.
22129         * modules/passfd (Files): Reorder.
22130         (Depends-on): Remove errno.
22131         (Include): Remove <sys/socket.h>, <sys/un.h>.
22132         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22133         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22134         specification header. Include <sys/socket.h> always. Don't include
22135         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22136         (sendfd): Clarify that it sets errno when it fails.
22137         (recvfd): Fix specification.
22138
22139 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22140
22141         passfd module, part 2.
22142         * modules/passfd: New file.
22143         * lib/passfd.h: New file.
22144         * lib/passfd.c: New file.
22145
22146 2011-03-12  Bruno Haible  <bruno@clisp.org>
22147
22148         wcswidth, mbswidth: Avoid integer overflow.
22149         * lib/wcswidth.c: Include <limits.h>.
22150         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22151         * lib/mbswidth.c: Include <limits.h>.
22152         (mbsnwidth): Avoid 'int' overflow.
22153         Reported by Jim Meyering.
22154
22155 2011-03-12  Bruno Haible  <bruno@clisp.org>
22156
22157         futimens, utimensat: Avoid endless recursion on Solaris 10.
22158         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22159         Solaris.
22160         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22161         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22162
22163 2011-03-11  Jim Meyering  <meyering@redhat.com>
22164
22165         maint.mk: relax a regexp to accommodate other formatting styles
22166         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22167         between "ngettext" and the following "(".
22168
22169 2011-03-11  Pádraig Brady <P@draigBrady.com>
22170
22171         maint.mk: suppress a false positive warning
22172         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22173         diagnostics are marked with ngettext.
22174
22175 2011-03-10  Eric Blake  <eblake@redhat.com>
22176
22177         wchar: add explicit dependencies, for Tru64
22178         * modules/mbmemcasecoll (Depends-on): Add wchar.
22179         * modules/mbtowc (Depends-on): Likewise.
22180         * modules/vasnprintf (Depends-on): Likewise.
22181         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22182         * modules/wctomb (Depends-on): Likewise.
22183         Reported by Peter O'Gorman.
22184
22185 2011-03-08  Bruno Haible  <bruno@clisp.org>
22186
22187         passfd module, part 1, tweaks.
22188         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22189         Improve indentation. Improve AC_MSG_CHECKING messages.
22190         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22191         gl_SOCKET_FAMILIES.
22192
22193 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22194
22195         passfd module, part 1.
22196         * m4/afunix.m4: New file.
22197         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22198         sockets.
22199
22200 2011-03-08  Bruno Haible  <bruno@clisp.org>
22201
22202         regex-quote: New API.
22203         * lib/regex-quote.h: Include <stdbool.h>.
22204         (struct regex_quote_spec): New type.
22205         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22206         New declarations.
22207         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22208         'const struct regex_quote_spec *' argument.
22209         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22210         (pcre_special): New constant.
22211         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22212         New functions.
22213         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22214         'const struct regex_quote_spec *' argument.
22215         * modules/regex-quote (Depends-on): Add stdbool.
22216         * tests/test-regex-quote.c (check): Update for new API. Add test for
22217         anchored results.
22218         * NEWS: Mention the API change.
22219         Reported by Reuben Thomas and Eric Blake.
22220
22221 2011-03-06  Bruno Haible  <bruno@clisp.org>
22222
22223         regex-quote: Fix creation of POSIX extended regular expressions.
22224         * lib/regex-quote.c (ere_special): Add grouping and alternation
22225         operators.
22226
22227 2011-03-05  Bruno Haible  <bruno@clisp.org>
22228
22229         doc: Improve doc regarding autopoint vs. gnulib.
22230         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22231         disable autopoint while running autoreconf.
22232         Suggested by Ralf Wildenhues.
22233
22234 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22235
22236         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22237         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22238
22239 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22240
22241         parse-duration: remove xalloc.h dependency
22242         * lib/parse-duration.c (parse_period): handle NULL return from
22243         strdup instead of calling xstrdup().
22244         * modules/parse-duration: remove "xalloc" dependency
22245
22246 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22247
22248         bootstrap: honor m4_base when running aclocal
22249         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22250
22251 2011-03-02  Jim Meyering  <meyering@redhat.com>
22252
22253         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22254         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22255         on request from Matt Booth.
22256
22257 2011-03-01  Eric Blake  <eblake@redhat.com>
22258
22259         test-link: work on Hurd
22260         * tests/test-link.h (test_link): Hurd rejects linking directories
22261         with EISDIR instead of the POSIX-mandated EPERM.
22262
22263 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22264
22265         stdio: simplify by moving files to printf-posix, sigpipe
22266         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22267         since this symbol is needed only if printf is replaced.
22268         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22269         Require gl_ASM_SYMBOL_PREFIX.
22270         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22271         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22272         (Depends-on): Add 'raise'.
22273         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22274         * modules/stdio (Files): Remove lib/stdio-write.c,
22275         m4/asm-underscore.m4.
22276         (Depends-on): Remove 'raise'.
22277
22278         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22279         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22280         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22281         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22282
22283 2011-02-28  Bruno Haible  <bruno@clisp.org>
22284
22285         localcharset: Assume ANSI C behaviour of free().
22286         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22287         calling free().
22288         Suggested by Simon Josefsson <simon@josefsson.org>.
22289
22290 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22291             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22292             Bruno Haible  <bruno@clisp.org>  (tiny change)
22293
22294         On Cygwin, use /proc file system instead of win32 API.
22295         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22296         Win32 file names.
22297         (DllMain): Simplify by removing Cygwin specific code.
22298         (find_shared_library_fullname): Use Linux specific implementation also
22299         for Cygwin.
22300         (get_shared_library_fullname): Update accordingly.
22301         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22302         Win32 file names.
22303         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22304         Cygwin specific code.
22305
22306 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22307             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22308
22309         Fix OpenMP flag detection for various Fortran compilers.
22310         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22311         OpenMP-conditional compilation construct, to force compile
22312         failure with missing OpenMP flag.
22313         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22314
22315 2011-02-25  Eric Blake  <eblake@redhat.com>
22316
22317         strstr: expand test coverage
22318         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22319         compilation.
22320         * tests/test-memmem.c (main): Duplicate tests.
22321         * tests/test-strcasestr.c (main): Likewise.
22322         * tests/test-c-strcasestr.c (main): Likewise.
22323
22324 2011-02-25  Jim Meyering  <meyering@redhat.com>
22325
22326         maint.mk: detect missing-NL-at-EOF, too
22327         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22328         it also detects when a file lacks a newline at EOF.
22329         (require_exactly_one_NL_at_EOF_): Renamed from
22330         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22331         since people may well have .x-sc_... file names tied to the
22332         existing name.  Suggested by Eric Blake.
22333
22334 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22335
22336         dirname: move m4/dos.m4 functionality into lib/dosname.h
22337
22338         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22339         extracts symbols from it, puts them into config.h; but it's much
22340         easier to use the symbols directly.  filename.h already does this,
22341         but it disagrees with dos.m4 in some respects.  This patch
22342         introduces a different include file dosname.h that packages up
22343         dos.m4, and then later we can work on merging filename.h and
22344         dosname.h.  Applications that need only the easy-to-configure
22345         symbols should consider including dosname.h rather than dirname.h.
22346         * NEWS: Mention incompatible changes.
22347         * m4/dos.m4: Remove.
22348         * lib/dosname.h, modules/dosname: New files.
22349         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22350         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22351         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22352         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22353         Include dosname.h, not dirname.h.
22354         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22355         Include dosname.h, for definitions of symbols like ISSLASH
22356         that used to be in config.h.
22357         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22358         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22359         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22360         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22361         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22362         * modules/rmdir (Files): Likewise.
22363         * modules/stat (Files): Likewise.
22364         * modules/unlink (Files): Likewise.
22365         * modules/dirname-lgpl (Depends-on): Add dosname.
22366         * modules/lstat (Depends-on): Likewise.
22367         * modules/openat (Depends-on): Likewise.
22368         * modules/rmdir (Depends-on): Likewise.
22369         * modules/savewd (Depends-on): Likewise.
22370         * modules/stat (Depends-on): Likewise.
22371         * modules/unlink (Depends-on): Likewise.
22372         * modules/openat (Depends-on): Remove dirname-lgpl.
22373         * modules/savewd (Depends-on): Likewise.
22374         * tests/test-dirname.c: Do not use removed symbols like
22375         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22376         the remaining symbols, e.g., ISSLASH ('\\').
22377
22378 2011-02-25  Eric Blake  <eblake@redhat.com>
22379
22380         strstr: revert patches that introduced bug and pessimization
22381         * lib/str-two-way.h: Add another reference.
22382         (two_way_short_needle, two_way_long_needle): Revert changes from
22383         2011-02-24; they pessimize search speed.
22384         (critical_factorization): Partially revert changes from
22385         2010-06-22; they violate the requirement that the left half of the
22386         needle be smaller than the period of the needle.
22387
22388 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22389
22390         filenamecat: remove unnecessary dependency on dirname-lgpl
22391         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22392         is no direct dependency, just an indirect one via filenamecat-lgpl.
22393
22394         remove: remove unnecessary use of m4/dos.m4
22395         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22396         * modules/remove (FILES): Remove m4/dos.m4.
22397
22398         * lib/openat-proc.c: Don't include dirname.h; not needed.
22399
22400         backupfile: remove unnecessary use of m4/dos.m4
22401         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22402         of its symbols are used by the backupfile code.  backupfile.c does
22403         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22404         for the rare case of programs that want all their backup file
22405         names to live within 8+3 limits, and dos.m4 doesn't address that.
22406         * modules/backupfile (Files): Remove m4/dos.m4.
22407
22408 2011-02-24  Jim Meyering  <meyering@redhat.com>
22409
22410         strstr: fix a bug whereby strstr would mistakenly return NULL
22411         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22412         in period calculation.
22413         (two_way_long_needle): Likewise.
22414         The original problem was reported by Mike Stump in
22415         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22416         Ralf Wildenhues provided the short needle and haystack.
22417         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22418         Add a more involved test to trigger the bug in two_way_long_needle.
22419
22420 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22421
22422         gnulib-tool: remove use of bold display in help screen
22423         * gnulib-tool (func_usage): Do not use bold display anymore in the
22424         help screen.  That was just meant to be a temporary emphasis for a
22425         backward-incompatible change.
22426
22427 2011-02-23  Bruno Haible  <bruno@clisp.org>
22428
22429         Fix misindentation of preprocessor directives.
22430         * lib/argp-namefrob.h: Reindent preprocessor directives.
22431         * lib/getopt_int.h (struct _getopt_data): Likewise.
22432         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22433         * lib/vasnprintf.c (decode_long_double): Likewise.
22434         * tests/test-argmatch.c: Insert blank lines, for clarity.
22435         * tests/test-exclude.c: Likewise.
22436
22437 2011-02-22  Bruno Haible  <bruno@clisp.org>
22438
22439         ioctl: Fix for MacOS X in 64-bit mode.
22440         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22441         value.
22442         Suggested by Eric Blake.
22443         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22444
22445 2011-02-22  Jim Meyering  <meyering@redhat.com>
22446
22447         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22448         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22449         in lib/.
22450
22451 2011-02-22  Eric Blake  <eblake@redhat.com>
22452
22453         maint: avoid any CDPATH issue
22454         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22455
22456         maint: adjust cpp indentation for my modules, as well
22457         * Makefile (sc_cpp_indent_check): Add my name.
22458         * lib/fbufmode.c: Filter through cppi.
22459         * lib/fpurge.c: Likewise.
22460         * lib/freadable.c: Likewise.
22461         * lib/freading.c: Likewise.
22462         * lib/fwritable.c: Likewise.
22463         * lib/fwriting.c: Likewise.
22464         * lib/sigaction.c: Likewise.
22465
22466 2011-02-22  Jim Meyering  <meyering@redhat.com>
22467
22468         maint: adjust cpp indentation to reflect nesting depth
22469         I.e., in a block of code that begins with an unnested "#if",
22470         put one space between the "#" in column 1 and following token.
22471         For example,
22472         -#include <sys/vfs.h>
22473         +# include <sys/vfs.h>
22474         Do this only in .c files that are part of a module I maintain.
22475         * lib/linkat.c: Filter through cppi.
22476         * lib/nanosleep.c: Likewise.
22477         * lib/openat.c: Likewise.
22478         * lib/openat-die.c: Likewise.
22479         * lib/dup3.c: Likewise.
22480         * lib/fchownat.c: Likewise.
22481         * lib/flock.c: Likewise.
22482         * lib/fsync.c: Likewise.
22483         * lib/fts.c: Likewise.
22484         * lib/getpass.c: Likewise.
22485         * lib/gettimeofday.c: Likewise.
22486         * lib/userspec.c: Likewise.
22487         * Makefile (sc_cpp_indent_check): New rule, to check this.
22488
22489 2011-02-22  Bruno Haible  <bruno@clisp.org>
22490
22491         New module 'wctomb'.
22492         * lib/stdlib.in.h (wctomb): New declaration.
22493         * lib/wctomb.c: New file.
22494         * lib/wctomb-impl.h: New file.
22495         * m4/wctomb.m4: New file.
22496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22497         REPLACE_WCTOMB.
22498         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22499         REPLACE_WCTOMB.
22500         * modules/wctomb: New file.
22501         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22502         * doc/posix-functions/wctomb.texi: Mention the new module.
22503         * modules/wctob (Depends-on): Add wctomb.
22504
22505 2011-02-22  Bruno Haible  <bruno@clisp.org>
22506
22507         New module 'mbtowc'.
22508         * lib/stdlib.in.h (mbtowc): New declaration.
22509         * lib/mbtowc.c: New file.
22510         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22511         * m4/mbtowc.m4: New file.
22512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22513         REPLACE_MBTOWC.
22514         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22515         REPLACE_MBTOWC.
22516         * modules/mbtowc: New file.
22517         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22518         * doc/posix-functions/mbtowc.texi: Mention the new module.
22519         * modules/btowc (Depends-on): Add mbtowc.
22520
22521 2011-02-22  Bruno Haible  <bruno@clisp.org>
22522
22523         wcrtomb: Add more tests for native Windows platforms.
22524         * tests/test-wcrtomb-w32-1.sh: New file.
22525         * tests/test-wcrtomb-w32-2.sh: New file.
22526         * tests/test-wcrtomb-w32-3.sh: New file.
22527         * tests/test-wcrtomb-w32-4.sh: New file.
22528         * tests/test-wcrtomb-w32-5.sh: New file.
22529         * tests/test-wcrtomb-w32.c: New file.
22530         * modules/wcrtomb-tests (Files): Add them.
22531         (Makefile.am): Arrange to run these tests.
22532         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22533         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22534
22535 2011-02-20  Bruno Haible  <bruno@clisp.org>
22536
22537         wcrtomb: Enhance test.
22538         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22539
22540 2011-02-20  Bruno Haible  <bruno@clisp.org>
22541
22542         mbrtowc: Tiny optimization.
22543         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22544
22545 2011-02-20  Jim Meyering  <meyering@redhat.com>
22546
22547         test-exclude.c: remove unmatched #endif
22548         * tests/test-exclude.c: Remove stray #endif, left over from
22549         the change of a week ago.
22550
22551 2011-02-19  Jim Meyering  <meyering@redhat.com>
22552
22553         git-version-gen: skip "-dirty" check when appropriate
22554         * build-aux/git-version-gen: Don't run any git commands when the
22555         version string comes from .tarball-version.  Prior to this, we
22556         would run git update-index --refresh even from a just-unpacked
22557         tarball directory, and that could affect a .git/ directory in a
22558         parent of the build directory.  Reported by Mike Frysinger.
22559
22560 2011-02-19  Bruno Haible  <bruno@clisp.org>
22561
22562         unictype/property-byname: Reduce the size of the 'data' segment.
22563         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22564
22565 2011-02-19  Bruno Haible  <bruno@clisp.org>
22566
22567         unictype/scripts: Reduce the size of the 'data' segment.
22568         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22569         '%pic'.
22570         * lib/unictype/scripts_byname.gperf: Regenerated.
22571
22572 2011-02-19  Bruno Haible  <bruno@clisp.org>
22573
22574         stdint: Update documentation.
22575         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22576
22577 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22578
22579         stdint: omit redundant check for wchar.h
22580         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22581         always tests whether wchar.h exists, so remove the now-redundant test.
22582
22583 2011-02-18  Bruno Haible  <bruno@clisp.org>
22584
22585         stdint: Cut dependency to module 'wchar'.
22586         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22587         include the necessary prerequisites.
22588         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22589         * modules/stdint (Depends-on): Remove wchar.
22590         (Makefile.am): Substitute HAVE_WCHAR_H.
22591         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22592
22593 2011-02-18  Eric Blake  <eblake@redhat.com>
22594
22595         longlong: skip, rather than fail, on cross-compilation
22596         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22597         when cross-compiling; regression from 2011-02-16.
22598
22599 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22600
22601         * NEWS: Mention 2011-02-08 change to stdlib.
22602
22603 2011-02-17  Bruno Haible  <bruno@clisp.org>
22604
22605         getloadavg: Add comments about platforms.
22606         * m4/getloadavg.m4: Add comment.
22607         * lib/getloadavg.c: Likewise.
22608
22609 2011-02-17  Bruno Haible  <bruno@clisp.org>
22610
22611         getloadavg: Fix link error on Solaris 2.6.
22612         * modules/getloadavg (Link): New section.
22613         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22614         linking test-getloadavg.
22615         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22616         getloadavg.
22617
22618 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22619
22620         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22621         It was 'int', but this doesn't match the IRIX 6.5 manual.
22622         Suggested by Bruno Haible in
22623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22624
22625 2011-02-17  Bruno Haible  <bruno@clisp.org>
22626
22627         havelib: Fix comments.
22628         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22629         change.
22630
22631 2011-02-17  Bruno Haible  <bruno@clisp.org>
22632
22633         havelib: Update config.rpath.
22634         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22635
22636 2011-02-17  Bruno Haible  <bruno@clisp.org>
22637
22638         getloadavg test: Add some plausibility checks.
22639         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22640         is improbable.
22641
22642 2011-02-16  Eric Blake  <eblake@redhat.com>
22643
22644         maintainer-makefile: make syntax-check a no-op from tarballs
22645         * top/maint.mk (no-vc-detected): New rule.
22646         (local-checks-available): Use it to avoid hanging if someone tries
22647         'make syntax-check' from a tarball.  Also append to any non-syntax
22648         checks already defined in cfg.mk.
22649
22650 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22651
22652         longlong: tune, particularly for common case of c99
22653
22654         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22655         or running anything if c99, or if unsigned long long int does not
22656         work.  In either case, we know the answer without further tests.
22657         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22658         it at most once, and use its results for both long long int and
22659         unsigned long long int.  This is more likely to be efficient in
22660         the common case where the program wants to check for both long
22661         long int and unsigned long long int.
22662         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22663         since the answer is already known.
22664
22665 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22666
22667         getloadavg: set errno
22668         * lib/getloadavg.c: Set errno when returning -1.  If no other
22669         error number looks appropriate, set it to ENOSYS if the getloadavg
22670         looks like it can't possibly ever work, ENOTSUP otherwise.
22671         Suggested by Bruno Haible in
22672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22673
22674         getloadavg: trim unused parts and speed up 'configure'
22675         * NEWS: Document this.
22676         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22677         always compiled if getloadavg is absent.
22678         Move test code to ...
22679         * tests/test-getloadavg.c: New file, containing previous
22680         contents of test from lib/getloadavg.c.  It also contains
22681         suggestions by Bruno Haible in
22682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22683         * modules/getloadavg-tests: New file.
22684         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22685         Do tests in the same order as they're needed for getloadavg.c.
22686         Omit setgid-related tests that generate symbols KMEM_GROUP,
22687         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22688         Do only the tests that are needed to see whether the system has
22689         getloadavg, moving the other tests into ...
22690         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22691         NLIST_NAME_UNION; nobody should be using it.  Do not define
22692         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22693         relevant, as the user of this module shouldn't care how getloadavg
22694         is implemented.
22695
22696         getloadavg: omit unused var
22697         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22698
22699 2011-02-15  Jim Meyering  <meyering@redhat.com>
22700
22701         doc: update users.txt
22702         * users.txt: Update iwhd's URL.
22703
22704 2011-02-13  Bruno Haible  <bruno@clisp.org>
22705
22706         Consistent macro naming for macros that use GCC __attribute__.
22707         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22708         _ATTRIBUTE_NONNULL_.
22709         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22710         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22711         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22712         ATTRIBUTE_DEPRECATED.
22713         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22714         ATTRIBUTE_NORETURN.
22715         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22716         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22717         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22718         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22719         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22720         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22721         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22722         ATTRIBUTE_SENTINEL.
22723         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22724         ATTRIBUTE_RETURN_CHECK.
22725         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22726         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22727         ATTRIBUTE_NORETURN.
22728         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22729         Reported by Paul Eggert.
22730
22731 2011-02-13  Bruno Haible  <bruno@clisp.org>
22732
22733         Don't interfere with a program's definition of __attribute__.
22734         * lib/argp.h (__attribute__): Remove definition.
22735         (_GL_ATTRIBUTE_FORMAT): New macro.
22736         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22737         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22738         (_GL_ATTRIBUTE_FORMAT): New macro.
22739         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22740         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22741         GCC 3 or newer.
22742         * lib/error.h (__attribute__): Remove definition.
22743         (_GL_ATTRIBUTE_FORMAT): New macro.
22744         (error, error_at_line): Use it.
22745         * lib/hash.h (__attribute__): Remove definition.
22746         (ATTRIBUTE_WUR): Update definition. Define always.
22747         * lib/openat.h (__attribute__): Remove definition.
22748         (ATTRIBUTE_NORETURN): Update definition. Define always.
22749         * lib/sigpipe-die.h (__attribute__): Remove definition.
22750         (ATTRIBUTE_NORETURN): Update definition. Define always.
22751         * lib/vasnprintf.h (__attribute__): Remove definition.
22752         (_GL_ATTRIBUTE_FORMAT): New macro.
22753         (asnprintf, vasnprintf): Use it.
22754         * lib/xalloc.h (__attribute__): Remove definition.
22755         (ATTRIBUTE_NORETURN): Update definition. Define always.
22756         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22757         * lib/xmemdup0.h (__attribute__): Remove definition.
22758         (ATTRIBUTE_NORETURN): Update definition. Define always.
22759         * lib/xprintf.h (__attribute__): Remove definition.
22760         (_GL_ATTRIBUTE_FORMAT): New macro.
22761         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22762         * lib/xstrtol.h (__attribute__): Remove definition.
22763         (ATTRIBUTE_NORETURN): Update definition. Define always.
22764         * lib/xvasprintf.h (__attribute__): Remove definition.
22765         (_GL_ATTRIBUTE_FORMAT): New macro.
22766         (xasprintf, xvasprintf): Use it.
22767         * tests/test-argmatch.c (__attribute__): Remove definition.
22768         (ATTRIBUTE_NORETURN): Update definition. Define always.
22769         * tests/test-exclude.c (__attribute__): Remove definition.
22770         (ATTRIBUTE_NORETURN): Update definition. Define always.
22771         Reported by Paul Eggert.
22772
22773 2011-02-13  Bruno Haible  <bruno@clisp.org>
22774
22775         mbrtowc: Add more tests for native Windows platforms.
22776         * tests/test-mbrtowc-w32-1.sh: New file.
22777         * tests/test-mbrtowc-w32-2.sh: New file.
22778         * tests/test-mbrtowc-w32-3.sh: New file.
22779         * tests/test-mbrtowc-w32-4.sh: New file.
22780         * tests/test-mbrtowc-w32-5.sh: New file.
22781         * tests/test-mbrtowc-w32.c: New file.
22782         * modules/mbrtowc-tests (Files): Add them.
22783         (Makefile.am): Arrange to run these tests.
22784         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22785         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22786
22787 2011-02-13  Bruno Haible  <bruno@clisp.org>
22788
22789         mbrtowc: Work around native Windows bug.
22790         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22791         guess when no suitable locale for testing was found.
22792         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22793
22794 2011-02-13  Bruno Haible  <bruno@clisp.org>
22795
22796         mbsinit: Work around mingw bug.
22797         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22798         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22799         Windows.
22800         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22801
22802 2011-02-13  Bruno Haible  <bruno@clisp.org>
22803
22804         mbsinit: Don't crash for a NULL argument.
22805         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22806         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22807
22808 2011-02-13  Bruno Haible  <bruno@clisp.org>
22809
22810         Don't interfere with a program's definition of __attribute__.
22811         * lib/stdio.in.h (__attribute__): Remove definition.
22812         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22813         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22814         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22815         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22816         * lib/string.in.h (__attribute__): Remove definition.
22817         Reported by Paul Eggert.
22818
22819 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22820
22821         stdlib: don't get in the way of non-GCC __attribute__
22822         See thread starting at
22823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22824         Revert previous stdlib change, installing the following instead:
22825         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22826         to get in the way of a non-GCC compiler that supports __attribute__.
22827         (_GL_ATTRIBUTE_RETURN): New macro.
22828         (_Exit): Use it instead of __attribute__.
22829
22830 2011-02-12  Bruno Haible  <bruno@clisp.org>
22831
22832         quotearg test: Avoid test failure on mingw.
22833         * tests/test-quotearg.sh: Convert the locale identifier from native
22834         Windows syntax to Unix syntax.
22835
22836 2011-02-12  Bruno Haible  <bruno@clisp.org>
22837
22838         setlocale: Prefer gnulib's override over libintl's override.
22839         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22840         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22841         GNULIB_defined_setlocale is set.
22842
22843 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22844
22845         stdlib: support non-GCC __attribute__
22846
22847         Fix a serious and tricky problem encountered when attempting to
22848         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22849         5.5, but it crashed due to memory corruption on Solaris 10 with
22850         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22851         bits that are otherwise zero.  This tagging is optional inside
22852         Emacs but is preferred and is used when __attribute__ ((__aligned
22853         (8))) works, as it does with both recent-enough GCC and with Sun C
22854         5.11.  However, Sun C 5.11 is not GCC and does not #define
22855         __GNUC__ and __GNUC_MINOR__.
22856
22857         When I added the getloadavg module to Emacs, it brought in
22858         stdlib.in.h, which contained this fragment:
22859
22860            #ifndef __attribute__
22861            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22862            #  define __attribute__(Spec)   /* empty */
22863            # endif
22864            #endif
22865
22866         When files that include <stdlib.h> were compiled with Sun C 5.11,
22867         the above code disabled __attribute__ ((__aligned (8))), which
22868         caused variables to not be properly aligned, which eventually led
22869         to the pointer corruption mentioned above.  (This was a bit hard
22870         to diagnose, unfortunately.)
22871
22872         Several "#define __attribute__(X) /* empty */" code snippets need
22873         to be eradicated from Gnulib to work with non-GCC compilers that
22874         support __attribute__.  The Autoconf way to do this is to test for
22875         each kind of attribute that we want support for, and selectively
22876         enable that in source code.
22877
22878         Fix this problem just for stdlib.h, by adding a test for the
22879         __noreturn__ attribute, and change stdlib.in.h to use that test
22880         when needed.  This technique can be easily generalized to the
22881         other *.in.h files and attributes, and a similar technique can be
22882         used for *.h and *.c files.  This patch is enough to solve the
22883         problem for Emacs + getloadavg, and I thought I'd publish it for
22884         feedback before undertaking further, similar fixes in other
22885         modules.
22886
22887         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22888         because it's not needed for stdlib.h.  It merely substitutes the
22889         value directly into stdlib.h.  We may well need to #define it, or
22890         similar symbols, for other modules, but it's nice to also have an
22891         option to not #define it for applications like Emacs that do not
22892         need it.
22893
22894         * lib/stdlib.in.h (__attribute__): Do not #define.
22895         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22896         be defined only if the _Exit module is also used.
22897         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22899         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22900         platforms.
22901         * modules/_Exit (Files): Add m4/attribute.m4.
22902         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22903         * m4/attribute.m4: New file.
22904
22905 2011-02-12  Bruno Haible  <bruno@clisp.org>
22906
22907         wcsrtombs: Work around bug on native Windows.
22908         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22909         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22910         instead of len.
22911         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22912
22913 2011-02-12  Bruno Haible  <bruno@clisp.org>
22914
22915         mbsrtowcs: Work around bug on native Windows.
22916         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22917         against mingw bug.
22918         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22919
22920 2011-02-12  Bruno Haible  <bruno@clisp.org>
22921
22922         Avoid setlocale bugs in tests.
22923         * modules/btowc (Dependencies): Add setlocale.
22924         * modules/c-strcase (Dependencies): Likewise.
22925         * modules/mbmemcasecmp (Dependencies): Likewise.
22926         * modules/mbmemcasecoll (Dependencies): Likewise.
22927         * modules/mbrtowc (Dependencies): Likewise.
22928         * modules/mbscasecmp (Dependencies): Likewise.
22929         * modules/mbscasestr (Dependencies): Likewise.
22930         * modules/mbschr (Dependencies): Likewise.
22931         * modules/mbscspn (Dependencies): Likewise.
22932         * modules/mbsinit (Dependencies): Likewise.
22933         * modules/mbsncasecmp (Dependencies): Likewise.
22934         * modules/mbsnrtowcs (Dependencies): Likewise.
22935         * modules/mbspbrk (Dependencies): Likewise.
22936         * modules/mbspcasecmp (Dependencies): Likewise.
22937         * modules/mbsrchr (Dependencies): Likewise.
22938         * modules/mbsrtowcs (Dependencies): Likewise.
22939         * modules/mbsspn (Dependencies): Likewise.
22940         * modules/mbsstr (Dependencies): Likewise.
22941         * modules/nl_langinfo (Dependencies): Likewise.
22942         * modules/quotearg (Dependencies): Likewise.
22943         * modules/unicase/locale-language (Dependencies): Likewise.
22944         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22945         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22946         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22947         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22948         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22949         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22950         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22951         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22952         * modules/vasnprintf-posix (Dependencies): Likewise.
22953         * modules/wcrtomb (Dependencies): Likewise.
22954         * modules/wcsnrtombs (Dependencies): Likewise.
22955         * modules/wcsrtombs (Dependencies): Likewise.
22956
22957 2011-02-12  Bruno Haible  <bruno@clisp.org>
22958
22959         setlocale: Workaround native Windows bug.
22960         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22961         succeeds but sets LC_CTYPE to "C", report a failure.
22962         * tests/test-setlocale2.sh: New file.
22963         * tests/test-setlocale2.c: New file.
22964         * modules/setlocale-tests (Files): Add the new files.
22965         (Makefile.am): Enable test-setlocale2.sh test.
22966         * doc/posix-functions/setlocale.texi: Mention workaround.
22967
22968 2011-02-11  Bruno Haible  <bruno@clisp.org>
22969
22970         Tests for module 'setlocale'.
22971         * modules/setlocale-tests: New file.
22972         * tests/test-setlocale1.sh: New file.
22973         * tests/test-setlocale1.c: New file.
22974
22975         New module 'setlocale'.
22976         * lib/locale.in.h (setlocale): New declaration.
22977         * lib/setlocale.c: New file, based on
22978         gettext/gettext-runtime/intl/setlocale.c.
22979         * m4/setlocale.m4: New file.
22980         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22981         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22982         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22983         REPLACE_SETLOCALE.
22984         * modules/setlocale: New file.
22985         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22986         * doc/posix-functions/setlocale.texi: Mention the new module.
22987
22988 2011-02-11  Bruno Haible  <bruno@clisp.org>
22989
22990         Prepare for locale dependent tests on mingw.
22991         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22992         because it has the wrong locale encoding.
22993         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22994         French_France.1252 instead of "fr".
22995         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22996         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22997         because it has the wrong locale encoding.
22998         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22999         native Windows, try Turkish_Turkey.65001.
23000         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23001         Chinese_China.54936.
23002
23003         Prepare for locale dependent tests on mingw.
23004         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23005         differently.
23006         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23007         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23008         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23009         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23010
23011 2011-02-11  Eric Blake  <eblake@redhat.com>
23012
23013         strptime: avoid compiler warnings
23014         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23015         compiler warnings about dead code.
23016         Reported by Daniel P. Berrange.
23017
23018 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23019
23020         doc: update users.txt
23021         * users.txt: Add rcs.
23022
23023 2011-02-10  John W. Eaton  <jwe@gnu.org>
23024
23025         doc: update users.txt
23026         * users.txt: Add octave.
23027
23028 2011-02-10  Jim Meyering  <meyering@redhat.com>
23029
23030         doc: update users.txt
23031         * users.txt: Add iwhd.
23032
23033 2011-02-09  Bruno Haible  <bruno@clisp.org>
23034
23035         gnulib-tool: Make copyright notice adjustment more robust.
23036         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23037         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23038         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23039         License".
23040         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23041
23042 2011-02-06  Bruno Haible  <bruno@clisp.org>
23043
23044         New module 'towctrans'.
23045         * modules/towctrans: New file.
23046         * lib/wctype.in.h (towctrans): New declaration.
23047         * lib/towctrans.c: New file.
23048         * lib/towctrans-impl.h: New file.
23049         * m4/towctrans.m4: New file.
23050         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23051         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23052         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23053         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23054         * doc/posix-functions/towctrans.texi: Mention the new module.
23055
23056 2011-02-06  Bruno Haible  <bruno@clisp.org>
23057
23058         New module 'wctrans'.
23059         * modules/wctrans: New file.
23060         * lib/wctype.in.h (wctrans): New declaration.
23061         * lib/wctrans.c: New file.
23062         * lib/wctrans-impl.h: New file.
23063         * m4/wctrans.m4: New file.
23064         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23065         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23066         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23067         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23068         * doc/posix-functions/wctrans.texi: Mention the new module.
23069
23070 2011-02-06  Bruno Haible  <bruno@clisp.org>
23071
23072         New module 'iswctype'.
23073         * modules/iswctype: New file.
23074         * lib/wctype.in.h (iswctype): New declaration.
23075         * lib/iswctype.c: New file.
23076         * lib/iswctype-impl.h: New file.
23077         * m4/iswctype.m4: New file.
23078         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23079         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23080         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23081         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23082         * doc/posix-functions/iswctype.texi: Mention the new module and the
23083         HP-UX 11.00 problem.
23084
23085 2011-02-06  Bruno Haible  <bruno@clisp.org>
23086
23087         New module 'wctype'.
23088         * modules/wctype: Change to represent the wctype() substitute.
23089         * lib/wctype.in.h (wctype): New declaration.
23090         * lib/wctype.c: New file.
23091         * lib/wctype-impl.h: New file.
23092         * m4/wctype.m4: New file.
23093         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23094         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23095         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23096         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23097         * doc/posix-functions/wctype.texi: Mention the new module and the
23098         HP-UX 11.00 problem.
23099
23100 2011-02-06  Bruno Haible  <bruno@clisp.org>
23101
23102         wctype-h: Ensure wctype_t and wctrans_t are defined.
23103         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23104         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23105         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23106         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23107         HAVE_WCTRANS_T.
23108         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23109
23110 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23111
23112         flock: fix license typo
23113
23114         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23115         omitted.
23116
23117 2011-02-08  Bruno Haible  <bruno@clisp.org>
23118
23119         Split large sed scripts, for HP-UX sed.
23120         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23121         to avoid HP-UX limit of 99 commands, in the near future.
23122         * modules/stdlib (Makefile.am): Likewise.
23123         * modules/unistd (Makefile.am): Likewise.
23124         * modules/wchar (Makefile.am): Likewise.
23125         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23126         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23127         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23128
23129 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23130             Bruno Haible  <bruno@clisp.org>
23131
23132         stdlib: improve random_r modularization
23133         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23134         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23135         you also need the random_r module to get this material right.
23136         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23137         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23138         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23139
23140 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23141
23142         stdlib: don't depend on stdint
23143         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23144         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23145         be independent of whether stdint.h is needed.
23146         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23147         here, instead of ...
23148         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23149         struct random_data should be using the random_r module, not just
23150         the stdlib module (which wouldn't make sense: what package needs
23151         just struct random_data without also needing random_r?).
23152         * modules/stdlib (Depends-on): Remove stdint.
23153
23154         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23155         See the thread rooted at
23156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23157         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23158         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23159         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23160         __VMS)); previously it was always included (via fcntl--.h).
23161         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23162         hand; this is good enough for load averages.  Also, do not use
23163         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23164         flags directly if available and don't bother otherwise.  (Packages
23165         that need the extra reliability should use the modules that define
23166         these flags on older platforms that lack them.)
23167         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23168         fcntl-safer.
23169
23170 2011-02-08  Jim Meyering  <meyering@redhat.com>
23171
23172         di-set.h, ino-map.h: add multiple-inclusion guard
23173         Technically, the guard is required only for ino-map.h, due to its
23174         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23175         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23176         * lib/ino-map.h: Likewise.
23177
23178 2011-02-06  Bruno Haible  <bruno@clisp.org>
23179
23180         iswblank: Ensure declaration on glibc systems.
23181         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23182         * modules/iswblank (Dependencies): Add 'extensions'.
23183         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23184
23185 2011-02-06  Bruno Haible  <bruno@clisp.org>
23186
23187         New module 'iswblank'.
23188         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23189         * modules/iswblank: New file.
23190         * modules/wctype-h (Files): Remove lib/iswblank.c.
23191         (Makefile.am): Substitute GNULIB_ISWBLANK.
23192         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23193         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23194         (gl_WCTYPE_H_DEFAULTS): New macro.
23195         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23196         * modules/iswblank-tests: New file.
23197         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23198         * tests/test-wctype-h.c (main): Remove iswblank tests.
23199         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23200         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23201         of 'wctype-h'.
23202         * NEWS: Mention the change.
23203         * modules/mbchar (Depends-on): Add iswblank.
23204
23205 2011-02-08  Bruno Haible  <bruno@clisp.org>
23206
23207         di-set tests: Refactor.
23208         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23209         unnecessary includes.
23210         (ASSERT): Remove macro.
23211         (main): Make C90 compliant by avoiding variable declaration after
23212         statement.
23213         * modules/di-set-tests (Files): Add tests/macros.h.
23214
23215 2011-02-08  Bruno Haible  <bruno@clisp.org>
23216
23217         ino-map tests: Refactor.
23218         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23219         unnecessary includes.
23220         (ASSERT): Remove macro.
23221         (main): Make C90 compliant by avoiding variable declaration after
23222         statement.
23223         * modules/ino-map-tests (Files): Add tests/macros.h.
23224
23225 2011-02-08  Jim Meyering  <meyering@redhat.com>
23226
23227         di-set: add "const" to a cast
23228         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23229         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23230
23231 2011-02-06  Bruno Haible  <bruno@clisp.org>
23232
23233         Rename module 'wctype' to 'wctype-h'.
23234         * modules/wctype-h: Renamed from modules/wctype.
23235         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23236         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23237         (Files, Depends-on, Makefile.am): Update.
23238         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23239         (Files, Makefile.am): Update.
23240         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23241         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23242         * doc/posix-headers/wctype.texi: Update.
23243         * doc/posix-functions/iswalnum.texi: Update.
23244         * doc/posix-functions/iswalpha.texi: Update.
23245         * doc/posix-functions/iswblank.texi: Update.
23246         * doc/posix-functions/iswcntrl.texi: Update.
23247         * doc/posix-functions/iswdigit.texi: Update.
23248         * doc/posix-functions/iswgraph.texi: Update.
23249         * doc/posix-functions/iswlower.texi: Update.
23250         * doc/posix-functions/iswprint.texi: Update.
23251         * doc/posix-functions/iswpunct.texi: Update.
23252         * doc/posix-functions/iswspace.texi: Update.
23253         * doc/posix-functions/iswupper.texi: Update.
23254         * doc/posix-functions/iswxdigit.texi: Update.
23255         * doc/posix-functions/towlower.texi: Update.
23256         * doc/posix-functions/towupper.texi: Update.
23257         * NEWS: Mention the change.
23258         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23259         * modules/mbchar (Dependencies): Likewise.
23260         * modules/mbswidth (Dependencies): Likewise.
23261         * modules/quotearg (Dependencies): Likewise.
23262         * modules/regex (Dependencies): Likewise.
23263         * modules/wcscasecmp (Dependencies): Likewise.
23264         * modules/wcsncasecmp (Dependencies): Likewise.
23265         * modules/wcwidth (Dependencies): Likewise.
23266
23267 2011-02-06  Bruno Haible  <bruno@clisp.org>
23268
23269         New module 'wcswidth'.
23270         * modules/wcswidth: New file.
23271         * lib/wchar.in.h (wcswidth): New declaration.
23272         * lib/wcswidth.c: New file.
23273         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23274         * m4/wcswidth.m4: New file.
23275         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23276         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23277         REPLACE_WCSWIDTH.
23278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23279         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23280         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23281         * doc/posix-functions/wcswidth.texi: Mention the new module.
23282
23283 2011-02-06  Bruno Haible  <bruno@clisp.org>
23284
23285         New module 'wcstok'.
23286         * modules/wcstok: New file.
23287         * lib/wchar.in.h (wcstok): New declaration.
23288         * lib/wcstok.c: New file.
23289         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23290         * m4/wcstok.m4: New file.
23291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23294         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23295         * doc/posix-functions/wcstok.texi: Mention the new module.
23296
23297 2011-02-06  Bruno Haible  <bruno@clisp.org>
23298
23299         New module 'wcsstr'.
23300         * modules/wcsstr: New file.
23301         * lib/wchar.in.h (wcsstr): New declaration.
23302         * lib/wcsstr.c: New file.
23303         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23304         * m4/wcsstr.m4: New file.
23305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23307         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23308         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23309         * doc/posix-functions/wcsstr.texi: Mention the new module.
23310
23311 2011-02-06  Bruno Haible  <bruno@clisp.org>
23312
23313         New module 'wcspbrk'.
23314         * modules/wcspbrk: New file.
23315         * lib/wchar.in.h (wcspbrk): New declaration.
23316         * lib/wcspbrk.c: New file.
23317         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23318         * m4/wcspbrk.m4: New file.
23319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23322         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23323         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23324
23325 2011-02-06  Bruno Haible  <bruno@clisp.org>
23326
23327         New module 'wcsspn'.
23328         * modules/wcsspn: New file.
23329         * lib/wchar.in.h (wcsspn): New declaration.
23330         * lib/wcsspn.c: New file.
23331         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23332         * m4/wcsspn.m4: New file.
23333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23335         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23336         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23337         * doc/posix-functions/wcsspn.texi: Mention the new module.
23338
23339 2011-02-06  Bruno Haible  <bruno@clisp.org>
23340
23341         New module 'wcscspn'.
23342         * modules/wcscspn: New file.
23343         * lib/wchar.in.h (wcscspn): New declaration.
23344         * lib/wcscspn.c: New file.
23345         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23346         * m4/wcscspn.m4: New file.
23347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23349         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23350         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23351         * doc/posix-functions/wcscspn.texi: Mention the new module.
23352
23353 2011-02-06  Bruno Haible  <bruno@clisp.org>
23354
23355         New module 'wcsrchr'.
23356         * modules/wcsrchr: New file.
23357         * lib/wchar.in.h (wcsrchr): New declaration.
23358         * lib/wcsrchr.c: New file.
23359         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23360         * m4/wcsrchr.m4: New file.
23361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23364         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23365         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23366
23367 2011-02-06  Bruno Haible  <bruno@clisp.org>
23368
23369         New module 'wcschr'.
23370         * modules/wcschr: New file.
23371         * lib/wchar.in.h (wcschr): New declaration.
23372         * lib/wcschr.c: New file.
23373         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23374         * m4/wcschr.m4: New file.
23375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23378         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23379         * doc/posix-functions/wcschr.texi: Mention the new module.
23380
23381 2011-02-06  Bruno Haible  <bruno@clisp.org>
23382
23383         New module 'wcsdup'.
23384         * modules/wcsdup: New file.
23385         * lib/wchar.in.h (wcsdup): New declaration.
23386         * lib/wcsdup.c: New file.
23387         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23388         * m4/wcsdup.m4: New file.
23389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23392         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23393         * doc/posix-functions/wcsdup.texi: Mention the new module.
23394
23395 2011-02-06  Bruno Haible  <bruno@clisp.org>
23396
23397         New module 'wcsxfrm'.
23398         * modules/wcsxfrm: New file.
23399         * lib/wchar.in.h (wcsxfrm): New declaration.
23400         * lib/wcsxfrm.c: New file.
23401         * lib/wcsxfrm-impl.h: New file.
23402         * m4/wcsxfrm.m4: New file.
23403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23406         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23407         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23408
23409 2011-02-06  Bruno Haible  <bruno@clisp.org>
23410
23411         New module 'wcscoll'.
23412         * modules/wcscoll: New file.
23413         * lib/wchar.in.h (wcscoll): New declaration.
23414         * lib/wcscoll.c: New file.
23415         * lib/wcscoll-impl.h: New file.
23416         * m4/wcscoll.m4: New file.
23417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23420         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23421         * doc/posix-functions/wcscoll.texi: Mention the new module.
23422
23423 2011-02-06  Bruno Haible  <bruno@clisp.org>
23424
23425         New module 'wcsncasecmp'.
23426         * modules/wcsncasecmp: New file.
23427         * lib/wchar.in.h (wcsncasecmp): New declaration.
23428         * lib/wcsncasecmp.c: New file.
23429         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23430         * m4/wcsncasecmp.m4: New file.
23431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23434         HAVE_WCSNCASECMP.
23435         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23436         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23437
23438 2011-02-06  Bruno Haible  <bruno@clisp.org>
23439
23440         New module 'wcscasecmp'.
23441         * modules/wcscasecmp: New file.
23442         * lib/wchar.in.h (wcscasecmp): New declaration.
23443         * lib/wcscasecmp.c: New file.
23444         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23445         * m4/wcscasecmp.m4: New file.
23446         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23447         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23448         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23449         HAVE_WCSCASECMP.
23450         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23451         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23452
23453 2011-02-05  Bruno Haible  <bruno@clisp.org>
23454
23455         New module 'wcsncmp'.
23456         * modules/wcsncmp: New file.
23457         * lib/wchar.in.h (wcsncmp): New declaration.
23458         * lib/wcsncmp.c: New file.
23459         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23460         * m4/wcsncmp.m4: New file.
23461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23464         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23465         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23466
23467 2011-02-05  Bruno Haible  <bruno@clisp.org>
23468
23469         New module 'wcscmp'.
23470         * modules/wcscmp: New file.
23471         * lib/wchar.in.h (wcscmp): New declaration.
23472         * lib/wcscmp.c: New file.
23473         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23474         * m4/wcscmp.m4: New file.
23475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23478         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23479         * doc/posix-functions/wcscmp.texi: Mention the new module.
23480
23481 2011-02-05  Bruno Haible  <bruno@clisp.org>
23482
23483         New module 'wcsncat'.
23484         * modules/wcsncat: New file.
23485         * lib/wchar.in.h (wcsncat): New declaration.
23486         * lib/wcsncat.c: New file.
23487         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23488         * m4/wcsncat.m4: New file.
23489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23492         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23493         * doc/posix-functions/wcsncat.texi: Mention the new module.
23494
23495 2011-02-05  Bruno Haible  <bruno@clisp.org>
23496
23497         New module 'wcscat'.
23498         * modules/wcscat: New file.
23499         * lib/wchar.in.h (wcscat): New declaration.
23500         * lib/wcscat.c: New file.
23501         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23502         * m4/wcscat.m4: New file.
23503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23506         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23507         * doc/posix-functions/wcscat.texi: Mention the new module.
23508
23509 2011-02-05  Bruno Haible  <bruno@clisp.org>
23510
23511         New module 'wcpncpy'.
23512         * modules/wcpncpy: New file.
23513         * lib/wchar.in.h (wcpncpy): New declaration.
23514         * lib/wcpncpy.c: New file.
23515         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23516         * m4/wcpncpy.m4: New file.
23517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23519         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23520         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23521         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23522
23523 2011-02-05  Bruno Haible  <bruno@clisp.org>
23524
23525         New module 'wcsncpy'.
23526         * modules/wcsncpy: New file.
23527         * lib/wchar.in.h (wcsncpy): New declaration.
23528         * lib/wcsncpy.c: New file.
23529         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23530         * m4/wcsncpy.m4: New file.
23531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23534         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23535         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23536
23537 2011-02-05  Bruno Haible  <bruno@clisp.org>
23538
23539         New module 'wcpcpy'.
23540         * modules/wcpcpy: New file.
23541         * lib/wchar.in.h (wcpcpy): New declaration.
23542         * lib/wcpcpy.c: New file.
23543         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23544         * m4/wcpcpy.m4: New file.
23545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23547         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23548         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23549         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23550
23551 2011-02-05  Bruno Haible  <bruno@clisp.org>
23552
23553         New module 'wcscpy'.
23554         * modules/wcscpy: New file.
23555         * lib/wchar.in.h (wcscpy): New declaration.
23556         * lib/wcscpy.c: New file.
23557         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23558         * m4/wcscpy.m4: New file.
23559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23562         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23563         * doc/posix-functions/wcscpy.texi: Mention the new module.
23564
23565 2011-02-05  Bruno Haible  <bruno@clisp.org>
23566
23567         New module 'wcsnlen'.
23568         * modules/wcsnlen: New file.
23569         * lib/wchar.in.h (wcsnlen): New declaration.
23570         * lib/wcsnlen.c: New file.
23571         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23572         * m4/wcsnlen.m4: New file.
23573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23576         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23577         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23578
23579 2011-02-05  Bruno Haible  <bruno@clisp.org>
23580
23581         New module 'wcslen'.
23582         * modules/wcslen: New file.
23583         * lib/wchar.in.h (wcslen): New declaration.
23584         * lib/wcslen.c: New file.
23585         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23586         * m4/wcslen.m4: New file.
23587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23590         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23591         * doc/posix-functions/wcslen.texi: Mention the new module.
23592
23593 2011-02-05  Bruno Haible  <bruno@clisp.org>
23594
23595         New module 'wmemset'.
23596         * modules/wmemset: New file.
23597         * lib/wchar.in.h (wmemset): New declaration.
23598         * lib/wmemset.c: New file.
23599         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23600         * m4/wmemset.m4: New file.
23601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23603         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23604         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23605         * doc/posix-functions/wmemset.texi: Mention the new module.
23606
23607 2011-02-05  Bruno Haible  <bruno@clisp.org>
23608
23609         New module 'wmemmove'.
23610         * modules/wmemmove: New file.
23611         * lib/wchar.in.h (wmemmove): New declaration.
23612         * lib/wmemmove.c: New file.
23613         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23614         * m4/wmemmove.m4: New file.
23615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23617         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23618         HAVE_WMEMMOVE.
23619         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23620         * doc/posix-functions/wmemmove.texi: Mention the new module.
23621
23622 2011-02-05  Bruno Haible  <bruno@clisp.org>
23623
23624         New module 'wmemcpy'.
23625         * modules/wmemcpy: New file.
23626         * lib/wchar.in.h (wmemcpy): New declaration.
23627         * lib/wmemcpy.c: New file.
23628         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23629         * m4/wmemcpy.m4: New file.
23630         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23631         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23632         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23633         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23634         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23635
23636 2011-02-05  Bruno Haible  <bruno@clisp.org>
23637
23638         New module 'wmemcmp'.
23639         * modules/wmemcmp: New file.
23640         * lib/wchar.in.h (wmemcmp): New declaration.
23641         * lib/wmemcmp.c: New file.
23642         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23643         * m4/wmemcmp.m4: New file.
23644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23646         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23647         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23648         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23649
23650 2011-02-07  Jim Meyering  <meyering@redhat.com>
23651
23652         di-set, ino-map: new modules, from coreutils
23653         * lib/di-set.c: New file.
23654         * lib/di-set.h: Likewise.
23655         * lib/ino-map.c: Likewise.
23656         * lib/ino-map.h: Likewise.
23657         * modules/di-set: Likewise.
23658         * modules/di-set-tests: Likewise.
23659         * modules/ino-map: Likewise.
23660         * modules/ino-map-tests: Likewise.
23661         * tests/test-di-set.c: Likewise.
23662         * tests/test-ino-map.c: Likewise.
23663
23664 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23665
23666         getloadavg: merge minor changes from Emacs
23667
23668         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23669         (getloadavg): Use memset, not bzero.
23670
23671         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23672         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23673         clash (bug#86).
23674
23675 2010-11-14  Bruno Haible  <bruno@clisp.org>
23676
23677         Allow multiple gnulib generated replacements to coexist.
23678         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23679         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23680         * lib/langinfo.in.h (nl_item): Likewise.
23681         * lib/math.in.h (_NaN, NAN): Likewise.
23682         * lib/netdb.in.h (struct addrinfo): Likewise.
23683         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23684         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23685         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23686         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23687         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23688         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23689         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23690         pthread_mutexattr_init, pthread_mutexattr_settype,
23691         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23692         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23693         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23694         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23695         * lib/sched.in.h (struct sched_param): Likewise.
23696         * lib/se-selinux.in.h (security_class_t, security_context_t,
23697         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23698         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23699         lsetfilecon, fsetfilecon, security_check_context,
23700         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23701         Likewise.
23702         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23703         Likewise.
23704         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23705         _gl_function_taking_int_returning_void_t, union sigval,
23706         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23707         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23708         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23709         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23710         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23711         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23712         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23713         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23714         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23715         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23716         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23717         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23718         socklen_t, rpl_fd_isset): Likewise.
23719         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23720         * lib/sys_time.in.h (struct timeval): Likewise.
23721         * lib/sys_times.in.h (struct tms): Likewise.
23722         * lib/sys_utsname.in.h (struct utsname):
23723         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23724         * lib/unistd.in.h (getpagesize): Likewise.
23725         * lib/wchar.in.h (mbstate_t): Likewise.
23726         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23727         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23728         towlower, towupper): Likewise.
23729         Reported by Sam Steingold <sds@gnu.org>.
23730
23731 2011-02-05  Eric Blake  <eblake@redhat.com>
23732
23733         unsetenv: work around Haiku issues
23734         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23735         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23736
23737 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23738
23739         libposix: avoid calling error() within libposix
23740         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23741         is defined.
23742
23743 2011-02-05  Eric Blake  <eblake@redhat.com>
23744
23745         strerror_r-posix: port to cygwin
23746         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23747         implementation.
23748         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23749         * tests/test-strerror_r.c (main): Fix test.
23750         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23751         issue.
23752
23753 2011-02-05  Bruno Haible  <bruno@clisp.org>
23754
23755         New module 'wmemchr'.
23756         * modules/wmemchr: New file.
23757         * lib/wchar.in.h (wmemchr): New declaration.
23758         * lib/wmemchr.c: New file.
23759         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23760         * m4/wmemchr.m4: New file.
23761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23763         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23764         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23765         * doc/posix-functions/wmemchr.texi: Mention the new module.
23766
23767 2011-02-04  Eric Blake  <eblake@redhat.com>
23768
23769         fdopendir: detect FreeBSD bug
23770         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23771         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23772
23773 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23774
23775         stdbool: do not define HAVE_STDBOOL_H
23776         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23777         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23778         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23779         imported from the latest Autoconf git.  It was motivated by Emacs,
23780         which uses gnulib but does not need HAVE_STDBOOL_H.
23781
23782 2011-02-04  Bruno Haible  <bruno@clisp.org>
23783
23784         wcsnrtombs: Prepare for new module wwcsnrtombs.
23785         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23786         * lib/wcsnrtombs.c: Include it.
23787         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23788
23789         wcsrtombs: Prepare for new module wwcsrtombs.
23790         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23791         * lib/wcsrtombs.c: Include it.
23792         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23793
23794         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23795         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23796         * lib/mbsnrtowcs.c: Include it.
23797         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23798
23799         mbsrtowcs: Prepare for new module mbsrtowwcs.
23800         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23801         * lib/mbsrtowcs.c: Include it.
23802         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23803
23804 2011-02-04  Bruno Haible  <bruno@clisp.org>
23805
23806         vasnprintf: Reduce use of malloc for small format strings.
23807         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23808         (arguments): Add room for the first 7 arguments.
23809         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23810         (char_directives, u8_directives, u16_directives, u32_directives): Add
23811         room for the first 7 directives.
23812         * lib/printf-parse.c: Include <string.h>.
23813         (PRINTF_PARSE): Change memory handling code so that it uses the first
23814         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23815         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23816         Reported by Pádraig Brady <P@draigbrady.com>.
23817
23818 2011-01-31  Eric Blake  <eblake@redhat.com>
23819
23820         dup2: work around Haiku bug
23821         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23822         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23823         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23824         * tests/test-dup2.c (main): Enhance test.
23825
23826 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23827
23828         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23829         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23830         declared by eglibc 2.11.2.
23831         * lib/stdio.in.h: Likewise.
23832
23833 2011-01-31  Eric Blake  <eblake@redhat.com>
23834
23835         ignore-value: add missing test dependency
23836         * tests/test-ignore-value.c: Revert previous change; stdio.h
23837         provides off_t.
23838         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23839
23840 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23841
23842         mktime: clarify long_int width checking
23843         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23844         the top level, to make it clearer that the assumption about
23845         long_int width is being checked.  See
23846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23847
23848 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23849
23850         ignore-value: Fix self-test.
23851         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23852
23853 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23854
23855         TYPE_MAXIMUM: avoid theoretically undefined behavior
23856         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23857         negative number, which the C Standard says has undefined behavior.
23858         In practice this is not a problem, but might as well do it by the book.
23859         Reported by Rich Felker and Eric Blake; see
23860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23861         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23862         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23864         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23865         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23866         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23867
23868         mktime: #undef mktime before #defining it
23869         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23870
23871         mktime: systematically normalize tm_isdst comparisons
23872         * lib/mktime.c (isdst_differ): New function.
23873         (__mktime_internal): Use it systematically for all isdst comparisons.
23874         This completes the fix for libc BZ #6723, and removes the need for
23875         normalizing tm_isdst.  See
23876         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23877         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23878
23879         mktime: fix some integer overflow issues and sidestep the rest
23880
23881         This was prompted by a bug report by Benjamin Lindner for MinGW
23882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23883         His bug is due to signed integer overflow (0 - INT_MIN), and I
23884         I scanned through mktime.c looking for other integer overflow
23885         problems, fixing all the bugs I found.
23886
23887         Although the C Standard says the resulting code is still not safe
23888         in the presence of integer overflow, in practice it should be good
23889         enough for all real-world two's-complement implementations, except
23890         for debugging environments that deliberately trap on integer
23891         overflow (e.g., gcc -ftrapv).
23892
23893         * lib/mktime.c (WRAPV): New macro.
23894         (SHR): Also check that long_int and time_t shift right in the
23895         usual way, before using the fast-but-unportable method.
23896         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23897         used.  The code already assumed two's complement, so there's
23898         no need to test for alternatives.  All uses removed.
23899         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23900         the C standard.  Problem reported by Rich Felker in
23901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23902         (twos_complement_arithmetic): Also check long_int and time_t.
23903         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23904         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23905         (__mktime_internal): Avoid integer overflow with unary subtraction
23906         in two instances where -1 - X is an adequate replacement for -X,
23907         since the calculations are approximate.
23908
23909 2011-01-29  Eric Blake  <eblake@redhat.com>
23910
23911         mktime: avoid infinite loop
23912         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23913         type; behavior is still undefined but portable to all known targets.
23914         Reported by Rich Felker.
23915
23916 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23917
23918         rename, unlink, same-inode: Relicense.
23919         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23920         * modules/unlink (License): Likewise.
23921         * modules/same-inode (License): Likewise.
23922
23923 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23924
23925         mktime: avoid problems on NetBSD 5 / i386
23926         * lib/mktime.c (long_int): New type.  This works around a problem
23927         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23928         but time_t is 64 bits, and where I expect the existing code is
23929         wrong in some cases.
23930         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23931         (ydhms_diff): Bring back the compile-time check for wide-enough
23932         year and yday.
23933
23934         mktime: fix misspelling in comment
23935         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23936         This merges all recent glibc changes of importance.
23937
23938 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23939
23940         move-if-change: cope with concurrent mv of identical file.
23941         * build-aux/move-if-change (CMPPROG): Accept environment
23942         variable as an override for `cmp'.
23943         (usage): Document CMPPROG.
23944         Adjust comparison to drop stdout.  Cope with failure of mv if
23945         the target file exists and is identical to the source, for
23946         parallel builds.
23947         Report from H.J. Lu against binutils in PR binutils/12283.
23948
23949 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23950
23951         * users.txt: Mention sharutils.
23952
23953 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23954
23955         * users.txt: Mention OATH Toolkit.
23956
23957 2011-01-27  Bruno Haible  <bruno@clisp.org>
23958
23959         Prepare for supporting FreeBSD 10.
23960         * build-aux/config.libpath: Remove handling of freebsd1*.
23961
23962 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23963
23964         Prepare for supporting FreeBSD 10.
23965         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23966         match FreeBSD 10.0.
23967
23968 2011-01-27  Bruno Haible  <bruno@clisp.org>
23969
23970         vma-iter, get-rusage-as: Add OpenBSD support.
23971         * modules/vma-iter (configure.ac): Test for mquery.
23972         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23973         * lib/vma-iter.c: Include <sys/mman.h>.
23974         (vma_iterate): Add an implementation based on mquery().
23975         * lib/resource-ext.h (get_rusage_as): Update comments.
23976         * lib/get-rusage-as.c: Likewise.
23977         * lib/get-rusage-data.c: Likewise.
23978
23979 2011-01-26  Karl Berry  <karl@gnu.org>
23980
23981         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23982         variables to make it easier to override the makeinfo program used.
23983
23984 2011-01-26  Eric Blake  <eblake@redhat.com>
23985
23986         fcntl: work around Haiku F_DUPFD bugs
23987         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23988         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23989         cloexec bit on duplication.
23990         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23991
23992 2011-01-26  Bruno Haible  <bruno@clisp.org>
23993
23994         Enable memory leak tests on AIX.
23995         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23996         * tests/test-fprintf-posix3.c (main): Likewise.
23997
23998 2011-01-26  Bruno Haible  <bruno@clisp.org>
23999
24000         Tests for module 'get-rusage-data'.
24001         * modules/get-rusage-data-tests: New file.
24002         * tests/test-get-rusage-data.c: New file.
24003
24004         New module 'get-rusage-data'.
24005         * lib/resource-ext.h (get_rusage_data): New declaration.
24006         * lib/get-rusage-data.c: New file.
24007         * modules/get-rusage-data: New file.
24008
24009 2011-01-25  Bruno Haible  <bruno@clisp.org>
24010
24011         get-rusage-as: Allow for easier testing.
24012         * lib/resource-ext.h (get_rusage_as): Add comment.
24013         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24014         (main): New function for interactive testing.
24015
24016 2011-01-25  Bruno Haible  <bruno@clisp.org>
24017
24018         vma-iter: Treat Haiku like BeOS.
24019         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24020         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24021
24022 2011-01-25  Eric Blake  <eblake@redhat.com>
24023
24024         c-stack: fix regression on cygwin when libsigsegv is present
24025         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24026
24027 2011-01-24  Bruno Haible  <bruno@clisp.org>
24028
24029         vma-iter: Avoid empty intervals.
24030         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24031         on an empty interval.
24032
24033 2011-01-24  Jim Meyering  <meyering@redhat.com>
24034
24035         u64: remove unnecessary #include
24036         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24037
24038 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24039
24040         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24041         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24042
24043 2011-01-23  Bruno Haible  <bruno@clisp.org>
24044
24045         New module 'vma-iter'.
24046         * lib/vma-iter.h: New file.
24047         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24048         * modules/vma-iter: New file.
24049         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24050         for get_rusage_as_via_iterator.
24051         (vma_iterate_callback): New function.
24052         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24053         * modules/get-rusage-as (Depends-on): Add vma-iter.
24054
24055 2011-01-23  Bruno Haible  <bruno@clisp.org>
24056
24057         uninorm: Tweak includes.
24058         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24059         Reported by Jim Meyering.
24060
24061 2011-01-23  Bruno Haible  <bruno@clisp.org>
24062
24063         get-rusage-as: Improve on NetBSD.
24064         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24065         /proc, like on FreeBSD.
24066
24067 2011-01-23  Jim Meyering  <meyering@redhat.com>
24068
24069         xreadlink.h: remove unnecessary #include
24070         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24071
24072         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24073         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24074
24075 2011-01-23  Bruno Haible  <bruno@clisp.org>
24076
24077         get-rusage-as: Fix bug.
24078         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24079         original limit when aborting the first loop.
24080
24081 2011-01-23  Bruno Haible  <bruno@clisp.org>
24082
24083         wctype: Ensure valid C syntax.
24084         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24085         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24086
24087 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24088
24089         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24091         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24092         as they are needed only for configure's test case.
24093         This removes two unnecessary symbols from config.h.
24094
24095         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24096         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24098         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24099         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24100         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24101         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24102         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24103         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24104         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24105         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24107         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24108         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24109         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24110         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24111         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24112         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24113
24114 2011-01-21  Eric Blake  <eblake@redhat.com>
24115
24116         maintainer-makefile: work with older git for submodule check
24117         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24118         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24119         Reported by Matthias Bolte.
24120
24121         bootstrap: minor portability fixes
24122         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24123         (usage): Omit leading capital and trailing . on help phrases, per
24124         GNU Coding Standards.
24125         (check_versions, top level): Prefix messages with script name.
24126
24127 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24128
24129         bootstrap: support --no-git option
24130         * build-aux/bootstrap: Add --no-git option, to be used when
24131         --gnulib-srcdir points to the exact desired checkout.
24132
24133 2011-01-21  Eric Blake  <eblake@redhat.com>
24134
24135         strerror_r-posix: work with glibc 2.13
24136         * lib/strerror_r.c (strerror_r): Fix return type.
24137
24138 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24139             Bruno Haible  <bruno@clisp.org>
24140
24141         uN_strstr: New unit tests.
24142         * modules/unistr/u8-strstr-tests: New file.
24143         * modules/unistr/u16-strstr-tests: New file.
24144         * modules/unistr/u32-strstr-tests: New file.
24145         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24146         * tests/unistr/test-u8-strstr.c: New file.
24147         * tests/unistr/test-u16-strstr.c: New file.
24148         * tests/unistr/test-u32-strstr.c: New file.
24149
24150 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24151             Bruno Haible  <bruno@clisp.org>
24152
24153         Make uN_strstr functions O(n) worst-case.
24154         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24155         16-bit and 32-bit unit cases, use the unibyte algorithm from
24156         lib/mbsstr.c.
24157         * lib/unistr/u8-strstr.c: Include <string.h>.
24158         (UNIT_IS_UINT8_T): New macro.
24159         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24160         (U_STRLEN, U_STRNLEN): New macros.
24161         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24162         (U_STRLEN, U_STRNLEN): New macros.
24163         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24164         (configure.ac): Update required libunistring version.
24165         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24166         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24167         malloca.
24168         (configure.ac): Update required libunistring version.
24169         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24170         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24171         malloca.
24172         (configure.ac): Update required libunistring version.
24173
24174 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24175             Bruno Haible  <bruno@clisp.org>
24176
24177         Prepare for faster uN_strstr functions.
24178         * lib/str-kmp.h: Support definable UNITs.
24179         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24180         needle_len argument.
24181         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24182         * lib/mbscasestr.c (mbscasestr): Likewise.
24183
24184 2011-01-21  Pádraig Brady <P@draigBrady.com>
24185
24186         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24187         * tests/test-malloca.c (main): Unset the environment variable
24188         to greatly speed up the test.
24189         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24190         * modules/malloca-tests: Depend on unsetenv.
24191
24192 2011-01-21  Pádraig Brady <P@draigBrady.com>
24193
24194         ignore-value: remove stdint dependency
24195         * lib/ignore-value.h: Remove <stdint.h>
24196         * modules/ignore-value: Remove stdint dependency.
24197
24198 2011-01-21  Jim Meyering  <meyering@redhat.com>
24199
24200         maint.mk: adjust variable name to be consistent with other gl_ vars
24201         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24202         to be lower case.
24203
24204 2011-01-20  Jim Meyering  <meyering@redhat.com>
24205
24206         maint.mk: make "check" depend on public-submodule-commit by default
24207         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24208
24209 2011-01-20  Bruno Haible  <bruno@clisp.org>
24210
24211         mbfile, mbiter: Complete change from 2008-12-21.
24212         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24213         * m4/mbiter.m4 (gl_MBITER): Likewise.
24214
24215 2011-01-20  Jim Meyering  <meyering@redhat.com>
24216
24217         init.sh: insert space between each function name and "()"
24218         * tests/init.sh: Make it a little easier to see that a function's
24219         name is "warn_", and not "warn" when looking at the first part of
24220         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24221
24222 2011-01-20  Jim Meyering  <meyering@redhat.com>
24223
24224         mountlist: clean up code formatting
24225         * lib/mountlist.c (read_file_system_list): Split a long line,
24226         correct bracing style, use NULL in place of "(struct statfs *)0",
24227         don't parenthesize return value, add spaces around "=" and after
24228         ";-in-for-stmt".
24229
24230 2011-01-14  Markus Duft <mduft@gentoo.org>
24231
24232         mountlist: add support for Interix
24233         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24234         Apply statvfs to all entries of /dev/fs.
24235         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24236         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24237
24238 2011-01-20  Jim Meyering  <meyering@redhat.com>
24239
24240         maint.mk: improve the public-submodule-commit rule
24241         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24242         to suppress printing of its commands... unless V=1.
24243         Add git submodule's --quiet option to suppress printing of e.g.,
24244         "Entering gnulib" output.
24245         "cd" into $(srcdir) before running git submodule.
24246
24247 2011-01-20  Bruno Haible  <bruno@clisp.org>
24248
24249         include_next: Fix bug introduced on 2011-01-18.
24250         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24251         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24252         ac_cv_header_... variable if the second argument is not 'check'.
24253         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24254         gl_NEXT_HEADERS_INTERNAL.
24255
24256 2011-01-20  Bruno Haible  <bruno@clisp.org>
24257
24258         Allow the user to avoid the GNULIB_TEST_* macros.
24259         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24260         Suggested by Paul Eggert.
24261
24262 2011-01-14  Jim Meyering  <meyering@redhat.com>
24263
24264         bootstrap: avoid failure when there is no .gitmodules file
24265         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24266         has been assigned to, even when its value is the empty string.
24267         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24268         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24269         Reported by John W. Eaton <jwe@gnu.org>.
24270
24271 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24272
24273         assume <ctype.h>, ..., <time.h> exist
24274         For years gnulib has been assuming the existence of the headers
24275         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24276         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24277         them, since they don't appear to be needed.
24278         * README (Portability guidelines): Document this.
24279         * lib/flock.c: Assume <fcntl.h> exists.
24280         * lib/regex_internal.h: Assume <locale.h> exists.
24281         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24282         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24283         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24284         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24285         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24286         * m4/regex.m4 (gl_REGEX): Likewise.
24287         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24288         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24289         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24290         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24291         * tests/test-argp.c: Likewise.
24292         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24293
24294         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24295         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24296         AA_APPLE_UNIVERSAL_BUILD.  See
24297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24298         * NEWS: Document this.
24299
24300 2011-01-19  Eric Blake  <eblake@redhat.com>
24301
24302         c-stack: assume stack overflow if SA_SIGINFO unsupported
24303         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24304         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24305         sigaction will work.
24306         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24307         behavior match Linux.
24308         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24309
24310         stdbool-tests: accommodate Haiku
24311         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24312
24313         binary-io: fix O_TEXT on Haiku
24314         * modules/binary-io (Depends-on): Add fcntl-h.
24315         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24316         than blindly undefining O_TEXT.
24317         Reported by Scott McCreary.
24318
24319 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24320
24321         include_next: do not check for standard headers like stddef.h
24322
24323         I found this problem when modifying Emacs to use gnulib.
24324         I noticed that it added HAVE_STDDEF_H to config.h, even though
24325         gnulib always assumes <stddef.h> exists as per README and this
24326         symbol is unnecessary.
24327         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24328         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24329         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24330         faster for headers like stddef.h that are known to exist.
24331         (gl_CHECK_NEXT_HEADERS): Use it.
24332         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24333         rather than gl_CHECK_NEXT_HEADERS.
24334         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24335         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24336
24337 2011-01-18  Eric Blake  <eblake@redhat.com>
24338
24339         ansi-c++-opt: skip C++ dependency style if C++ is unused
24340         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24341         tests when we know C++ compilation is not desired.
24342         Reported by Scott McCreary.
24343
24344 2011-01-18  Bruno Haible  <bruno@clisp.org>
24345
24346         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24347         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24348         (main): Perform test also when getrlimit and setrlimit don't exist or
24349         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24350         limiting the address space size using setrlimit, compare the address
24351         space size before and after the the test.
24352         * tests/test-dprintf-posix2.c: Likewise.
24353         * tests/test-fprintf-posix3.sh: Update skip messages.
24354         * tests/test-dprintf-posix2.sh: Likewise.
24355         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24356         * modules/dprintf-posix-tests (Depends-on): Likewise.
24357         Reported by Bruce Korb <bkorb@gnu.org> and
24358         Gary V. Vaughan <gary@gnu.org>.
24359
24360 2011-01-18  Bruno Haible  <bruno@clisp.org>
24361
24362         get-rusage-as: Improvement for Cygwin.
24363         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24364         areas that are merely reserved.
24365
24366 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24367
24368         strftime: remove dependencies on multibyte modules
24369
24370         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24371         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24372         only if __osf__ is defined, and I suspect OSF doesn't need these
24373         other modules.  If my guess is wrong, we'll need to come up with a
24374         variant of strftime that doesn't need the multibyte modules.
24375
24376         I discovered this problem when attempting modify Emacs to use the
24377         strftime module.  With the previous gnulib, this caused Emacs to
24378         need 31 new files, ranging from lib/config.charset to
24379         m4/wint_t.m4.  This was overkill and I expect would be offputting
24380         to the Emacs maintainers.  After this change, only 6 new files are
24381         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24382         stdbool.m4, and tm_gmtoff.m4.
24383
24384         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24385         Suggested by Bruno Haible in
24386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24387         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24388         and do not check for wchar.h.
24389         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24390         (Depends-on): Remove mbrlen, mbsinit, wchar.
24391
24392 2011-01-18  Bruno Haible  <bruno@clisp.org>
24393
24394         Tests for module 'get-rusage-as'.
24395         * modules/get-rusage-as-tests: New file.
24396         * tests/test-get-rusage-as.c: New file.
24397
24398         New module 'get-rusage-as'.
24399         * modules/get-rusage-as: New file.
24400         * lib/resource-ext.h: New file.
24401         * lib/get-rusage-as.c: New file.
24402
24403 2011-01-17  Eric Blake  <eblake@redhat.com>
24404
24405         sigaction: relax license from LGPLv3+ to LGPLv2+
24406         * modules/sigaction (License): Relax to LGPLv2+.
24407
24408 2011-01-14  Bruno Haible  <bruno@clisp.org>
24409
24410         filemode: Make function declarations usable in C++ mode.
24411         * lib/filemode.h: Enclose function declarations in extern "C" block.
24412         Reported by John W. Eaton <jwe@gnu.org>.
24413
24414 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24415
24416         save-cwd: no longer include "xgetcwd.h"
24417         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24418         This avoids a compilation failure in projects that use save-cwd
24419         without also using the xgetcwd module.
24420
24421 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24422
24423         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24424         This is so that a program like Emacs, which needs only dtoastr,
24425         does not have to bother with distributing and compiling ftoastr
24426         and ldtoastr.
24427         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24428         * modules/dtoastr, modules/ldtoastr: New files.
24429         * modules/ftoastr: Now works just for 'float'.
24430         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24431         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24432         dtoastr.c, ldtoastr.c.
24433
24434 2011-01-11  Jim Meyering  <meyering@redhat.com>
24435
24436         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24437         There is no need to work around the lack of the fchdir function,
24438         since gnulib can now provide a replacement when required.
24439         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24440         * modules/save-cwd (Depends-on): Add fchdir.
24441
24442 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24443
24444         openat, save-cwd: avoid xmalloc
24445
24446         This removes a direct (but undocumented) dependency of openat on
24447         xalloc, along with an indirect dependency via save-cwd.  It also
24448         removes a dependency of save-cwd on xgetcwd, and thereby
24449         indirectly on xalloc.  This change causes the openat substitute
24450         to fall back on save_cwd when memory is tight, and for save_cwd to
24451         fail instead of dying when memory is tight, but that's good enough.
24452         Problem and initial idea for fix reported by Bastien Roucaries in
24453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24454
24455         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24456         xalloc.h (for xmalloc).
24457         (openat_proc_name): Use malloc, not xmalloc.
24458         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24459         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24460
24461         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24462         This avoids heap allocation for file names whose lengths are in
24463         the range 512..1023, with the upper bound increasing to at most
24464         4031 depending on the platform's PATH_MAX.  (We do not want
24465         pathmax.h here as it might supply a non-constant PATH_MAX.)
24466         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24467         Perhaps they should be moved to malloca.h?
24468         (OPENAT_BUFFER_SIZE): Use them.
24469
24470 2011-01-10  Bruno Haible  <bruno@clisp.org>
24471
24472         doc: Update users.txt.
24473         * users.txt: Add recutils.
24474
24475 2011-01-09  Karl Berry  <karl@gnu.org>
24476
24477         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24478
24479         * doc/configmake.texi: New file.
24480         * doc/gnulib.texi: Include it.
24481         * modules/configmake: Move documentation from here.
24482
24483 2011-01-09  Bruno Haible  <bruno@clisp.org>
24484
24485         Update to Unicode 6.0.0.
24486         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24487         (get_lbp): Update for Unicode 6.0.0.
24488         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24489         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24490         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24491         U+11001, U+11038..U+11046. Remove U+06DE.
24492         (uc_width): Fix bounds of planes.
24493         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24494         lib/uniwidth/width.c.
24495         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24496         trailing whitespace removed.
24497         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24498         without comments, but with the original copyright notice.
24499         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24500         * lib/unicase/ignorable.h: Likewise.
24501         * lib/unicase/tocasefold.h: Likewise.
24502         * lib/unicase/tolower.h: Likewise.
24503         * lib/unicase/totitle.h: Likewise.
24504         * lib/unicase/toupper.h: Likewise.
24505         * lib/unictype/bidi_of.h: Likewise.
24506         * lib/unictype/blocks.h: Likewise.
24507         * lib/unictype/categ_C.h: Likewise.
24508         * lib/unictype/categ_Cn.h: Likewise.
24509         * lib/unictype/categ_L.h: Likewise.
24510         * lib/unictype/categ_Ll.h: Likewise.
24511         * lib/unictype/categ_Lm.h: Likewise.
24512         * lib/unictype/categ_Lo.h: Likewise.
24513         * lib/unictype/categ_Lu.h: Likewise.
24514         * lib/unictype/categ_M.h: Likewise.
24515         * lib/unictype/categ_Mc.h: Likewise.
24516         * lib/unictype/categ_Me.h: Likewise.
24517         * lib/unictype/categ_Mn.h: Likewise.
24518         * lib/unictype/categ_N.h: Likewise.
24519         * lib/unictype/categ_Nd.h: Likewise.
24520         * lib/unictype/categ_No.h: Likewise.
24521         * lib/unictype/categ_P.h: Likewise.
24522         * lib/unictype/categ_Po.h: Likewise.
24523         * lib/unictype/categ_S.h: Likewise.
24524         * lib/unictype/categ_Sc.h: Likewise.
24525         * lib/unictype/categ_Sk.h: Likewise.
24526         * lib/unictype/categ_Sm.h: Likewise.
24527         * lib/unictype/categ_So.h: Likewise.
24528         * lib/unictype/categ_of.h: Likewise.
24529         * lib/unictype/combining.h: Likewise.
24530         * lib/unictype/ctype_alnum.h: Likewise.
24531         * lib/unictype/ctype_alpha.h: Likewise.
24532         * lib/unictype/ctype_graph.h: Likewise.
24533         * lib/unictype/ctype_lower.h: Likewise.
24534         * lib/unictype/ctype_print.h: Likewise.
24535         * lib/unictype/ctype_punct.h: Likewise.
24536         * lib/unictype/ctype_upper.h: Likewise.
24537         * lib/unictype/decdigit.h: Likewise.
24538         * lib/unictype/digit.h: Likewise.
24539         * lib/unictype/numeric.h: Likewise.
24540         * lib/unictype/pr_alphabetic.h: Likewise.
24541         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24542         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24543         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24544         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24545         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24546         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24547         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24548         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24549         * lib/unictype/pr_case_ignorable.h: Likewise.
24550         * lib/unictype/pr_cased.h: Likewise.
24551         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24552         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24553         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24554         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24555         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24556         * lib/unictype/pr_combining.h: Likewise.
24557         * lib/unictype/pr_composite.h: Likewise.
24558         * lib/unictype/pr_currency_symbol.h: Likewise.
24559         * lib/unictype/pr_decimal_digit.h: Likewise.
24560         * lib/unictype/pr_deprecated.h: Likewise.
24561         * lib/unictype/pr_format_control.h: Likewise.
24562         * lib/unictype/pr_grapheme_base.h: Likewise.
24563         * lib/unictype/pr_grapheme_extend.h: Likewise.
24564         * lib/unictype/pr_grapheme_link.h: Likewise.
24565         * lib/unictype/pr_id_continue.h: Likewise.
24566         * lib/unictype/pr_id_start.h: Likewise.
24567         * lib/unictype/pr_ideographic.h: Likewise.
24568         * lib/unictype/pr_lowercase.h: Likewise.
24569         * lib/unictype/pr_math.h: Likewise.
24570         * lib/unictype/pr_numeric.h: Likewise.
24571         * lib/unictype/pr_other_alphabetic.h: Likewise.
24572         * lib/unictype/pr_other_id_continue.h: Likewise.
24573         * lib/unictype/pr_other_math.h: Likewise.
24574         * lib/unictype/pr_punctuation.h: Likewise.
24575         * lib/unictype/pr_sentence_terminal.h: Likewise.
24576         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24577         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24578         * lib/unictype/pr_unified_ideograph.h: Likewise.
24579         * lib/unictype/pr_uppercase.h: Likewise.
24580         * lib/unictype/pr_xid_continue.h: Likewise.
24581         * lib/unictype/pr_xid_start.h: Likewise.
24582         * lib/unictype/scripts.h: Likewise.
24583         * lib/unictype/scripts_byname.gperf: Likewise.
24584         * lib/unictype/sy_java_ident.h: Likewise.
24585         * lib/unigbrk/gbrkprop.h: Likewise.
24586         * lib/unilbrk/lbrkprop1.h: Likewise.
24587         * lib/unilbrk/lbrkprop2.h: Likewise.
24588         * lib/uninorm/decomposition-table2.h: Likewise.
24589         * lib/uniwbrk/wbrkprop.h: Likewise.
24590         * tests/unicase/test-cased.c: Likewise.
24591         * tests/unicase/test-ignorable.c: Likewise.
24592         * tests/unicase/test-uc_tolower.c: Likewise.
24593         * tests/unicase/test-uc_totitle.c: Likewise.
24594         * tests/unicase/test-uc_toupper.c: Likewise.
24595         * tests/unictype/test-categ_C.c: Likewise.
24596         * tests/unictype/test-categ_Cn.c: Likewise.
24597         * tests/unictype/test-categ_L.c: Likewise.
24598         * tests/unictype/test-categ_Ll.c: Likewise.
24599         * tests/unictype/test-categ_Lm.c: Likewise.
24600         * tests/unictype/test-categ_Lo.c: Likewise.
24601         * tests/unictype/test-categ_Lu.c: Likewise.
24602         * tests/unictype/test-categ_M.c: Likewise.
24603         * tests/unictype/test-categ_Mc.c: Likewise.
24604         * tests/unictype/test-categ_Me.c: Likewise.
24605         * tests/unictype/test-categ_Mn.c: Likewise.
24606         * tests/unictype/test-categ_N.c: Likewise.
24607         * tests/unictype/test-categ_Nd.c: Likewise.
24608         * tests/unictype/test-categ_No.c: Likewise.
24609         * tests/unictype/test-categ_P.c: Likewise.
24610         * tests/unictype/test-categ_Po.c: Likewise.
24611         * tests/unictype/test-categ_S.c: Likewise.
24612         * tests/unictype/test-categ_Sc.c: Likewise.
24613         * tests/unictype/test-categ_Sk.c: Likewise.
24614         * tests/unictype/test-categ_Sm.c: Likewise.
24615         * tests/unictype/test-categ_So.c: Likewise.
24616         * tests/unictype/test-ctype_alnum.c: Likewise.
24617         * tests/unictype/test-ctype_alpha.c: Likewise.
24618         * tests/unictype/test-ctype_graph.c: Likewise.
24619         * tests/unictype/test-ctype_lower.c: Likewise.
24620         * tests/unictype/test-ctype_print.c: Likewise.
24621         * tests/unictype/test-ctype_punct.c: Likewise.
24622         * tests/unictype/test-ctype_upper.c: Likewise.
24623         * tests/unictype/test-decdigit.h: Likewise.
24624         * tests/unictype/test-digit.h: Likewise.
24625         * tests/unictype/test-numeric.h: Likewise.
24626         * tests/unictype/test-pr_alphabetic.c: Likewise.
24627         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24628         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24629         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24630         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24631         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24632         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24633         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24634         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24635         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24636         * tests/unictype/test-pr_cased.c: Likewise.
24637         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24638         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24639         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24640         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24641         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24642         * tests/unictype/test-pr_combining.c: Likewise.
24643         * tests/unictype/test-pr_composite.c: Likewise.
24644         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24645         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24646         * tests/unictype/test-pr_deprecated.c: Likewise.
24647         * tests/unictype/test-pr_format_control.c: Likewise.
24648         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24649         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24650         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24651         * tests/unictype/test-pr_id_continue.c: Likewise.
24652         * tests/unictype/test-pr_id_start.c: Likewise.
24653         * tests/unictype/test-pr_ideographic.c: Likewise.
24654         * tests/unictype/test-pr_lowercase.c: Likewise.
24655         * tests/unictype/test-pr_math.c: Likewise.
24656         * tests/unictype/test-pr_numeric.c: Likewise.
24657         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24658         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24659         * tests/unictype/test-pr_other_math.c: Likewise.
24660         * tests/unictype/test-pr_punctuation.c: Likewise.
24661         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24662         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24663         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24664         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24665         * tests/unictype/test-pr_uppercase.c: Likewise.
24666         * tests/unictype/test-pr_xid_continue.c: Likewise.
24667         * tests/unictype/test-pr_xid_start.c: Likewise.
24668         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24669         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24670         changes.
24671         * lib/unictype/categ_Cc.h: Likewise.
24672         * lib/unictype/categ_Cf.h: Likewise.
24673         * lib/unictype/categ_Co.h: Likewise.
24674         * lib/unictype/categ_Cs.h: Likewise.
24675         * lib/unictype/categ_Lt.h: Likewise.
24676         * lib/unictype/categ_Nl.h: Likewise.
24677         * lib/unictype/categ_Pc.h: Likewise.
24678         * lib/unictype/categ_Pd.h: Likewise.
24679         * lib/unictype/categ_Pe.h: Likewise.
24680         * lib/unictype/categ_Pf.h: Likewise.
24681         * lib/unictype/categ_Pi.h: Likewise.
24682         * lib/unictype/categ_Ps.h: Likewise.
24683         * lib/unictype/categ_Z.h: Likewise.
24684         * lib/unictype/categ_Zl.h: Likewise.
24685         * lib/unictype/categ_Zp.h: Likewise.
24686         * lib/unictype/categ_Zs.h: Likewise.
24687         * lib/unictype/ctype_blank.h: Likewise.
24688         * lib/unictype/ctype_cntrl.h: Likewise.
24689         * lib/unictype/ctype_digit.h: Likewise.
24690         * lib/unictype/ctype_space.h: Likewise.
24691         * lib/unictype/ctype_xdigit.h: Likewise.
24692         * lib/unictype/mirror.h: Likewise.
24693         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24694         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24695         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24696         * lib/unictype/pr_bidi_control.h: Likewise.
24697         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24698         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24699         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24700         * lib/unictype/pr_bidi_pdf.h: Likewise.
24701         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24702         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24703         * lib/unictype/pr_dash.h: Likewise.
24704         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24705         * lib/unictype/pr_diacritic.h: Likewise.
24706         * lib/unictype/pr_extender.h: Likewise.
24707         * lib/unictype/pr_hex_digit.h: Likewise.
24708         * lib/unictype/pr_hyphen.h: Likewise.
24709         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24710         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24711         * lib/unictype/pr_ignorable_control.h: Likewise.
24712         * lib/unictype/pr_iso_control.h: Likewise.
24713         * lib/unictype/pr_join_control.h: Likewise.
24714         * lib/unictype/pr_left_of_pair.h: Likewise.
24715         * lib/unictype/pr_line_separator.h: Likewise.
24716         * lib/unictype/pr_logical_order_exception.h: Likewise.
24717         * lib/unictype/pr_non_break.h: Likewise.
24718         * lib/unictype/pr_not_a_character.h: Likewise.
24719         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24720         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24721         * lib/unictype/pr_other_id_start.h: Likewise.
24722         * lib/unictype/pr_other_lowercase.h: Likewise.
24723         * lib/unictype/pr_other_uppercase.h: Likewise.
24724         * lib/unictype/pr_paired_punctuation.h: Likewise.
24725         * lib/unictype/pr_paragraph_separator.h: Likewise.
24726         * lib/unictype/pr_pattern_syntax.h: Likewise.
24727         * lib/unictype/pr_pattern_white_space.h: Likewise.
24728         * lib/unictype/pr_private_use.h: Likewise.
24729         * lib/unictype/pr_quotation_mark.h: Likewise.
24730         * lib/unictype/pr_radical.h: Likewise.
24731         * lib/unictype/pr_soft_dotted.h: Likewise.
24732         * lib/unictype/pr_space.h: Likewise.
24733         * lib/unictype/pr_titlecase.h: Likewise.
24734         * lib/unictype/pr_variation_selector.h: Likewise.
24735         * lib/unictype/pr_white_space.h: Likewise.
24736         * lib/unictype/pr_zero_width.h: Likewise.
24737         * lib/unictype/sy_c_ident.h: Likewise.
24738         * lib/unictype/sy_c_whitespace.h: Likewise.
24739         * lib/unictype/sy_java_whitespace.h: Likewise.
24740         * lib/uninorm/composition-table.gperf: Likewise.
24741         * lib/uninorm/decomposition-table1.h: Likewise.
24742         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24743         LB8.
24744         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24745         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24746         * modules/unictype/*: Bump version number of expected libunistring
24747         version.
24748
24749 2011-01-09  Bruno Haible  <bruno@clisp.org>
24750
24751         Update to Unicode 5.2.0.
24752         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24753         trailing whitespace removed.
24754
24755 2011-01-09  Bruno Haible  <bruno@clisp.org>
24756
24757         New Unicode character properties, from Unicode 5.2.0.
24758         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24759         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24760         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24761         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24762         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24763         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24764         uc_is_property_cased, uc_is_property_case_ignorable,
24765         uc_is_property_changes_when_lowercased,
24766         uc_is_property_changes_when_uppercased,
24767         uc_is_property_changes_when_titlecased,
24768         uc_is_property_changes_when_casefolded,
24769         uc_is_property_changes_when_casemapped): New declarations.
24770         * lib/unictype/pr_byname.gperf: Add the new properties.
24771         * modules/unictype/property-byname (Depends-on): Depend on the new
24772         properties modules.
24773         * modules/unictype/property-all (Depends-on): Likewise.
24774         * MODULES.html.sh (Unicode string functions): Add
24775         unictype/property-case-ignorable, unictype/property-cased,
24776         unictype/property-changes-when-casefolded,
24777         unictype/property-changes-when-casemapped,
24778         unictype/property-changes-when-lowercased,
24779         unictype/property-changes-when-titlecased,
24780         unictype/property-changes-when-uppercased.
24781
24782         New module 'unictype/property-changes-when-casemapped'.
24783         * modules/unictype/property-changes-when-casemapped: New file.
24784         * lib/unictype/pr_changes_when_casemapped.c: New file.
24785         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24786         generated by gen-uni-tables.
24787         * modules/unictype/property-changes-when-casemapped-tests: New file.
24788         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24789         automatically generated by gen-uni-tables.
24790
24791         New module 'unictype/property-changes-when-casefolded'.
24792         * modules/unictype/property-changes-when-casefolded: New file.
24793         * lib/unictype/pr_changes_when_casefolded.c: New file.
24794         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24795         generated by gen-uni-tables.
24796         * modules/unictype/property-changes-when-casefolded-tests: New file.
24797         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24798         automatically generated by gen-uni-tables.
24799
24800         New module 'unictype/property-changes-when-titlecased'.
24801         * modules/unictype/property-changes-when-titlecased: New file.
24802         * lib/unictype/pr_changes_when_titlecased.c: New file.
24803         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24804         generated by gen-uni-tables.
24805         * modules/unictype/property-changes-when-titlecased-tests: New file.
24806         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24807         automatically generated by gen-uni-tables.
24808
24809         New module 'unictype/property-changes-when-uppercased'.
24810         * modules/unictype/property-changes-when-uppercased: New file.
24811         * lib/unictype/pr_changes_when_uppercased.c: New file.
24812         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24813         generated by gen-uni-tables.
24814         * modules/unictype/property-changes-when-uppercased-tests: New file.
24815         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24816         automatically generated by gen-uni-tables.
24817
24818         New module 'unictype/property-changes-when-lowercased'.
24819         * modules/unictype/property-changes-when-lowercased: New file.
24820         * lib/unictype/pr_changes_when_lowercased.c: New file.
24821         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24822         generated by gen-uni-tables.
24823         * modules/unictype/property-changes-when-lowercased-tests: New file.
24824         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24825         automatically generated by gen-uni-tables.
24826
24827         New module 'unictype/property-case-ignorable'.
24828         * modules/unictype/property-case-ignorable: New file.
24829         * lib/unictype/pr_case_ignorable.c: New file.
24830         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24831         by gen-uni-tables.
24832         * modules/unictype/property-case-ignorable-tests: New file.
24833         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24834         generated by gen-uni-tables.
24835
24836         New module 'unictype/property-cased'.
24837         * modules/unictype/property-cased: New file.
24838         * lib/unictype/pr_cased.c: New file.
24839         * lib/unictype/pr_cased.h: New file, automatically generated by
24840         gen-uni-tables.
24841         * modules/unictype/property-cased-tests: New file.
24842         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24843         gen-uni-tables.
24844
24845 2011-01-09  Bruno Haible  <bruno@clisp.org>
24846
24847         Update to Unicode 5.2.0.
24848         * lib/gen-uni-tables.c (output_predicate, output_category,
24849         output_combclass, output_bidi_category, output_decimal_digit_test,
24850         output_decimal_digit, output_digit_test, output_digit,
24851         output_numeric_test, output_numeric, output_mirror, output_scripts,
24852         output_scripts_byname, output_blocks, output_ident_category): Fix
24853         comment header.
24854         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24855         get_wbp.
24856         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24857         items.
24858         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24859         Changes_When_Lowercased, Changes_When_Uppercased,
24860         Changes_When_Titlecased, Changes_When_Casefolded,
24861         Changes_When_Casemapped.
24862         (is_property_alphabetic, is_property_default_ignorable_code_point):
24863         Update for Unicode 5.2.0.
24864         (is_property_cased, is_property_case_ignorable,
24865         is_property_changes_when_lowercased,
24866         is_property_changes_when_uppercased,
24867         is_property_changes_when_titlecased,
24868         is_property_changes_when_casefolded,
24869         is_property_changes_when_casemapped): New functions.
24870         (output_properties): Output also the properties cased, case_ignorable,
24871         changes_when_lowercased, changes_when_uppercased,
24872         changes_when_titlecased, changes_when_casefolded,
24873         changes_when_casemapped.
24874         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24875         Unicode TR#11 revision 17 -> 19.
24876         (LBP_CP): New enumeration value.
24877         (LBP_*): Adjust values accordingly.
24878         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24879         TR#14 revision 22 -> 24.
24880         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24881         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24882         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24883         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24884         is_WBP_MIDLETTER.
24885         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24886         the code1 and code2 of each composition rule.
24887         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24888         * lib/unicase/ignorable.h: Likewise.
24889         * lib/unicase/tocasefold.h: Likewise.
24890         * lib/unicase/tolower.h: Likewise.
24891         * lib/unicase/totitle.h: Likewise.
24892         * lib/unicase/toupper.h: Likewise.
24893         * lib/unictype/bidi_of.h: Likewise.
24894         * lib/unictype/blocks.h: Likewise.
24895         * lib/unictype/categ_C.h: Likewise.
24896         * lib/unictype/categ_Cf.h: Likewise.
24897         * lib/unictype/categ_Cn.h: Likewise.
24898         * lib/unictype/categ_L.h: Likewise.
24899         * lib/unictype/categ_Ll.h: Likewise.
24900         * lib/unictype/categ_Lm.h: Likewise.
24901         * lib/unictype/categ_Lo.h: Likewise.
24902         * lib/unictype/categ_Lu.h: Likewise.
24903         * lib/unictype/categ_M.h: Likewise.
24904         * lib/unictype/categ_Mc.h: Likewise.
24905         * lib/unictype/categ_Mn.h: Likewise.
24906         * lib/unictype/categ_N.h: Likewise.
24907         * lib/unictype/categ_Nd.h: Likewise.
24908         * lib/unictype/categ_Nl.h: Likewise.
24909         * lib/unictype/categ_No.h: Likewise.
24910         * lib/unictype/categ_P.h: Likewise.
24911         * lib/unictype/categ_Pd.h: Likewise.
24912         * lib/unictype/categ_Po.h: Likewise.
24913         * lib/unictype/categ_S.h: Likewise.
24914         * lib/unictype/categ_Sc.h: Likewise.
24915         * lib/unictype/categ_So.h: Likewise.
24916         * lib/unictype/categ_of.h: Likewise.
24917         * lib/unictype/combining.h: Likewise.
24918         * lib/unictype/ctype_alnum.h: Likewise.
24919         * lib/unictype/ctype_alpha.h: Likewise.
24920         * lib/unictype/ctype_graph.h: Likewise.
24921         * lib/unictype/ctype_lower.h: Likewise.
24922         * lib/unictype/ctype_print.h: Likewise.
24923         * lib/unictype/ctype_punct.h: Likewise.
24924         * lib/unictype/ctype_upper.h: Likewise.
24925         * lib/unictype/decdigit.h: Likewise.
24926         * lib/unictype/digit.h: Likewise.
24927         * lib/unictype/numeric.h: Likewise.
24928         * lib/unictype/pr_alphabetic.h: Likewise.
24929         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24930         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24931         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24932         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24933         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24934         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24935         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24936         * lib/unictype/pr_combining.h: Likewise.
24937         * lib/unictype/pr_composite.h: Likewise.
24938         * lib/unictype/pr_currency_symbol.h: Likewise.
24939         * lib/unictype/pr_dash.h: Likewise.
24940         * lib/unictype/pr_decimal_digit.h: Likewise.
24941         * lib/unictype/pr_deprecated.h: Likewise.
24942         * lib/unictype/pr_diacritic.h: Likewise.
24943         * lib/unictype/pr_extender.h: Likewise.
24944         * lib/unictype/pr_grapheme_base.h: Likewise.
24945         * lib/unictype/pr_grapheme_extend.h: Likewise.
24946         * lib/unictype/pr_grapheme_link.h: Likewise.
24947         * lib/unictype/pr_id_continue.h: Likewise.
24948         * lib/unictype/pr_id_start.h: Likewise.
24949         * lib/unictype/pr_ideographic.h: Likewise.
24950         * lib/unictype/pr_ignorable_control.h: Likewise.
24951         * lib/unictype/pr_logical_order_exception.h: Likewise.
24952         * lib/unictype/pr_lowercase.h: Likewise.
24953         * lib/unictype/pr_numeric.h: Likewise.
24954         * lib/unictype/pr_other_alphabetic.h: Likewise.
24955         * lib/unictype/pr_punctuation.h: Likewise.
24956         * lib/unictype/pr_sentence_terminal.h: Likewise.
24957         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24958         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24959         * lib/unictype/pr_unified_ideograph.h: Likewise.
24960         * lib/unictype/pr_uppercase.h: Likewise.
24961         * lib/unictype/pr_xid_continue.h: Likewise.
24962         * lib/unictype/pr_xid_start.h: Likewise.
24963         * lib/unictype/pr_zero_width.h: Likewise.
24964         * lib/unictype/scripts.h: Likewise.
24965         * lib/unictype/scripts_byname.gperf: Likewise.
24966         * lib/unictype/sy_java_ident.h: Likewise.
24967         * lib/unigbrk/gbrkprop.h: Likewise.
24968         * lib/unilbrk/lbrkprop1.h: Likewise.
24969         * lib/unilbrk/lbrkprop2.h: Likewise.
24970         * lib/unilbrk/lbrktables.h: Likewise.
24971         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24972         LBP_CP. Implement rule LB30.
24973         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24974         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24975         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24976         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24977         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24978         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24979         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24980         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24981         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24982         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24983         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24984         bits instead of 16 bits in the code1 and code2 of each composition
24985         rule.
24986         (uc_composition): Update for Unicode 5.2.0.
24987         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24988         * lib/uninorm/decomposition-table2.h: Likewise.
24989         * lib/uniwbrk/wbrkprop.h: Likewise.
24990         * tests/unicase/test-cased.c: Likewise.
24991         * tests/unicase/test-ignorable.c: Likewise.
24992         * tests/unicase/test-uc_tolower.c: Likewise.
24993         * tests/unicase/test-uc_totitle.c: Likewise.
24994         * tests/unicase/test-uc_toupper.c: Likewise.
24995         * tests/unictype/test-categ_C.c: Likewise.
24996         * tests/unictype/test-categ_Cf.c: Likewise.
24997         * tests/unictype/test-categ_Cn.c: Likewise.
24998         * tests/unictype/test-categ_L.c: Likewise.
24999         * tests/unictype/test-categ_Ll.c: Likewise.
25000         * tests/unictype/test-categ_Lm.c: Likewise.
25001         * tests/unictype/test-categ_Lo.c: Likewise.
25002         * tests/unictype/test-categ_Lu.c: Likewise.
25003         * tests/unictype/test-categ_M.c: Likewise.
25004         * tests/unictype/test-categ_Mc.c: Likewise.
25005         * tests/unictype/test-categ_Mn.c: Likewise.
25006         * tests/unictype/test-categ_N.c: Likewise.
25007         * tests/unictype/test-categ_Nd.c: Likewise.
25008         * tests/unictype/test-categ_Nl.c: Likewise.
25009         * tests/unictype/test-categ_No.c: Likewise.
25010         * tests/unictype/test-categ_P.c: Likewise.
25011         * tests/unictype/test-categ_Pd.c: Likewise.
25012         * tests/unictype/test-categ_Po.c: Likewise.
25013         * tests/unictype/test-categ_S.c: Likewise.
25014         * tests/unictype/test-categ_Sc.c: Likewise.
25015         * tests/unictype/test-categ_So.c: Likewise.
25016         * tests/unictype/test-ctype_alnum.c: Likewise.
25017         * tests/unictype/test-ctype_alpha.c: Likewise.
25018         * tests/unictype/test-ctype_graph.c: Likewise.
25019         * tests/unictype/test-ctype_lower.c: Likewise.
25020         * tests/unictype/test-ctype_print.c: Likewise.
25021         * tests/unictype/test-ctype_punct.c: Likewise.
25022         * tests/unictype/test-ctype_upper.c: Likewise.
25023         * tests/unictype/test-decdigit.h: Likewise.
25024         * tests/unictype/test-digit.h: Likewise.
25025         * tests/unictype/test-numeric.h: Likewise.
25026         * tests/unictype/test-pr_alphabetic.c: Likewise.
25027         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25028         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25029         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25030         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25031         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25032         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25033         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25034         * tests/unictype/test-pr_combining.c: Likewise.
25035         * tests/unictype/test-pr_composite.c: Likewise.
25036         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25037         * tests/unictype/test-pr_dash.c: Likewise.
25038         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25039         * tests/unictype/test-pr_deprecated.c: Likewise.
25040         * tests/unictype/test-pr_diacritic.c: Likewise.
25041         * tests/unictype/test-pr_extender.c: Likewise.
25042         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25043         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25044         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25045         * tests/unictype/test-pr_id_continue.c: Likewise.
25046         * tests/unictype/test-pr_id_start.c: Likewise.
25047         * tests/unictype/test-pr_ideographic.c: Likewise.
25048         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25049         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25050         * tests/unictype/test-pr_lowercase.c: Likewise.
25051         * tests/unictype/test-pr_numeric.c: Likewise.
25052         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25053         * tests/unictype/test-pr_punctuation.c: Likewise.
25054         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25055         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25056         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25057         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25058         * tests/unictype/test-pr_uppercase.c: Likewise.
25059         * tests/unictype/test-pr_xid_continue.c: Likewise.
25060         * tests/unictype/test-pr_xid_start.c: Likewise.
25061         * tests/unictype/test-pr_zero_width.c: Likewise.
25062         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25063         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25064         changed behaviour: line breaking is now disallowed between a letter
25065         or '=' and '('.
25066         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25067         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25068         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25069         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25070         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25071         lib/uniwidth/width.c.
25072         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25073         without comments, but with the original copyright notice.
25074         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25075         changes.
25076         * lib/unictype/categ_Cc.h: Likewise.
25077         * lib/unictype/categ_Co.h: Likewise.
25078         * lib/unictype/categ_Cs.h: Likewise.
25079         * lib/unictype/categ_Lt.h: Likewise.
25080         * lib/unictype/categ_Me.h: Likewise.
25081         * lib/unictype/categ_Pc.h: Likewise.
25082         * lib/unictype/categ_Pe.h: Likewise.
25083         * lib/unictype/categ_Pf.h: Likewise.
25084         * lib/unictype/categ_Pi.h: Likewise.
25085         * lib/unictype/categ_Ps.h: Likewise.
25086         * lib/unictype/categ_Sk.h: Likewise.
25087         * lib/unictype/categ_Sm.h: Likewise.
25088         * lib/unictype/categ_Z.h: Likewise.
25089         * lib/unictype/categ_Zl.h: Likewise.
25090         * lib/unictype/categ_Zp.h: Likewise.
25091         * lib/unictype/categ_Zs.h: Likewise.
25092         * lib/unictype/ctype_blank.h: Likewise.
25093         * lib/unictype/ctype_cntrl.h: Likewise.
25094         * lib/unictype/ctype_digit.h: Likewise.
25095         * lib/unictype/ctype_space.h: Likewise.
25096         * lib/unictype/ctype_xdigit.h: Likewise.
25097         * lib/unictype/mirror.h: Likewise.
25098         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25099         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25100         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25101         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25102         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25103         * lib/unictype/pr_bidi_control.h: Likewise.
25104         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25105         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25106         * lib/unictype/pr_bidi_pdf.h: Likewise.
25107         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25108         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25109         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25110         * lib/unictype/pr_format_control.h: Likewise.
25111         * lib/unictype/pr_hex_digit.h: Likewise.
25112         * lib/unictype/pr_hyphen.h: Likewise.
25113         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25114         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25115         * lib/unictype/pr_iso_control.h: Likewise.
25116         * lib/unictype/pr_join_control.h: Likewise.
25117         * lib/unictype/pr_left_of_pair.h: Likewise.
25118         * lib/unictype/pr_line_separator.h: Likewise.
25119         * lib/unictype/pr_math.h: Likewise.
25120         * lib/unictype/pr_non_break.h: Likewise.
25121         * lib/unictype/pr_not_a_character.h: Likewise.
25122         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25123         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25124         * lib/unictype/pr_other_id_continue.h: Likewise.
25125         * lib/unictype/pr_other_id_start.h: Likewise.
25126         * lib/unictype/pr_other_lowercase.h: Likewise.
25127         * lib/unictype/pr_other_math.h: Likewise.
25128         * lib/unictype/pr_other_uppercase.h: Likewise.
25129         * lib/unictype/pr_paired_punctuation.h: Likewise.
25130         * lib/unictype/pr_paragraph_separator.h: Likewise.
25131         * lib/unictype/pr_pattern_syntax.h: Likewise.
25132         * lib/unictype/pr_pattern_white_space.h: Likewise.
25133         * lib/unictype/pr_private_use.h: Likewise.
25134         * lib/unictype/pr_quotation_mark.h: Likewise.
25135         * lib/unictype/pr_radical.h: Likewise.
25136         * lib/unictype/pr_soft_dotted.h: Likewise.
25137         * lib/unictype/pr_space.h: Likewise.
25138         * lib/unictype/pr_titlecase.h: Likewise.
25139         * lib/unictype/pr_variation_selector.h: Likewise.
25140         * lib/unictype/pr_white_space.h: Likewise.
25141         * lib/unictype/sy_c_ident.h: Likewise.
25142         * lib/unictype/sy_c_whitespace.h: Likewise.
25143         * lib/unictype/sy_java_whitespace.h: Likewise.
25144         * modules/uni*/*: Bump version number of expected libunistring version.
25145         Reported by Simon Josefsson.
25146
25147 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25148
25149         useless-if-before-free: fix typo in --help and make the internal,
25150         automatic version date update process work once again.
25151         --help output contained a NUL character instead of the
25152         backslash-zero that was intended.  Also, the "must lie within
25153         the first 8 lines" line is on line 9, and hence not getting
25154         automatically updated.
25155         * build-aux/useless-if-before-free: Fix the former by adding a
25156         backslash, and the latter by condensing the three lines of what-it-does
25157         to a single line, leaving one line of slack for the future.
25158
25159 2011-01-09  Bruno Haible  <bruno@clisp.org>
25160
25161         uniwidth/width: Fix width of U+1D173..U+1D17A.
25162         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25163         symbolic_width, output_width_property_test): New functions.
25164         (main): Invoke output_nonspacing_property, output_width_property_test.
25165         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25166         U+1D173..U+1D17A.
25167         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25168         1.
25169         * modules/uniwidth/*: Bump version number of expected libunistring
25170         version.
25171         * modules/unilbrk/*: Likewise.
25172
25173 2011-01-08  Bruno Haible  <bruno@clisp.org>
25174
25175         uninorm tests: Preserve copyright of Unicode data file.
25176         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25177         Mention modifications.
25178
25179 2011-01-08  Bruno Haible  <bruno@clisp.org>
25180
25181         gen-uni-tables: Prepare for Unicode 5.2.0.
25182         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25183         (debug_output_lbp, output_lbp): Update.
25184
25185 2011-01-08  Bruno Haible  <bruno@clisp.org>
25186
25187         unilbrk: Clarify gen-uni-tables.c code.
25188         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25189         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25190         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25191
25192 2011-01-07  Bruno Haible  <bruno@clisp.org>
25193
25194         strtod: Restore errno when successfully parsing Infinity or NaN.
25195         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25196         restore the original errno.
25197
25198 2011-01-07  Bruno Haible  <bruno@clisp.org>
25199
25200         remove test: Avoid failure on HP-UX 11.
25201         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25202
25203 2011-01-07  Bruno Haible  <bruno@clisp.org>
25204
25205         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25206         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25207         error code.
25208
25209 2011-01-07  Pádraig Brady <P@draigBrady.com>
25210
25211         ignore-value: fixup comments, and add Eric Blake
25212         as an author since he rewrote the macros.
25213         * lib/ignore-value.h (ignore_value):  State that
25214         we now support aggregates.  Also specify exactly
25215         when the GCC warn_unused_result feature was added.
25216
25217 2011-01-06  Eric Blake  <eblake@redhat.com>
25218
25219         ignore-value: support aggregate types
25220         * lib/ignore-value.h (ignore_value): Provide separate gcc
25221         definition.
25222         * modules/ignore-value-tests: New test module.
25223         * tests/test-ignore-value.c: New test.
25224
25225         maint.mk: improve sc_prohibit_strcmp regex
25226         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25227         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25228         definition of STRNEQ.
25229
25230         signal: work around Haiku issue with SIGBUS
25231         * lib/siglist.h: Add comment.
25232         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25233         strsignal's favoring of SIGSEGV.
25234         * tests/test-signal.c (main): Avoid test failure.
25235         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25236         Reported by Scott McCreary.
25237
25238         maint.mk: add pre-release check to ensure submodule commits are public
25239         * top/maint.mk (public-submodule-commit): New rule.
25240         (submodule-checks): New variable.
25241         (alpha beta stable): Depend on the variable.
25242
25243 2011-01-05  Pádraig Brady <P@draigBrady.com>
25244         and Jim Meyering  <meyering@redhat.com>
25245
25246         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25247         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25248         (ATTRIBUTE_DEPRECATED): Define.
25249         (_ignore_case): New function.
25250         (ignore_value): New macro, to replace the old function.
25251         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25252         * modules/ignore-value (Depends-on): Add stdint.
25253
25254 2011-01-04  Eric Blake  <eblake@redhat.com>
25255
25256         doc: regenerate INSTALL
25257         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25258         @firstparagraphindent support, now that autoconf dropped it.
25259         (INSTALL_PRELUDE): Reinstate old macro.
25260         * doc/install.texi: Resync from autoconf.
25261         * doc/INSTALL: Reflect recent autoconf update.
25262         * doc/INSTALL.ISO: Likewise.
25263         * doc/INSTALL.UTF-8: Likewise.
25264         Reported by Karl Berry.
25265
25266 2011-01-04  Bruce Korb  <address@hidden>
25267
25268         git-version-gen: avoid a sub-shell
25269         * build-aux/git-version-gen: Redirect stderr in `...` via
25270         "exec 2>...", rather than via an added sub-shell.
25271
25272 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25273
25274         git-version-gen: use (...) rather than sh -c '...'
25275         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25276         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25277
25278 2011-01-03  Jim Meyering  <meyering@redhat.com>
25279
25280         git-version-gen: convert leading TABs to spaces
25281         * build-aux/git-version-gen: Expand leading TABs.
25282
25283         git-version-gen: handle failed "git rev-list"
25284         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25285         from git and proceeding as if it had succeeded but printed no SHA1
25286         checksums, suppress the diagnostic and handle the failure.
25287         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25288
25289         git-version-gen: include command name in one more diagnostic
25290         * build-aux/git-version-gen: When the required .tarball-version file
25291         was missing or unreadable, you might see the diagnostic from "cat",
25292         but no trace of the name of the invoking script.  Now, you still see
25293         the diagnostic from cat, but also get one from "git-version-gen: ".
25294         Inspired by a patch from Bruce Korb.
25295
25296         update-copyright: adjust test to match changed code
25297         * tests/test-update-copyright.sh: Change test's expected output
25298         to match new actual output.
25299
25300 2011-01-02  Bruno Haible  <bruno@clisp.org>
25301
25302         getlogin_r: Avoid test failure on HP-UX 11.
25303         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25304         ERANGE when the second argument is zero.
25305         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25306         portability problem.
25307
25308 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25309
25310         * build-aux/update-copyright: doc Simon's changes
25311
25312 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25313
25314         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25315         environment variable.
25316
25317 2011-01-02  Bruno Haible  <bruno@clisp.org>
25318
25319         unigbrk: Avoid gcc warnings.
25320         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25321         unused variable.
25322         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25323         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25324         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25325         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25326         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25327         Change type of first argument to 'const char *'.
25328         (main): Remove unused variable.
25329         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25330         type of first argument to 'const char *'.
25331         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25332         Likewise.
25333         (main): Change type of variable 's'.
25334         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25335         to 'int'.
25336
25337 2011-01-02  Bruno Haible  <bruno@clisp.org>
25338
25339         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25340         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25341         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25342         bug.
25343         * lib/pwrite.c: Undo 2010-12-31 patch.
25344         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25345
25346 2011-01-02  Bruno Haible  <bruno@clisp.org>
25347
25348         pread: Fix test whether it works.
25349         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25350
25351 2011-01-02  Bruno Haible  <bruno@clisp.org>
25352
25353         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25354         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25355         ends in "6". Don't require a specific month name. Try also the locale
25356         names found on HP-UX 11 and Solaris 7.
25357
25358 2011-01-02  Bruno Haible  <bruno@clisp.org>
25359
25360         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25361         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25362         C linkage.
25363         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25364
25365 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25366
25367         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25368         for consistency, since the "cluster" term is not used elsewhere.
25369         * lib/unigbrk.in.h: Update name.
25370         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25371         * lib/unigbrk/u16-grapheme-next.c: Update name.
25372         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25373         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25374         * lib/unigbrk/u32-grapheme-next.c: Update name.
25375         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25376         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25377         * lib/unigbrk/u8-grapheme-next.c: Update name.
25378         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25379         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25380         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25381         Suggested by Bruno Haible.
25382
25383 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25384
25385         Remove module 'u8-grapheme-len' as too redundant with
25386         'u8-grapheme-next'.
25387         * modules/unigbrk/u8-grapheme-len: Delete file.
25388         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25389         * lib/unigbrk.in.h: Remove prototype for deleted function.
25390         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25391         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25392
25393         Remove module 'u16-grapheme-len' as too redundant with
25394         'u16-grapheme-next'.
25395         * modules/unigbrk/u16-grapheme-len: Delete file.
25396         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25397         * lib/unigbrk.in.h: Remove prototype for deleted function.
25398         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25399         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25400
25401         Remove module 'u32-grapheme-len' as too redundant with
25402         'u32-grapheme-next'.
25403         * modules/unigbrk/u32-grapheme-len: Delete file.
25404         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25405         * lib/unigbrk.in.h: Remove prototype for deleted function.
25406         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25407         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25408
25409         Suggested by Bruno Haible.
25410
25411 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25412
25413         * unigbrk.in.h: Fix typo: "ben" => "been".
25414         Reported by Bruno Haible.
25415
25416 2011-01-01  Jim Meyering  <meyering@redhat.com>
25417
25418         maint: update almost all copyright ranges to include 2011
25419         Run the new "make update-copyright" rule.
25420
25421 2011-01-01  Jim Meyering  <meyering@redhat.com>
25422
25423         maint: update-copyright: exempt doc/INSTALL*
25424         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25425         since they are generated.  Suggested by Bruno Haible.
25426
25427 2011-01-01  Jim Meyering  <meyering@redhat.com>
25428
25429         maint: refine the update-copyright rule
25430         * Makefile (update-copyright): Also exclude any file that includes
25431         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25432         code that merely generates the comment.
25433
25434 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25435
25436         New module 'u8-grapheme-len'.
25437         * modules/unigbrk/u8-grapheme-len: New file.
25438         * modules/unigbrk/u8-grapheme-len-tests: New file.
25439         * lib/unigbrk.in.h: Add prototype for new function.
25440         * lib/unigbrk/u8-grapheme-len.c: New file.
25441         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25442
25443         New module 'u16-grapheme-len'.
25444         * modules/unigbrk/u16-grapheme-len: New file.
25445         * modules/unigbrk/u16-grapheme-len-tests: New file.
25446         * lib/unigbrk.in.h: Add prototype for new function.
25447         * lib/unigbrk/u16-grapheme-len.c: New file.
25448         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25449
25450         New module 'u32-grapheme-len'.
25451         * modules/unigbrk/u32-grapheme-len: New file.
25452         * modules/unigbrk/u32-grapheme-len-tests: New file.
25453         * lib/unigbrk.in.h: Add prototype for new function.
25454         * lib/unigbrk/u32-grapheme-len.c: New file.
25455         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25456
25457         New module 'u8-grapheme-next'.
25458         * modules/unigbrk/u8-grapheme-next: New file.
25459         * modules/unigbrk/u8-grapheme-next-tests: New file.
25460         * lib/unigbrk.in.h: Add prototype for new function.
25461         * lib/unigbrk/u8-grapheme-next.c: New file.
25462         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25463
25464         New module 'u16-grapheme-next'.
25465         * modules/unigbrk/u16-grapheme-next: New file.
25466         * modules/unigbrk/u16-grapheme-next-tests: New file.
25467         * lib/unigbrk.in.h: Add prototype for new function.
25468         * lib/unigbrk/u16-grapheme-next.c: New file.
25469         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25470
25471         New module 'u32-grapheme-next'.
25472         * modules/unigbrk/u32-grapheme-next: New file.
25473         * modules/unigbrk/u32-grapheme-next-tests: New file.
25474         * lib/unigbrk.in.h: Add prototype for new function.
25475         * lib/unigbrk/u32-grapheme-next.c: New file.
25476         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25477
25478         New module 'u8-grapheme-prev'.
25479         * modules/unigbrk/u8-grapheme-prev: New file.
25480         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25481         * lib/unigbrk.in.h: Add prototype for new function.
25482         * lib/unigbrk/u8-grapheme-prev.c: New file.
25483         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25484
25485         New module 'u16-grapheme-prev'.
25486         * modules/unigbrk/u16-grapheme-prev: New file.
25487         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25488         * lib/unigbrk.in.h: Add prototype for new function.
25489         * lib/unigbrk/u16-grapheme-prev.c: New file.
25490         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25491
25492         New module 'u32-grapheme-prev'.
25493         * modules/unigbrk/u32-grapheme-prev: New file.
25494         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25495         * lib/unigbrk.in.h: Add prototype for new function.
25496         * lib/unigbrk/u32-grapheme-prev.c: New file.
25497         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25498
25499         New module 'u8-grapheme-breaks'.
25500         * modules/unigbrk/u8-grapheme-breaks: New file.
25501         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25502         * lib/unigbrk.in.h: Add prototype for new function.
25503         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25504         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25505
25506         New module 'u16-grapheme-breaks'.
25507         * modules/unigbrk/u16-grapheme-breaks: New file.
25508         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25509         * lib/unigbrk.in.h: Add prototype for new function.
25510         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25511         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25512
25513         New module 'u32-grapheme-breaks'.
25514         * modules/unigbrk/u32-grapheme-breaks: New file.
25515         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25516         * lib/unigbrk.in.h: Add prototype for new function.
25517         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25518         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25519
25520         New module 'ulc-grapheme-breaks'.
25521         * modules/unigbrk/ulc-grapheme-breaks: New file.
25522         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25523         * m4/locale-ar.m4: New file.
25524         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25525         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25526         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25527
25528 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25529
25530         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25531         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25532         modified how this file was generated before I initially submitted
25533         the module, but failed to regenerate it.  This meant that several
25534         of the level2 entries were wrong.
25535         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25536         Remove the division-by-2 that is folded into the table now that
25537         gbrkprop.h has been regenerated properly.  Now -1 entries are
25538         handled correctly.
25539
25540         New module 'unigbrk/uc-gbrk-prop-tests'.
25541         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25542         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25543         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25544         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25545
25546 2011-01-01  Bruno Haible  <bruno@clisp.org>
25547
25548         Avoid use of hexadecimal escapes.
25549         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25550         instead of hexadecimal escapes.
25551
25552 2011-01-01  Jim Meyering  <meyering@redhat.com>
25553
25554         maint: new rule to update copyright year ranges
25555         * Makefile (update-copyright): New rule.
25556
25557         maint: indent with TABs in Makefile
25558         * Makefile: Expand leading sequences of spaces to TABs
25559
25560         version-etc: update the copyright year it reports
25561         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25562
25563 2010-12-31  Bruno Haible  <bruno@clisp.org>
25564
25565         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25566         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25567         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25568         zero.
25569
25570 2010-12-31  Bruno Haible  <bruno@clisp.org>
25571
25572         pwrite: Work around HP-UX 11.11 bug.
25573         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25574         works and set REPLACE_PWRITE if not.
25575         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25576         function.
25577         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25578
25579 2010-12-31  Bruno Haible  <bruno@clisp.org>
25580
25581         pread: Work around HP-UX 11 bugs.
25582         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25583         and set REPLACE_PREAD if not.
25584         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25585
25586 2010-12-31  Eric Blake  <eblake@redhat.com>
25587
25588         nl_langinfo: fix YESEXPR on Irix 6.5
25589         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25590         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25591         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25592         it.
25593
25594 2010-12-31  Bruno Haible  <bruno@clisp.org>
25595
25596         iconv: Document HP-UX 11 bug.
25597         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25598
25599 2010-12-31  Bruno Haible  <bruno@clisp.org>
25600
25601         ldexpl: Fix link error on HP-UX 11.
25602         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25603         LDEXPL_LIBM, using $ISNANL_LIBM.
25604
25605 2010-12-31  Eric Blake  <eblake@redhat.com>
25606
25607         ftello: avoid compilation failure with SunStudio c89
25608         * lib/ftello.c (ftello): Use lseek, not llseek.
25609
25610         tests: avoid failing coreutils tests on cygwin
25611         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25612         (create_exe_shims_): Return 0 when skipping.
25613
25614 2010-12-31  Bruno Haible  <bruno@clisp.org>
25615
25616         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25617         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25618
25619 2010-12-31  Bruno Haible  <bruno@clisp.org>
25620
25621         waitpid: Fix link error in C++ mode.
25622         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25623
25624 2010-12-31  Bruno Haible  <bruno@clisp.org>
25625
25626         isnan: Use GCC built-ins when possible.
25627         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25628         __builtin_isnan.
25629         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25630         (isnan): Define using GCC built-ins for GCC >= 4.0.
25631
25632 2010-12-31  Bruno Haible  <bruno@clisp.org>
25633
25634         isnand: Fix mistake.
25635         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25636         __builtin_isnand.
25637
25638 2010-12-31  Bruno Haible  <bruno@clisp.org>
25639
25640         open: Avoid C++ error on HP-UX 11.
25641         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25642
25643 2010-12-31  Bruno Haible  <bruno@clisp.org>
25644
25645         time_r: Add missing declarations on HP-UX 11.
25646         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25647         instead of HAVE_LOCALTIME_R.
25648         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25649         HAVE_LOCALTIME_R always.
25650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25651         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25652         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25653         HAVE_LOCALTIME_R.
25654         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25655         * doc/posix-functions/localtime_r.texi: Likewise.
25656
25657 2010-12-29  Eric Blake  <eblake@redhat.com>
25658
25659         mountlist: tweak previous commit
25660         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25661         Reported by Paul Eggert.
25662
25663         mountlist: fix local drive detection on cygwin
25664         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25665         that works for cygwin.
25666
25667 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25668
25669         ftoastr, snprintf: ftoastr + snprintf module
25670         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25671         since the snprintf module now should be good enough here.
25672         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25673         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25674         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25675         GNULIB_SNPRINTF only for the test directory, and the latter
25676         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25677         seems to suffice by itself.
25678
25679 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25680
25681         alloca: one step towards thread-safety
25682         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25683         need for a static variable.  All callers changed.  This does not
25684         make the alloca replacement thread-safe, but it's one step.
25685
25686         tests: minor indenting change
25687         * tests/init.sh: Sync from coreutils housekeeping patch
25688         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25689         to keep lines within 80 columns.
25690
25691 2010-12-28  Jim Meyering  <meyering@redhat.com>
25692
25693         regex: don't infloop on persistent failing calloc
25694         * lib/regexec.c (build_trtable): Return failure indication upon
25695         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25696         In glibc, this was fixed for version 2.13:
25697         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25698
25699 2010-12-28  Bruno Haible  <bruno@clisp.org>
25700             Paul Eggert <eggert@cs.ucla.edu>
25701
25702         linkat: Make implementation robust against system behaviour variations.
25703         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25704         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25705         way, and to -2 if it needs a generic runtime test.
25706         * lib/linkat.c (solaris_optimized_link_immediate,
25707         solaris_optimized_link_follow): New functions.
25708         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25709         (check_same_link): Use it.
25710
25711 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25712
25713         New module 'unigbrk/base'.
25714         * modules/unigbrk/base: New file.
25715         * lib/unigbrk.in.h: New file.
25716
25717         New module 'unigbrk/uc-gbrk-prop'.
25718         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25719         * modules/unigbrk/uc-gbrk-prop: New file.
25720         * lib/unigbrk/gbrkprop.h: New file.
25721         * lib/unigbrk/uc-gbrk-prop.c: New file.
25722
25723         New module 'unigbrk/uc-is-grapheme-break'.
25724         * modules/unigbrk/uc-is-grapheme-break: New file.
25725         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25726         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25727         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25728         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25729         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25730
25731         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25732
25733 2010-12-27  Bruno Haible  <bruno@clisp.org>
25734
25735         linkat test: Avoid failure on Solaris 11 2010-11.
25736         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25737
25738 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25739
25740         utimens: work around glibc rounding bug on more platforms
25741         * lib/utimens.c (fdutimens): Work around rounding bug even if
25742         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25743         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25744
25745 2010-12-27  Bruno Haible  <bruno@clisp.org>
25746
25747         select tests: Improve comments.
25748         * tests/test-select.c (do_select): Add comments.
25749
25750 2010-12-27  Bruno Haible  <bruno@clisp.org>
25751
25752         select tests: Safer way of handling timeout.
25753         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25754         at every invocation.
25755
25756 2010-12-27  Bruno Haible  <bruno@clisp.org>
25757
25758         select tests: Use 'bool' where appropriate.
25759         * tests/test-select.c (connect_to_socket): Change argument type to
25760         'bool'.
25761
25762 2010-12-27  Bruno Haible  <bruno@clisp.org>
25763
25764         select tests: Use existing modules.
25765         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25766         (configure.ac): Don't test for unistd.h.
25767         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25768         declared in <unistd.h>.
25769
25770 2010-12-27  Bruno Haible  <bruno@clisp.org>
25771
25772         mbrtowc: Work around a Solaris 7 bug.
25773         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25774         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25775         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25776         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25777         MBRTOWC_NULL_ARG1_BUG.
25778         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25779         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25780         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25781         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25782
25783 2010-12-27  Jim Meyering  <meyering@redhat.com>
25784
25785         read-file.c: tweak syntax
25786         * lib/read-file.c (fread_file): Remove space after "*" in function
25787         definitions.
25788
25789 2010-12-27  Bruno Haible  <bruno@clisp.org>
25790
25791         times test: Avoid gcc warnings on OSF/1.
25792         * tests/test-times.c (main): Cast printf arguments from clock_t to
25793         'long int'.
25794
25795 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25796
25797         utimens: work around glibc rounding bug on older Linux kernels
25798         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25799         on Linux with a glibc whose utimes might not work, then work
25800         around a longstanding glibc bug involving rounding rather than
25801         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25802         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25803
25804 2010-12-26  Bruno Haible  <bruno@clisp.org>
25805
25806         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25807         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25808         _GL_CXXALIAS_SYS.
25809         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25810
25811 2010-12-26  Bruno Haible  <bruno@clisp.org>
25812
25813         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25814         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25815         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25816         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25817         looking for the declaration.
25818         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25819         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25820         problem.
25821         * doc/posix-functions/inet_pton.texi: Likewise.
25822
25823 2010-12-26  Bruno Haible  <bruno@clisp.org>
25824
25825         arpa_inet: Use the common idioms with C++ support.
25826         * lib/arpa_inet.in.h: Include c++defs.h.
25827         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25828         support.
25829         * modules/arpa_inet (Depends-on): Add c++defs.
25830         (Makefile.am): Substitute the contents of c++defs.h.
25831         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25832         * modules/arpa_inet-c++-tests: New file.
25833         * tests/test-arpa_inet-c++.cc: New file.
25834
25835 2010-12-25  Bruno Haible  <bruno@clisp.org>
25836
25837         Fix more C++ link errors on Solaris 8.
25838         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25839         $(LIB_EACCESS).
25840         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25841         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25842         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25843         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25844         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25845
25846 2010-12-25  Bruno Haible  <bruno@clisp.org>
25847
25848         printf-posix: Fix link error when a non-GCC compiler is used.
25849         * lib/stdio.in.h (printf): When not using GCC, override printf
25850         correctly.
25851         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25852
25853 2010-12-25  Bruno Haible  <bruno@clisp.org>
25854
25855         strerror_r-posix: Update doc.
25856         * doc/posix-functions/strerror_r.texi: Update doc about the return
25857         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25858
25859 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25860
25861         utimens: simplify the logic of the previous change
25862         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25863         This should not affect whether the test succeeds or fails.
25864
25865         utimens: configure better on hosts with NFS clock skew
25866         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25867         uses the clock of the local host.  It might use the clock of the
25868         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25869         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25870
25871 2010-12-25  Bruno Haible  <bruno@clisp.org>
25872
25873         ptsname test: Avoid failure on Solaris.
25874         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25875         open a pseudo-terminal; don't use BSD-style ptys.
25876         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25877
25878 2010-12-25  Bruno Haible  <bruno@clisp.org>
25879
25880         ptsname: Avoid ERANGE failure on some systems.
25881         * lib/ptsname.c (buffer): Increase size.
25882
25883 2010-12-25  Bruno Haible  <bruno@clisp.org>
25884
25885         rename, renameat: Avoid test failures at NFS mounted locations.
25886         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25887         so that subsequent mkdir calls succeed.
25888
25889 2010-12-25  Bruno Haible  <bruno@clisp.org>
25890
25891         iswblank: Fix C++ link error on Solaris 8.
25892         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25893         _GL_FUNCDECL_SYS.
25894
25895 2010-12-25  Bruno Haible  <bruno@clisp.org>
25896
25897         unistd: Fix C++ link error on Solaris 8.
25898         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25899
25900 2010-12-25  Bruno Haible  <bruno@clisp.org>
25901
25902         readlink doc: Mention an old glibc bug.
25903         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25904
25905 2010-12-25  Bruno Haible  <bruno@clisp.org>
25906
25907         fcntl-h: Fix for use of C++ on glibc systems.
25908         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25909         also on glibc systems in C++ mode.
25910         Reported by Gary V. Vaughan <gary@gnu.org>.
25911
25912 2010-12-25  Bruno Haible  <bruno@clisp.org>
25913
25914         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25915         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25916
25917 2010-12-25  Bruno Haible  <bruno@clisp.org>
25918
25919         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25920         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25921         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25922         test whether truncl works according to ISO C 99 with IEC 60559.
25923         * m4/truncl-ieee.m4: New file.
25924         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25925         m4/signbit.m4.
25926         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25927
25928 2010-12-25  Bruno Haible  <bruno@clisp.org>
25929
25930         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25931         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25932         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25933         test whether ceill works according to ISO C 99 with IEC 60559.
25934         * m4/ceill-ieee.m4: New file.
25935         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25936         m4/signbit.m4.
25937         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25938
25939 2010-12-25  Bruno Haible  <bruno@clisp.org>
25940
25941         Ensure all prerequisites of <wchar.h> are included.
25942         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25943         before <wchar.h>.
25944         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25945         gl_MBRLEN_NUL_RETVAL): Likewise.
25946         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25947         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25948         AC_FUNC_MBRTOWC): Likewise.
25949         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25950         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25951         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25952         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25953         Likewise.
25954         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25955         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25956         (gl_WCHAR_H): Improve comments.
25957         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25958
25959 2010-12-25  Bruno Haible  <bruno@clisp.org>
25960
25961         strtok_r: Fix C syntax error in autoconf macro.
25962         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25963         characters in test program.
25964
25965 2010-12-24  Bruno Haible  <bruno@clisp.org>
25966
25967         ceil, trunc, round: Fix gcc warnings.
25968         * lib/ceil.c (MIN): Undefine before redefining.
25969         * lib/trunc.c (MIN): Likewise.
25970         * lib/round.c (MIN): Likewise.
25971         Include <math.h> first.
25972
25973 2010-12-24  Bruno Haible  <bruno@clisp.org>
25974
25975         select tests: Avoid failures on OSF/1 5.1.
25976         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25977         failure of closing the last socket; it may fail with ECONNRESET.
25978
25979 2010-12-24  Eric Blake  <eblake@redhat.com>
25980
25981         stdint: avoid HP-UX 10.20 preprocessor bug
25982         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25983         than #if.
25984         * tests/test-floor2.c (main): Likewise.
25985         Reported by Peter O'Gorman.
25986
25987         pipe: make obsoletion transition easier
25988         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25989         * modules/pipe (Files): Include revived file.
25990         (Include): Drop reference, to mirror getdate's behavior.
25991
25992 2010-12-24  Bruno Haible  <bruno@clisp.org>
25993
25994         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25995         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25996         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25997         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25998
25999 2010-12-24  Bruno Haible  <bruno@clisp.org>
26000
26001         gethostname: Ensure declaration on NonStop Kernel.
26002         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26003         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26004
26005 2010-12-24  Bruno Haible  <bruno@clisp.org>
26006
26007         sys_select: Ensure all necessary types on NonStop Kernel.
26008         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26009         include <sys/time.h>.
26010         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26011         NonStop Kernel.
26012         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26013
26014 2010-12-24  Bruno Haible  <bruno@clisp.org>
26015
26016         sys_select: Remove unneeded include.
26017         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26018         have <sys/select.h>.
26019
26020 2010-12-24  Bruno Haible  <bruno@clisp.org>
26021
26022         gethostname: Provide a fallback for HOST_NAME_MAX.
26023         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26024         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26025         instead.
26026         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26027
26028 2010-12-24  Bruno Haible  <bruno@clisp.org>
26029
26030         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26031         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26032         (SA_RESTART): Likewise.
26033         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26034
26035 2010-12-24  Bruno Haible  <bruno@clisp.org>
26036
26037         signal: Define NSIG.
26038         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26039         * tests/test-signal.c (nsig): New variable.
26040         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26041
26042 2010-12-24  Bruno Haible  <bruno@clisp.org>
26043
26044         rename, renameat: Avoid test failures on OSF/1 5.1.
26045         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26046         alternative error codes.
26047         * tests/test-renameat.c (main): Likewise.
26048
26049 2010-12-24  Bruno Haible  <bruno@clisp.org>
26050
26051         *printf: Detect large precisions bug on Solaris 10/SPARC.
26052         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26053         by Paul Eggert.
26054         * tests/test-snprintf-posix.h (test_function): Add this test code here
26055         too.
26056         * tests/test-sprintf-posix.h (test_function): Likewise.
26057         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26058         * tests/test-vasprintf-posix.c (test_function): Likewise.
26059         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26060         around by gnulib.
26061         * doc/posix-functions/printf.texi: Likewise.
26062         * doc/posix-functions/snprintf.texi: Likewise.
26063         * doc/posix-functions/sprintf.texi: Likewise.
26064         * doc/posix-functions/vfprintf.texi: Likewise.
26065         * doc/posix-functions/vprintf.texi: Likewise.
26066         * doc/posix-functions/vsnprintf.texi: Likewise.
26067         * doc/posix-functions/vsprintf.texi: Likewise.
26068         * doc/posix-functions/dprintf.texi: Undo last commit.
26069         * doc/posix-functions/vdprintf.texi: Likewise.
26070
26071 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26072
26073         tests: port test-fdutimensat.c to Solaris 8
26074         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26075         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26076         On Solaris 8, it fails with errno == ENOSYS, because there is no
26077         futimens (so it can't use the fd), and there is no lutimens (so it
26078         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26079
26080         vsnprintf: make more consistent with snprintf; doc fixes
26081
26082         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26083         the byte count return problem was promoted from the snprintf-posix
26084         to the snprintf module.
26085         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26086         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26087         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26088         * tests/test-snprintf.c (main): Check the byte count returned.
26089         * tests/test-vsnprintf.c (main): Likewise.
26090
26091 2010-12-23  Eric Blake  <eblake@redhat.com>
26092
26093         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26094         * modules/sigpipe (License): Relax license.
26095
26096 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26097
26098         doc: document Solaris printf bug with large float precisions
26099         * doc/posix-functions/dprintf.texi (dprintf):
26100         * doc/posix-functions/fprintf.texi (fprintf):
26101         * doc/posix-functions/printf.texi (printf):
26102         * doc/posix-functions/snprintf.texi (snprintf):
26103         * doc/posix-functions/sprintf.texi (sprintf):
26104         * doc/posix-functions/vdprintf.texi (vdprintf):
26105         * doc/posix-functions/vfprintf.texi (vfprintf):
26106         * doc/posix-functions/vprintf.texi (vprintf):
26107         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26108         * doc/posix-functions/vsprintf.texi (vsprintf):
26109         Mention that these functions mishandle large floating point
26110         precisions on Solaris 10.  The same bug is also present in Solaris
26111         8, and I assume earlier.  This causes "cd gnulib-tests; make
26112         check" to fail on Solaris 8 (and I assume, later) when building
26113         the latest coreutils, in test-vasprintf-posix's call to
26114         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26115         the wide flavors (e.g., wprintf) so this patch just updates the
26116         documentation for the narrow ones.
26117
26118         test-posixtm.c: add two tests
26119         * tests/test-posixtm.c: Add two tests, to highlight the
26120         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26121         around this bug; this is merely to document it.
26122
26123 2010-12-22  Bruno Haible  <bruno@clisp.org>
26124
26125         getlogin_r: Work around portability problem on OSF/1.
26126         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26127         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26128         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26129         test for a truncated result.
26130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26131         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26132         * modules/getlogin_r (Depends-on): Add memchr.
26133         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26134
26135 2010-12-22  Bruno Haible  <bruno@clisp.org>
26136
26137         ptsname: Avoid test failure on OSF/1 5.1.
26138         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26139         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26140         (same_slave): New function.
26141         (main): Use it to compare ptsname's result with the expected file name.
26142
26143 2010-12-22  Bruno Haible  <bruno@clisp.org>
26144
26145         Port extended stdio modules to HP NonStop Kernel.
26146         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26147         macros.
26148         * lib/fbufmode.c: Update comments.
26149         * lib/fflush.c: Likewise.
26150         * lib/fpurge.c: Likewise.
26151         * lib/freadable.c: Likewise.
26152         * lib/freadahead.c: Likewise.
26153         * lib/freading.c: Likewise.
26154         * lib/freadptr.c: Likewise.
26155         * lib/freadseek.c: Likewise.
26156         * lib/fseeko.c: Likewise.
26157         * lib/fseterr.c: Likewise.
26158         * lib/fwritable.c: Likewise.
26159         * lib/fwriting.c: Likewise.
26160         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26161
26162 2010-12-22  Bruno Haible  <bruno@clisp.org>
26163
26164         ttyname_r: Work around bug on OSF/1 5.1.
26165         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26166         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26167         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26168         present.
26169         * lib/ttyname_r.c (ttyname_r): Update comments.
26170
26171 2010-12-22  Bruno Haible  <bruno@clisp.org>
26172
26173         round: Implement result sign according to IEEE 754.
26174         * lib/round.c (MIN, MINUS_ZERO): New macros.
26175         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26176         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26177         * tests/test-round-ieee.c (main): Likewise.
26178         * tests/test-roundl-ieee.c (main): Likewise.
26179
26180         trunc: Implement result sign according to IEEE 754.
26181         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26182         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26183         * tests/test-trunc2.c: Include minus-zero.h.
26184         (MINUS_ZERO): New macro.
26185         (trunc_reference): Keep in sync with lib/trunc.c.
26186         * tests/test-truncf2.c: Include minus-zero.h.
26187         (MINUS_ZERO): New macro.
26188         (truncf_reference): Keep in sync with lib/trunc.c.
26189         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26190         * tests/test-trunc-ieee.c (main): Likewise.
26191         * tests/test-truncl-ieee.c (main): Likewise.
26192
26193         ceil: Implement result sign according to IEEE 754.
26194         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26195         (FUNC): Return -0.0 for -1 < x < 0.
26196         * tests/test-ceil2.c: Include minus-zero.h.
26197         (MINUS_ZERO): New macro.
26198         (ceil_reference): Keep in sync with lib/ceil.c.
26199         * tests/test-ceilf2.c: Include minus-zero.h.
26200         (MINUS_ZERO): New macro.
26201         (ceilf_reference): Keep in sync with lib/ceil.c.
26202         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26203         * tests/test-ceil-ieee.c (main): Likewise.
26204         * tests/test-ceill-ieee.c (main): Likewise.
26205
26206         floor: Implement result sign according to IEEE 754.
26207         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26208         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26209         * tests/test-floorf2.c (floorf_reference): Likewise.
26210         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26211         * tests/test-floor-ieee.c (main): Likewise.
26212         * tests/test-floorl-ieee.c (main): Likewise.
26213
26214 2010-12-22  Bruno Haible  <bruno@clisp.org>
26215
26216         getaddrinfo: Update doc.
26217         * doc/posix-functions/gai_strerror.texi: Return type is also different
26218         on AIX and HP-UX.
26219
26220 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26221
26222         getaddrinfo, inet_ntop: Update doc for Solaris.
26223         * doc/posix-functions/gai_strerror.texi: Return type is also an
26224         issue on Solaris 9 and earlier.
26225         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26226         on Solaris 10 and earlier.
26227
26228 2010-12-21  Bruno Haible  <bruno@clisp.org>
26229
26230         New module 'roundl-ieee'.
26231         * modules/roundl-ieee: New file.
26232         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26233         test whether roundl works according to ISO C 99 with IEC 60559.
26234         * m4/roundl-ieee.m4: New file.
26235         * modules/roundl-ieee-tests: New file.
26236         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26237         * tests/test-roundl.c (main): Remove signbit tests.
26238         * modules/roundl-tests (Depends-on): Remove signbit.
26239         * doc/posix-functions/roundl.texi: Mention the new module.
26240
26241 2010-12-21  Bruno Haible  <bruno@clisp.org>
26242
26243         New module 'truncl-ieee'.
26244         * modules/truncl-ieee: New file.
26245         * modules/truncl-ieee-tests: New file.
26246         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26247         * tests/test-truncl.c (main): Remove signbit tests.
26248         * modules/truncl-tests (Depends-on): Remove signbit.
26249         * doc/posix-functions/truncl.texi: Mention the new module.
26250
26251 2010-12-21  Bruno Haible  <bruno@clisp.org>
26252
26253         New module 'ceill-ieee'.
26254         * modules/ceill-ieee: New file.
26255         * modules/ceill-ieee-tests: New file.
26256         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26257         * tests/test-ceill.c (main): Remove signbit tests.
26258         * modules/ceill-tests (Depends-on): Remove signbit.
26259         * doc/posix-functions/ceill.texi: Mention the new module.
26260
26261 2010-12-21  Bruno Haible  <bruno@clisp.org>
26262
26263         New module 'floorl-ieee'.
26264         * modules/floorl-ieee: New file.
26265         * modules/floorl-ieee-tests: New file.
26266         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26267         * tests/test-floorl.c (main): Remove signbit tests.
26268         * modules/floorl-tests (Depends-on): Remove signbit.
26269         * doc/posix-functions/floorl.texi: Mention the new module.
26270
26271 2010-12-21  Bruno Haible  <bruno@clisp.org>
26272
26273         New module 'round-ieee'.
26274         * modules/round-ieee: New file.
26275         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26276         whether round works according to ISO C 99 with IEC 60559.
26277         * m4/round-ieee.m4: New file.
26278         * modules/round-ieee-tests: New file.
26279         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26280         * tests/test-round1.c (main): Remove signbit tests.
26281         * modules/round-tests (Depends-on): Remove 'signbit'.
26282         * doc/posix-functions/round.texi: Mention the new module.
26283
26284 2010-12-21  Bruno Haible  <bruno@clisp.org>
26285
26286         New module 'trunc-ieee'.
26287         * modules/trunc-ieee: New file.
26288         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26289         whether trunc works according to ISO C 99 with IEC 60559.
26290         * m4/trunc-ieee.m4: New file.
26291         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26293         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26294         * modules/trunc-ieee-tests: New file.
26295         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26296         * tests/test-trunc1.c (main): Remove signbit tests.
26297         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26298         * doc/posix-functions/trunc.texi: Mention the new module.
26299
26300 2010-12-21  Bruno Haible  <bruno@clisp.org>
26301
26302         New module 'ceil-ieee'.
26303         * modules/ceil-ieee: New file.
26304         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26305         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26306         ISO C 99 with IEC 60559.
26307         * m4/ceil-ieee.m4: New file.
26308         * modules/ceil (Files): Add lib/ceil.c.
26309         (Depends-on): Add 'float'.
26310         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26311         * lib/math.in.h (ceil): New declaration.
26312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26313         REPLACE_CEIL.
26314         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26315         * modules/ceil-ieee-tests: New file.
26316         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26317         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26318         * doc/posix-functions/ceil.texi: Mention the new module.
26319
26320 2010-12-21  Bruno Haible  <bruno@clisp.org>
26321
26322         New module 'floor-ieee'.
26323         * modules/floor-ieee: New file.
26324         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26325         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26326         ISO C 99 with IEC 60559.
26327         * m4/floor-ieee.m4: New file.
26328         * modules/floor (Files): Add lib/floor.c.
26329         (Depends-on): Add 'float'.
26330         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26331         * lib/math.in.h (floor): New declaration.
26332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26333         REPLACE_FLOOR.
26334         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26335         * modules/floor-ieee-tests: New file.
26336         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26337         * tests/test-math-c++.cc: Check the signature of 'floor'.
26338         * doc/posix-functions/floor.texi: Mention the new module.
26339
26340 2010-12-21  Bruno Haible  <bruno@clisp.org>
26341
26342         New module 'roundf-ieee'.
26343         * modules/roundf-ieee: New file.
26344         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26345         test whether roundf works according to ISO C 99 with IEC 60559.
26346         * m4/roundf-ieee.m4: New file.
26347         * modules/roundf-ieee-tests: New file.
26348         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26349         * tests/test-roundf1.c (main): Remove signbit tests.
26350         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26351         * doc/posix-functions/roundf.texi: Mention the new module.
26352
26353 2010-12-21  Bruno Haible  <bruno@clisp.org>
26354
26355         New module 'truncf-ieee'.
26356         * modules/truncf-ieee: New file.
26357         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26358         test whether truncf works according to ISO C 99 with IEC 60559.
26359         * m4/truncf-ieee.m4: New file.
26360         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26362         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26363         * modules/truncf-ieee-tests: New file.
26364         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26365         * tests/test-truncf1.c (main): Remove signbit tests.
26366         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26367         * doc/posix-functions/truncf.texi: Mention the new module.
26368
26369 2010-12-21  Bruno Haible  <bruno@clisp.org>
26370
26371         New module 'ceilf-ieee'.
26372         * modules/ceilf-ieee: New file.
26373         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26374         test whether ceilf works according to ISO C 99 with IEC 60559.
26375         * m4/ceilf-ieee.m4: New file.
26376         * modules/ceilf-ieee-tests: New file.
26377         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26378         * tests/test-ceilf1.c (main): Remove signbit tests.
26379         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26380         * doc/posix-functions/ceilf.texi: Mention the new module.
26381
26382 2010-12-21  Bruno Haible  <bruno@clisp.org>
26383
26384         New module 'floorf-ieee'.
26385         * modules/floorf-ieee: New file.
26386         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26387         test whether floorf works according to ISO C 99 with IEC 60559.
26388         * m4/floorf-ieee.m4: New file.
26389         * modules/floorf-ieee-tests: New file.
26390         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26391         * tests/test-floorf1.c (main): Remove signbit tests.
26392         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26393         * doc/posix-functions/floorf.texi: Mention the new module.
26394
26395 2010-12-21  Bruno Haible  <bruno@clisp.org>
26396
26397         Support for minus zero in autoconf macros.
26398         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26399         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26400         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26401         * tests/minus-zero.h: Update comments.
26402
26403 2010-12-21  Bruno Haible  <bruno@clisp.org>
26404
26405         Tests for module 'ceil'.
26406         * modules/ceil-tests: New file.
26407         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26408         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26409
26410 2010-12-21  Bruno Haible  <bruno@clisp.org>
26411
26412         Tests for module 'floor'.
26413         * modules/floor-tests: New file.
26414         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26415         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26416
26417 2010-12-21  Bruno Haible  <bruno@clisp.org>
26418
26419         math: Fix indentation.
26420         * lib/math.in.h (floorf): Fix indentation.
26421
26422 2010-12-21  Bruno Haible  <bruno@clisp.org>
26423
26424         Fix cross-compilation guesses on Solaris.
26425         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26426         not match "solaris2.10".
26427         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26428         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26429         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26430
26431 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26432
26433         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26434         This fixes a problem observed with the latest coreutils snapshot
26435         that caused a test to fail on Solaris 8.  src/csplit.c's call
26436         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26437         earlier, instead of returning the number of bytes that would have
26438         been generated; this causes csplit to incorrectly report memory
26439         exhaustion.
26440         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26441         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26442         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26443         comments to match.
26444         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26445         Fix typo in matching older versions of Solaris: "solaris2.10"
26446         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26447         only for guessing while cross-compiling.
26448         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26449
26450 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26451
26452         ftoastr: fix comment again
26453         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26455         Also, simplify example a bit by using flags = 0.
26456
26457 2010-12-20  Bruno Haible  <bruno@clisp.org>
26458
26459         round*, trunc*: Update documentation regarding glibc.
26460         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26461         * doc/posix-functions/round.texi: Likewise.
26462         * doc/posix-functions/roundl.texi: Likewise.
26463         * doc/posix-functions/truncf.texi: Likewise.
26464         * doc/posix-functions/trunc.texi: Likewise.
26465         * doc/posix-functions/truncl.texi: Likewise.
26466
26467 2010-12-20  Bruno Haible  <bruno@clisp.org>
26468
26469         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26470         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26471         * doc/posix-functions/round.texi: Likewise.
26472         * doc/posix-functions/roundl.texi: Likewise.
26473
26474 2010-12-20  Bruno Haible  <bruno@clisp.org>
26475
26476         ttyname_r: Add missing declaration on HP-UX 11.
26477         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26478         HAVE_TTYNAME_R.
26479         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26480         declared. Set HAVE_TTYNAME_R always.
26481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26482         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26483         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26484         HAVE_TTYNAME_R.
26485         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26486
26487 2010-12-20  Bruno Haible  <bruno@clisp.org>
26488
26489         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26490         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26491         * doc/posix-functions/getlogin_r.texi: Likewise.
26492         * tests/test-getlogin.c: Include <errno.h>.
26493         (main): Avoid test failure on HP-UX 11.11.
26494         * tests/test-getlogin_r.c (main): Likewise.
26495
26496 2010-12-20  Bruno Haible  <bruno@clisp.org>
26497
26498         getlogin_r: Add missing declaration on HP-UX 11.
26499         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26500         declared also when it exists as a function.
26501         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26502
26503 2010-12-20  Bruno Haible  <bruno@clisp.org>
26504
26505         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26506         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26507         through wcrtomb.
26508
26509 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26510
26511         ftoastr: fix comment
26512         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26513         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26514
26515 2010-12-19  Bruno Haible  <bruno@clisp.org>
26516
26517         isnan: Ensure it is a macro.
26518         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26519         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26520         Solaris.
26521
26522 2010-12-19  Bruno Haible  <bruno@clisp.org>
26523
26524         ldexpl test: Fix link error on OSF/1 5.1.
26525         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26526
26527 2010-12-19  Bruno Haible  <bruno@clisp.org>
26528
26529         wctype: Make it work in C++ mode on OSF/1 5.1.
26530         * lib/wctype.in.h (iswblank): Declare but not define here.
26531         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26532         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26533         * modules/wctype (Files): Add lib/iswblank.c.
26534
26535 2010-12-19  Bruno Haible  <bruno@clisp.org>
26536
26537         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26538         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26539         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26540
26541 2010-12-19  Bruno Haible  <bruno@clisp.org>
26542
26543         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26545         _POSIX_PII_SOCKET.
26546         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26547         * doc/posix-functions/recvfrom.texi: Likewise.
26548         * doc/posix-functions/send.texi: Likewise.
26549         * doc/posix-functions/sendto.texi: Likewise.
26550
26551 2010-12-19  Bruno Haible  <bruno@clisp.org>
26552
26553         tcgetsid: Add missing declaration on OSF/1 5.1.
26554         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26555         HAVE_TCGETSID.
26556         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26557         Don't set HAVE_TCGETSID.
26558         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26559         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26560         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26561         HAVE_TCGETSID.
26562         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26563
26564 2010-12-19  Bruno Haible  <bruno@clisp.org>
26565
26566         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26567         * lib/stdio.in.h: During the include_next statement, let recursive
26568         includes of this file include only the system header file.
26569
26570 2010-12-19  Bruno Haible  <bruno@clisp.org>
26571
26572         iconv_open: Fix regression from 2010-12-04.
26573         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26574         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26575
26576 2010-12-19  Bruno Haible  <bruno@clisp.org>
26577
26578         stdbool test: Avoid a gcc warning.
26579         * tests/test-stdbool.c (main): Fail if e1 is false.
26580         Reported by Jim Meyering.
26581
26582 2010-12-19  Jim Meyering  <meyering@redhat.com>
26583
26584         setenv: restore to working order
26585         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26586         mistakenly removed.
26587         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26588         HAVE_SETENV.
26589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26590         HAVE_SETENV.
26591
26592 2010-12-19  Bruno Haible  <bruno@clisp.org>
26593
26594         Document some different function declarations on OSF/1 5.1.
26595         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26596         * doc/posix-functions/inet_ntop.texi: Likewise.
26597         * doc/posix-functions/gethostname.texi: Likewise.
26598         * lib/unistd.in.h (gethostname): Update comment.
26599
26600 2010-12-19  Bruno Haible  <bruno@clisp.org>
26601
26602         doc: Mention vasprintf-posix module.
26603         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26604         the 'vasprintf-posix' module.
26605         * doc/glibc-functions/vasprintf.texi: Likewise.
26606
26607 2010-12-19  Bruno Haible  <bruno@clisp.org>
26608
26609         unsetenv: Add missing declaration on OSF/1 5.1.
26610         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26611         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26612         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26614         not HAVE_UNSETENV.
26615         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26616         HAVE_UNSETENV.
26617         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26618
26619 2010-12-19  Bruno Haible  <bruno@clisp.org>
26620
26621         setenv: Add missing declaration on OSF/1 5.1.
26622         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26623         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26624         declared. Don't set HAVE_SETENV.
26625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26626         not HAVE_SETENV.
26627         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26628         HAVE_SETENV.
26629         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26630
26631 2010-12-19  Bruno Haible  <bruno@clisp.org>
26632
26633         nl_langinfo tests: Avoid gcc warning.
26634         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26635
26636 2010-12-19  Bruno Haible  <bruno@clisp.org>
26637
26638         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26639         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26640         _GL_CXXALIAS_SYS.
26641
26642 2010-12-19  Bruno Haible  <bruno@clisp.org>
26643
26644         stdbool: Relax test.
26645         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26646         address to 'bool' work in static initializer, for compilers other than
26647         GCC.
26648
26649 2010-12-19  Bruno Haible  <bruno@clisp.org>
26650
26651         ftello: Add missing declaration on OSF/1 5.1.
26652         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26653         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26655         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26656         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26657
26658 2010-12-19  Bruno Haible  <bruno@clisp.org>
26659
26660         fseeko: Add missing declaration on OSF/1 5.1.
26661         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26662         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26664         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26665         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26666
26667 2010-12-19  Bruno Haible  <bruno@clisp.org>
26668
26669         fchdir: Add missing declaration on OSF/1 5.1.
26670         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26671         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26673         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26674         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26675
26676 2010-12-19  Bruno Haible  <bruno@clisp.org>
26677
26678         relocatable-prog-wrapper: Separate from relocatable-prog.
26679         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26680         uninstall-relocwrapper rule here.
26681         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26682         Reported by Ian Beckwith <ianb@erislabs.net>.
26683
26684 2010-12-19  Bruno Haible  <bruno@clisp.org>
26685
26686         unistr/u8-mbsnlen: Add missing dependency.
26687         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26688         Reported by Ian Beckwith <ianb@erislabs.net>.
26689
26690 2010-12-19  Bruno Haible  <bruno@clisp.org>
26691
26692         iconv: Make it possible again to use this module without 'iconv-h'.
26693         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26694         if it is not defined.
26695         Reported by Ian Beckwith <ianb@erislabs.net>.
26696
26697 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26698
26699         acl: port to Solaris 8 when copying from tmpfs to ufs
26700         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26701         error number.  Problem observed on Solaris 8 with latest
26702         coreutils, with "mv A B", where A is on a tmpfs file system and B
26703         is on a ufs file system.  This caused coreutils' mv/part-symlink
26704         test to fail.
26705
26706         tests: set fail=0 at start
26707         * tests/init.sh (setup_): Move fail=0 initialization here ...
26708         (mktempd_): ... from here, so that tests can rely on fail being
26709         set to 0 initially.  This fixes a problem in coreutils; see:
26710         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26711
26712 2010-12-18  Bruno Haible  <bruno@clisp.org>
26713
26714         memmem-simple: Stylistic changes.
26715         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26716         Fix preprocessor directive indentation.
26717
26718 2010-12-15  Pádraig Brady <P@draigBrady.com>
26719
26720         memmem, memmem-simple: reorganize and expand empty needle check
26721         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26722         functional checks to memmem-simple so that one has a fully functional
26723         memmem by using just this module.
26724         Restrict the performance only check to the memmem module.
26725         Also expand the empty needle check to ensure the correct
26726         pointer is returned, not just a non NULL pointer.
26727         * doc/glibc-functions/memmem.texi: Rearrange the portability
26728         documentation to correlate with the rearranged checks.
26729         Clarify exactly how the memmem and memmem-simple modules
26730         relate to each other.
26731
26732 2010-12-15  Pádraig Brady <P@draigBrady.com>
26733             Bruno Haible  <bruno@clisp.org>
26734
26735         Improve cross-compilation guesses for uClibc.
26736         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26737         that uClibc does not have the glibc bug.
26738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26739         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26740
26741 2010-12-14  Eric Blake  <eblake@redhat.com>
26742
26743         configmake: provide fallbacks for oldest supported autotools
26744         * m4/configmake.m4: New file.
26745         * modules/configmake (Files): Ship it.
26746         (configure.ac): Use it to guarantee fallbacks.
26747
26748 2010-12-13  Pádraig Brady <P@draigBrady.com>
26749
26750         read-file: Improve handling of large files
26751         * lib/read-file.c (fread_file): Minimize realloc()s
26752         for regular files, and better manage sizes around SIZE_MAX.
26753
26754 2010-12-13  Eric Blake  <eblake@redhat.com>
26755
26756         cloexec, fcntl: relax license
26757         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26758         consent from all contributors.
26759         * modules/fcntl (License): Likewise.
26760
26761 2010-12-10  Bruno Haible  <bruno@clisp.org>
26762
26763         Tests for module 'pipe-posix'.
26764         * modules/pipe-posix-tests: New file.
26765         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26766
26767 2010-12-10  Bruno Haible  <bruno@clisp.org>
26768
26769         pipe-posix: Make it work in C++ mode.
26770         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26771         (pipe): Use common idiom, not a macro definition.
26772         * lib/pipe.c: New file.
26773         * m4/pipe.m4: New file.
26774         * modules/pipe-posix (Description): Enhance.
26775         (Files): Add lib/pipe.c, m4/pipe.m4.
26776         (configure.ac): Invoke gl_FUNC_PIPE.
26777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26778         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26779         * tests/test-unistd-c++.cc: Check the signature of pipe.
26780
26781 2010-12-10  Bruno Haible  <bruno@clisp.org>
26782
26783         Rename module 'pipe' to 'spawn-pipe'.
26784         * modules/spawn-pipe: New file, renamed from modules/pipe.
26785         (Files, configure.ac, Makefile.am): Update.
26786         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26787         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26788         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26789         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26790         "spawn-pipe.h" instead of "pipe.h".
26791         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26792         to gl_SPAWN_PIPE.
26793         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26794         (Files, Makefile.am): Update.
26795         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26796         Update.
26797         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26798         Include "spawn-pipe.h" instead of "pipe.h".
26799         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26800         * lib/javacomp.c: Likewise.
26801         * lib/javaversion.c: Likewise.
26802         * lib/pipe-filter-gi.c: Likewise.
26803         * lib/pipe-filter-ii.c: Likewise.
26804         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26805         * modules/javacomp (Depends-on): Likewise.
26806         * modules/javaversion (Depends-on): Likewise.
26807         * modules/pipe-filter-gi (Depends-on): Likewise.
26808         * modules/pipe-filter-ii (Depends-on): Likewise.
26809         * MODULES.html.sh (Executing programs): Update.
26810         * NEWS: Mention the change.
26811
26812 2010-12-10  Eric Blake  <eblake@redhat.com>
26813
26814         pipe-posix: new module
26815         * modules/pipe-posix: New file.
26816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26817         (gl_UNISTD_H): Check for declaration.
26818         * modules/unistd (Makefile.am): Substitute it.
26819         * lib/unistd.in.h (pipe): Provide it for mingw.
26820         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26821         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26822
26823 2010-12-07  Bruno Haible  <bruno@clisp.org>
26824
26825         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26826         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26827         u8_strcmp_gnu.
26828         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26829
26830 2010-12-06  Bruno Haible  <bruno@clisp.org>
26831
26832         Update internal documentation.
26833         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26834
26835 2010-12-04  Bruno Haible  <bruno@clisp.org>
26836
26837         Put more information about failed tests into the test return codes.
26838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26839         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26840         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26841         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26842         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26843         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26844         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26845         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26846         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26847         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26848         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26849         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26850         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26851         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26852         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26853         returns a bit mask.
26854         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26855         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26856         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26857         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26858         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26859         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26861         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26862         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26863         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26864         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26865         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26866         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26867         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26868         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26869         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26870         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26871         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26872         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26873         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26875         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26876         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26877         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26878         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26879         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26880         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26881         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26882         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26883         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26884         gl_PRINTF_PRECISION): Likewise.
26885         * m4/regex.m4 (gl_REGEX): Likewise.
26886         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26889         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26890         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26892         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26893         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26894         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26895         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26896         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26897         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26898         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26899         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26900         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26901         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26902         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26905         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26906         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26907         enumerated value.
26908         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26909
26910 2010-12-04  Bruno Haible  <bruno@clisp.org>
26911
26912         Update for Solaris 11 2010-11.
26913         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26914         Express, released in November 2010.
26915
26916 2010-12-04  Bruno Haible  <bruno@clisp.org>
26917
26918         nproc: Relax license.
26919         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26920         and Paul Eggert.
26921         Requested by Ludovic Courtès <ludo@gnu.org>.
26922
26923 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26924
26925         utimecmp: fine-grained src to nearby coarse-grained dest
26926
26927         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26928         and the source is on a file system with higher-resolution time
26929         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26930         not work, and the time stamps are close together, the algorithm to
26931         determine the exact resolution from the read-back mtime was buggy:
26932         it had a "!=" where it should have had an "==".  This bug has been
26933         in the code ever since it was introduced to gnulib.
26934         Problem reported by Dan Jacobson in
26935         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26936
26937 2010-11-30  Bruno Haible  <bruno@clisp.org>
26938
26939         strerror_r-posix: Fix autoconf test.
26940         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26941
26942 2010-11-28  Bruno Haible  <bruno@clisp.org>
26943             Paul Eggert  <eggert@cs.ucla.edu>
26944
26945         Tests for module 'getdomainname'.
26946         * modules/getdomainname-tests: New file.
26947         * tests/test-getdomainname.c: New file, based on
26948         tests/test-gethostname.c.
26949
26950 2010-11-28  Bruno Haible  <bruno@clisp.org>
26951             Paul Eggert  <eggert@cs.ucla.edu>
26952
26953         getdomainname: Use the system function when possible.
26954         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26955         (getdomainname): Replace if needed. Provide the declaration if it is
26956         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26957         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26958         (getdomainname): When the system has getdomainname, call the system
26959         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26960         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26961         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26962         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26963         the function if its second argument is of type 'int' or if it is found
26964         in libnsl.
26965         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26966         <sys/systeminfo.h> and sysinfo().
26967         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26969         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26970         HAVE_GETDOMAINNAME.
26971         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26972         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26973         * doc/glibc-functions/getdomainname.texi: Document the problems with
26974         the getdomainname declaration.
26975
26976 2010-11-28  Bruno Haible  <bruno@clisp.org>
26977
26978         sys_socket: Ensure ss_family field on AIX.
26979         * lib/sys_socket.in.h (ss_family): New macro definition.
26980         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26981         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26982         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26983         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26984         * modules/sys_socket (Makefile.am): Substitute
26985         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26986         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26987
26988 2010-11-27  Bruno Haible  <bruno@clisp.org>
26989
26990         readline: Improve configure output.
26991         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26992         "checking for readline..." result understandable.
26993
26994 2010-11-27  Bruno Haible  <bruno@clisp.org>
26995
26996         *printf-posix: Detect a bug on Solaris 10/x86.
26997         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26998         for floating-point output.
26999         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27000         directive.
27001         * tests/test-snprintf-posix.h (test_function): Likewise.
27002         * tests/test-sprintf-posix.h (test_function): Likewise.
27003         * tests/test-vasprintf-posix.c (test_function): Likewise.
27004         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27005         * doc/posix-functions/printf.texi: Likewise.
27006         * doc/posix-functions/snprintf.texi: Likewise.
27007         * doc/posix-functions/sprintf.texi: Likewise.
27008         * doc/posix-functions/vfprintf.texi: Likewise.
27009         * doc/posix-functions/vprintf.texi: Likewise.
27010         * doc/posix-functions/vsnprintf.texi: Likewise.
27011         * doc/posix-functions/vsprintf.texi: Likewise.
27012         * doc/glibc-functions/obstack_printf.texi: Likewise.
27013         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27014
27015 2010-11-27  Bruno Haible  <bruno@clisp.org>
27016
27017         Fix link error when module libunistring-optional is in use.
27018         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27019         * modules/striconveha-tests (Makefile.am): Likewise.
27020
27021 2010-11-27  Bruno Haible  <bruno@clisp.org>
27022
27023         regex: Mention link dependencies.
27024         * modules/regex (Link): New section.
27025         * modules/rpmatch (Link): Likewise.
27026         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27027
27028 2010-11-27  Bruno Haible  <bruno@clisp.org>
27029
27030         ftoastr: Fix compilation error on Solaris.
27031         * lib/ftoastr.c: Include <config.h>.
27032
27033 2010-11-27  Bruno Haible  <bruno@clisp.org>
27034
27035         getloadavg: Update documentation.
27036         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27037
27038 2010-11-27  Bruno Haible  <bruno@clisp.org>
27039
27040         sys_socket: Fix test whether the functions are declared.
27041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27042         not <sys/select.h>.
27043
27044 2010-11-27  Bruno Haible  <bruno@clisp.org>
27045
27046         getpass: Make sure to get system declaration on some platforms.
27047         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27048         gl_USE_SYSTEM_EXTENSIONS.
27049         * modules/getpass (Depends-on): Add extensions.
27050
27051 2010-11-26  Bruno Haible  <bruno@clisp.org>
27052
27053         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27054         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27055         'iconv' module is present.
27056         (ICONV_CONST): New macro.
27057         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27058         ICONV_CONST.
27059         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27060         set ICONV_CONST.
27061         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27062         here.
27063         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27064         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27065         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27066         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27067         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27068         present.
27069
27070 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27071
27072         ftoastr: comment fix
27073         * lib/ftoastr.c: "little" -> "little or no" in comment
27074
27075 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27076
27077         stdint: port to GCC 4.3 + OSX + Octave
27078         On this platform, stdint.h is buggy and defines int64_t to long
27079         long int.  The replacement defined it to long int, causing
27080         problems with C++ style name mangling.  Instead, trust the system
27081         definition if INT64_MAX is defined, and likewise for the unsigned
27082         variant.   Problem reported by Jarno Rajahalme in
27083         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27084         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27085         and don't mess with int64_t and INT64_MAX in this case.
27086         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27087
27088 2010-11-24  Bruno Haible  <bruno@clisp.org>
27089
27090         doc: Corrections regarding MacOS X 10.4 and 10.5.
27091         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27092         MacOS X.
27093         Reported by Simon Josefsson.
27094
27095 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27096
27097         Uninstall ".bin" files installed by relocwrapper.
27098         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27099         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27100         unless it is already there.
27101
27102 2010-11-21  Bruno Haible  <bruno@clisp.org>
27103
27104         Update for NetBSD 5.0.
27105         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27106         NetBSD; the test fails on NetBSD 5.0.
27107         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27108         about NetBSD.
27109
27110 2010-11-21  Bruno Haible  <bruno@clisp.org>
27111
27112         Update for HP-UX 11.23 and HP-UX 11.31.
27113         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27114         HP-UX.
27115
27116 2010-11-21  Bruno Haible  <bruno@clisp.org>
27117
27118         Update for MacOS X 10.5.
27119         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27120         MacOS X; the test fails on MacOS X 10.5.8.
27121         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27122         about MacOS X.
27123
27124 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27125
27126         bootstrap: add bootstrap_sync option.
27127         See discussion at
27128         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27129         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27130         * build-aux/bootstrap: Accept --bootstrap-sync to update
27131         bootstrap if it is not identical to the local gnulib's
27132         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27133         enable this by default.  Accept --no-bootstrap-sync to disable
27134         it.
27135
27136 2010-11-20  Bruno Haible  <bruno@clisp.org>
27137
27138         Ensure that <features.h> is included before __GLIBC__ is tested.
27139         * lib/printf-parse.h: Include <features.h>.
27140         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27141         Reported by Mike Frysinger <vapier@gentoo.org>.
27142
27143         Ensure that <features.h> is included before __GLIBC__ is tested.
27144         * lib/wchar.in.h: Include <features.h>.
27145         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27146         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27147         Reported by Mike Frysinger <vapier@gentoo.org>.
27148
27149         Ensure that <features.h> is included before __GLIBC__ is tested.
27150         * lib/arpa_inet.in.h: Include <features.h>.
27151         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27152         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27153         Reported by Mike Frysinger <vapier@gentoo.org>.
27154
27155         Ensure that <features.h> is included before __GLIBC__ is tested.
27156         * build-aux/link-warning.h: Include <features.h>.
27157         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27158         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27159         Reported by Mike Frysinger <vapier@gentoo.org>.
27160
27161         Ensure that <features.h> is included before __GLIBC__ is tested.
27162         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27163         Reported by Mike Frysinger <vapier@gentoo.org>.
27164
27165 2010-11-20  Bruno Haible  <bruno@clisp.org>
27166
27167         memmem: Fix autoconf test.
27168         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27169
27170 2010-11-20  Bruno Haible  <bruno@clisp.org>
27171
27172         Port to uClibc.
27173         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27174         * lib/fcntl.in.h: Likewise.
27175         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27176         * lib/mbrtowc.c (mbrtowc): Likewise.
27177         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27178         * lib/strerror_r.c: Likewise.
27179         * lib/unistr/u8-strnlen.c: Likewise.
27180         * lib/vasnprintf.c (decimal_point_char): Likewise.
27181         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27182         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27183         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27184         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27185         * tests/test-sigaction.c (handler, main): Likewise.
27186         * lib/freading.h: Treat uClibc like a non-glibc platform.
27187         * lib/freading.c: Likewise.
27188         * lib/gettext.h: Likewise.
27189         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27190         Likewise.
27191         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27192         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27193         * lib/propername.c (proper_name_utf8): Likewise.
27194         * lib/spawn.in.h: Likewise.
27195         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27196         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27197         mem_cd_iconveh_internal): Likewise.
27198         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27199         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27200         strstr, strcasestr): Likewise.
27201         * lib/unicodeio.c (unicode_to_mb): Likewise.
27202         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27203         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27204         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27205         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27206         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27207         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27208         * lib/unistr/u8-stpncpy.c: Likewise.
27209         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27210         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27211         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27212         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27213         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27214         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27215         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27216         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27218         Likewise.
27219         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27220         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27221         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27222         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27223         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27224         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27225         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27226         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27227         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27228         * tests/test-striconveha.c (main): Likewise.
27229         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27230         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27231         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27232         * doc/posix-functions/getline.texi: Likewise.
27233         Reported by Mike Frysinger <vapier@gentoo.org>.
27234
27235 2010-11-20  Bruno Haible  <bruno@clisp.org>
27236
27237         nproc: Fix condition.
27238         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27239         HAVE_PTHREAD_AFFINITY_NP.
27240
27241 2010-11-20  Bruno Haible  <bruno@clisp.org>
27242
27243         Fix a comment.
27244         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27245
27246 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27247
27248         ftoastr: don't assume snprintf
27249         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27250         Implement a subset of snprintf here, by using sprintf safely.
27251         * modules/ftoastr (Depends-on): Remove snprintf.
27252
27253 2010-11-19  Jim Meyering  <meyering@redhat.com>
27254
27255         test-rename.h: fix compilation failure
27256         * tests/test-rename.h (test_rename): Add omitted "}".
27257
27258 2010-11-17  Jim Meyering  <meyering@redhat.com>
27259
27260         maint.mk: add a URL discussing the no-@acronym policy
27261         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27262
27263 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27264
27265         ftoastr: depend on snprintf, improve comments
27266         * lib/ftoastr.c: Also mention Loitsch's draft.
27267         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27268         needed in the current implementation, but it might simplify
27269         speeding up the code later.
27270         * modules/ftoastr: Depend on snprintf; this improves portability.
27271         Suggested by Bruno Haible in the same email.
27272
27273         ftoastr: port to hosts lacking strtof and strtold
27274         Problem reported by Bruno Haible in
27275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27276         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27277         environment and strtold (and presumably strtof) are not available.
27278         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27279         (configure.ac): Require gl_C99_STRTOLD.
27280
27281 2010-11-18  Bruno Haible  <bruno@clisp.org>
27282
27283         c-strtold: Avoid link error on AIX 7.
27284         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27285         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27286         (gl_C_STRTOLD): Test whether strtold_l exists.
27287         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27288
27289 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27290
27291         intprops: new macro INT_BITS_STRLEN_BOUND
27292         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27293         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27294         not exposed.  Also, it uses a slightly tighter bound than before;
27295         though this makes no practical difference, we might as well be as
27296         tight as we easily can.
27297
27298         ftoastr: new module, for lossless conversion of floats to short strings
27299         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27300         * modules/ftoastr: New files.
27301
27302 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27303
27304         bootstrap: port to Solaris sed
27305         * build-aux/bootstrap (get_version): Port to Solaris sed.
27306         See Ralf Wildenhues's note in
27307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27308
27309 2010-11-14  Jim Meyering  <meyering@redhat.com>
27310
27311         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27312         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27313         and move definition closer to sole use.
27314
27315 2010-11-13  Jim Meyering  <meyering@redhat.com>
27316
27317         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27318         Now we require at least autoconf-2.59, which means the work-around
27319         is no longer needed.
27320         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27321         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27322         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27323         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27324         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27325
27326 2010-11-13  Bruno Haible  <bruno@clisp.org>
27327
27328         rename, renameat: Avoid test failures at NFS mounted locations.
27329         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27330         functions.
27331         (test_rename): Use assert_nonexistent.
27332         * tests/test-rename.c: Include <dirent.h>.
27333         * tests/test-renameat.c: Likewise.
27334         Reported by Gary V. Vaughan <gary@gnu.org>.
27335
27336         rename, renameat: Document Linux bug with NFS
27337         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27338         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27339         * doc/posix-functions/renameat.texi: Likewise.
27340         Suggested by Eric Blake.
27341
27342 2010-11-13  Bruno Haible  <bruno@clisp.org>
27343
27344         rename test: Add comments.
27345         * tests/test-rename.h (test_rename): Add structure and comments.
27346
27347 2010-11-13  Eric Blake  <eblake@redhat.com>
27348
27349         maintainer-makefile: cover a few more files
27350         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27351         scripts generated within C files, for libvirt.
27352
27353 2010-11-13  Bruno Haible  <bruno@clisp.org>
27354
27355         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27356         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27357         character, return the number of bytes that belong together, not always
27358         1.
27359         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27360         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27361         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27362         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27363         number of bytes of an invalid character.
27364         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27365         (main): Invoke it.
27366         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27367         results.
27368         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27369         malformed byte sequences.
27370         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27371         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27372         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27373         Reported by Ben Pfaff and Paolo Bonzini.
27374
27375 2010-11-13  Bruno Haible  <bruno@clisp.org>
27376
27377         openat: Work around glibc bug with fchownat() and empty file names.
27378         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27379         (gl_FUNC_FCHOWNAT): Invoke it.
27380         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27381         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27382         Reported by Gary V. Vaughan <gary@gnu.org>.
27383
27384 2010-11-13  Bruno Haible  <bruno@clisp.org>
27385
27386         openat: Ensure autoconf macro ordering.
27387         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27388         gl_USE_SYSTEM_EXTENSIONS.
27389         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27390
27391 2010-11-13  Bruno Haible  <bruno@clisp.org>
27392
27393         Update comments.
27394         * lib/unistr/u8-check.c: Update file name in comments.
27395         * lib/unistr/u8-mblen.c: Likewise.
27396         * lib/unistr/u8-prev.c: Likewise.
27397         * lib/unistr/u8-strmblen.c: Likewise.
27398         * lib/unistr/u8-strmbtouc.c: Likewise.
27399
27400 2010-11-13  Jim Meyering  <meyering@redhat.com>
27401
27402         tests: avoid test failure on Solaris 10 due to lack of PATH export
27403         * tests/test-update-copyright.sh: Don't forget to export PATH.
27404
27405         init.sh: ensure that IFS is defined, just in case...
27406         * tests/init.sh (setup_): Ensure that IFS is defined,
27407         so that saving and restoring it works as expected.  This
27408         appears to be useful at least for an old version of dash
27409         from a long time ago (RH 6).  See here for details:
27410         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27411
27412         maint.mk: tighten "test a == b" check
27413         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27414         test to files that contain something like #!/bin/sh.
27415         Without this, coreutils would get two false positives in
27416         the comments of C source files.
27417
27418 2010-11-12  Eric Blake  <eblake@redhat.com>
27419
27420         bootstrap: fix typo in previous attempt
27421         * build-aux/bootstrap (buildreq): Correct the grouping.
27422         Reported by Paul Eggert.
27423
27424         maintainer-makefile: prohibit test x == x
27425         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27426         Based on a report by Matthias Bolte.
27427
27428         bootstrap: allow FreeBSD gzip
27429         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27430         which has no '.' and goes to stderr.
27431         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27432         Reported by Matthias Bolte.
27433
27434         maintainer-makefile: check for i18n setup
27435         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27436         will likely work.
27437
27438 2010-11-12  Bruno Haible  <bruno@clisp.org>
27439
27440         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27441         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27442         * lib/nanosleep.c (nanosleep): Likewise.
27443
27444 2010-11-11  Bruno Haible  <bruno@clisp.org>
27445
27446         fcntl-h: Fix for use of C++ on glibc systems.
27447         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27448         also on glibc systems in C++ mode.
27449         Reported by Gary V. Vaughan <gary@gnu.org>.
27450
27451 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27452
27453         mknod: avoid false failure with dash
27454         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27455
27456 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27457
27458         unlink: Fix "is it should" typo in diagnostic.
27459         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27461
27462 2010-11-11  Bruno Haible  <bruno@clisp.org>
27463
27464         Tests for module 'strerror_r-posix'.
27465         * modules/strerror_r-posix-tests: New file.
27466         * tests/test-strerror_r.c: New file.
27467         * tests/test-string-c++.cc: Check the signature of strerror_r.
27468
27469         New module 'strerror_r-posix'.
27470         * lib/string.in.h (strerror_r): New declaration.
27471         * lib/strerror_r.c: New file.
27472         * m4/strerror_r.m4: New file.
27473         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27474         of strerror_r.
27475         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27476         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27477         * modules/strerror_r-posix: New file.
27478         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27479         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27480         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27481         portability problems.
27482
27483 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27484
27485         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27486         line is also considered for output. Quoted function name in shell
27487         command, so temporary files for functions like MyClass::operator()
27488         are removed correctly without errors.
27489
27490 2010-11-09  Bruno Haible  <bruno@clisp.org>
27491
27492         * doc/posix-functions/strerror.texi: List more failing platforms.
27493
27494         * doc/posix-functions/strerror.texi: Add a comment.
27495
27496 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27497
27498         fdopendir: fix bug on MacOS X when low on file descriptors
27499
27500         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27501         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27502         All callers changed.
27503         (fdopendir): Invoke save_cwd at the top level, not after using
27504         multiple dup() calls to use up file descriptors.  Then retry
27505         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27506         less than the maximum number of open file descriptors, because
27507         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27508         on Mac OS X 10.6.4 for tar 1.24
27509         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27510         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27511         and for tar 1.25
27512         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27513
27514 2010-11-07  Bruno Haible  <bruno@clisp.org>
27515
27516         vasnprintf: Support I flag on glibc systems.
27517         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27518         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27519         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27520         snprintf function.
27521         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27522         glibc systems.
27523         * tests/test-vasnprintf-posix3.c: New file.
27524         * modules/vasnprintf-posix-tests (Files): Add it.
27525         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27526
27527 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27528
27529         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27530         * MODULES.html.sh: For compiler warnings, use name
27531         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27532
27533 2010-11-05  Eric Blake  <eblake@redhat.com>
27534
27535         ceil, floor: avoid spurious failure with icc
27536         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27537         [denormals-as-zero] when optimizing without -mieee-fp option.
27538         * tests/test-floorf2.c (floorf_reference): Likewise.
27539         * tests/test-ceilf1.c (dummy): New function.
27540         (main): Use it to outsmart icc's optimization.
27541         * tests/test-floorf1.c (dummy, main): Likewise.
27542
27543         tests: require working signbit
27544         * modules/ceilf-tests (Depends-on): Add signbit.
27545         * modules/ceill-tests (Depends-on): Likewise.
27546         * modules/floorf-tests (Depends-on): Likewise.
27547         * modules/floorl-tests (Depends-on): Likewise.
27548         * modules/round-tests (Depends-on): Likewise.
27549         * modules/roundf-tests (Depends-on): Likewise.
27550         * modules/roundl-tests (Depends-on): Likewise.
27551         * modules/trunc-tests (Depends-on): Likewise.
27552         * modules/truncf-tests (Depends-on): Likewise.
27553         * modules/truncl-tests (Depends-on): Likewise.
27554
27555         strtod: work around icc bug
27556         * lib/strtod.c (minus_zero): Define to working value.
27557         (strtod): Use it to avoid icc bug.
27558
27559         copysign: enhance tests
27560         * modules/copysign-tests (Files): Add minus-zero.h.
27561         * tests/test-copysign.c (main): Also test zeros.
27562
27563 2010-11-04  Eric Blake  <eblake@redhat.com>
27564
27565         ceil, floor, round, trunc: enhance tests of -0
27566         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27567         * tests/test-ceill.c (main): Likewise.
27568         * tests/test-floorf1.c (main): Likewise.
27569         * tests/test-floorl.c (main): Likewise.
27570         * tests/test-round1.c (main): Likewise.
27571         * tests/test-roundf1.c (main): Likewise.
27572         * tests/test-roundl.c (main): Likewise.
27573         * tests/test-trunc1.c (main): Likewise.
27574         * tests/test-truncf1.c (main): Likewise.
27575         * tests/test-truncl.c (main): Likewise.
27576
27577 2010-11-04  Eric Blake  <eblake@redhat.com>
27578
27579         frexp, tests: work around ICC bug with -zero
27580         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27581         works with more compilers.
27582         * tests/minus-zero.h: New file.
27583         * modules/ceilf-tests (Files): Include it.
27584         * modules/ceill-tests (Files): Likewise.
27585         * modules/floorf-tests (Files): Likewise.
27586         * modules/floorl-tests (Files): Likewise.
27587         * modules/frexp-nolibm-tests (Files): Likewise.
27588         * modules/frexp-tests (Files): Likewise.
27589         * modules/frexpl-nolibm-tests (Files): Likewise.
27590         * modules/frexpl-tests (Files): Likewise.
27591         * modules/isnan-tests (Files): Likewise.
27592         * modules/isnand-nolibm-tests (Files): Likewise.
27593         * modules/isnand-tests (Files): Likewise.
27594         * modules/isnanf-nolibm-tests (Files): Likewise.
27595         * modules/isnanf-tests (Files): Likewise.
27596         * modules/isnanl-nolibm-tests (Files): Likewise.
27597         * modules/isnanl-tests (Files): Likewise.
27598         * modules/round-tests (Files): Likewise.
27599         * modules/roundf-tests (Files): Likewise.
27600         * modules/roundl-tests (Files): Likewise.
27601         * modules/ldexpl-tests (Files): Likewise.
27602         * modules/signbit-tests (Files): Likewise.
27603         * modules/snprintf-posix-tests (Files): Likewise.
27604         * modules/sprintf-posix-tests (Files): Likewise.
27605         * modules/strtod-tests (Files): Likewise.
27606         * modules/trunc-tests (Files): Likewise.
27607         * modules/truncf-tests (Files): Likewise.
27608         * modules/truncl-tests (Files): Likewise.
27609         * modules/vsnprintf-posix-tests (Files): Likewise.
27610         * modules/vsprintf-posix-tests (Files): Likewise.
27611         * modules/vasnprintf-posix-tests (Files): Likewise.
27612         * modules/vasprintf-posix-tests (Files): Likewise.
27613         * tests/test-ceilf1.c (main): Use it.
27614         * tests/test-ceill.c (main): Likewise.
27615         * tests/test-floorf1.c (main): Likewise.
27616         * tests/test-floorl.c (main): Likewise.
27617         * tests/test-frexp.c (main): Likewise.
27618         * tests/test-frexpl.c (main): Likewise.
27619         * tests/test-isnan.c (main): Likewise.
27620         * tests/test-isnand.h (main): Likewise.
27621         * tests/test-isnanf.h (main): Likewise.
27622         * tests/test-isnanl.h (main): Likewise.
27623         * tests/test-ldexpl.c (main): Likewise.
27624         * tests/test-round.c (main): Likewise.
27625         * tests/test-roundf.c (main): Likewise.
27626         * tests/test-roundl.c (main): Likewise.
27627         * tests/test-signbit.c (test_signbitf, test_signbitd)
27628         (test_signbitl): Likewise.
27629         * tests/test-snprintf-posix.h (test_function): Likewise.
27630         * tests/test-sprintf-posix.h (test_function): Likewise.
27631         * tests/test-strtod.c (main): Likewise.
27632         * tests/test-trunc1.c (main): Likewise.
27633         * tests/test-truncf1.c (main): Likewise.
27634         * tests/test-truncl.c (main): Likewise.
27635
27636         isnanl: work around icc bug
27637         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27638
27639 2010-11-03  Eric Blake  <eblake@redhat.com>
27640
27641         tests: fix compiler warnings
27642         * tests/test-getopt.h (test_getopt): Fix condition.
27643         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27644         * tests/test-pipe2.c (main): Likewise.
27645         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27646
27647         utimens: fix broken m4 test
27648         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27649
27650 2010-10-28  Bruno Haible  <bruno@clisp.org>
27651
27652         posix_spawn*, getdtablesize: Relax license.
27653         * modules/posix_spawn (License): Change to LGPLv2+.
27654         * modules/posix_spawnp (License): Likewise.
27655         * modules/posix_spawn-internal (License): Likewise.
27656         * modules/posix_spawnattr_init (License): Likewise.
27657         * modules/posix_spawnattr_getflags (License): Likewise.
27658         * modules/posix_spawnattr_setflags (License): Likewise.
27659         * modules/posix_spawnattr_getpgroup (License): Likewise.
27660         * modules/posix_spawnattr_setpgroup (License): Likewise.
27661         * modules/posix_spawnattr_getschedparam (License): Likewise.
27662         * modules/posix_spawnattr_setschedparam (License): Likewise.
27663         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27664         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27665         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27666         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27667         * modules/posix_spawnattr_getsigmask (License): Likewise.
27668         * modules/posix_spawnattr_setsigmask (License): Likewise.
27669         * modules/posix_spawnattr_destroy (License): Likewise.
27670         * modules/posix_spawn_file_actions_init (License): Likewise.
27671         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27672         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27673         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27674         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27675         * modules/getdtablesize (License): Likewise.
27676         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27677
27678 2010-10-26  Bruno Haible  <bruno@clisp.org>
27679
27680         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27681         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27682         Cygwin and mingw.
27683         Suggested by Eric Blake.
27684
27685 2010-10-26  Bruno Haible  <bruno@clisp.org>
27686
27687         stdio: Work around compilation error due to renameat() on Solaris 10.
27688         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27689         * lib/renameat.c: Don't include <unistd.h> here.
27690         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27691         Reported by Paul Eggert and Eric Blake.
27692
27693 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27694
27695         renameat: port to Solaris 10, which declares renameat in unistd.h
27696
27697         * lib/renameat.c: Include unistd.h before stdio.h, because
27698         Solaris 10 declares renameat in unistd.h.  Problem encountered
27699         when building GNU tar 1.24 on Solaris 10.
27700
27701 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27702
27703         fdopendir: fix C89 compilation
27704         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27705         compilers.
27706
27707 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27708
27709         inttostr: simplify by removing unnecessary redundancy
27710         * lib/anytostr.c: Don't include verify.h.
27711         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27712         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27713         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27714         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27715         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27716         Likewise.
27717         * modules/inttostr (Depends-on): Remove 'verify'.
27718
27719 2010-10-23  Bruno Haible  <bruno@clisp.org>
27720
27721         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27722         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27723         Reported by Eric Blake.
27724
27725 2010-10-23  Bruno Haible  <bruno@clisp.org>
27726
27727         Tests: Fix LOCALE_JA on MirBSD 10.
27728         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27729         to an UTF-8 locale.
27730         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27731         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27732         Reported by Eric Blake.
27733
27734 2010-10-21  Bruno Haible  <bruno@clisp.org>
27735
27736         nl_langinfo test: Avoid test failure on NetBSD 5.
27737         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27738         Reported by Eric Blake.
27739
27740 2010-10-21  Eric Blake  <eblake@redhat.com>
27741
27742         c-stack: work around libsigsegv 2.8 bug
27743         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27744         overflow on at least PowerPC64.
27745
27746 2010-10-17  Bruno Haible  <bruno@clisp.org>
27747
27748         userspec: Drop redundant file.
27749         * modules/userspec (Files): Remove lib/inttostr.h.
27750
27751 2010-10-17  Bruno Haible  <bruno@clisp.org>
27752
27753         nl_langinfo tests: Silence some warnings.
27754         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27755         Reported by Jim Meyering.
27756
27757 2010-10-17  Bruno Haible  <bruno@clisp.org>
27758
27759         Make use of GCC's attribute __alloc_size__.
27760         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27761         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27762         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27763         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27764         __alloc_size__.
27765         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27766         Suggested by Jim Meyering.
27767
27768 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27769
27770         bootstrap: anchor .gitignore entries.
27771         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27772         with...
27773         (insert_vc_ignore): ... this new function, which prepends `/' to
27774         all .gitignore entries before passing them to
27775         insert_sorted_if_absent.
27776
27777 2010-10-16  Bruno Haible  <bruno@clisp.org>
27778
27779         nextafter: Fix configure check.
27780         * modules/nextafter (configure.ac): Correct expected prototype.
27781
27782 2010-10-16  Bruno Haible  <bruno@clisp.org>
27783
27784         termios: Update documentation.
27785         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27786
27787 2010-10-16  Bruno Haible  <bruno@clisp.org>
27788
27789         tests: Make them compile with TinyCC.
27790         * tests/test-strstr.c (main): Remove parentheses around array
27791         initializer.
27792
27793 2010-10-15  Eric Blake  <eblake@redhat.com>
27794
27795         ignore-value: make header idempotent
27796         * lib/ignore-value.h: Add double-inclusion guards.
27797         Reported by Stefan Berger.
27798
27799 2010-10-15  Jim Meyering  <meyering@redhat.com>
27800
27801         GNUmakefile: handle "stable" target, not "major"
27802         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27803         lists in maint.mk and announce-gen.  Without this, "make stable"
27804         would fail to ensure that $(VERSION) is up to date.
27805
27806 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27807
27808         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27809         & co.
27810
27811 2010-10-14  Bruno Haible  <bruno@clisp.org>
27812
27813         vasnprintf: Don't set errno to 0.
27814         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27815         block that sets it to 0.
27816         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27817
27818 2010-10-14  Bruno Haible  <bruno@clisp.org>
27819
27820         socketlib: Fix.
27821         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27822         gl_PREREQ_SYS_H_WINSOCK2.
27823         Reported by Ian Beckwith <ianb@erislabs.net>.
27824
27825 2010-10-13  Jim Meyering  <meyering@redhat.com>
27826
27827         test-select-stdin.c: avoid warn_unused_result warnings
27828         * tests/test-select-stdin.c: Include "macros.h".
27829         ASSERT that read and fflush succeed.
27830
27831 2010-10-13  Jim Meyering  <meyering@redhat.com>
27832
27833         git-version-gen: do require git-VC'd files in cwd
27834         * build-aux/git-version-gen: Reject a git version string
27835         if there are no commits associated with the current directory.
27836         This avoids an unlikely false-positive (unrelated dir whose parent
27837         repository also contains a tag matching v*), as pointed out
27838         by Giuseppe Scrivano in
27839         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27840
27841 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27842
27843         argv-iter: omit nonconforming declaration
27844         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27845         enum arg_iter_err declaration, which doesn't conform to C99.
27846         Solaris 10 cc warns about this.
27847
27848 2010-10-13  Eric Blake  <eblake@redhat.com>
27849
27850         termios: fix compilation on mingw
27851         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27852         (gl_TERMIOS_H): Adjust it on mingw.
27853         * modules/termios (Makefile.am): Substitute new key.
27854         * lib/termios.in.h (includes): Make include_next conditional.
27855         * doc/posix-headers/termios.texi (termios.h): Update
27856         documentation.
27857         Reported by Daniel P. Berrange.
27858
27859 2010-10-13  Jim Meyering  <meyering@redhat.com>
27860
27861         git-version-gen: don't require that .git/ be in the current dir
27862         * build-aux/git-version-gen: Adjust this script so that it works
27863         when run from any working directory beneath the top-level .git/-
27864         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27865         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27866
27867         test-select: avoid warn_unused_result warnings
27868         * tests/test-select.c: Include "macros.h".
27869         ASSERT that each call to read, write, and pipe succeeds.
27870         While not technically required, also check each "close".
27871         * modules/select-tests (Files): Add tests/macros.h.
27872
27873         test-symlinkat: remove declaration of unused local
27874         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27875
27876         test-inttostr: avoid shadowing warnings
27877         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27878         and use malloc rather than the stack for the same reason as
27879         mentioned in the comment justifying the other allocation.
27880
27881 2010-10-11  Bruno Haible  <bruno@clisp.org>
27882
27883         stdlib: Allow multiple gnulib generated replacements to coexist.
27884         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27885         Reported by Sam Steingold <sds@gnu.org>.
27886
27887 2010-10-11  Jim Meyering  <meyering@redhat.com>
27888
27889         fix a documentation typo
27890         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27891
27892 2010-10-11  Eric Blake  <eblake@redhat.com>
27893
27894         futimens: work around Solaris 11 bug
27895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27896         * tests/test-futimens.h (test_futimens): Enhance, rather than
27897         weaken test.
27898         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27899
27900 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27901
27902         Indentation.
27903         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27904         higher-level operators more to the left.
27905
27906 2010-10-11  Jim Meyering  <meyering@redhat.com>
27907
27908         test-futimens: avoid unwarranted test failure on Solaris 5.11
27909         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27910         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27911         because it tries to dereference the NULL name argument.
27912
27913 2010-10-11  Bruno Haible  <bruno@clisp.org>
27914
27915         Indentation.
27916         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27917         indentation.
27918
27919 2010-10-11  Jim Meyering  <meyering@redhat.com>
27920
27921         spawn.in.h: make indentation consistent with parentheses
27922         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27923         Make indentation consistent with parentheses.
27924
27925 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27926
27927         Fix mismatched parens in previous commit
27928         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27929         parens.
27930
27931 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27932
27933         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27934
27935         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27936         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27937         * lib/malloca.c: Include "verify.h".
27938         (verify1): Remove, replacing with a verify call.
27939         * lib/relocwrapper.c (verify1): Likewise.
27940         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27941         Likewise.
27942         * modules/malloca (Depends-on): Add 'verify'.
27943         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27944         * modules/vasnprintf (Depends-on): Add 'verify'.
27945         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27946         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27947         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27948         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27949         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27950         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27951         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27952
27953         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27954
27955         Formerly the style was sometimes 2*X - 1, because the C standard
27956         was wrongly thought to disallow ?: in integral constant expressions.
27957         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27958         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27959         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27960         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27961         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27962         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27963         verify that time_t cannot be floating.
27964
27965 2010-10-08  Eric Blake  <eblake@redhat.com>
27966
27967         time: enforce recent POSIX ruling that time_t is integral
27968         * lib/time.in.h (__time_t_must_be_integral): Detect any
27969         problematic systems, allowing the rest of gnulib to assume POSIX.
27970
27971 2010-10-08  Jim Meyering  <meyering@redhat.com>
27972
27973         fdopendir: fix a bug on systems lacking openat and /proc support
27974         OpenBSD 4.7 is one such system.  The most noticeable effect was
27975         failure of any application making nontrivial use of fts: rm, du,
27976         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27977           ./rm: traversal failed: `a': Bad file descriptor
27978         Debugging that, you see that even though FD 6 was closed just
27979         prior to the opendir call in fd_clone_opendir, its resulting
27980         dir->dd_fd was 8, rather than the expected value of 6:
27981
27982         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27983         93                close (fd);
27984         (gdb) n
27985         94                dir = fd_clone_opendir (dupfd);
27986         (gdb) n
27987         95                saved_errno = errno;
27988         (gdb) p dir->dd_fd
27989         $11 = 8
27990
27991         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27992         The problem is that on OpenBSD, fd_clone_opendir has to resort
27993         to using the old-style save/restore CWD mechanism, due to its
27994         lack of openat/proc support, and *that* would steal the FD (6)
27995         that opendir was supposed to use.
27996
27997         The fix is to squirrel away the desired FD so that save_cwd uses a
27998         different one, and then free the dest FD right before calling opendir.
27999         That guarantees opendir will use the required file descriptor.
28000
28001         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28002
28003 2010-10-08  Bruno Haible  <bruno@clisp.org>
28004
28005         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28006         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28007
28008 2010-10-08  Bruno Haible  <bruno@clisp.org>
28009
28010         nanosleep: Make replacement POSIX compliant.
28011         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28012         is out of range.
28013         Reported by Jim Meyering.
28014
28015 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28016
28017         bootstrap: add hook for altering gnulib.mk, for Bison
28018         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28019         the Bison bootstrapping process can rewrite file names and variables
28020         in this file before later parts of 'bootstrap' use the file.
28021         Bison wants to include lib/gnulib.mk from the top-level makefile,
28022         so it needs the file names in this file to be relative to the top
28023         level, not relative to lib; plus it needs variable names to be
28024         rewritten.
28025         (slurp): Use the new function.
28026
28027         bootstrap: reformat for readability
28028         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28029
28030 2010-10-08  Eric Blake  <eblake@redhat.com>
28031
28032         docs: update cygwin progress
28033         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28034         1.7.7.
28035         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28036         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28037         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28038         * doc/posix-functions/carg.texi (carg): Likewise.
28039         * doc/posix-functions/cargf.texi (cargf): Likewise.
28040         * doc/posix-functions/casin.texi (casin): Likewise.
28041         * doc/posix-functions/casinf.texi (casinf): Likewise.
28042         * doc/posix-functions/casinh.texi (casinh): Likewise.
28043         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28044         * doc/posix-functions/catan.texi (catan): Likewise.
28045         * doc/posix-functions/catanf.texi (catanf): Likewise.
28046         * doc/posix-functions/catanh.texi (catanh): Likewise.
28047         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28048         * doc/posix-functions/ccos.texi (ccos): Likewise.
28049         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28050         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28051         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28052         * doc/posix-functions/cexp.texi (cexp): Likewise.
28053         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28054         * doc/posix-functions/cimag.texi (cimag): Likewise.
28055         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28056         * doc/posix-functions/clog.texi (clog): Likewise.
28057         * doc/posix-functions/clogf.texi (clogf): Likewise.
28058         * doc/posix-functions/conj.texi (conj): Likewise.
28059         * doc/posix-functions/conjf.texi (conjf): Likewise.
28060         * doc/posix-functions/cpow.texi (cpow): Likewise.
28061         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28062         * doc/posix-functions/cproj.texi (cproj): Likewise.
28063         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28064         * doc/posix-functions/creal.texi (creal): Likewise.
28065         * doc/posix-functions/crealf.texi (crealf): Likewise.
28066         * doc/posix-functions/csin.texi (csin): Likewise.
28067         * doc/posix-functions/csinf.texi (csinf): Likewise.
28068         * doc/posix-functions/csinh.texi (csinh): Likewise.
28069         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28070         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28071         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28072         * doc/posix-functions/ctan.texi (ctan): Likewise.
28073         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28074         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28075         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28076         * doc/posix-headers/complex.texi (complex.h): Likewise.
28077
28078 2010-10-07  Jim Meyering  <meyering@redhat.com>
28079
28080         parse-datetime: avoid compilation failure on OpenBSD 4.7
28081         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28082         This works around a compilation failure on OpenBSD 4.7:
28083         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28084
28085 2010-10-07  Eric Blake  <eblake@redhat.com>
28086
28087         docs: update cygwin progress
28088         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28089         1.7.6.
28090         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28091         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28092         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28093         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28094         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28095         Likewise.
28096         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28097         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28098         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28099         Likewise.
28100         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28101         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28102         Likewise.
28103         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28104         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28105         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28106         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28107         Likewise.
28108         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28109         Likewise.
28110         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28111
28112         docs: update parse-datetime history
28113         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28114         documentation of this function's history and alternatives.
28115
28116         cygwin: use more robust version check
28117         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28118         exclude an eventual cygwin 1.9.1.
28119         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28120         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28121         (gl_FUNC_STRCASESTR): Likewise.
28122         Reported by Bruno Haible.
28123
28124 2010-10-06  Bruno Haible  <bruno@clisp.org>
28125
28126         string, sys_select: Avoid #including large headers unless necessary.
28127         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28128         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28129         OSF/1, BeOS, Haiku.
28130         Reported by Jim Meyering.
28131
28132 2010-10-05  Eric Blake  <eblake@redhat.com>
28133
28134         memmem, strstr, strcasestr: fix bug with long periodic needle
28135         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28136         periodic needle having false positive.
28137         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28138         and cygwin 1.7.7.
28139         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28141         (gl_FUNC_STRCASESTR): Likewise.
28142         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28143         * tests/test-memmem.c (main): Expose the bug.
28144         * tests/test-strcasestr.c (main): Likewise.
28145         * tests/test-strstr.c (main): Likewise.
28146         * tests/test-c-strcasestr.c (main): Likewise.
28147         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28148         * doc/posix-functions/strstr.texi (strstr): Likewise.
28149         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28150         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28151
28152 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28153
28154         parse-datetime: do some more renaming
28155         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28156         parse_datetime, not get_date.  Mention the renaming.
28157         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28158         in comments.
28159         * m4/bison.m4: Likewise.
28160
28161 2010-10-05  Eric Blake  <eblake@redhat.com>
28162
28163         parse-datetime: better name than get_date
28164         * NEWS: Reword the deprecation notice.
28165         * modules/get_date: Rename to modules/parse-datetime.
28166         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28167         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28168         * lib/get_date.y: Rename to lib/parse-datetime.y.
28169         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28170         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28171         * doc/getdate.texi: Provide fallback wrapper.
28172         * lib/getdate.h: Move guts, and wrap...
28173         * lib/parse-datetime.h: ...new file.
28174         * lib/parse-datetime.y (get_date): Rename...
28175         (parse_datetime): ...to this.
28176         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28177         (gl_PARSE_DATETIME): ...to this.
28178         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28179         documentation.
28180         * modules/getdate (Files): Provide fallback docs and header.
28181         (Notice, Depends-on): Update references.
28182         * tests/test-parse-datetime.c: Likewise.
28183         * DEPENDENCIES: Likewise.
28184         * MODULES.html.sh (Date and time <time.h>): Likewise.
28185         * doc/parse-datetime.texi (Date input formats)
28186         (Authors of parse_datetime): Likewise.
28187         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28188         (Include): Likewise.
28189         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28190         * gnulib-tool: Likewise.
28191         * m4/bison.m4 (gl_BISON): Likewise.
28192         Suggested by Bruno Haible.
28193
28194 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28195
28196         more ports to Solaris tr, which needs [] around ranges
28197         * gnulib-tool: Solaris tr needs [] around ranges.
28198         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28199         * tests/test-pipe-filter-gi1.c (main): Likewise.
28200         * tests/test-pipe-filter-ii1.c (main): Likewise.
28201
28202 2010-10-05  Eric Blake  <eblake@redhat.com>
28203
28204         bootstrap: fix Solaris regression
28205         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28206         around ranges.
28207         Reported by Pádraig Brady.
28208
28209         bootstrap: work with pkg-config
28210         * build-aux/bootstrap (check_versions): Also transliterate - in
28211         prerequisite name.
28212         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28213         prerequisites that were already found, to avoid confusion.
28214         Reported by Justin Clift.
28215
28216         faccessat: remove unused wrappers
28217         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28218         presence of these wrappers dragged in -lgen on Solaris.
28219         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28220
28221 2010-10-05  Jim Meyering  <meyering@redhat.com>
28222
28223         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28224         * Makefile (sc_pragma_columns): New syntax-check rule.
28225
28226 2010-10-04  Bruno Haible  <bruno@clisp.org>
28227
28228         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28229         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28230         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28231         Reported by Bruce Korb and Eric Blake.
28232
28233 2010-10-04  Bruno Haible  <bruno@clisp.org>
28234
28235         threadlib: Make option --with-libpth-prefix work.
28236         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28237         use $LIBPTH, not just -lpth.
28238
28239 2010-10-04  Bruno Haible  <bruno@clisp.org>
28240
28241         Avoid line length limitation from HP NonStop system header files.
28242         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28243         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28244         * lib/ctype.in.h: Likewise.
28245         * lib/dirent.in.h: Likewise.
28246         * lib/errno.in.h: Likewise.
28247         * lib/fcntl.in.h: Likewise.
28248         * lib/float.in.h: Likewise.
28249         * lib/getopt.in.h: Likewise.
28250         * lib/iconv.in.h: Likewise.
28251         * lib/inttypes.in.h: Likewise.
28252         * lib/langinfo.in.h: Likewise.
28253         * lib/locale.in.h: Likewise.
28254         * lib/math.in.h: Likewise.
28255         * lib/netdb.in.h: Likewise.
28256         * lib/netinet_in.in.h: Likewise.
28257         * lib/poll.in.h: Likewise.
28258         * lib/pthread.in.h: Likewise.
28259         * lib/pty.in.h: Likewise.
28260         * lib/sched.in.h: Likewise.
28261         * lib/se-selinux.in.h: Likewise.
28262         * lib/search.in.h: Likewise.
28263         * lib/signal.in.h: Likewise.
28264         * lib/spawn.in.h: Likewise.
28265         * lib/stdarg.in.h: Likewise.
28266         * lib/stddef.in.h: Likewise.
28267         * lib/stdint.in.h: Likewise.
28268         * lib/stdio.in.h: Likewise.
28269         * lib/stdlib.in.h: Likewise.
28270         * lib/string.in.h: Likewise.
28271         * lib/strings.in.h: Likewise.
28272         * lib/sys_file.in.h: Likewise.
28273         * lib/sys_ioctl.in.h: Likewise.
28274         * lib/sys_select.in.h: Likewise.
28275         * lib/sys_socket.in.h: Likewise.
28276         * lib/sys_stat.in.h: Likewise.
28277         * lib/sys_time.in.h: Likewise.
28278         * lib/sys_times.in.h: Likewise.
28279         * lib/sys_utsname.in.h: Likewise.
28280         * lib/sys_wait.in.h: Likewise.
28281         * lib/sysexits.in.h: Likewise.
28282         * lib/termios.in.h: Likewise.
28283         * lib/time.in.h: Likewise.
28284         * lib/unistd.in.h: Likewise.
28285         * lib/wchar.in.h: Likewise.
28286         * lib/wctype.in.h: Likewise.
28287         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28288         * modules/ctype (Makefile.am): Likewise.
28289         * modules/dirent (Makefile.am): Likewise.
28290         * modules/errno (Makefile.am): Likewise.
28291         * modules/fcntl-h (Makefile.am): Likewise.
28292         * modules/float (Makefile.am): Likewise.
28293         * modules/getopt-posix (Makefile.am): Likewise.
28294         * modules/iconv-h (Makefile.am): Likewise.
28295         * modules/inttypes (Makefile.am): Likewise.
28296         * modules/langinfo (Makefile.am): Likewise.
28297         * modules/locale (Makefile.am): Likewise.
28298         * modules/math (Makefile.am): Likewise.
28299         * modules/netdb (Makefile.am): Likewise.
28300         * modules/netinet_in (Makefile.am): Likewise.
28301         * modules/poll-h (Makefile.am): Likewise.
28302         * modules/pthread (Makefile.am): Likewise.
28303         * modules/pty (Makefile.am): Likewise.
28304         * modules/sched (Makefile.am): Likewise.
28305         * modules/search (Makefile.am): Likewise.
28306         * modules/selinux-h (Makefile.am): Likewise.
28307         * modules/signal (Makefile.am): Likewise.
28308         * modules/spawn (Makefile.am): Likewise.
28309         * modules/stdarg (Makefile.am): Likewise.
28310         * modules/stddef (Makefile.am): Likewise.
28311         * modules/stdint (Makefile.am): Likewise.
28312         * modules/stdio (Makefile.am): Likewise.
28313         * modules/stdlib (Makefile.am): Likewise.
28314         * modules/string (Makefile.am): Likewise.
28315         * modules/strings (Makefile.am): Likewise.
28316         * modules/sys_file (Makefile.am): Likewise.
28317         * modules/sys_ioctl (Makefile.am): Likewise.
28318         * modules/sys_select (Makefile.am): Likewise.
28319         * modules/sys_socket (Makefile.am): Likewise.
28320         * modules/sys_stat (Makefile.am): Likewise.
28321         * modules/sys_time (Makefile.am): Likewise.
28322         * modules/sys_times (Makefile.am): Likewise.
28323         * modules/sys_utsname (Makefile.am): Likewise.
28324         * modules/sys_wait (Makefile.am): Likewise.
28325         * modules/sysexits (Makefile.am): Likewise.
28326         * modules/termios (Makefile.am): Likewise.
28327         * modules/time (Makefile.am): Likewise.
28328         * modules/unistd (Makefile.am): Likewise.
28329         * modules/wchar (Makefile.am): Likewise.
28330         * modules/wctype (Makefile.am): Likewise.
28331
28332 2010-10-04  Bruno Haible  <bruno@clisp.org>
28333
28334         read-file tests: Avoid a test failure on NonStop Kernel.
28335         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28336         a regular file.
28337         Reported by Joachim Schmitz <schmitz@hp.com>.
28338
28339 2010-10-03  Bruno Haible  <bruno@clisp.org>
28340
28341         gnulib-tool: Fixes for --create-testdir with --libtool.
28342         * gnulib-tool (func_get_automake_snippet): Don't augment
28343         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28344         an executable.
28345         (func_create_testdir): Handle module 'alloca' like func_import.
28346         Reported by Bruce Korb <bruce.korb@gmail.com>.
28347
28348 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28349
28350         Avoid some lines longer than 80 characters.
28351         * lib/stdint.in.h: Break long comment lines.
28352         * lib/math.in.h: Likewise.
28353         (_GL_NUM_UINT_WORDS): New macro, for readability.
28354         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28355         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28356         * lib/stdlib.in.h: Likewise.
28357         * lib/spawn.in.h: Likewise.
28358         * lib/sys_socket.in.h: Update an URL.
28359         * lib/sys_stat.in.h: Break long line.
28360
28361 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28362
28363         Improve pmccabe2html.
28364         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28365         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28366         when the sources change. Remove the line in the HTML about "Used
28367         ranges" (which implied that there might be other unused ranges),
28368         rename "Resume" to "Summary" (easier to understand for more users).
28369         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28370         styles, and some unnecessary blank lines.
28371
28372 2010-10-03  Bruno Haible  <bruno@clisp.org>
28373             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28374
28375         acl: Add support for ACLs on NonStop Kernel.
28376         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28377         Check whether the function aclsort() exists.
28378         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28379         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28380         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28381         (acl_nontrivial [HAVE_ACLSORT]: New function.
28382         (file_has_acl): Implement for NonStop Kernel.
28383         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28384         (qset_acl): Implement for NonStop Kernel.
28385         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28386         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28387         (main): Implement for NonStop Kernel.
28388         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28389         Kernel. Handle this flavor.
28390         * tests/test-set-mode-acl.sh: Likewise.
28391         * tests/test-copy-acl.sh: Likewise.
28392         * tests/test-copy-file.sh: Likewise.
28393
28394 2010-10-03  Bruno Haible  <bruno@clisp.org>
28395
28396         Info about ACLs on NonStop Kernel.
28397         * doc/acl-resources.txt: Add info about NonStop Kernel.
28398         References by Joachim Schmitz <schmitz@hp.com>.
28399
28400 2010-10-02  Bruno Haible  <bruno@clisp.org>
28401
28402         Define missing EDQUOT on NonStop Kernel.
28403         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28404         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28406         missing.
28407         * doc/posix-headers/errno.texi: Mention the NSK bug.
28408         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28409         Reported by Joachim Schmitz <schmitz@hp.com>.
28410
28411 2010-10-02  Bruno Haible  <bruno@clisp.org>
28412
28413         Update doc for POSIX:2008.
28414         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28415         Update URL of POSIX specification.
28416
28417 2010-10-02  Bruno Haible  <bruno@clisp.org>
28418
28419         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28420         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28421         from gnulib, not from Automake.
28422
28423 2010-10-02  Bruno Haible  <bruno@clisp.org>
28424
28425         New module 'system-posix'.
28426         * modules/system-posix: New file.
28427         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28428         module is present.
28429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28430         GNULIB_SYSTEM_POSIX.
28431         * modules/stdlib (Depends-on): Remove sys_wait.
28432         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28433         * doc/posix-functions/system.texi: Mention the new module.
28434         * doc/posix-headers/stdlib.texi: Likewise.
28435         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28436         define test_sys_wait_macros to a no-op.
28437         Reported by Sam Steingold <sds@gnu.org>.
28438
28439 2010-09-30  Bruno Haible  <bruno@clisp.org>
28440
28441         More renaming from 'getdate' to 'get_date'.
28442         * doc/get_date.texi: Renamed from doc/getdate.texi.
28443         * modules/get_date (Files): Update.
28444         * MODULES.html.sh (Date and time <time.h>): Update.
28445         * DEPENDENCIES: Update.
28446         * gnulib-tool: Update comment.
28447         * m4/bison.m4 (gl_BISON): Likewise.
28448         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28449
28450 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28451
28452         bootstrap: support ACLOCAL_FLAGS during aclocal
28453         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28454         can add additional -I dir for third-party .m4 files.
28455
28456 2010-09-30  Eric Blake  <eblake@redhat.com>
28457
28458         bootstrap: use glibtoolize on MacOS
28459         * build-aux/bootstrap (check_versions): Convert libtool into
28460         libtoolize.
28461         (tool search): Move libtool check earlier, and look for
28462         glibtoolize for MacOS.
28463         (gnulib_tool_options): Auto-add --libtool when appropriate.
28464         Reported by Justin Clift.
28465
28466         poll: fix typo that broke test on MacOS
28467         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28468         Reported by Justin Clift.
28469
28470         getdate: rename to get_date
28471         Note: getdate.h is not renamed, to minimize client impact.
28472         * modules/getdate: Mark obsolete.  Move old contents...
28473         * modules/get_date: ...to new module name.
28474         * modules/getdate-tests: Move...
28475         * modules/get_date-tests: ...here.
28476         * m4/getdate.m4: Move...
28477         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28478         * lib/getdate.y: Move...
28479         * lib/get_date.y: ...here.
28480         * tests/test-getdate.c: Move...
28481         * tests/test-get_date.c: ...here.
28482         * doc/posix-functions/getdate.texi (getdate): Update name.
28483         * NEWS: Mention the change.
28484
28485 2010-09-29  Bruno Haible  <bruno@clisp.org>
28486
28487         Separate the module 'waitpid' from the module 'sys_wait'.
28488         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28489         present.
28490         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28491         gl_MODULE_INDICATOR_FOR_TESTS.
28492         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28493         * modules/sys_wait (Depends-on): Remove waitpid.
28494         (Makefile.am): Substitute GNULIB_WAITPID.
28495         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28496         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28497         signature only if the 'waitpid' module is present.
28498         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28499         * NEWS: Mention the change.
28500         * modules/grantpt (Depends-on): Add waitpid.
28501         * modules/wait-process (Depends-on): Likewise.
28502
28503 2010-09-29  Bruno Haible  <bruno@clisp.org>
28504
28505         More tests for module 'sys_wait'.
28506         * modules/sys_wait-c++-tests: New file.
28507         * tests/test-sys_wait-c++.cc: New file.
28508         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28509         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28510
28511 2010-09-29  Bruno Haible  <bruno@clisp.org>
28512
28513         New module 'waitpid'.
28514         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28515         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28516         Don't include <process.h>.
28517         (waitpid): Declare only, using modern idiom.
28518         * m4/waitpid.m4: New file.
28519         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28520         * modules/waitpid: New file.
28521         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28522         (Makefile.am): Update.
28523         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28524
28525 2010-09-28  Bruno Haible  <bruno@clisp.org>
28526
28527         poll: Assume ANSI C.
28528         * lib/poll.c (poll): Use an ANSI C declaration.
28529
28530 2010-09-28  Bruno Haible  <bruno@clisp.org>
28531
28532         poll-h: Create poll.h on all platforms.
28533         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28534         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28535         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28536         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28537         (gl_REPLACE_POLL_H): Don't set POLL_H.
28538         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28539         * modules/poll-h (Depends-on): Add include_next.
28540         (Makefile.am): Create poll.h unconditionally. Substitute also
28541         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28542
28543 2010-09-28  Bruno Haible  <bruno@clisp.org>
28544
28545         Tests for module 'poll-h'.
28546         * modules/poll-h-c++-tests: New file.
28547         * tests/test-poll-h-c++.cc: New file.
28548
28549         Tests for module 'poll-h'.
28550         * modules/poll-h-tests: New file.
28551         * tests/test-poll-h.c: New file.
28552
28553 2010-09-28  Bruno Haible  <bruno@clisp.org>
28554
28555         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28556         * modules/poll-h (Depends-on): Add 'extensions'.
28557
28558 2010-09-28  Bruno Haible  <bruno@clisp.org>
28559
28560         New module 'poll-h'.
28561         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28562         (poll): Use modern idiom.
28563         * modules/poll-h: New file.
28564         * modules/poll (Files): Remove lib/poll.in.h.
28565         (Depends-on): Add poll-h.
28566         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28567         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28568         * m4/poll_h.m4: New file.
28569         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28570         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28571         and invoke gl_REPLACE_POLL_H.
28572         * lib/poll.c: Use common idiom.
28573         * tests/test-poll.c: Likewise.
28574         * doc/posix-headers/poll.texi: Mention the poll-h module.
28575         Suggested by Eric Blake.
28576
28577 2010-09-26  Bruno Haible  <bruno@clisp.org>
28578
28579         sys_wait: Implement WSTOPSIG.
28580         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28581         Reported by Simon Josefsson.
28582
28583 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28584
28585         stdlib, sys_wait: Avoid compilation error on mingw.
28586         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28587
28588 2010-09-26  Bruno Haible  <bruno@clisp.org>
28589
28590         stdlib tests: Avoid code duplication.
28591         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28592         * modules/sys_wait-tests (Files): Likewise.
28593         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28594         * tests/test-stdlib.c: Include test-sys_wait.h.
28595         (main): Invoke test_sys_wait_macros.
28596         * tests/test-sys_wait.c: Include test-sys_wait.h.
28597         (main): Invoke test_sys_wait_macros.
28598
28599 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28600
28601         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28602         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28603         sure Windows sockets are working before calling getaddrinfo.
28604         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28605         * doc/gnulib.texi (Windows sockets): Fix typo.
28606
28607 2010-09-25  Bruno Haible  <bruno@clisp.org>
28608
28609         Tests for module 'regex-quote'.
28610         * modules/regex-quote-tests: New file.
28611         * tests/test-regex-quote.c: New file.
28612
28613         New module 'regex-quote'.
28614         * lib/regex-quote.h: New file.
28615         * lib/regex-quote.c: New file.
28616         * modules/regex-quote: New file.
28617         Suggested by Reuben Thomas <rrt@sc3d.org>.
28618
28619 2010-09-24  Bruno Haible  <bruno@clisp.org>
28620
28621         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28622         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28623
28624 2010-09-23  Bruno Haible  <bruno@clisp.org>
28625
28626         setenv: Relax license.
28627         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28628         Blake.
28629         Requested by Eric Blake.
28630
28631 2010-09-22  Bruno Haible  <bruno@clisp.org>
28632
28633         termios: Relax license.
28634         * modules/termios (License): Change to LGPLv2+.
28635         Requested by Eric Blake.
28636
28637 2010-09-22  Bruno Haible  <bruno@clisp.org>
28638
28639         threadlib: Allow the package to change the default to 'no'.
28640         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28641         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28642         Reported by Paul Eggert.
28643
28644 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28645             Bruno Haible  <bruno@clisp.org>
28646
28647         Fix endless loop in mbmemcasecoll.
28648         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28649         byte.
28650         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28651
28652 2010-09-22  Bruno Haible  <bruno@clisp.org>
28653
28654         Tests for module 'memcoll'.
28655         * modules/memcoll-tests: New file.
28656         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28657
28658         memcoll, xmemcoll: Clarify size vs. length.
28659         * modules/memcoll.c (memcoll0): Clarify specification.
28660         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28661         passed to collate_error.
28662
28663 2010-09-22  Bruno Haible  <bruno@clisp.org>
28664
28665         Tests for module 'memcasecmp'.
28666         * modules/memcasecmp-tests: New file.
28667         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28668
28669 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28670
28671         * lib/pthread.in.h: Add split double-inclusion guard, and include
28672         system <pthread.h> if there is one.  Use @@-style as in other
28673         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28674         pthread.h doesn't.
28675         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28676         (pthread_mutexattr_settype, pthread_mutex_trylock):
28677         New static inline functions, if there's no system <pthread.h>.
28678         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28679         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28680         Approximate with mutexes if the system lacks spinlocks, as in
28681         MacOS.
28682         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28683         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28684         @@-style.  Check for spinlocks separately.
28685         (gl_PTHREAD_DEFAULTS): New macro.
28686         * modules/pthread: Redo to use a more typical style for in.h files.
28687
28688 2010-09-21  Eric Blake  <eblake@redhat.com>
28689
28690         net_if: enhance tests
28691         * tests/test-net_if.c (main): Move signature checks earlier.
28692         Print failures to stderr.
28693         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28694         Document the bug that we do not yet fix.
28695
28696 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28697
28698         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28699         about gnulib, not GSS.
28700
28701 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28702
28703         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28704         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28705         for Emacs.
28706         * build-aux/pmccabe2html: Make Makefile.am example code more
28707         cut-and-paste friendly.
28708
28709 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28710
28711         * tests/test-net_if.c: New file.
28712         * modules/net_if-tests: New file.
28713
28714 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28715
28716         pthread: add pthread_spin_destroy
28717         * lib/pthread.in.h (pthread_spin_destroy): New function.
28718
28719 2010-09-19  Bruno Haible  <bruno@clisp.org>
28720
28721         gnulib-tool: Fix --help output.
28722         * gnulib-tool (func_usage): Fix help message.
28723         Reported by Reuben Thomas <rrt@sc3d.org>.
28724
28725 2010-09-18  Jim Meyering  <meyering@redhat.com>
28726
28727         maint.mk: avoid unexpanded \n in two diagnostics
28728         * top/maint.mk (sc_prohibit_always_true_header_tests):
28729         Don't use a literal \n in a halt=... assignment.  It would not be
28730         expanded, and the two \n bytes would appear in the diagnostic output
28731         rather than the desired newline.  Use halt=$$(printf ... instead.
28732         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28733
28734 2010-09-18  Bruno Haible  <bruno@clisp.org>
28735
28736         netinet_in: Doc tweak.
28737         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28738         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28739
28740 2010-09-18  Jim Meyering  <meyering@redhat.com>
28741
28742         init.sh: correct an outdated comment
28743         * tests/init.sh (create_exe_shims_):  s/function/alias/
28744
28745         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28746         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28747         a file named "*.exe" is removed between the glob expansion and the
28748         processing of that oddly named file.
28749
28750 2010-09-17  Eric Blake  <eblake@redhat.com>
28751
28752         mirbsd: add some more support
28753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28754         in BSD family.
28755         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28756         devices as OpenBSD.
28757         * m4/host-os.m4 (mirbsd): Add MirBSD.
28758
28759         tests: fix unportable assumption on sys/wait.h
28760         * tests/test-sys_wait.c (main): Relax test.
28761         * tests/test-stdlib.c (main): Likewise.
28762
28763         init.sh: accommodate directory with no .exes
28764         * tests/init.sh: Accomodate directory containing only scripts.
28765
28766         tests: avoid compiler warning
28767         * tests/test-stdlib.c (main): Use the variable.
28768
28769         fdutimens, fdutimensat: update signature, again
28770         * lib/utimens.h (gl_futimens): Delete, and move signature...
28771         (fdutimens): ...here.
28772         (fdutimensat): Rearrange signature.
28773         (lutimensat): Rename variable for clarity.
28774         * lib/fdutimensat.c (fdutimensat): Update signature.
28775         * lib/utimens.c (fdutimens): Likewise.
28776         (gl_futimens): Delete.
28777         (utimens, lutimens): Update callers.
28778         * lib/futimens.c (futimens): Likewise.
28779         * tests/test-fdutimensat.c: Likewise.
28780         * tests/test-utimens.c: Likewise.
28781         * tests/test-futimens.h: Update comment.
28782         * NEWS: Mention this.
28783         Suggested by Paul Eggert.
28784
28785 2010-09-17  Bruno Haible  <bruno@clisp.org>
28786
28787         Take over the maintenance of some older macros from Autoconf.
28788         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28789         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28790         GNU Autoconf.
28791         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28792         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28793
28794 2010-09-17  Eric Blake  <eblake@redhat.com>
28795
28796         fdutimensat: drop atflag validation
28797         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28798         with valid fd, to close a race scenario where futimens is
28799         unsupported and FILE was replaced by a symlink.
28800         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28801         accordingly.
28802         Suggested by Paul Eggert.
28803
28804 2010-09-16  Bruno Haible  <bruno@clisp.org>
28805
28806         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28807         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28808
28809 2010-09-16  Bruno Haible  <bruno@clisp.org>
28810
28811         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28812         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28813         login_tty exists.
28814         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28815
28816 2010-09-16  Bruno Haible  <bruno@clisp.org>
28817
28818         login_tty: Make the replacement code work on BSD systems.
28819         * lib/login_tty.c: Include <sys/ioctl.h>.
28820         (login_tty): Use ioctl TIOCSCTTY when available.
28821         * modules/login_tty (Depends-on): Add sys_ioctl.
28822         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28823
28824 2010-09-16  Bruno Haible  <bruno@clisp.org>
28825
28826         login_tty: Stricter unit test.
28827         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28828         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28829         and tcgetsid() after login_tty.
28830         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28831
28832 2010-09-16  Bruno Haible  <bruno@clisp.org>
28833
28834         New module 'tcgetsid'.
28835         * lib/tcgetsid.c: New file.
28836         * m4/tcgetsid.m4: New file.
28837         * modules/tcgetsid: New file.
28838         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28839         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28840         GNULIB_TCGETSID, HAVE_TCGETSID.
28841         * lib/termios.in.h: Include <sys/types.h>.
28842         (tcgetsid): New declaration.
28843         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28844         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28845         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28846         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28847
28848 2010-09-16  Bruno Haible  <bruno@clisp.org>
28849
28850         Tests for module 'termios'.
28851         * modules/termios-c++-tests: New file.
28852         * modules/termios-tests: New file.
28853         * tests/test-termios-c++.cc: New file.
28854         * tests/test-termios.c: New file.
28855
28856         New module 'termios'.
28857         * modules/termios: New file.
28858         * lib/termios.in.h: New file.
28859         * m4/termios_h.m4: New file.
28860         * doc/posix-headers/termios.texi: Mention the new module.
28861
28862 2010-09-16  Eric Blake  <eblake@redhat.com>
28863
28864         fdutimensat: add an atflag parameter
28865         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28866         * lib/utimens.h (fdutimensat): Update prototype.
28867         * tests/test-fdutimensat.c: Adjust test to match.
28868         * NEWS: Document the change.
28869         Suggested by Paul Eggert.
28870
28871 2010-09-16  Bruno Haible  <bruno@clisp.org>
28872
28873         Fix typos in comments.
28874         * lib/striconveh.h: Fix typo in comment.
28875         * lib/login_tty.c (login_tty): Likewise.
28876
28877 2010-09-15  Bruno Haible  <bruno@clisp.org>
28878
28879         stdlib: clarify MirBSD WEXITSTATUS bug
28880         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28881         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28882
28883 2010-09-15  Eric Blake  <eblake@redhat.com>
28884
28885         stdlib: work around MirBSD WEXITSTATUS bug
28886         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28887         * modules/stdlib (Depends-on): Add sys_wait.
28888         * tests/test-sys_wait.c (main): Enhance test.
28889         * tests/test-stdlib.c (main): Likewise.
28890         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28891
28892         docs: mention MacOS issue with WEXITSTATUS(constant)
28893         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28894         issue.
28895         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28896
28897         strnlen: add tests
28898         * modules/strnlen-tests: New file.
28899         * tests/test-strnlen.c: Likewise.
28900
28901 2010-09-14  Bruno Haible  <bruno@clisp.org>
28902
28903         unistr/base: Avoid link errors when module 'libunistring' is also used.
28904         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28905         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28906         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28907         Declare also when HAVE_LIBUNISTRING is set.
28908         Reported by Pádraig Brady <P@draigbrady.com>.
28909
28910 2010-09-14  Eric Blake  <eblake@redhat.com>
28911
28912         test-rawmemchr: make more robust
28913         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28914         (Depends-on, configure.ac): Add needed prerequisites to use it.
28915         * modules/memchr-tests (Files, Depends-on, configure.ac):
28916         Likewise, to avoid implicit reliance on memchr module prereqs.
28917         * tests/test-memchr.c (main): Ensure proper masking.
28918         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28919         reads.
28920
28921         memchr: detect glibc Alpha bug
28922         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28923         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28924         Alpha.
28925         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28926         * tests/test-memchr.c (main): Enhance test.
28927         Reported by Nelson H. F. Beebe.
28928
28929 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28930
28931         fts, getcwd, glob: audit for dirfd returning -1
28932         * lib/fts.c (opendir): Remove #define; no longer used.
28933         (opendirat): New arg PDIR_FD.  All callers changed.
28934         (fts_build, _opendir2): Use new opendirat to avoid the need for
28935         dirfd, or for checking whether dirfd returns a negative value.
28936         Don't use opendir; always use openat followed by fdopendir.
28937         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28938         it.
28939         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28940         returns -1 here.
28941         * modules/fts (Depends-on): Remove dirfd.
28942         * modules/getcwd (Depends-on): Likewise.
28943
28944 2010-09-13  Eric Blake  <eblake@redhat.com>
28945
28946         float: fix broken MirBSD header
28947         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28948         * doc/posix-headers/float.texi (float.h): Document it.
28949
28950 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28951
28952         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28953         * lib/fts.c (opendirat): New arg extra_flags.
28954         (__opendir2): Use it to avoid following symlinks when opening
28955         a directory, if symlinks are not supposed to be followed.  See
28956         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28957
28958         fdopendir: preserve argument fd before returning
28959         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28960         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28961         (fdopendir): Use them, arranging for FD to be open to the same
28962         directory that it was when it started.  (It might be temporarily
28963         closed while fdopendir is running, so this not thread- or
28964         signal-safe.)  Be careful to do the right thing even when file
28965         descriptors are scarce and dup fails with errno == EMFILE.  See
28966         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28967
28968 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28969
28970         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28971         * NEWS: Document change.
28972         * m4/regex.m4: Disable test for regoff_t size.
28973
28974 2010-09-13  Jim Meyering  <meyering@redhat.com>
28975
28976         fts: don't operate on an invalid file descriptor after failed dup
28977         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28978         negative file descriptor.
28979
28980 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28981
28982         savedir: add streamsavedir, deprecate fdsavedir
28983         * NEWS: Mention deprecation of fdsavedir.
28984         * lib/savedir.c (streamsavedir): New extern function, whose name
28985         ends in "savedir" to be consistent with the others.  This differs
28986         from savedirstream in that it doesn't close its argument.  The
28987         next version of GNU tar will use this instead of fdsavedir, to
28988         avoid some race conditions and conserve file descriptors.
28989         (savedirstream): Reimplement as a wrapper around streamsavedir.
28990         (fdsavedir): Add a comment deprecating this function.  As far as
28991         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28992         * lib/savedir.h (streamsavedir): New decl.
28993         (fdsavedir): Add a comment deprecating this.
28994
28995 2010-09-10  Bruno Haible  <bruno@clisp.org>
28996
28997         langinfo: Fix last commit.
28998         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28999         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29001
29002 2010-09-10  Bruno Haible  <bruno@clisp.org>
29003
29004         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29005         * lib/progreloc.c (O_EXEC): Define fallback.
29006
29007 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29008
29009         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29010         * NEWS: Document recent changes to fcntl-h.
29011         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29012         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29013         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29014         Similarly for O_SEARCH; this last was already true, but not documented.
29015         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29016         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29017         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29018         Likewise.
29019         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29020         is zero, not whether it is defined.
29021         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29022         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29023         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29024
29025 2010-09-10  Bruno Haible  <bruno@clisp.org>
29026
29027         langinfo, nl_langinfo: Fix for IRIX 5.3.
29028         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29029         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29030         HAVE_LANGINFO_YESEXPR.
29031         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29032         HAVE_LANGINFO_YESEXPR.
29033         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29034         HAVE_LANGINFO_T_FMT_AMPM is 0.
29035         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29036         HAVE_LANGINFO_YESEXPR is 0.
29037         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29038         NOEXPR.
29039         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29040         * doc/posix-functions/nl_langinfo.texi: Likewise.
29041         Reported by Eric Blake.
29042
29043 2010-09-10  Bruno Haible  <bruno@clisp.org>
29044
29045         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29046         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29047         on FreeBSD 8.0 and OpenBSD 4.6.
29048         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29049         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29050         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29051         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29052         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29053         ac_includes_default.
29054         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29055
29056 2010-09-09  Eric Blake  <eblake@redhat.com>
29057
29058         strsignal: work around NetBSD bug
29059         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29060         * lib/string.in.h (includes): Likewise.
29061         * doc/posix-functions/strsignal.texi (strsignal): Document the
29062         bug.
29063         Reported by Nelson H. F. Beebe.
29064
29065         gnulib-tool: work with NetBSD /bin/sh
29066         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29067         (func_get_description, func_get_comment, func_get_status)
29068         (func_get_notice, func_get_applicability, func_get_filelist)
29069         (func_get_dependencies, func_get_autoconf_early_snippet)
29070         (func_get_autoconf_snippet, func_get_automake_snippet)
29071         (func_get_include_directive, func_get_link_directive)
29072         (func_get_license, func_get_maintainer, func_import): Avoid
29073         shell syntax errors from parsing syntax extensions.
29074
29075 2010-09-09  Bruno Haible  <bruno@clisp.org>
29076
29077         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29078         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29079         a reliable way to determine whether the 'alias' command works.
29080
29081 2010-09-08  Jim Meyering  <meyering@redhat.com>
29082
29083         init.sh: penalize a set-x-impaired shell; don't disqualify it
29084         * tests/init.sh: Too many shells corrupt application stderr when
29085         you set -x, so we can't afford to disqualify them, since at least
29086         on Irix-6.5, that would disqualify all bourne shells.
29087         Instead, use a two-pass approach.
29088         On the first pass, try to find a shell that meets the stricter
29089         condition that set -x does not corrupt stderr.
29090         If no shell meets the stricter condition, retest each candidate
29091         shell, but without that extra condition.  Finally, when
29092         VERBOSE=yes is requested and set -x might cause trouble, simply
29093         issue a warning and refrain from enabling debug output.
29094
29095 2010-09-08  Eric Blake  <eblake@redhat.com>
29096
29097         unsetenv: fix OpenBSD bug
29098         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29099         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29100         documentation.
29101         Reported by Jim Meyering.
29102
29103         strtod: work around IRIX 6.5 bug
29104         * lib/strtod.c (strtod): Reparse number on shorter string if
29105         exponent parse was invalid.
29106         * tests/test-strtod.c (main): Add check for "0x1p 2".
29107         Reported by Tom G. Christensen.
29108
29109         getopt: optimize previous patch
29110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29111         empty variable.  Speed up awk script.
29112         Reported by Paolo Bonzini.
29113
29114 2010-09-08  Jim Meyering  <meyering@redhat.com>
29115
29116         test.sh: disqualify shells for which set -x corrupts stderr
29117         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29118         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29119         appear in stderr output.  For example, this command:
29120             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29121         prints "P=1" on those two systems:
29122
29123 2010-09-08  Bruno Haible  <bruno@clisp.org>
29124
29125         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29126         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29127         commands, because some shells ignore redirections when there is an
29128         error in the command lookup.
29129         Reported by Eric Blake.
29130
29131 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29132
29133         * lib/regex.h: Fix a mention of `regex_compile' (should be
29134         `re_compile_pattern').
29135         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29136         (re_set_registers): Correct name of parameter in comment.
29137
29138         * doc/regex.texi: Add documentation for missing syntax flags.
29139         Remove commented-out documentation of defunct syntax option
29140         RE_NO_EMPTY_ALTS.
29141         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29142         Add documentation of re_set_registers.
29143         Document trick to re-use a pattern buffer by setting fastmap manually.
29144         Update documentation of struct re_pattern_buffer per public members.
29145         Uncomment documentation of equivalence class operators and
29146         collating symbol operators, since they are now implemented,
29147         Explain leftmost-longest matching in relation to alternatives.
29148         Tidy documentation of substring matching.
29149         Remove POSIX documentation, which is done better in
29150         glibc, and refer the reader there. Keep BSD API documentation, as
29151         that is not readily available elsewhere.
29152
29153 2010-09-07  Eric Blake  <eblake@redhat.com>
29154
29155         getopt: handle POSIXLY_CORRECT set but not exported
29156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29157         export state of POSIXLY_CORRECT, due to bash set -o posix.
29158         Reported by Dustin J. Mitchell.
29159
29160 2010-09-05  Bruno Haible  <bruno@clisp.org>
29161
29162         gnulib-tool: Highlight the changed options.
29163         * gnulib-tool (func_usage): Display the --import, --add-import,
29164         --remove-import explanations in bold font.
29165
29166 2010-09-06  Karl Berry  <karl@gnu.org>
29167
29168         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29169
29170 2010-09-05  Bruno Haible  <bruno@clisp.org>
29171
29172         uniwidth/width: Update comment.
29173         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29174         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29175
29176 2010-09-05  Bruno Haible  <bruno@clisp.org>
29177
29178         isinf, isnan: Relax license.
29179         * modules/isinf (License): Change from GPL to LGPL, with consent from
29180         Ben Pfaff.
29181         * modules/isnan (License): Likewise.
29182         Requested by Ludovic Courtès.
29183
29184 2010-09-04  Bruno Haible  <bruno@clisp.org>
29185
29186         gnulib-tool: Help migration from --import to --add-import or --update.
29187         * gnulib-tool: Emit a verbose error message when --import is used
29188         without any module name.
29189
29190 2010-09-04  Bruno Haible  <bruno@clisp.org>
29191
29192         Update doc about gnulib-tool.
29193         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29194         'gnulib-tool --update' in more detail.
29195         Reported by Eric Blake.
29196
29197 2010-09-04  Bruno Haible  <bruno@clisp.org>
29198
29199         gnulib-tool: Change --import. New options --add/remove-import.
29200         * gnulib-tool: New options --add-import, --remove-import.
29201         (func_usage): Document them.
29202         (have_associative): Define always.
29203         (func_import): In import mode, don't merge the specified settings with
29204         the cached settings. Implement remove-import mode.
29205         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29206         Explain when to use them versus --import.
29207         (Simple update): Use --add-import instead of --import.
29208         * NEWS: Mention the change.
29209
29210 2010-09-04  Bruno Haible  <bruno@clisp.org>
29211
29212         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29213         separate gnulib.mk.
29214
29215 2010-09-04  Bruno Haible  <bruno@clisp.org>
29216
29217         gnulib-tool: Don't talk about CVS any more.
29218         * gnulib-tool (func_usage, func_import): Write "version control"
29219         instead of CVS.
29220
29221 2010-09-04  Jim Meyering  <meyering@redhat.com>
29222
29223         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29224         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29225         false positives (whose names may be ill-chosen) when searching
29226         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29227         would cause a false-positive.
29228
29229         avoid coreutils "make distcheck" failure
29230         Coreutils tests with an absolute build directory name that contains
29231         a space.  Not quoting this directory name caused a failure.
29232         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29233         * tests/test-vc-list-files-cvs.sh: Likewise.
29234
29235 2010-09-04  Bruno Haible  <bruno@clisp.org>
29236
29237         gnulib-tool: Avoid error when run in a package without Makefile.am.
29238         * gnulib-tool: When collecting the m4dirs in a package that does not
29239         have a Makefile.am, eliminate those directories that contain no
29240         gnulib-cache.m4. Fix expression that counts these directories.
29241
29242 2010-09-04  Bruno Haible  <bruno@clisp.org>
29243
29244         update-copyright test: Improve output when perl is missing or too old.
29245         * tests/test-update-copyright.sh: Move test of Perl version down after
29246         the test whether Perl exists. Provide an explanation relating Perl's
29247         error message to Automake's SKIP: message.
29248
29249 2010-09-04  Bruno Haible  <bruno@clisp.org>
29250
29251         Don't augment PATH in TESTS_ENVIRONMENT.
29252         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29253         set abs_aux_dir instead of augmenting PATH.
29254         * modules/vc-list-files-tests (Makefile.am): Likewise.
29255         * tests/test-update-copyright.sh: Augment PATH here.
29256         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29257         path_prepend_.
29258         * tests/test-vc-list-files-git.sh: Likewise.
29259
29260 2010-09-04  Jim Meyering  <meyering@redhat.com>
29261
29262         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29263         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29264
29265 2010-09-04  Bruno Haible  <bruno@clisp.org>
29266
29267         strdup: Fix compilation error in C++ mode.
29268         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29269         the macro.
29270
29271 2010-09-04  Bruno Haible  <bruno@clisp.org>
29272
29273         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29274         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29275         macro into a function.
29276         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29277
29278 2010-09-04  Bruno Haible  <bruno@clisp.org>
29279
29280         Set PATH_SEPARATOR the same way autoconf does.
29281         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29282         the value of PATH_SEPARATOR the same way autoconf-generated configure
29283         scripts do.
29284         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29285         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29286
29287 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29288
29289         Set PATH_SEPARATOR the same way autoconf does.
29290         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29291         the same way autoconf-generated configure scripts do.
29292         * posix-modules: Likewise.
29293
29294 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29295
29296         hash: fix safe_hasher const typo
29297         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29298         const; otherwise, there is a type error later.
29299
29300 2010-09-02  Jim Meyering  <meyering@redhat.com>
29301
29302         test-update-copyright.sh: require perl 5.8.0
29303         * tests/test-update-copyright.sh: Require 5.8.0,
29304         which Tom G. Christensen has confirmed is adequate,
29305         while 5.6.1 is not.
29306
29307 2010-09-02  Eric Blake  <eblake@redhat.com>
29308
29309         tests: init.sh improvements for re-exec'ing with zsh
29310         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29311         -vx through shell re-exec.
29312         Reported by Tom G. Christensen.
29313
29314         wctype: fix typo in previous commit
29315         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29316         Reported by Ludovic Courtès.
29317
29318 2010-09-02  Jim Meyering  <meyering@redhat.com>
29319
29320         test-update-copyright.sh: skip test if Perl is too old
29321         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29322         Reported by Tom G. Christensen.
29323
29324 2010-09-02  Bruno Haible  <bruno@clisp.org>
29325
29326         wctype: Avoid compilation error on IRIX 6.5.30.
29327         * lib/wctype.in.h (iswblank): Declare with a replacement if
29328         REPLACE_ISWBLANK is set.
29329         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29330         declared. Set REPLACE_ISWBLANK.
29331         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29332         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29333         * doc/posix-headers/wctype.texi: Likewise.
29334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29335
29336 2010-09-01  Bruno Haible  <bruno@clisp.org>
29337
29338         New module 'socketlib'.
29339         * modules/socketlib: New file.
29340         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29341         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29342         * modules/sockets (Depends-on): Add socketlib.
29343         Suggested by Sam Steingold <sds@gnu.org>.
29344
29345 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29346
29347         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29348
29349         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29350         when one needs search access to a directory but not read access.
29351         On systems where it is available, it works in some cases where
29352         O_RDONLY does not, namely on directories that are searchable but
29353         not readable, and which need only to be searchable.  If O_SEARCH
29354         is not available, fall back to the traditional method of using
29355         O_RDONLY.
29356
29357         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29358         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29359         when opening a directory that needs only to be searchable.
29360         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29361         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29362         * lib/openat-proc.c (openat_proc_name): Likewise.
29363         * lib/openat.c (openat_needs_fchdir): Likewise.
29364         * lib/save-cwd.c (save_cwd): Likewise.
29365         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29366
29367 2010-08-28  Bruno Haible  <bruno@clisp.org>
29368
29369         New module 'host-cpu-c-abi'.
29370         * modules/host-cpu-c-abi: New file.
29371         * m4/host-cpu-c-abi.m4: New file, based on part of
29372         clisp/src/m4/general.m4.
29373         Requested by Sam Steingold <sds@gnu.org>.
29374
29375 2010-08-31  Eric Blake  <eblake@redhat.com>
29376         and Jim Meyering  <meyering@redhat.com>
29377
29378         hash: factor, and guard against misbehaving hasher function
29379         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29380         of table->hasher's return value.  Also protect against a hash value
29381         so large that adding it to table->bucket results in a NULL pointer.
29382         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29383         Use it in place of open-coded check-and-abort.
29384
29385 2010-08-30  Bruno Haible  <bruno@clisp.org>
29386
29387         hash: silence spurious clang warning
29388         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29389         Reported by Eric Blake.
29390
29391 2010-08-30  Eric Blake  <eblake@redhat.com>
29392
29393         strstr, memmem, strcasestr: avoid leaked shell message
29394         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29395         FreeBSD.
29396         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29397         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29398
29399         tests: silence clang warning
29400         * tests/test-malloca.c (do_allocation): Avoid dead store.
29401
29402 2010-08-29  Bruno Haible  <bruno@clisp.org>
29403
29404         gettext: Fix recent mistake.
29405         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29406
29407 2010-08-29  Bruno Haible  <bruno@clisp.org>
29408
29409         selinux-h: Offer a --without-selinux option.
29410         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29411         --without-selinux was specified, skip all tests and define
29412         HAVE_SELINUX_SELINUX_H to 0.
29413         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29414         set LIB_SELINUX to empty.
29415         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29416         gl_LIBSELINUX. If --without-selinux was specified, replace
29417         selinux/context.h.
29418         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29419
29420 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29421             Bruno Haible  <bruno@clisp.org>
29422
29423         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29424         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29425         of HAVE_REALLOC.
29426         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29427         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29428         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29429         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29430
29431 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29432             Bruno Haible  <bruno@clisp.org>
29433
29434         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29435         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29436         HAVE_CALLOC.
29437         * lib/xmalloc.c: Update accordingly.
29438         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29439         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29440         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29441
29442 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29443             Bruno Haible  <bruno@clisp.org>
29444
29445         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29446         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29447         HAVE_MALLOC.
29448         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29449         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29450         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29451
29452 2010-08-29  Bruno Haible  <bruno@clisp.org>
29453
29454         Update modules list.
29455         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29456         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29457         (String handling <string.h>): Add astrxfrm.
29458         (File system functions): Add readlinkat.
29459
29460 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29461
29462         Tests for module 'realloc-gnu'.
29463         * modules/realloc-gnu-tests: New file.
29464         * tests/test-realloc-gnu.c: New file.
29465
29466         Tests for module 'calloc-gnu'.
29467         * modules/calloc-gnu-tests: New file.
29468         * tests/test-calloc-gnu.c: New file.
29469
29470         Tests for module 'malloc-gnu'.
29471         * modules/malloc-gnu-tests: New file.
29472         * tests/test-malloc-gnu.c: New file.
29473
29474 2010-08-28  Bruno Haible  <bruno@clisp.org>
29475
29476         Rename module 'realloc' -> 'realloc-gnu'.
29477         * modules/realloc-gnu: New file, copied from modules/realloc.
29478         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29479         obsolete.
29480         * modules/mgetgroups (Depends-on): Update.
29481         * doc/posix-functions/realloc.texi: Update.
29482         * NEWS: Mention the change.
29483
29484         Rename module 'calloc' -> 'calloc-gnu'.
29485         * modules/calloc-gnu: New file, copied from modules/calloc.
29486         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29487         obsolete.
29488         * doc/posix-functions/calloc.texi: Update.
29489         * NEWS: Mention the change.
29490
29491         Rename module 'malloc' -> 'malloc-gnu'.
29492         * modules/malloc-gnu: New file, copied from modules/malloc.
29493         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29494         obsolete.
29495         * modules/argp (Depends-on): Update.
29496         * modules/regex (Depends-on): Update.
29497         * doc/posix-functions/malloc.texi: Update.
29498         * NEWS: Mention the change.
29499
29500 2010-08-28  Eric Blake  <eblake@redhat.com>
29501
29502         pread, pwrite: add missing dependency
29503         * modules/pread (Depends-on): Add extensions.
29504         * modules/pwrite (Depends-on): Likewise.
29505
29506 2010-08-28  Bruno Haible  <bruno@clisp.org>
29507
29508         unistr/u*-strchr: Fix tests dependencies.
29509         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29510         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29511         Reported by Ian Beckwith <ianb@erislabs.net>.
29512
29513 2010-08-28  Bruno Haible  <bruno@clisp.org>
29514
29515         read-file: Don't occupy too much unused memory.
29516         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29517
29518 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29519             Eric Blake  <eblake@redhat.com>
29520             Bruno Haible  <bruno@clisp.org>
29521
29522         read-file: Avoid memory reallocations with regular files.
29523         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29524         (fread_file): With regular files, use the remaining length as the
29525         initial buffer size.  Check against overflow.
29526         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29527         sys_stat.
29528
29529 2010-08-28  Bruno Haible  <bruno@clisp.org>
29530
29531         ftello: Relax license.
29532         * modules/ftello (License): Relax to LGPLv2+.
29533         Reported by Eric Blake.
29534
29535 2010-08-28  Bruno Haible  <bruno@clisp.org>
29536
29537         Avoid relocwrapper link errors due to gnulib replacement functions.
29538         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29539         function.
29540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29541
29542 2010-08-28  Bruno Haible  <bruno@clisp.org>
29543
29544         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29545         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29546         defined.
29547         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29548         Suggested by Eric Blake.
29549
29550 2010-08-28  Bruno Haible  <bruno@clisp.org>
29551
29552         sys_socket, netdb: Ensure socklen_t gets defined.
29553         * modules/sys_socket (Depends-on): Add socklen.
29554         * modules/netdb (Depends-on): Likewise.
29555         * modules/getaddrinfo (Depends-on): Remove socklen.
29556         * modules/getsockopt (Depends-on): Likewise.
29557         * modules/setsockopt (Depends-on): Likewise.
29558         * tests/test-sys_socket.c: Check that socklen_t is defined.
29559         * tests/test-netdb.c: Likewise.
29560         * m4/socklen.m4: Update comments.
29561         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29562
29563 2010-08-27  Eric Blake  <eblake@redhat.com>
29564
29565         login_tty: add missing dependency
29566         * modules/login_tty (Depends-on): Add pty.
29567
29568 2010-08-26  Eric Blake  <eblake@redhat.com>
29569
29570         lib-symbol-versions: fix m4 quoting
29571         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29572         format for AC_LINK_IFELSE.
29573
29574         glob: fix compile test
29575         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29576
29577         btowc: fix missing file
29578         * modules/btowc (Files): Also ship locale-fr.m4.
29579
29580         lseek: fix link test
29581         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29582         AC_LINK_IFELSE.
29583
29584         include_next: silence autoconf 2.68 warning
29585         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29586         AC_COMPILE_IFELSE as special.
29587         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29588         autoconf < 2.68.
29589
29590         acl: fix compilation test
29591         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29592         AC_COMPILE_IFELSE.
29593
29594 2010-08-26  Bruno Haible  <bruno@clisp.org>
29595
29596         Modernize AC_TRY_RUN invocations.
29597         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29598         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29599         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29600         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29601         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29602         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29603         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29604         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29605         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29606         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29607         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29608         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29609         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29610         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29611         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29612         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29613         gl_MBRLEN_NUL_RETVAL): Likewise.
29614         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29615         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29616         Likewise.
29617         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29618         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29619         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29620         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29621         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29622         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29623         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29624         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29625         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29626         Likewise.
29627         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29628         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29630         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29631         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29632         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29633         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29634         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29635         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29637
29638 2010-08-26  Bruno Haible  <bruno@clisp.org>
29639
29640         Modernize AC_TRY_LINK invocations.
29641         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29642         AC_TRY_LINK.
29643         * m4/argp.m4 (gl_ARGP): Likewise.
29644         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29645         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29646         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29647         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29648         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29649         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29650         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29651         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29652         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29653         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29654         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29655         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29656         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29657         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29658         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29659         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29660         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29661         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29662         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29663         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29664         Likewise.
29665         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29666         Likewise.
29667         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29668         Likewise.
29669         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29670         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29671         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29672         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29673         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29674         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29675         * m4/servent.m4 (gl_SERVENT): Likewise.
29676         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29677         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29678         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29679         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29680         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29681         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29682         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29684         * modules/tsearch-tests (configure.ac): Likewise.
29685
29686 2010-08-26  Bruno Haible  <bruno@clisp.org>
29687
29688         Modernize AC_TRY_COMPILE invocations.
29689         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29690         AC_TRY_COMPILE.
29691         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29692         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29693         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29694         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29695         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29696         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29697         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29698         * m4/lock.m4 (gl_LOCK): Likewise.
29699         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29700         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29701         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29702         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29703         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29704         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29705         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29706         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29707         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29708         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29709         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29710         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29711         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29712         extraneous semicolon.
29713
29714 2010-08-26  Jim Meyering  <meyering@redhat.com>
29715
29716         stat-time: relax license LGPL
29717         * modules/stat-time (License): Change from GPL to LGPL,
29718         with consent from all contributors, for use in libguile.
29719         Requested by Ludovic Courtès.
29720
29721 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29722
29723         poll: return immediately on POLLHUP.
29724         * lib/poll.c (poll): Always set timeout before wait_timeout is
29725         computed.
29726
29727 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29728
29729         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29730         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29731         rmdir ("dir/.//"), unlinkat.
29732
29733 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29734
29735         stdbool: avoid spurious failure with modern xlc
29736         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29737
29738 2010-08-24  Bruno Haible  <bruno@clisp.org>
29739
29740         getloadavg: simplify code
29741         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29742         gl_have_func. Update comments.
29743
29744 2010-08-24  Eric Blake  <eblake@redhat.com>
29745
29746         getloadavg: don't define SVR4 on cygwin
29747         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29748         only define SVR4 when -lkvm is required.
29749         Reported by Yaakov Selkowitz.
29750
29751 2010-08-24  Bruno Haible  <bruno@clisp.org>
29752
29753         priv-set: fix comment
29754         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29755
29756 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29757
29758         priv-set: fix comments
29759         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29760         to match code, as suggested by David Bartley in:
29761         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29762
29763 2010-08-23  Eric Blake  <eblake@redhat.com>
29764
29765         stdbool: avoid rejecting clang
29766         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29767         * tests/test-stdbool.c: Enable more tests if using the system
29768         <stdbool.h> instead of the gnulib replacement.
29769         (main): Move xlc bug test to a runtime test for all compilers.
29770         Reported by Anders Kaseorg.
29771
29772         argz: fix shell quoting issue
29773         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29774         Reported by Charles Wilson.
29775
29776 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29777             Erik Faye-Lund <kusmabite@gmail.com>
29778
29779         poll, select: handle ERROR_BROKEN_PIPE.
29780         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29781         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29782         * lib/select.c (win32_compute_revents): Do not mark a pipe
29783         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29784
29785 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29786
29787         fts: allow compilation with C++
29788         * lib/fts_.h: Specify extern "C" linkage with C++.
29789
29790 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29791
29792         Fix gnulib-tool sed script de-commentation for AIX sed.
29793         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29794         sed.
29795
29796 2010-08-17  Eric Blake  <eblake@redhat.com>
29797
29798         test-stddef: test for (some) offsetof bugs
29799         * tests/test-stddef.c: Enhance test to ensure correct type of
29800         offsetof.
29801         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29802         that we are not fixing at this time.
29803
29804 2010-08-15  Bruno Haible  <bruno@clisp.org>
29805
29806         stpncpy: Allow stpncpy to be defined as a macro.
29807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29808         if it's already correctly declared.
29809         * lib/string.in.h (stpncpy): Undefine before redefining.
29810         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29811
29812 2010-08-14  Bruno Haible  <bruno@clisp.org>
29813
29814         Rename module 'memxfrm' to 'amemxfrm'.
29815         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29816         (amemxfrm): Renamed from memxfrm.
29817         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29818         (amemxfrm): Renamed from memxfrm.
29819         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29820         * NEWS: Mention the change.
29821         * MODULES.html.sh (String handling <string.h>): Update.
29822         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29823         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29824         * lib/unicase/u16-casexfrm.c: Likewise.
29825         * lib/unicase/u32-casexfrm.c: Likewise.
29826         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29827         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29828         * lib/uninorm/u16-normxfrm.c: Likewise.
29829         * lib/uninorm/u32-normxfrm.c: Likewise.
29830         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29831         memxfrm.
29832         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29833         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29834         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29835         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29836         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29837         Suggested by Paul Eggert.
29838
29839 2010-08-14  Bruno Haible  <bruno@clisp.org>
29840
29841         Tests for module 'astrxfrm'.
29842         * modules/astrxfrm-tests: New file.
29843         * tests/test-astrxfrm.c: New file.
29844
29845         New module 'astrxfrm'.
29846         * lib/astrxfrm.h: New file.
29847         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29848         * modules/astrxfrm: New file.
29849
29850 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29851
29852         regex: Tweak doc.
29853         * doc/regex.texi (Overview): Don't mention regex.c.
29854         (GNU Regular Expression Compiling): Likewise.
29855         (Match-end-of-line Operator): Mention 'not_eol'.
29856
29857 2010-08-14  Brian Gough  <bjg@gnu.org>
29858             Bruno Haible  <bruno@clisp.org>
29859
29860         git-merge-changelog: add doc relating to use with bzr and hg.
29861         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29862
29863 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29864
29865         pthread: fix pthread.h creation for srcdir != builddir
29866         * modules/pthread (Makefile.am): Fix the rule to work also in a
29867         non-srcdir build.
29868
29869 2010-08-13  Karl Berry  <karl@gnu.org>
29870
29871         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29872         * doc/posix-*/*: force line break before @url of POSIX
29873         specifications.
29874         Suggested by Werner Lemberg.
29875
29876 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29877
29878         strtod: fix const diagnostic
29879         * lib/strtod.c (strtod): Don't assign const char * to char *,
29880         as this elicits a warning from GCC when warnings are enabled.
29881
29882 2010-08-10  Pádraig Brady <P@draigbrady.com>
29883         and Eric Blake  <eblake@redhat.com>
29884
29885         copy-acl: ignore ENOTSUP on HP-UX
29886         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29887         so that it is available for HP-UX.
29888         * lib/copy-acl.c (qcopy_acl): Use it.
29889         Reported by Patrick M. Callahan.
29890
29891 2010-08-10  Eric Blake  <eblake@redhat.com>
29892
29893         open, chown: relax license
29894         * modules/open (License): Change to LGPLv2+, with consent by all
29895         authors, for use in augeas.
29896         * modules/chown (License): Likewise.
29897         * modules/lchown (Likewise): Likewise.
29898         Requested by Adam Stokes.
29899
29900 2010-08-09  Karl Berry  <karl@gnu.org>
29901
29902         * build-aux/ar-lib: new file, import from Automake.
29903         * config/srclist.txt: autocheck for updates.
29904
29905 2010-08-09  Eric Blake  <eblake@redhat.com>
29906
29907         readlinkat: adjust client modules
29908         * modules/areadlinkat (Depends-on): Use readlinkat, not
29909         symlinkat.
29910         * modules/areadlinkat-with-size (Depends-on): Likewise.
29911
29912         mknod: be more vocal about danger of running tests as root
29913         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29914         root, since that is just asking for problems.
29915         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29916
29917         readlinkat: split into its own module
29918         * modules/symlinkat: Split readlinkat...
29919         * modules/readlinkat: ...into separate module.
29920         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29921         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29922         * lib/symlinkat.c (readlinkat): Move...
29923         * lib/readlinkat.c: ...into new file.
29924         * modules/symlinkat-tests: Split readlinkat test...
29925         * modules/readlinkat-tests: ...into separate module.
29926         * tests/test-symlinkat.c: Split...
29927         * tests/test-readlinkat.c: ...into new file.
29928         * NEWS: Document the split.
29929         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29930         * lib/unistd.in.h (readlinkat): Likewise.
29931         Suggested by Bruno Haible.
29932
29933 2010-08-08  Bruno Haible  <bruno@clisp.org>
29934
29935         memxfrm: Speed up.
29936         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29937         that usually only one call to strxfrm is necessary for each string
29938         part.
29939         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29940
29941 2010-08-07  Karl Berry  <karl@gnu.org>
29942
29943         * doc/posix-headers/limits.texi,
29944         * doc/posix-functions/malloc.texi,
29945         * doc/posix-functions/strsignal.texi: missing @item.
29946         * doc/ld-version-script.texi: spurious leading i.
29947         * doc/regex.texi (Interval Operators): no commas inside @var.
29948
29949 2010-08-01  Bruno Haible  <bruno@clisp.org>
29950
29951         Integrate the regex documentation.
29952         * doc/gnulib.texi: Define 'cn' index.
29953         (Regular expressions): New a chapter that includes regex.texi and
29954         regexprops-generic.texi.
29955         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29956         syntax.
29957
29958         Whitespace cleanup.
29959         * doc/regex.texi: Remove trailing spaces.
29960
29961         Add regex documentation.
29962         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29963         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29964         Written by Kathy A. Hargreaves and Karl Berry.
29965
29966 2010-08-01  Bruno Haible  <bruno@clisp.org>
29967
29968         link: Update documentation.
29969         * doc/posix-functions/link.texi: Update regarding Solaris.
29970
29971 2010-07-31  Bruno Haible  <bruno@clisp.org>
29972
29973         Update modules list.
29974         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29975         (String handling <string.h>): Add memcmp2, memxfrm.
29976         (Container data structures): Add xlist, xsublist, xoset.
29977         (Core language properties): Add alignof, unused-parameter.
29978         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29979         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29980         (Unibyte characters <ctype.h>): New section.
29981         (String handling <string.h>): New section.
29982         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29983         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29984         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29985         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29986         tan, tanh, tanl, y0, y1, yn.
29987         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29988         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29989         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29990         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29991         unlockpt, vdprintf, vdprintf-posix.
29992         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29993         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29994         xconcat-filename.
29995         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29996         getdtablesize, pipe2, pipe2-safer.
29997         (Security): New section.
29998         (Networking functions): Add accept4.
29999         (Signal handling): Add sigpipe.
30000         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30001         mbmemcasecoll.
30002         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30003         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30004         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30005         pipe-filter-ii.
30006         (Misc): Add argp-version-etc, login_tty, parse-duration.
30007
30008 2010-07-31  Bruno Haible  <bruno@clisp.org>
30009
30010         Improve doc in MODULES.html.
30011         * modules/linkat (Description): Add the word "function".
30012         * modules/mkfifo (Description): Likewise.
30013         * modules/mknod (Description): Likewise.
30014         * modules/remove (Description): Likewise.
30015         * modules/renameat (Description): Likewise.
30016         * modules/stat (Description): Likewise.
30017         * modules/symlink (Description): Likewise.
30018         * modules/unlink (Description): Likewise.
30019
30020 2010-07-31  Bruno Haible  <bruno@clisp.org>
30021
30022         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30023         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30024         option --enable/disable-c++ instead of --enable/disable-cxx.
30025         * NEWS: Mention the change.
30026
30027 2010-07-31  Bruno Haible  <bruno@clisp.org>
30028
30029         readlink, areadlink: Relax test a bit.
30030         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30031         alternative to ENOTDIR.
30032         * tests/test-areadlink.h (test_areadlink): Likewise.
30033         Reported by Rainer Tammer.
30034
30035 2010-07-31  Bruno Haible  <bruno@clisp.org>
30036
30037         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30038         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30039         character, perform the search using U_STRCHR.
30040         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30041         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30042         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30043         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30044         Suggested by Paolo Bonzini.
30045
30046 2010-07-31  Bruno Haible  <bruno@clisp.org>
30047
30048         unistr/u*-strstr: Fix dependencies.
30049         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30050         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30051         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30052
30053 2010-07-31  Bruno Haible  <bruno@clisp.org>
30054
30055         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30056         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30057         the beginning of the loop.
30058         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30059         cases in 'switch' statement.
30060
30061         unistr/u8-strchr: Fix several bugs.
30062         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30063         the string. When not found, return NULL, not a pointer near the end.
30064
30065         More tests for unistr/u8-strchr.
30066         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30067         that the function does not read past the first occurrence of the byte
30068         being searched.
30069         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30070         * tests/unistr/test-u16-strchr.c (main): New function.
30071         * tests/unistr/test-u32-strchr.c (main): New function.
30072
30073 2010-07-31  Bruno Haible  <bruno@clisp.org>
30074
30075         posix-modules: Ignore backup files of documentation files.
30076         * posix-modules: grep only through files named *.texi.
30077
30078 2010-07-31  Bruno Haible  <bruno@clisp.org>
30079
30080         symlinkat: Fix documentation.
30081         * doc/posix-functions/readlinkat.texi: Fix module name.
30082
30083 2010-07-31  Bruno Haible  <bruno@clisp.org>
30084
30085         fchownat: Replace also when chown has the trailing slash bug.
30086         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30087         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30088         introduced on 2010-04-10.
30089         Reported by Rainer Tammer.
30090
30091 2010-07-31  Bruno Haible  <bruno@clisp.org>
30092
30093         linkat: Work around AIX 7.1 bug.
30094         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30095         whether linkat handles trailing slash correctly. If not, replace linkat
30096         and define LINKAT_TRAILING_SLASH_BUG.
30097         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30098         check whether (fd1,file1) points to a directory if file1 or file2 ends
30099         in a slash. Code taken from lib/link.c.
30100         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30101         Reported by Rainer Tammer.
30102
30103 2010-07-31  Bruno Haible  <bruno@clisp.org>
30104
30105         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30106         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30107         This disables an xlc optimization that was causing wrong test results.
30108         Reported by Rainer Tammer.
30109
30110 2010-07-31  Bruno Haible  <bruno@clisp.org>
30111
30112         iconv: Work around AIX 6.1..7.1 bug.
30113         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30114         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30115         cross-compiling, guess no on all versions of AIX.
30116         Reported by Rainer Tammer.
30117
30118 2010-07-31  Bruno Haible  <bruno@clisp.org>
30119
30120         readlink: Relax test a bit.
30121         * tests/test-readlink.h (test_readlink): Allow different errno value
30122         when readlink is called with a file name that ends in / and refers to
30123         a file.
30124         Suggested by Eric Blake.
30125         Reported by Rainer Tammer.
30126
30127 2010-07-31  Bruno Haible  <bruno@clisp.org>
30128
30129         copysign: Does not require -lm on glibc systems.
30130         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30131         gl_COMMON_DOUBLE_MATHFUNC.
30132         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30133
30134 2010-07-31  Bruno Haible  <bruno@clisp.org>
30135
30136         duplocale: Work around AIX 7.1 bug.
30137         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30138         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30139         * lib/duplocale.c (rpl_duplocale): Update comment.
30140         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30141         Reported by Rainer Tammer.
30142
30143 2010-07-30  Bruno Haible  <bruno@clisp.org>
30144
30145         dirfd: Avoid link error on AIX 7.1.
30146         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30147         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30148         exist, set REPLACE_DIRFD.
30149         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30150         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30151         * doc/posix-functions/dirfd.texi: Update.
30152         Reported by Rainer Tammer.
30153
30154 2010-07-30  Eric Blake  <eblake@redhat.com>
30155
30156         strtod: next round of AIX fixes
30157         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30158         exponent.
30159         * tests/test-strtod.c (main): Enhance tests.
30160         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30161         Reported by Rainer Tammer.
30162
30163         futimens: fix configure check
30164         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30165         Reported by Bruno Haible.
30166
30167 2010-07-30  Bruno Haible  <bruno@clisp.org>
30168
30169         getline: Update regarding AIX.
30170         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30171         Reported by Rainer Tammer.
30172
30173 2010-07-30  Bruno Haible  <bruno@clisp.org>
30174
30175         wcwidth: Drop replacement on AIX 7.
30176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30177         AIX 7.
30178         Reported by Rainer Tammer.
30179
30180 2010-07-30  Bruno Haible  <bruno@clisp.org>
30181
30182         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30183         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30184         a 'char *'.
30185         Reported by Rainer Tammer.
30186
30187 2010-07-30  Bruno Haible  <bruno@clisp.org>
30188
30189         unlink: Update regarding AIX.
30190         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30191         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30192         Reported by Rainer Tammer.
30193
30194 2010-07-30  Bruno Haible  <bruno@clisp.org>
30195
30196         symlink: Update regarding AIX.
30197         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30198         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30199         Reported by Rainer Tammer.
30200
30201 2010-07-30  Bruno Haible  <bruno@clisp.org>
30202
30203         strndup: Update regarding AIX.
30204         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30205         AIX 7.
30206         Reported by Rainer Tammer.
30207
30208 2010-07-30  Bruno Haible  <bruno@clisp.org>
30209
30210         stat: Update regarding AIX.
30211         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30212         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30213         Reported by Rainer Tammer.
30214
30215 2010-07-30  Bruno Haible  <bruno@clisp.org>
30216
30217         truncl: Fix autoconf test.
30218         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30219         whether truncl works.
30220         Reported by Rainer Tammer.
30221
30222 2010-07-30  Bruno Haible  <bruno@clisp.org>
30223
30224         round: Update regarding AIX.
30225         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30226         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30227         Reported by Rainer Tammer.
30228
30229 2010-07-30  Bruno Haible  <bruno@clisp.org>
30230
30231         rename: Update regarding AIX.
30232         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30233         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30234         Reported by Rainer Tammer.
30235
30236 2010-07-30  Bruno Haible  <bruno@clisp.org>
30237
30238         printf.m4: Update regarding AIX.
30239         * m4/printf.m4: Update comments regarding AIX.
30240         Reported by Rainer Tammer.
30241
30242 2010-07-30  Bruno Haible  <bruno@clisp.org>
30243
30244         iconv: Update regarding AIX.
30245         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30246         AIX 7.
30247         Reported by Rainer Tammer.
30248
30249 2010-07-30  Bruno Haible  <bruno@clisp.org>
30250
30251         getopt: Update regarding AIX.
30252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30253         no on AIX.
30254         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30255         Reported by Rainer Tammer.
30256
30257 2010-07-30  Bruno Haible  <bruno@clisp.org>
30258
30259         ldexpl; Update regarding AIX.
30260         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30261         on AIX 7.
30262         Reported by Rainer Tammer.
30263
30264 2010-07-30  Bruno Haible  <bruno@clisp.org>
30265
30266         frexpl: Update regarding AIX.
30267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30268         on AIX 7.
30269         Reported by Rainer Tammer.
30270
30271 2010-07-30  Bruno Haible  <bruno@clisp.org>
30272
30273         open, fopen: Update regarding AIX.
30274         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30275         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30276         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30277         * doc/posix-functions/fopen.texi: Likewise.
30278         Reported by Rainer Tammer.
30279
30280 2010-07-30  Bruno Haible  <bruno@clisp.org>
30281
30282         chown: Update doc regarding AIX.
30283         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30284         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30285         Reported by Rainer Tammer.
30286
30287 2010-07-30  Eric Blake  <eblake@redhat.com>
30288
30289         strtod: fix bug in replacement function on AIX
30290         * lib/strtod.c (strtod): Special case broken "0x" parse in
30291         underlying strtod.
30292         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30293         * doc/posix-functions/strtod.texi (strtod): Likewise.
30294         Reported by Rainer Tammer.
30295
30296 2010-07-30  Bruno Haible  <bruno@clisp.org>
30297
30298         mbrlen: Fix cross-compilation guess for AIX.
30299         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30300         guess. Leftover from 2008-12-22.
30301
30302 2010-07-30  Bruno Haible  <bruno@clisp.org>
30303
30304         mbrtowc: Fix cross-compilation guess for AIX.
30305         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30306         guess. Leftover from 2008-12-21.
30307
30308 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30309
30310         init.sh: work around trap limitation of some shells
30311         * tests/init.sh (setup_): Move exit trap outside of shell function.
30312
30313 2010-07-29  Eric Blake  <eblake@redhat.com>
30314
30315         strtod: aid debugging
30316         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30317         understanding why strtod is rejected.
30318
30319 2010-07-28  Bruno Haible  <bruno@clisp.org>
30320
30321         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30322         * lib/unistr/u8-chr.c: Include <string.h>.
30323         * tests/unistr/test-u8-chr.c: Likewise.
30324         * tests/unistr/test-u16-chr.c: Likewise.
30325         * tests/unistr/test-u32-chr.c: Likewise.
30326         * tests/unistr/test-u8-strchr.c: Likewise.
30327         * tests/unistr/test-u16-strchr.c: Likewise.
30328         * tests/unistr/test-u32-strchr.c: Likewise.
30329         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30330         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30331         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30332         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30333
30334 2010-07-28  Bruno Haible  <bruno@clisp.org>
30335
30336         Use spaces for indentation, not tabs.
30337         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30338
30339 2010-07-27  Bruno Haible  <bruno@clisp.org>
30340
30341         mbspcasecmp: Fix function specification.
30342         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30343         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30344         Reported by Eric Blake <eblake@redhat.com>.
30345
30346 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30347
30348         timespec: use cast and not conditional, as truncation isn't possible
30349         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30350         instead of a conditional.  Comment about the situation in more detail.
30351         This undoes most of the 2009-10-29 patch.
30352
30353 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30354
30355         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30356         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30357         * lib/unistr/u8-strchr.c: Likewise.
30358         * modules/unistr/u8-chr: Depend on memchr.
30359
30360         unistr/u*-strchr: add tests
30361         * modules/unistr/u8-strchr-tests: New file.
30362         * modules/unistr/u16-strchr-tests: New file.
30363         * modules/unistr/u32-strchr-tests: New file.
30364         * tests/unistr/test-strchr.h: New file.
30365         * tests/unistr/test-u8-strchr.c: New file.
30366         * tests/unistr/test-u16-strchr.c: New file.
30367         * tests/unistr/test-u32-strchr.c: New file.
30368
30369         unistr/u*-chr: test multibyte sequences more
30370         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30371         test vector.
30372         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30373         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30374         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30375
30376         unistr/u*-chr: test multibyte sequences
30377         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30378
30379         unistr/u*-chr: prepare for multibyte tests
30380         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30381         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30382         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30383         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30384         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30385         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30386
30387 2010-07-18  Bruno Haible  <bruno@clisp.org>
30388
30389         unistr/u8-strchr: Optimize non-ASCII argument case.
30390         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30391         because the first byte often matches anyway.
30392         Reported by Pádraig Brady <P@draigbrady.com>.
30393
30394 2010-07-15  Karl Berry  <karl@gnu.org>
30395
30396         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30397
30398 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30399
30400         getcwd: on Solaris, work better if ancestors are inaccessible
30401         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30402         buffer and size, try again with a large buffer.  This works better
30403         on Solaris, since its getcwd succeeds even if the path to the root
30404         is inaccessible, and this is helpful in common cases such as .zfs
30405         hidden directories.  Problem reported by J Chapman Flack in
30406         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30407         Use system getcwd if it's declared, not merely if it's partly
30408         working; use the partly-working test only to avoid needless effort
30409         if the system getcwd fails.
30410         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30411         comment that was already obsolete and is now even more obsolete.
30412         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30413         now might call strdup.
30414
30415 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30416
30417         pthread: Add enough so that coreutils/src/sort.c compiles.
30418         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30419         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30420         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30421         Include <sys/types.h>, in case it defines pthread_t.
30422         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30423         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30424         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30425         (pthread_rwlockattr_t, pthread_spinlock_t):
30426         New typedefs, if HAVE_PTHREAD_T is not defined.
30427         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30428         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30429         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30430         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30431         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30432         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30433         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30434         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30435         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30436         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30437         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30438         New macros.
30439         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30440         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30441         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30442         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30443         (pthread_spin_unlock): New dummy functions.
30444         (pthread_create): Return EAGAIN; don't set errno.
30445         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30446         require AC_C_INLINE.
30447         * modules/pthread (Depends-on): Add sched, time.
30448         (pthread.h): Use AM_V_GEN.
30449
30450 2010-07-13  Bruno Haible  <bruno@clisp.org>
30451
30452         striconveh: Don't malloc memory if the result buffer is sufficient.
30453         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30454         buffer if its size is sufficient.
30455         Reported by Ludovic Courtès <ludo@gnu.org>.
30456
30457 2010-07-13  Bruno Haible  <bruno@clisp.org>
30458
30459         strtod: Add safety check.
30460         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30461
30462 2010-07-12  Bruno Haible  <bruno@clisp.org>
30463
30464         Unify tests that set gl_cv_func_ldexpl_no_libm.
30465         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30466         gl_FUNC_LDEXPL.
30467         (gl_FUNC_LDEXPL): Invoke it.
30468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30469
30470 2010-07-12  Bruno Haible  <bruno@clisp.org>
30471
30472         Unify tests that set gl_cv_func_ldexp_no_libm.
30473         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30474         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30475         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30476         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30477         * modules/strtod (Files): Add m4/ldexp.m4.
30478
30479 2010-07-12  Bruno Haible  <bruno@clisp.org>
30480
30481         Unify tests that set gl_cv_func_frexpl_no_libm.
30482         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30483         gl_FUNC_FREXPL_NO_LIBM.
30484         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30485         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30486
30487 2010-07-12  Bruno Haible  <bruno@clisp.org>
30488
30489         Unify tests that set gl_cv_func_frexp_no_libm.
30490         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30491         gl_FUNC_FREXP_NO_LIBM.
30492         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30493         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30494
30495 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30496
30497         memcoll: clarify sizes versus lengths, document better, and tweak perf
30498         * lib/memcoll.c (strcoll_loop, memcoll0):
30499         Improve quality of descriptive comments.  Name variables
30500         consistently as to whether they are lengths (which do not include
30501         terminating null) versus sizes (which do).
30502         * lib/xmemcoll.c (xmemcoll0): Likewise.
30503         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30504         returned when s1size == 0; this is easier to compile and saves
30505         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30506
30507 2010-07-12  Bruno Haible  <bruno@clisp.org>
30508
30509         Tests for module '_Exit'.
30510         * modules/_Exit-tests: New file.
30511         * tests/test-_Exit.sh: New file.
30512         * tests/test-_Exit.c: New file.
30513
30514         New module '_Exit'.
30515         * lib/stdlib.in.h (__attribute__): New macro.
30516         (_Exit): New declaration.
30517         * lib/_Exit.c: New file.
30518         * m4/_Exit.m4: New file.
30519         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30520         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30521         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30522         * modules/_Exit: New file.
30523         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30524         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30525
30526 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30527
30528         strtod: make it more-accurate typically, and don't require libm
30529         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30530         Include limits.h.  Don't include string.h.
30531         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30532         (locale_isspace): New function, so that no casts are needed to
30533         check whether *s is a space.
30534         (ldexp): Provide an unused dummy if not available.
30535         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30536         (strtod): Use them.  This implementation prefers to use the
30537         underlying strtod if available, falling back on our own code
30538         only to fix known bugs.  This is more likely to produce an
30539         accurate result.  Also, it avoids the use of libm functions.
30540         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30541         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30542         was absent, but it caused a test failure with coreutils.
30543         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30544         with libm.
30545         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30546         * modules/strtod-tests (Makefile.am): Likewise.
30547
30548 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30549             Bruno Haible  <bruno@clisp.org>
30550
30551         unistr/u8-strchr: Optimize ASCII argument case.
30552         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30553
30554 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30555
30556         (x)memcoll: minor tweaks
30557         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30558         is after the type that it qualifies.
30559         (memcoll0): Likewise.
30560         * lib/memcoll.h (memcoll0): Likewise.
30561         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30562         * lib/xmemcoll.h (xmemcoll0): Likewise.
30563         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30564         differs from memcoll in that the NUL byte is part of the argument.
30565         Omit the abort-checks, as performance is a real issue here.  Plus,
30566         the checks were wrong anyway (an off-by-one error).  Omit local
30567         variable 'diff', as it's a bit clearer that way.
30568         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30569         no longer needed.
30570
30571 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30572
30573         (x)memcoll: speedup when input is known to be NUL delimited
30574         * lib/memcoll.c: Include stdlib.
30575         (memcoll0): New function.
30576         (strcoll_loop): New function, refactored for use in both memcoll
30577         and memcoll0.
30578         * lib/memcoll.h (memcoll0): Add prototype.
30579         * lib/xmemcoll.c (xmemcoll0): New function.
30580         (collate_error): New function, refactored for use in both xmemcoll
30581         and xmemcoll0.
30582         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30583         * m4/memcoll.m4: add inline invocation.
30584
30585 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30586
30587         * build-aux/bootstrap: Remove any local translations
30588         from the translation project synchronization directory,
30589         so that local only translations are not distributed.
30590
30591 2010-07-04  Bruno Haible  <bruno@clisp.org>
30592
30593         fsusage: Clarify which code applies to which platforms.
30594         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30595         platform.
30596         * lib/fsusage.c (get_fs_usage): Likewise.
30597
30598 2010-07-04  Bruno Haible  <bruno@clisp.org>
30599
30600         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30601         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30602         Reported by Martin Lambers <marlam@marlam.de>.
30603
30604 2010-07-04  Jim Meyering  <meyering@redhat.com>
30605
30606         hash: once again explicitly disallow insertion of NULL
30607         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30608         inserting a NULL pointer cannot work with these functions.
30609         Add a comment with details.
30610         This reverts part of the 2010-07-01 commit, 5bef1a35
30611         "hash: extend module to deal with non-pointer keys".
30612
30613 2010-07-01  Bruno Haible  <bruno@clisp.org>
30614
30615         stdbool: Update doc.
30616         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30617         Info from Christian Weisgerber <naddy@mips.inka.de>.
30618
30619 2010-07-01  Jim Meyering  <meyering@redhat.com>
30620
30621         hash: extend module to deal with non-pointer keys
30622         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30623         but that allows insertion of non-pointer entries.
30624         Do not disallow an ENTRY value of NULL.
30625         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30626         * lib/hash.h (hash_insert0): Declare.
30627
30628 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30629
30630         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30631         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30632         not present (i.e. with autoconf 2.59 and when using gettextize, not
30633         gnulib), require AC_GNU_SOURCE instead.
30634
30635 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30636
30637         idpriv-drop: Fix tests.
30638         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30639         not to the test-idpriv-droptemp program.
30640
30641 2010-06-29  Bruno Haible  <bruno@clisp.org>
30642
30643         string: Fix syntax error with g++ 2.96.
30644         * lib/string.in.h (__pure__): Remove definition.
30645         (_GL_ATTRIBUTE_PURE): New macro.
30646         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30647         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30648         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30649
30650 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30651
30652         unitypes: Fix bug introduced on 2010-05-18.
30653         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30654
30655 2010-06-22  Eric Blake  <eblake@redhat.com>
30656
30657         memmem: slight optimization
30658         * lib/str-two-way.h (critical_factorization): Update comments.
30659         Reduce work during factorization phase.
30660         Reported by Carlos Bueno <carlos@bueno.org>.
30661
30662 2010-06-21  Bruno Haible  <bruno@clisp.org>
30663
30664         Fix HAVE_CALLOC_POSIX misnomer.
30665         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30666         !HAVE_CALLOC_POSIX.
30667         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30668         HAVE_CALLOC_POSIX.
30669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30670         instead of HAVE_CALLOC_POSIX.
30671         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30672         HAVE_CALLOC_POSIX.
30673
30674         Use modern idiom for calloc() replacement.
30675         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30676         AC_FUNC_CALLOC.
30677         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30678         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30679         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30680         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30681         (gl_REPLACE_CALLOC): New macro.
30682
30683 2010-06-21  Bruno Haible  <bruno@clisp.org>
30684
30685         Fix HAVE_REALLOC_POSIX misnomer.
30686         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30687         !HAVE_REALLOC_POSIX.
30688         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30689         HAVE_REALLOC_POSIX.
30690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30691         instead of HAVE_REALLOC_POSIX.
30692         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30693         HAVE_REALLOC_POSIX.
30694
30695         Use modern idiom for realloc() replacement.
30696         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30697         AC_FUNC_REALLOC.
30698         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30699         Autoconf's AC_FUNC_REALLOC.
30700         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30701         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30702         (gl_REPLACE_REALLOC): New macro.
30703         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30704
30705 2010-06-21  Bruno Haible  <bruno@clisp.org>
30706
30707         Fix HAVE_MALLOC_POSIX misnomer.
30708         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30709         !HAVE_MALLOC_POSIX.
30710         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30711         HAVE_MALLOC_POSIX.
30712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30713         instead of HAVE_MALLOC_POSIX.
30714         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30715         HAVE_MALLOC_POSIX.
30716
30717         Use modern idiom for malloc() replacement.
30718         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30719         AC_FUNC_MALLOC.
30720         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30721         Autoconf's AC_FUNC_MALLOC.
30722         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30723         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30724         (gl_REPLACE_MALLOC): New macro.
30725         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30726
30727 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30728
30729         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30730         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30731         This macro takes 3 arguments, not 4.
30732
30733 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30734
30735         ipv6: fix detection under mingw
30736         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30737         in6_addr.
30738
30739 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30740
30741         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30742         that strtod() works when cross-compiling to a glibc version known
30743         to work.
30744
30745 2010-06-15  Bruno Haible  <bruno@clisp.org>
30746
30747         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30748
30749 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30750
30751         select: Correct timeout.
30752         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30753
30754 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30755
30756         git-version-gen: init shell var to avoid env var influence
30757         * build-aux/git-version-gen (v): Init shell var to empty.
30758
30759 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30760
30761         priv-set: Don't assume that priv.h exists merely because getppriv does.
30762         See Jan Andersen's bug report about AIX 5L in
30763         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30764         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30765         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30766         * lib/priv-set.h: Likewise.
30767         * tests/test-priv-set.c: Likewise.
30768
30769 2010-06-13  Bruno Haible  <bruno@clisp.org>
30770
30771         relocatable: Make it easier to test whether to install wrappers.
30772         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30773         RELOCATABLE_VIA_WRAPPER.
30774
30775 2010-06-13  Bruno Haible  <bruno@clisp.org>
30776
30777         gnulib-tool: Display specified modules and dependencies differently.
30778         * gnulib-tool (func_show_module_list): New function.
30779         (func_import, func_create_testdir): Invoke it.
30780         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30781
30782 2010-06-13  Bruno Haible  <bruno@clisp.org>
30783
30784         gnulib-tool: Align code of func_import and func_create_testdir.
30785         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30786         specified_modules.
30787
30788 2010-06-12  Jim Meyering  <meyering@redhat.com>
30789
30790         test-inttostr: avoid spurious failure on Solaris 9
30791         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30792         to accept "%ju".  Reported by Bruno Haible.
30793
30794 2010-06-11  Jim Meyering  <meyering@redhat.com>
30795
30796         test-sys_socket: mark variables as used more readably
30797         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30798         as "used" explicitly via (void) statement casts.  This is more
30799         readable than using them in an artificial return expression.
30800         Suggestion from Bruno Haible.
30801
30802 2010-06-11  Bruno Haible  <bruno@clisp.org>
30803
30804         Avoid some more warnings from "gcc -Wwrite-strings".
30805         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30806         to 'const char *'.
30807         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30808         * tests/test-c-strcasestr.c (main): Likewise.
30809         * tests/test-mbscasestr1.c (main): Likewise.
30810         * tests/test-mbscasestr2.c (main): Likewise.
30811         * tests/test-memmem.c (main): Likewise.
30812         * tests/test-strstr.c (main): Likewise.
30813         * tests/test-strcasestr.c (main): Likewise.
30814
30815 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30816
30817         init.sh: change framework_failure_ to fail with status 99, not 1
30818         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30819         automake's parallel-tests rule that this is an unexpected failure,
30820         even if the test is listed in XFAIL_TESTS.
30821
30822 2010-06-11  Jim Meyering  <meyering@redhat.com>
30823
30824         test-inttostr: avoid warnings about 4-6KB literal strings
30825         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30826         Include "macros.h", for its definition of ASSERT.
30827         (CK): s/assert/ASSERT/
30828         * modules/inttostr-tests (Files): Add macros.h.
30829
30830         init.sh: don't use $ME_ or skip_ before they are defined
30831         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30832         their first uses.  Also hoist their companions: warn_, fail_,
30833         framework_failure_, $stderr_fileno.  Prompted by a patch from
30834         Stefano Lattarini.
30835
30836         test-sys_socket: avoid set-but-not-used warnings from gcc
30837         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30838         avoid warning about set-but-not-used variables.
30839
30840         test-xvasprintf: avoid 'const' discard warnings
30841         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30842         "const" when assigning from literal strings.
30843         (test_xasprintf): Add "void" in function argument list to placate
30844         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30845
30846         tests: avoid compilation warnings in argmatch and exclude tests...
30847         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30848         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30849         Since it always exits, declare with the "noreturn" attribute.
30850         * tests/test-argmatch.c: Likewise.
30851
30852         tests: avoid 'const' discard warnings in mbsstr tests
30853         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30854         * tests/test-mbsstr2.c (main): Likewise.
30855
30856         test-verify: avoid warning from gcc's -Wmissing-declarations
30857         * tests/test-verify.c (function): Declare to be static.
30858
30859         test-inttostr.c: include <string.h> for use of strcmp
30860         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30861
30862         test-linkat: avoid failed assertion on "other" architectures
30863         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30864         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30865         sparc: https://bugs.launchpad.net/bugs/591968
30866
30867 2010-06-11  Jim Meyering  <meyering@redhat.com>
30868
30869         printf.m4: avoid autoconf's "Expanded Before Required" warning
30870         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30871         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30872         autoconf warning.
30873
30874 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30875
30876         Replacement header templates are now named with ".in", not "_".
30877         * doc/gnulib-intro.texi: Correct.
30878
30879 2010-06-10  Jim Meyering  <meyering@redhat.com>
30880
30881         inttostr-tests: depend on snprintf, not snprintf-posix
30882         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30883         snprintf-posix, to avoid this aclocal failure:
30884           missing file gnulib-tests/vasnprintf.c
30885           configure.ac:45: error: expected source file, required through \
30886           AC_LIBSOURCES, not found
30887
30888 2010-06-10  Jim Meyering  <meyering@redhat.com>
30889
30890         inttostr: add a new function, inttostr, and tests
30891         The namesake function was not available.  The existence of the
30892         template file, inttostr.c makes its addition nontrivial.
30893         * lib/anytostr.c: Rename from inttostr.c.
30894         (anytostr): Rename from inttostr.
30895         * lib/inttostr.c: New file.
30896         * modules/inttostr (Files): Add anytostr.c.
30897         (Makefile.am): Set lib_SOURCES instead of ...
30898         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30899         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30900         * lib/offtostr.c: Likewise.
30901         * lib/uinttostr.c: Likewise.
30902         * lib/umaxtostr.c: Likewise.
30903         * modules/inttostr-tests: New file.
30904         * tests/test-inttostr.c: New file.  Test these functions.
30905
30906 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30907             Bruno Haible  <bruno@clisp.org>
30908
30909         Add "Extending Gnulib" chapter to manual.
30910         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30911         chapter.
30912         (Extending Gnulib): New chapter.
30913         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30914         chapter.
30915
30916 2010-06-09  Bruno Haible  <bruno@clisp.org>
30917
30918         Avoid relocwrapper link errors due to gnulib replacement functions.
30919         * lib/areadlink.c: Use the system's malloc, realloc functions.
30920         (areadlink): Set errno to ENOMEM explicitly.
30921         * modules/areadlink (Depends-on): Remove malloc-posix.
30922         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30923
30924 2010-06-09  Bruno Haible  <bruno@clisp.org>
30925
30926         Avoid relocwrapper link errors due to gnulib replacement functions.
30927         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30928         * lib/malloca.c: Likewise.
30929         * lib/relocatable.c: Likewise.
30930         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30931         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30932         * lib/setenv.c: Use the system's malloc, realloc functions.
30933         * lib/strerror.c: Use the system's sprintf function.
30934         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30935
30936 2010-06-04  Bruno Haible  <bruno@clisp.org>
30937
30938         Prefer documented low-level autoconf macro names.
30939         * m4/lib-link.m4: Use m4_translit instead of translit.
30940         * m4/environ.m4: Likewise.
30941         * m4/mathfunc.m4: Likewise.
30942         * m4/onceonly.m4: Likewise.
30943         * m4/stdint.m4: Likewise.
30944         Suggested by Eric Blake.
30945
30946 2010-06-04  Martin Lambers  <marlam@marlam.de>
30947             Bruno Haible  <bruno@clisp.org>
30948
30949         havelib: Allow library names with '+' characters.
30950         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30951         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30952
30953 2010-06-09  Bruno Haible  <bruno@clisp.org>
30954
30955         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30956         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30957         realloc failed.
30958
30959 2010-06-08  Peter Simons  <simons@cryp.to>
30960
30961         maint.mk: make the news-check rule more configurable
30962         * top/maint.mk (news-check-lines-spec): New variable.
30963         (news-check): Use "sed -n 1,10p" in place of "head".
30964
30965 2010-06-07  Jim Meyering  <meyering@redhat.com>
30966
30967         do-release-commit-and-tag: fix typo in --help
30968         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30969
30970         regex: avoid new dead-code warning with gcc-4.6.0
30971         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30972         if-block containing a while-loop.  It's been unused for at least
30973         5 years.
30974
30975 2010-06-05  Bruno Haible  <bruno@clisp.org>
30976
30977         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30978         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30979
30980 2010-06-04  Bruno Haible  <bruno@clisp.org>
30981
30982         Update to GNU gettext 0.18.1.
30983         * modules/gettext (configure.ac): Require gettext infrastructure from
30984         version 0.18.1.
30985
30986 2010-06-03  Bruno Haible  <bruno@clisp.org>
30987
30988         Don't use AC_LIBOBJ with file names in subdirectories.
30989         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30990         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30991         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30992         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30993         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30994         gl_LIBUNISTRING_LIBSOURCE.
30995         (Makefile.am): Augment lib_SOURCES here, conditionally.
30996         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30997
30998 2010-06-03  Bruno Haible  <bruno@clisp.org>
30999
31000         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31001         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31002         expansion does not end with a newline.
31003         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31004         unnecessary newline.
31005
31006 2010-06-03  Bruno Haible  <bruno@clisp.org>
31007
31008         Reduce dependencies.
31009         * tests/test-quotearg.h: New file, extracted from
31010         tests/test-quotearg.c.
31011         * tests/test-quotearg-simple.c: New file, extracted from
31012         tests/test-quotearg.c.
31013         * tests/test-quotearg.c: Don't include <ctype.h>.
31014         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31015         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31016         use_quote_double_quotes, use_quotearg_colon): Moved to
31017         tests/test-quotearg.h.
31018         (results_g, flag_results, custom_quotes, custom_results): Moved
31019         to tests/test-quotearg-simple.c.
31020         (main): Moved the part that does not depend on gettext to
31021         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31022         performed.
31023         * modules/quotearg-simple: New file.
31024         * modules/quotearg-simple-tests: New file.
31025         * modules/quotearg (Depends-on): Add quotearg-simple.
31026         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31027         (Files): Add tests/test-quotearg.h.
31028         Reported by Paolo Bonzini.
31029
31030 2010-06-03  Bruno Haible  <bruno@clisp.org>
31031
31032         Reduce dependencies.
31033         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31034
31035 2010-06-03  Bruno Haible  <bruno@clisp.org>
31036
31037         time: Undefine more broken macros.
31038         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31039         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31040         Reported by Eric Blake.
31041
31042 2010-06-03  Bruno Haible  <bruno@clisp.org>
31043
31044         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31045         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31046         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31047         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31048         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31049         Reported by Ludovic Courtès <ludo@gnu.org>.
31050
31051 2010-06-02  Eric Blake  <eblake@redhat.com>
31052
31053         time: work with mingw + pthreads-win32 library
31054         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31055         if timespec is defined only in pthread.h.
31056         * modules/time (Makefile.am): Substitute it.
31057         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31058         <pthread.h>, when needed.
31059         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31060         from the library.
31061
31062 2010-05-31  Bruno Haible  <bruno@clisp.org>
31063
31064         Avoid expanding two macros in the wrong order.
31065         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31066         gl_LIBUNISTRING if it is defined.
31067         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31068         autoconf >= 2.64.
31069         Reported by Ludovic Courtès <ludo@gnu.org>.
31070
31071 2010-05-27  Jim Meyering  <meyering@redhat.com>
31072
31073         maint.mk: also prohibit "#undef" of always-defined symbols
31074         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31075         Allow more than one space before the symbol name.
31076         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31077         the regexp uses alternation.
31078
31079 2010-05-26  Eric Blake  <eblake@redhat.com>
31080
31081         maint.mk: avoid echo -e
31082         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31083         Convert all uses of echo -* to printf.
31084         Reported by Matthias Bolte.
31085
31086 2010-05-25  Bruno Haible  <bruno@clisp.org>
31087
31088         Update to GNU gettext 0.18, part 2.
31089         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31090         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31091
31092 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31093
31094         Add missing include in test-pwrite.c.
31095         * tests/test-pwrite.c: Include string.h, for strcmp.
31096
31097 2010-05-24  Bruno Haible  <bruno@clisp.org>
31098
31099         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31100
31101 2010-05-24  Bruno Haible  <bruno@clisp.org>
31102
31103         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31104         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31105         iconveh_error argument.
31106         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31107         U_STRCONV_TO_LOCALE.
31108         * lib/unistr/u16-strcoll.c: Likewise.
31109         * lib/unistr/u32-strcoll.c: Likewise.
31110         * modules/unistr/u8-strcoll (Depends-on): Add
31111         uniconv/u8-strconv-to-enc, localcharset. Remove
31112         uniconv/u8-strconv-to-locale.
31113         (configure.ac): Bump version number.
31114         * modules/unistr/u16-strcoll (Depends-on): Add
31115         uniconv/u16-strconv-to-enc, localcharset. Remove
31116         uniconv/u16-strconv-to-locale.
31117         (configure.ac): Bump version number.
31118         * modules/unistr/u32-strcoll (Depends-on): Add
31119         uniconv/u32-strconv-to-enc, localcharset. Remove
31120         uniconv/u32-strconv-to-locale.
31121         (configure.ac): Bump version number.
31122
31123 2010-05-24  Bruno Haible  <bruno@clisp.org>
31124
31125         Avoid a test failure on NetBSD 5.0.
31126         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31127         an iconv() bug.
31128
31129 2010-05-24  Bruno Haible  <bruno@clisp.org>
31130
31131         Adjust #include directive style.
31132         * modules/regex (Includes): Recommend to write <regex.h>.
31133
31134 2010-05-24  Bruno Haible  <bruno@clisp.org>
31135
31136         regex: Don't require alloca.
31137         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31138         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31139         only inside if (0).
31140
31141 2010-05-23  Jim Meyering  <meyering@redhat.com>
31142
31143         test-renameat.c: include <sys/stat.h>
31144         * tests/test-renameat.c: Include <sys/stat.h>; required for
31145         definition of S_IS* macros.
31146
31147 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31148
31149         Update maintainer documentation for 'relocatable-prog' module.
31150         * doc/relocatable-maint.texi: Update.
31151         Comments by Bruno Haible.
31152
31153 2010-05-23  Bruno Haible  <bruno@clisp.org>
31154
31155         git-merge-changelog: Enable --split-merged-entry by default.
31156         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31157         (usage): Don't mention this option any more.
31158         Reported by Ralf Wildenhues.
31159
31160 2010-05-23  Jim Meyering  <meyering@redhat.com>
31161
31162         test-pwrite: do not leave behind a test file named "out"
31163         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31164         The trivial-looking use of init.sh is really necessary.
31165         It ensures that the temporary file, "out", is created in
31166         a temporary directory, and removed upon termination.
31167         * tests/test-pwrite.sh: Re-add file.
31168         * modules/pwrite-tests: Reference it.
31169
31170 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31171
31172         Fix output redirection buglet in init.sh.
31173         * tests/init.sh: Fix redirection of stderr.
31174
31175 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31176
31177         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31178
31179 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31180
31181         * modules/valgrind-tests: New file.
31182         * m4/valgrind-tests.m4: New file.
31183         * doc/valgrind-tests.texi: New file.
31184         * doc/gnulib.texi (Running self-tests under valgrind): New
31185         section.
31186
31187 2010-05-19  Bruno Haible  <bruno@clisp.org>
31188
31189         Clean up dead code in recent commit.
31190         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31191         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31192         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31193         Suggested by Paolo Bonzini.
31194
31195 2010-05-19  Bruno Haible  <bruno@clisp.org>
31196
31197         Avoid valgrind error reports from libunistring.
31198         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31199         * modules/libunistring (Files): Add it.
31200         * modules/libunistring-optional (Files): Likewise.
31201
31202 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31203             Bruno Haible  <bruno@clisp.org>
31204
31205         New module 'libunistring-optional'.
31206         * modules/libunistring-optional: New file.
31207         * m4/libunistring-base.m4: New file.
31208         * m4/libunistring-optional.m4: New file.
31209         * lib/unicase.in.h: Renamed from lib/unicase.h.
31210         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31211         * lib/unictype.in.h: Renamed from lib/unictype.h.
31212         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31213         * lib/uniname.in.h: Renamed from lib/uniname.h.
31214         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31215         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31216         * lib/unistr.in.h: Renamed from lib/unistr.h.
31217         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31218         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31219         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31220         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31221         gl_LIBUNISTRING. If the library was found, determine the installed
31222         version and set LIBUNISTRING_VERSION.
31223         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31224         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31225         handle a configuration option --with-included-libunistring.
31226         * modules/libunistring (Files): Add m4/absolute-header.m4.
31227         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31228         Add m4/libunistring-base.m4.
31229         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31230         (Makefile.am): Build unicase.h from unicase.in.h.
31231         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31232         Add m4/libunistring-base.m4.
31233         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31234         (Makefile.am): Build uniconv.h from uniconv.in.h.
31235         * modules/unictype/base (Files): Use unictype.in.h instead of
31236         unictype.h. Add m4/libunistring-base.m4.
31237         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31238         (Makefile.am): Build unictype.h from unictype.in.h.
31239         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31240         Add m4/libunistring-base.m4.
31241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31242         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31243         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31244         Add m4/libunistring-base.m4.
31245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31246         (Makefile.am): Build uniname.h from uniname.in.h.
31247         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31248         Add m4/libunistring-base.m4.
31249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31250         (Makefile.am): Build uninorm.h from uninorm.in.h.
31251         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31252         unistdio.h. Add m4/libunistring-base.m4.
31253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31254         (Makefile.am): Build unistdio.h from unistdio.in.h.
31255         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31256         Add m4/libunistring-base.m4.
31257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31258         (Makefile.am): Build unistr.h from unistr.in.h.
31259         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31260         Add m4/libunistring-base.m4.
31261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31262         (Makefile.am): Build unitypes.h from unitypes.in.h.
31263         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31264         Add m4/libunistring-base.m4.
31265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31266         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31267         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31268         uniwidth.h. Add m4/libunistring-base.m4.
31269         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31270         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31271         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31272         instead of augmenting lib_SOURCES.
31273         * modules/unicase/empty-suffix-context: Likewise.
31274         * modules/unicase/locale-language: Likewise.
31275         * modules/unicase/tolower: Likewise.
31276         * modules/unicase/totitle: Likewise.
31277         * modules/unicase/toupper: Likewise.
31278         * modules/unicase/u8-casecmp: Likewise.
31279         * modules/unicase/u8-casecoll: Likewise.
31280         * modules/unicase/u8-casefold: Likewise.
31281         * modules/unicase/u8-casexfrm: Likewise.
31282         * modules/unicase/u8-ct-casefold: Likewise.
31283         * modules/unicase/u8-ct-tolower: Likewise.
31284         * modules/unicase/u8-ct-totitle: Likewise.
31285         * modules/unicase/u8-ct-toupper: Likewise.
31286         * modules/unicase/u8-is-cased: Likewise.
31287         * modules/unicase/u8-is-casefolded: Likewise.
31288         * modules/unicase/u8-is-lowercase: Likewise.
31289         * modules/unicase/u8-is-titlecase: Likewise.
31290         * modules/unicase/u8-is-uppercase: Likewise.
31291         * modules/unicase/u8-prefix-context: Likewise.
31292         * modules/unicase/u8-suffix-context: Likewise.
31293         * modules/unicase/u8-tolower: Likewise.
31294         * modules/unicase/u8-totitle: Likewise.
31295         * modules/unicase/u8-toupper: Likewise.
31296         * modules/unicase/u16-casecmp: Likewise.
31297         * modules/unicase/u16-casecoll: Likewise.
31298         * modules/unicase/u16-casefold: Likewise.
31299         * modules/unicase/u16-casexfrm: Likewise.
31300         * modules/unicase/u16-ct-casefold: Likewise.
31301         * modules/unicase/u16-ct-tolower: Likewise.
31302         * modules/unicase/u16-ct-totitle: Likewise.
31303         * modules/unicase/u16-ct-toupper: Likewise.
31304         * modules/unicase/u16-is-cased: Likewise.
31305         * modules/unicase/u16-is-casefolded: Likewise.
31306         * modules/unicase/u16-is-lowercase: Likewise.
31307         * modules/unicase/u16-is-titlecase: Likewise.
31308         * modules/unicase/u16-is-uppercase: Likewise.
31309         * modules/unicase/u16-prefix-context: Likewise.
31310         * modules/unicase/u16-suffix-context: Likewise.
31311         * modules/unicase/u16-tolower: Likewise.
31312         * modules/unicase/u16-totitle: Likewise.
31313         * modules/unicase/u16-toupper: Likewise.
31314         * modules/unicase/u32-casecmp: Likewise.
31315         * modules/unicase/u32-casecoll: Likewise.
31316         * modules/unicase/u32-casefold: Likewise.
31317         * modules/unicase/u32-casexfrm: Likewise.
31318         * modules/unicase/u32-ct-casefold: Likewise.
31319         * modules/unicase/u32-ct-tolower: Likewise.
31320         * modules/unicase/u32-ct-totitle: Likewise.
31321         * modules/unicase/u32-ct-toupper: Likewise.
31322         * modules/unicase/u32-is-cased: Likewise.
31323         * modules/unicase/u32-is-casefolded: Likewise.
31324         * modules/unicase/u32-is-lowercase: Likewise.
31325         * modules/unicase/u32-is-titlecase: Likewise.
31326         * modules/unicase/u32-is-uppercase: Likewise.
31327         * modules/unicase/u32-prefix-context: Likewise.
31328         * modules/unicase/u32-suffix-context: Likewise.
31329         * modules/unicase/u32-tolower: Likewise.
31330         * modules/unicase/u32-totitle: Likewise.
31331         * modules/unicase/u32-toupper: Likewise.
31332         * modules/unicase/ulc-casecmp: Likewise.
31333         * modules/unicase/ulc-casecoll: Likewise.
31334         * modules/unicase/ulc-casexfrm: Likewise.
31335         * modules/uniconv/u8-conv-from-enc: Likewise.
31336         * modules/uniconv/u8-conv-to-enc: Likewise.
31337         * modules/uniconv/u8-strconv-from-enc: Likewise.
31338         * modules/uniconv/u8-strconv-from-locale: Likewise.
31339         * modules/uniconv/u8-strconv-to-enc: Likewise.
31340         * modules/uniconv/u8-strconv-to-locale: Likewise.
31341         * modules/uniconv/u16-conv-from-enc: Likewise.
31342         * modules/uniconv/u16-conv-to-enc: Likewise.
31343         * modules/uniconv/u16-strconv-from-enc: Likewise.
31344         * modules/uniconv/u16-strconv-from-locale: Likewise.
31345         * modules/uniconv/u16-strconv-to-enc: Likewise.
31346         * modules/uniconv/u16-strconv-to-locale: Likewise.
31347         * modules/uniconv/u32-conv-from-enc: Likewise.
31348         * modules/uniconv/u32-conv-to-enc: Likewise.
31349         * modules/uniconv/u32-strconv-from-enc: Likewise.
31350         * modules/uniconv/u32-strconv-from-locale: Likewise.
31351         * modules/uniconv/u32-strconv-to-enc: Likewise.
31352         * modules/uniconv/u32-strconv-to-locale: Likewise.
31353         * modules/unictype/bidicategory-byname: Likewise.
31354         * modules/unictype/bidicategory-name: Likewise.
31355         * modules/unictype/bidicategory-of: Likewise.
31356         * modules/unictype/bidicategory-test: Likewise.
31357         * modules/unictype/block-list: Likewise.
31358         * modules/unictype/block-test: Likewise.
31359         * modules/unictype/category-C: Likewise.
31360         * modules/unictype/category-Cc: Likewise.
31361         * modules/unictype/category-Cf: Likewise.
31362         * modules/unictype/category-Cn: Likewise.
31363         * modules/unictype/category-Co: Likewise.
31364         * modules/unictype/category-Cs: Likewise.
31365         * modules/unictype/category-L: Likewise.
31366         * modules/unictype/category-Ll: Likewise.
31367         * modules/unictype/category-Lm: Likewise.
31368         * modules/unictype/category-Lo: Likewise.
31369         * modules/unictype/category-Lt: Likewise.
31370         * modules/unictype/category-Lu: Likewise.
31371         * modules/unictype/category-M: Likewise.
31372         * modules/unictype/category-Mc: Likewise.
31373         * modules/unictype/category-Me: Likewise.
31374         * modules/unictype/category-Mn: Likewise.
31375         * modules/unictype/category-N: Likewise.
31376         * modules/unictype/category-Nd: Likewise.
31377         * modules/unictype/category-Nl: Likewise.
31378         * modules/unictype/category-No: Likewise.
31379         * modules/unictype/category-P: Likewise.
31380         * modules/unictype/category-Pc: Likewise.
31381         * modules/unictype/category-Pd: Likewise.
31382         * modules/unictype/category-Pe: Likewise.
31383         * modules/unictype/category-Pf: Likewise.
31384         * modules/unictype/category-Pi: Likewise.
31385         * modules/unictype/category-Po: Likewise.
31386         * modules/unictype/category-Ps: Likewise.
31387         * modules/unictype/category-S: Likewise.
31388         * modules/unictype/category-Sc: Likewise.
31389         * modules/unictype/category-Sk: Likewise.
31390         * modules/unictype/category-Sm: Likewise.
31391         * modules/unictype/category-So: Likewise.
31392         * modules/unictype/category-Z: Likewise.
31393         * modules/unictype/category-Zl: Likewise.
31394         * modules/unictype/category-Zp: Likewise.
31395         * modules/unictype/category-Zs: Likewise.
31396         * modules/unictype/category-and: Likewise.
31397         * modules/unictype/category-and-not: Likewise.
31398         * modules/unictype/category-byname: Likewise.
31399         * modules/unictype/category-name: Likewise.
31400         * modules/unictype/category-none: Likewise.
31401         * modules/unictype/category-of: Likewise.
31402         * modules/unictype/category-or: Likewise.
31403         * modules/unictype/category-test: Likewise.
31404         * modules/unictype/combining-class: Likewise.
31405         * modules/unictype/ctype-alnum: Likewise.
31406         * modules/unictype/ctype-alpha: Likewise.
31407         * modules/unictype/ctype-blank: Likewise.
31408         * modules/unictype/ctype-cntrl: Likewise.
31409         * modules/unictype/ctype-digit: Likewise.
31410         * modules/unictype/ctype-graph: Likewise.
31411         * modules/unictype/ctype-lower: Likewise.
31412         * modules/unictype/ctype-print: Likewise.
31413         * modules/unictype/ctype-punct: Likewise.
31414         * modules/unictype/ctype-space: Likewise.
31415         * modules/unictype/ctype-upper: Likewise.
31416         * modules/unictype/ctype-xdigit: Likewise.
31417         * modules/unictype/decimal-digit: Likewise.
31418         * modules/unictype/digit: Likewise.
31419         * modules/unictype/mirror: Likewise.
31420         * modules/unictype/numeric: Likewise.
31421         * modules/unictype/property-alphabetic: Likewise.
31422         * modules/unictype/property-ascii-hex-digit: Likewise.
31423         * modules/unictype/property-bidi-arabic-digit: Likewise.
31424         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31425         * modules/unictype/property-bidi-block-separator: Likewise.
31426         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31427         * modules/unictype/property-bidi-common-separator: Likewise.
31428         * modules/unictype/property-bidi-control: Likewise.
31429         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31430         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31431         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31432         * modules/unictype/property-bidi-european-digit: Likewise.
31433         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31434         * modules/unictype/property-bidi-left-to-right: Likewise.
31435         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31436         * modules/unictype/property-bidi-other-neutral: Likewise.
31437         * modules/unictype/property-bidi-pdf: Likewise.
31438         * modules/unictype/property-bidi-segment-separator: Likewise.
31439         * modules/unictype/property-bidi-whitespace: Likewise.
31440         * modules/unictype/property-byname: Likewise.
31441         * modules/unictype/property-combining: Likewise.
31442         * modules/unictype/property-composite: Likewise.
31443         * modules/unictype/property-currency-symbol: Likewise.
31444         * modules/unictype/property-dash: Likewise.
31445         * modules/unictype/property-decimal-digit: Likewise.
31446         * modules/unictype/property-default-ignorable-code-point: Likewise.
31447         * modules/unictype/property-deprecated: Likewise.
31448         * modules/unictype/property-diacritic: Likewise.
31449         * modules/unictype/property-extender: Likewise.
31450         * modules/unictype/property-format-control: Likewise.
31451         * modules/unictype/property-grapheme-base: Likewise.
31452         * modules/unictype/property-grapheme-extend: Likewise.
31453         * modules/unictype/property-grapheme-link: Likewise.
31454         * modules/unictype/property-hex-digit: Likewise.
31455         * modules/unictype/property-hyphen: Likewise.
31456         * modules/unictype/property-id-continue: Likewise.
31457         * modules/unictype/property-id-start: Likewise.
31458         * modules/unictype/property-ideographic: Likewise.
31459         * modules/unictype/property-ids-binary-operator: Likewise.
31460         * modules/unictype/property-ids-trinary-operator: Likewise.
31461         * modules/unictype/property-ignorable-control: Likewise.
31462         * modules/unictype/property-iso-control: Likewise.
31463         * modules/unictype/property-join-control: Likewise.
31464         * modules/unictype/property-left-of-pair: Likewise.
31465         * modules/unictype/property-line-separator: Likewise.
31466         * modules/unictype/property-logical-order-exception: Likewise.
31467         * modules/unictype/property-lowercase: Likewise.
31468         * modules/unictype/property-math: Likewise.
31469         * modules/unictype/property-non-break: Likewise.
31470         * modules/unictype/property-not-a-character: Likewise.
31471         * modules/unictype/property-numeric: Likewise.
31472         * modules/unictype/property-other-alphabetic: Likewise.
31473         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31474         * modules/unictype/property-other-grapheme-extend: Likewise.
31475         * modules/unictype/property-other-id-continue: Likewise.
31476         * modules/unictype/property-other-id-start: Likewise.
31477         * modules/unictype/property-other-lowercase: Likewise.
31478         * modules/unictype/property-other-math: Likewise.
31479         * modules/unictype/property-other-uppercase: Likewise.
31480         * modules/unictype/property-paired-punctuation: Likewise.
31481         * modules/unictype/property-paragraph-separator: Likewise.
31482         * modules/unictype/property-pattern-syntax: Likewise.
31483         * modules/unictype/property-pattern-white-space: Likewise.
31484         * modules/unictype/property-private-use: Likewise.
31485         * modules/unictype/property-punctuation: Likewise.
31486         * modules/unictype/property-quotation-mark: Likewise.
31487         * modules/unictype/property-radical: Likewise.
31488         * modules/unictype/property-sentence-terminal: Likewise.
31489         * modules/unictype/property-soft-dotted: Likewise.
31490         * modules/unictype/property-space: Likewise.
31491         * modules/unictype/property-terminal-punctuation: Likewise.
31492         * modules/unictype/property-test: Likewise.
31493         * modules/unictype/property-titlecase: Likewise.
31494         * modules/unictype/property-unassigned-code-value: Likewise.
31495         * modules/unictype/property-unified-ideograph: Likewise.
31496         * modules/unictype/property-uppercase: Likewise.
31497         * modules/unictype/property-variation-selector: Likewise.
31498         * modules/unictype/property-white-space: Likewise.
31499         * modules/unictype/property-xid-continue: Likewise.
31500         * modules/unictype/property-xid-start: Likewise.
31501         * modules/unictype/property-zero-width: Likewise.
31502         * modules/unictype/scripts: Likewise.
31503         * modules/unictype/syntax-c-ident: Likewise.
31504         * modules/unictype/syntax-c-whitespace: Likewise.
31505         * modules/unictype/syntax-java-ident: Likewise.
31506         * modules/unictype/syntax-java-whitespace: Likewise.
31507         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31508         * modules/unilbrk/u8-width-linebreaks: Likewise.
31509         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31510         * modules/unilbrk/u16-width-linebreaks: Likewise.
31511         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31512         * modules/unilbrk/u32-width-linebreaks: Likewise.
31513         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31514         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31515         * modules/uniname/uniname: Likewise.
31516         * modules/uninorm/canonical-decomposition: Likewise.
31517         * modules/uninorm/composition: Likewise.
31518         * modules/uninorm/decomposing-form: Likewise.
31519         * modules/uninorm/decomposition: Likewise.
31520         * modules/uninorm/filter: Likewise.
31521         * modules/uninorm/nfc: Likewise.
31522         * modules/uninorm/nfd: Likewise.
31523         * modules/uninorm/nfkc: Likewise.
31524         * modules/uninorm/nfkd: Likewise.
31525         * modules/uninorm/u8-normalize: Likewise.
31526         * modules/uninorm/u8-normcmp: Likewise.
31527         * modules/uninorm/u8-normcoll: Likewise.
31528         * modules/uninorm/u8-normxfrm: Likewise.
31529         * modules/uninorm/u16-normalize: Likewise.
31530         * modules/uninorm/u16-normcmp: Likewise.
31531         * modules/uninorm/u16-normcoll: Likewise.
31532         * modules/uninorm/u16-normxfrm: Likewise.
31533         * modules/uninorm/u32-normalize: Likewise.
31534         * modules/uninorm/u32-normcmp: Likewise.
31535         * modules/uninorm/u32-normcoll: Likewise.
31536         * modules/uninorm/u32-normxfrm: Likewise.
31537         * modules/unistdio/u8-asnprintf: Likewise.
31538         * modules/unistdio/u8-asprintf: Likewise.
31539         * modules/unistdio/u8-snprintf: Likewise.
31540         * modules/unistdio/u8-sprintf: Likewise.
31541         * modules/unistdio/u8-u8-asnprintf: Likewise.
31542         * modules/unistdio/u8-u8-asprintf: Likewise.
31543         * modules/unistdio/u8-u8-snprintf: Likewise.
31544         * modules/unistdio/u8-u8-sprintf: Likewise.
31545         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31546         * modules/unistdio/u8-u8-vasprintf: Likewise.
31547         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31548         * modules/unistdio/u8-u8-vsprintf: Likewise.
31549         * modules/unistdio/u8-vasnprintf: Likewise.
31550         * modules/unistdio/u8-vasprintf: Likewise.
31551         * modules/unistdio/u8-vsnprintf: Likewise.
31552         * modules/unistdio/u8-vsprintf: Likewise.
31553         * modules/unistdio/u16-asnprintf: Likewise.
31554         * modules/unistdio/u16-asprintf: Likewise.
31555         * modules/unistdio/u16-snprintf: Likewise.
31556         * modules/unistdio/u16-sprintf: Likewise.
31557         * modules/unistdio/u16-u16-asnprintf: Likewise.
31558         * modules/unistdio/u16-u16-asprintf: Likewise.
31559         * modules/unistdio/u16-u16-snprintf: Likewise.
31560         * modules/unistdio/u16-u16-sprintf: Likewise.
31561         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31562         * modules/unistdio/u16-u16-vasprintf: Likewise.
31563         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31564         * modules/unistdio/u16-u16-vsprintf: Likewise.
31565         * modules/unistdio/u16-vasnprintf: Likewise.
31566         * modules/unistdio/u16-vasprintf: Likewise.
31567         * modules/unistdio/u16-vsnprintf: Likewise.
31568         * modules/unistdio/u16-vsprintf: Likewise.
31569         * modules/unistdio/u32-asnprintf: Likewise.
31570         * modules/unistdio/u32-asprintf: Likewise.
31571         * modules/unistdio/u32-snprintf: Likewise.
31572         * modules/unistdio/u32-sprintf: Likewise.
31573         * modules/unistdio/u32-u32-asnprintf: Likewise.
31574         * modules/unistdio/u32-u32-asprintf: Likewise.
31575         * modules/unistdio/u32-u32-snprintf: Likewise.
31576         * modules/unistdio/u32-u32-sprintf: Likewise.
31577         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31578         * modules/unistdio/u32-u32-vasprintf: Likewise.
31579         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31580         * modules/unistdio/u32-u32-vsprintf: Likewise.
31581         * modules/unistdio/u32-vasnprintf: Likewise.
31582         * modules/unistdio/u32-vasprintf: Likewise.
31583         * modules/unistdio/u32-vsnprintf: Likewise.
31584         * modules/unistdio/u32-vsprintf: Likewise.
31585         * modules/unistdio/ulc-asnprintf: Likewise.
31586         * modules/unistdio/ulc-asprintf: Likewise.
31587         * modules/unistdio/ulc-fprintf: Likewise.
31588         * modules/unistdio/ulc-snprintf: Likewise.
31589         * modules/unistdio/ulc-sprintf: Likewise.
31590         * modules/unistdio/ulc-vasnprintf: Likewise.
31591         * modules/unistdio/ulc-vasprintf: Likewise.
31592         * modules/unistdio/ulc-vfprintf: Likewise.
31593         * modules/unistdio/ulc-vsnprintf: Likewise.
31594         * modules/unistdio/ulc-vsprintf: Likewise.
31595         * modules/unistr/u8-check: Likewise.
31596         * modules/unistr/u8-chr: Likewise.
31597         * modules/unistr/u8-cmp: Likewise.
31598         * modules/unistr/u8-cmp2: Likewise.
31599         * modules/unistr/u8-cpy: Likewise.
31600         * modules/unistr/u8-cpy-alloc: Likewise.
31601         * modules/unistr/u8-endswith: Likewise.
31602         * modules/unistr/u8-mblen: Likewise.
31603         * modules/unistr/u8-mbsnlen: Likewise.
31604         * modules/unistr/u8-mbtouc: Likewise.
31605         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31606         * modules/unistr/u8-mbtoucr: Likewise.
31607         * modules/unistr/u8-move: Likewise.
31608         * modules/unistr/u8-next: Likewise.
31609         * modules/unistr/u8-prev: Likewise.
31610         * modules/unistr/u8-set: Likewise.
31611         * modules/unistr/u8-startswith: Likewise.
31612         * modules/unistr/u8-stpcpy: Likewise.
31613         * modules/unistr/u8-stpncpy: Likewise.
31614         * modules/unistr/u8-strcat: Likewise.
31615         * modules/unistr/u8-strchr: Likewise.
31616         * modules/unistr/u8-strcmp: Likewise.
31617         * modules/unistr/u8-strcoll: Likewise.
31618         * modules/unistr/u8-strcpy: Likewise.
31619         * modules/unistr/u8-strcspn: Likewise.
31620         * modules/unistr/u8-strdup: Likewise.
31621         * modules/unistr/u8-strlen: Likewise.
31622         * modules/unistr/u8-strmblen: Likewise.
31623         * modules/unistr/u8-strmbtouc: Likewise.
31624         * modules/unistr/u8-strncat: Likewise.
31625         * modules/unistr/u8-strncmp: Likewise.
31626         * modules/unistr/u8-strncpy: Likewise.
31627         * modules/unistr/u8-strnlen: Likewise.
31628         * modules/unistr/u8-strpbrk: Likewise.
31629         * modules/unistr/u8-strrchr: Likewise.
31630         * modules/unistr/u8-strspn: Likewise.
31631         * modules/unistr/u8-strstr: Likewise.
31632         * modules/unistr/u8-strtok: Likewise.
31633         * modules/unistr/u8-to-u16: Likewise.
31634         * modules/unistr/u8-to-u32: Likewise.
31635         * modules/unistr/u8-uctomb: Likewise.
31636         * modules/unistr/u16-check: Likewise.
31637         * modules/unistr/u16-chr: Likewise.
31638         * modules/unistr/u16-cmp: Likewise.
31639         * modules/unistr/u16-cmp2: Likewise.
31640         * modules/unistr/u16-cpy: Likewise.
31641         * modules/unistr/u16-cpy-alloc: Likewise.
31642         * modules/unistr/u16-endswith: Likewise.
31643         * modules/unistr/u16-mblen: Likewise.
31644         * modules/unistr/u16-mbsnlen: Likewise.
31645         * modules/unistr/u16-mbtouc: Likewise.
31646         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31647         * modules/unistr/u16-mbtoucr: Likewise.
31648         * modules/unistr/u16-move: Likewise.
31649         * modules/unistr/u16-next: Likewise.
31650         * modules/unistr/u16-prev: Likewise.
31651         * modules/unistr/u16-set: Likewise.
31652         * modules/unistr/u16-startswith: Likewise.
31653         * modules/unistr/u16-stpcpy: Likewise.
31654         * modules/unistr/u16-stpncpy: Likewise.
31655         * modules/unistr/u16-strcat: Likewise.
31656         * modules/unistr/u16-strchr: Likewise.
31657         * modules/unistr/u16-strcmp: Likewise.
31658         * modules/unistr/u16-strcoll: Likewise.
31659         * modules/unistr/u16-strcpy: Likewise.
31660         * modules/unistr/u16-strcspn: Likewise.
31661         * modules/unistr/u16-strdup: Likewise.
31662         * modules/unistr/u16-strlen: Likewise.
31663         * modules/unistr/u16-strmblen: Likewise.
31664         * modules/unistr/u16-strmbtouc: Likewise.
31665         * modules/unistr/u16-strncat: Likewise.
31666         * modules/unistr/u16-strncmp: Likewise.
31667         * modules/unistr/u16-strncpy: Likewise.
31668         * modules/unistr/u16-strnlen: Likewise.
31669         * modules/unistr/u16-strpbrk: Likewise.
31670         * modules/unistr/u16-strrchr: Likewise.
31671         * modules/unistr/u16-strspn: Likewise.
31672         * modules/unistr/u16-strstr: Likewise.
31673         * modules/unistr/u16-strtok: Likewise.
31674         * modules/unistr/u16-to-u32: Likewise.
31675         * modules/unistr/u16-to-u8: Likewise.
31676         * modules/unistr/u16-uctomb: Likewise.
31677         * modules/unistr/u32-check: Likewise.
31678         * modules/unistr/u32-chr: Likewise.
31679         * modules/unistr/u32-cmp: Likewise.
31680         * modules/unistr/u32-cmp2: Likewise.
31681         * modules/unistr/u32-cpy: Likewise.
31682         * modules/unistr/u32-cpy-alloc: Likewise.
31683         * modules/unistr/u32-endswith: Likewise.
31684         * modules/unistr/u32-mblen: Likewise.
31685         * modules/unistr/u32-mbsnlen: Likewise.
31686         * modules/unistr/u32-mbtouc: Likewise.
31687         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31688         * modules/unistr/u32-mbtoucr: Likewise.
31689         * modules/unistr/u32-move: Likewise.
31690         * modules/unistr/u32-next: Likewise.
31691         * modules/unistr/u32-prev: Likewise.
31692         * modules/unistr/u32-set: Likewise.
31693         * modules/unistr/u32-startswith: Likewise.
31694         * modules/unistr/u32-stpcpy: Likewise.
31695         * modules/unistr/u32-stpncpy: Likewise.
31696         * modules/unistr/u32-strcat: Likewise.
31697         * modules/unistr/u32-strchr: Likewise.
31698         * modules/unistr/u32-strcmp: Likewise.
31699         * modules/unistr/u32-strcoll: Likewise.
31700         * modules/unistr/u32-strcpy: Likewise.
31701         * modules/unistr/u32-strcspn: Likewise.
31702         * modules/unistr/u32-strdup: Likewise.
31703         * modules/unistr/u32-strlen: Likewise.
31704         * modules/unistr/u32-strmblen: Likewise.
31705         * modules/unistr/u32-strmbtouc: Likewise.
31706         * modules/unistr/u32-strncat: Likewise.
31707         * modules/unistr/u32-strncmp: Likewise.
31708         * modules/unistr/u32-strncpy: Likewise.
31709         * modules/unistr/u32-strnlen: Likewise.
31710         * modules/unistr/u32-strpbrk: Likewise.
31711         * modules/unistr/u32-strrchr: Likewise.
31712         * modules/unistr/u32-strspn: Likewise.
31713         * modules/unistr/u32-strstr: Likewise.
31714         * modules/unistr/u32-strtok: Likewise.
31715         * modules/unistr/u32-to-u16: Likewise.
31716         * modules/unistr/u32-to-u8: Likewise.
31717         * modules/unistr/u32-uctomb: Likewise.
31718         * modules/uniwbrk/u8-wordbreaks: Likewise.
31719         * modules/uniwbrk/u16-wordbreaks: Likewise.
31720         * modules/uniwbrk/u32-wordbreaks: Likewise.
31721         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31722         * modules/uniwbrk/wordbreak-property: Likewise.
31723         * modules/uniwidth/u8-strwidth: Likewise.
31724         * modules/uniwidth/u8-width: Likewise.
31725         * modules/uniwidth/u16-strwidth: Likewise.
31726         * modules/uniwidth/u16-width: Likewise.
31727         * modules/uniwidth/u32-strwidth: Likewise.
31728         * modules/uniwidth/u32-width: Likewise.
31729         * modules/uniwidth/width: Likewise.
31730         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31731         with $(LIBUNISTRING).
31732         * modules/unicase/ignorable-tests: Likewise.
31733         * modules/unicase/locale-language-tests: Likewise.
31734         * modules/unicase/tolower-tests: Likewise.
31735         * modules/unicase/totitle-tests: Likewise.
31736         * modules/unicase/toupper-tests: Likewise.
31737         * modules/unicase/u8-casecmp-tests: Likewise.
31738         * modules/unicase/u8-casecoll-tests: Likewise.
31739         * modules/unicase/u8-casefold-tests: Likewise.
31740         * modules/unicase/u8-is-cased-tests: Likewise.
31741         * modules/unicase/u8-is-casefolded-tests: Likewise.
31742         * modules/unicase/u8-is-lowercase-tests: Likewise.
31743         * modules/unicase/u8-is-titlecase-tests: Likewise.
31744         * modules/unicase/u8-is-uppercase-tests: Likewise.
31745         * modules/unicase/u8-tolower-tests: Likewise.
31746         * modules/unicase/u8-totitle-tests: Likewise.
31747         * modules/unicase/u8-toupper-tests: Likewise.
31748         * modules/unicase/u16-casecmp-tests: Likewise.
31749         * modules/unicase/u16-casecoll-tests: Likewise.
31750         * modules/unicase/u16-casefold-tests: Likewise.
31751         * modules/unicase/u16-is-cased-tests: Likewise.
31752         * modules/unicase/u16-is-casefolded-tests: Likewise.
31753         * modules/unicase/u16-is-lowercase-tests: Likewise.
31754         * modules/unicase/u16-is-titlecase-tests: Likewise.
31755         * modules/unicase/u16-is-uppercase-tests: Likewise.
31756         * modules/unicase/u16-tolower-tests: Likewise.
31757         * modules/unicase/u16-totitle-tests: Likewise.
31758         * modules/unicase/u16-toupper-tests: Likewise.
31759         * modules/unicase/u32-casecmp-tests: Likewise.
31760         * modules/unicase/u32-casecoll-tests: Likewise.
31761         * modules/unicase/u32-casefold-tests: Likewise.
31762         * modules/unicase/u32-is-cased-tests: Likewise.
31763         * modules/unicase/u32-is-casefolded-tests: Likewise.
31764         * modules/unicase/u32-is-lowercase-tests: Likewise.
31765         * modules/unicase/u32-is-titlecase-tests: Likewise.
31766         * modules/unicase/u32-is-uppercase-tests: Likewise.
31767         * modules/unicase/u32-tolower-tests: Likewise.
31768         * modules/unicase/u32-totitle-tests: Likewise.
31769         * modules/unicase/u32-toupper-tests: Likewise.
31770         * modules/unicase/ulc-casecmp-tests: Likewise.
31771         * modules/unicase/ulc-casecoll-tests: Likewise.
31772         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31773         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31774         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31775         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31776         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31777         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31778         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31779         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31780         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31781         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31782         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31783         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31784         * modules/unictype/bidicategory-byname-tests: Likewise.
31785         * modules/unictype/bidicategory-name-tests: Likewise.
31786         * modules/unictype/bidicategory-of-tests: Likewise.
31787         * modules/unictype/bidicategory-test-tests: Likewise.
31788         * modules/unictype/block-list-tests: Likewise.
31789         * modules/unictype/block-of-tests: Likewise.
31790         * modules/unictype/block-test-tests: Likewise.
31791         * modules/unictype/category-C-tests: Likewise.
31792         * modules/unictype/category-Cc-tests: Likewise.
31793         * modules/unictype/category-Cf-tests: Likewise.
31794         * modules/unictype/category-Cn-tests: Likewise.
31795         * modules/unictype/category-Co-tests: Likewise.
31796         * modules/unictype/category-Cs-tests: Likewise.
31797         * modules/unictype/category-L-tests: Likewise.
31798         * modules/unictype/category-Ll-tests: Likewise.
31799         * modules/unictype/category-Lm-tests: Likewise.
31800         * modules/unictype/category-Lo-tests: Likewise.
31801         * modules/unictype/category-Lt-tests: Likewise.
31802         * modules/unictype/category-Lu-tests: Likewise.
31803         * modules/unictype/category-M-tests: Likewise.
31804         * modules/unictype/category-Mc-tests: Likewise.
31805         * modules/unictype/category-Me-tests: Likewise.
31806         * modules/unictype/category-Mn-tests: Likewise.
31807         * modules/unictype/category-N-tests: Likewise.
31808         * modules/unictype/category-Nd-tests: Likewise.
31809         * modules/unictype/category-Nl-tests: Likewise.
31810         * modules/unictype/category-No-tests: Likewise.
31811         * modules/unictype/category-P-tests: Likewise.
31812         * modules/unictype/category-Pc-tests: Likewise.
31813         * modules/unictype/category-Pd-tests: Likewise.
31814         * modules/unictype/category-Pe-tests: Likewise.
31815         * modules/unictype/category-Pf-tests: Likewise.
31816         * modules/unictype/category-Pi-tests: Likewise.
31817         * modules/unictype/category-Po-tests: Likewise.
31818         * modules/unictype/category-Ps-tests: Likewise.
31819         * modules/unictype/category-S-tests: Likewise.
31820         * modules/unictype/category-Sc-tests: Likewise.
31821         * modules/unictype/category-Sk-tests: Likewise.
31822         * modules/unictype/category-Sm-tests: Likewise.
31823         * modules/unictype/category-So-tests: Likewise.
31824         * modules/unictype/category-Z-tests: Likewise.
31825         * modules/unictype/category-Zl-tests: Likewise.
31826         * modules/unictype/category-Zp-tests: Likewise.
31827         * modules/unictype/category-Zs-tests: Likewise.
31828         * modules/unictype/category-and-not-tests: Likewise.
31829         * modules/unictype/category-and-tests: Likewise.
31830         * modules/unictype/category-byname-tests: Likewise.
31831         * modules/unictype/category-name-tests: Likewise.
31832         * modules/unictype/category-none-tests: Likewise.
31833         * modules/unictype/category-of-tests: Likewise.
31834         * modules/unictype/category-or-tests: Likewise.
31835         * modules/unictype/category-test-withtable-tests: Likewise.
31836         * modules/unictype/combining-class-tests: Likewise.
31837         * modules/unictype/ctype-alnum-tests: Likewise.
31838         * modules/unictype/ctype-alpha-tests: Likewise.
31839         * modules/unictype/ctype-blank-tests: Likewise.
31840         * modules/unictype/ctype-cntrl-tests: Likewise.
31841         * modules/unictype/ctype-digit-tests: Likewise.
31842         * modules/unictype/ctype-graph-tests: Likewise.
31843         * modules/unictype/ctype-lower-tests: Likewise.
31844         * modules/unictype/ctype-print-tests: Likewise.
31845         * modules/unictype/ctype-punct-tests: Likewise.
31846         * modules/unictype/ctype-space-tests: Likewise.
31847         * modules/unictype/ctype-upper-tests: Likewise.
31848         * modules/unictype/ctype-xdigit-tests: Likewise.
31849         * modules/unictype/decimal-digit-tests: Likewise.
31850         * modules/unictype/digit-tests: Likewise.
31851         * modules/unictype/mirror-tests: Likewise.
31852         * modules/unictype/numeric-tests: Likewise.
31853         * modules/unictype/property-alphabetic-tests: Likewise.
31854         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31855         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31856         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31857         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31858         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31859         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31860         * modules/unictype/property-bidi-control-tests: Likewise.
31861         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31862         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31863         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31864         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31865         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31866         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31867         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31868         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31869         * modules/unictype/property-bidi-pdf-tests: Likewise.
31870         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31871         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31872         * modules/unictype/property-byname-tests: Likewise.
31873         * modules/unictype/property-combining-tests: Likewise.
31874         * modules/unictype/property-composite-tests: Likewise.
31875         * modules/unictype/property-currency-symbol-tests: Likewise.
31876         * modules/unictype/property-dash-tests: Likewise.
31877         * modules/unictype/property-decimal-digit-tests: Likewise.
31878         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31879         * modules/unictype/property-deprecated-tests: Likewise.
31880         * modules/unictype/property-diacritic-tests: Likewise.
31881         * modules/unictype/property-extender-tests: Likewise.
31882         * modules/unictype/property-format-control-tests: Likewise.
31883         * modules/unictype/property-grapheme-base-tests: Likewise.
31884         * modules/unictype/property-grapheme-extend-tests: Likewise.
31885         * modules/unictype/property-grapheme-link-tests: Likewise.
31886         * modules/unictype/property-hex-digit-tests: Likewise.
31887         * modules/unictype/property-hyphen-tests: Likewise.
31888         * modules/unictype/property-id-continue-tests: Likewise.
31889         * modules/unictype/property-id-start-tests: Likewise.
31890         * modules/unictype/property-ideographic-tests: Likewise.
31891         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31892         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31893         * modules/unictype/property-ignorable-control-tests: Likewise.
31894         * modules/unictype/property-iso-control-tests: Likewise.
31895         * modules/unictype/property-join-control-tests: Likewise.
31896         * modules/unictype/property-left-of-pair-tests: Likewise.
31897         * modules/unictype/property-line-separator-tests: Likewise.
31898         * modules/unictype/property-logical-order-exception-tests: Likewise.
31899         * modules/unictype/property-lowercase-tests: Likewise.
31900         * modules/unictype/property-math-tests: Likewise.
31901         * modules/unictype/property-non-break-tests: Likewise.
31902         * modules/unictype/property-not-a-character-tests: Likewise.
31903         * modules/unictype/property-numeric-tests: Likewise.
31904         * modules/unictype/property-other-alphabetic-tests: Likewise.
31905         * modules/unictype/property-other-default-ignorable-code-point-tests:
31906         Likewise.
31907         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31908         * modules/unictype/property-other-id-continue-tests: Likewise.
31909         * modules/unictype/property-other-id-start-tests: Likewise.
31910         * modules/unictype/property-other-lowercase-tests: Likewise.
31911         * modules/unictype/property-other-math-tests: Likewise.
31912         * modules/unictype/property-other-uppercase-tests: Likewise.
31913         * modules/unictype/property-paired-punctuation-tests: Likewise.
31914         * modules/unictype/property-paragraph-separator-tests: Likewise.
31915         * modules/unictype/property-pattern-syntax-tests: Likewise.
31916         * modules/unictype/property-pattern-white-space-tests: Likewise.
31917         * modules/unictype/property-private-use-tests: Likewise.
31918         * modules/unictype/property-punctuation-tests: Likewise.
31919         * modules/unictype/property-quotation-mark-tests: Likewise.
31920         * modules/unictype/property-radical-tests: Likewise.
31921         * modules/unictype/property-sentence-terminal-tests: Likewise.
31922         * modules/unictype/property-soft-dotted-tests: Likewise.
31923         * modules/unictype/property-space-tests: Likewise.
31924         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31925         * modules/unictype/property-test-tests: Likewise.
31926         * modules/unictype/property-titlecase-tests: Likewise.
31927         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31928         * modules/unictype/property-unified-ideograph-tests: Likewise.
31929         * modules/unictype/property-uppercase-tests: Likewise.
31930         * modules/unictype/property-variation-selector-tests: Likewise.
31931         * modules/unictype/property-white-space-tests: Likewise.
31932         * modules/unictype/property-xid-continue-tests: Likewise.
31933         * modules/unictype/property-xid-start-tests: Likewise.
31934         * modules/unictype/property-zero-width-tests: Likewise.
31935         * modules/unictype/scripts-tests: Likewise.
31936         * modules/unictype/syntax-c-ident-tests: Likewise.
31937         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31938         * modules/unictype/syntax-java-ident-tests: Likewise.
31939         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31940         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31941         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31942         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31943         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31944         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31945         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31946         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31947         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31948         * modules/uniname/uniname-tests: Likewise.
31949         * modules/uninorm/canonical-decomposition-tests: Likewise.
31950         * modules/uninorm/compat-decomposition-tests: Likewise.
31951         * modules/uninorm/composition-tests: Likewise.
31952         * modules/uninorm/decomposing-form-tests: Likewise.
31953         * modules/uninorm/decomposition-tests: Likewise.
31954         * modules/uninorm/filter-tests: Likewise.
31955         * modules/uninorm/nfc-tests: Likewise.
31956         * modules/uninorm/nfd-tests: Likewise.
31957         * modules/uninorm/nfkc-tests: Likewise.
31958         * modules/uninorm/nfkd-tests: Likewise.
31959         * modules/uninorm/u8-normcmp-tests: Likewise.
31960         * modules/uninorm/u8-normcoll-tests: Likewise.
31961         * modules/uninorm/u16-normcmp-tests: Likewise.
31962         * modules/uninorm/u16-normcoll-tests: Likewise.
31963         * modules/uninorm/u32-normcmp-tests: Likewise.
31964         * modules/uninorm/u32-normcoll-tests: Likewise.
31965         * modules/unistdio/u8-asnprintf-tests: Likewise.
31966         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31967         * modules/unistdio/u8-vasprintf-tests: Likewise.
31968         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31969         * modules/unistdio/u8-vsprintf-tests: Likewise.
31970         * modules/unistdio/u16-asnprintf-tests: Likewise.
31971         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31972         * modules/unistdio/u16-vasprintf-tests: Likewise.
31973         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31974         * modules/unistdio/u16-vsprintf-tests: Likewise.
31975         * modules/unistdio/u32-asnprintf-tests: Likewise.
31976         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31977         * modules/unistdio/u32-vasprintf-tests: Likewise.
31978         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31979         * modules/unistdio/u32-vsprintf-tests: Likewise.
31980         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31981         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31982         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31983         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31984         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31985         * modules/unistr/u8-check-tests: Likewise.
31986         * modules/unistr/u8-chr-tests: Likewise.
31987         * modules/unistr/u8-cmp-tests: Likewise.
31988         * modules/unistr/u8-cmp2-tests: Likewise.
31989         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31990         * modules/unistr/u8-cpy-tests: Likewise.
31991         * modules/unistr/u8-mblen-tests: Likewise.
31992         * modules/unistr/u8-mbsnlen-tests: Likewise.
31993         * modules/unistr/u8-mbtouc-tests: Likewise.
31994         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31995         * modules/unistr/u8-mbtoucr-tests: Likewise.
31996         * modules/unistr/u8-move-tests: Likewise.
31997         * modules/unistr/u8-next-tests: Likewise.
31998         * modules/unistr/u8-prev-tests: Likewise.
31999         * modules/unistr/u8-set-tests: Likewise.
32000         * modules/unistr/u8-stpcpy-tests: Likewise.
32001         * modules/unistr/u8-stpncpy-tests: Likewise.
32002         * modules/unistr/u8-strcat-tests: Likewise.
32003         * modules/unistr/u8-strcmp-tests: Likewise.
32004         * modules/unistr/u8-strcoll-tests: Likewise.
32005         * modules/unistr/u8-strcpy-tests: Likewise.
32006         * modules/unistr/u8-strdup-tests: Likewise.
32007         * modules/unistr/u8-strlen-tests: Likewise.
32008         * modules/unistr/u8-strmblen-tests: Likewise.
32009         * modules/unistr/u8-strmbtouc-tests: Likewise.
32010         * modules/unistr/u8-strncat-tests: Likewise.
32011         * modules/unistr/u8-strncmp-tests: Likewise.
32012         * modules/unistr/u8-strncpy-tests: Likewise.
32013         * modules/unistr/u8-strnlen-tests: Likewise.
32014         * modules/unistr/u8-to-u16-tests: Likewise.
32015         * modules/unistr/u8-to-u32-tests: Likewise.
32016         * modules/unistr/u8-uctomb-tests: Likewise.
32017         * modules/unistr/u16-check-tests: Likewise.
32018         * modules/unistr/u16-chr-tests: Likewise.
32019         * modules/unistr/u16-cmp-tests: Likewise.
32020         * modules/unistr/u16-cmp2-tests: Likewise.
32021         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32022         * modules/unistr/u16-cpy-tests: Likewise.
32023         * modules/unistr/u16-mblen-tests: Likewise.
32024         * modules/unistr/u16-mbsnlen-tests: Likewise.
32025         * modules/unistr/u16-mbtouc-tests: Likewise.
32026         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32027         * modules/unistr/u16-mbtoucr-tests: Likewise.
32028         * modules/unistr/u16-move-tests: Likewise.
32029         * modules/unistr/u16-next-tests: Likewise.
32030         * modules/unistr/u16-prev-tests: Likewise.
32031         * modules/unistr/u16-set-tests: Likewise.
32032         * modules/unistr/u16-stpcpy-tests: Likewise.
32033         * modules/unistr/u16-stpncpy-tests: Likewise.
32034         * modules/unistr/u16-strcat-tests: Likewise.
32035         * modules/unistr/u16-strcmp-tests: Likewise.
32036         * modules/unistr/u16-strcoll-tests: Likewise.
32037         * modules/unistr/u16-strcpy-tests: Likewise.
32038         * modules/unistr/u16-strdup-tests: Likewise.
32039         * modules/unistr/u16-strlen-tests: Likewise.
32040         * modules/unistr/u16-strmblen-tests: Likewise.
32041         * modules/unistr/u16-strmbtouc-tests: Likewise.
32042         * modules/unistr/u16-strncat-tests: Likewise.
32043         * modules/unistr/u16-strncmp-tests: Likewise.
32044         * modules/unistr/u16-strncpy-tests: Likewise.
32045         * modules/unistr/u16-strnlen-tests: Likewise.
32046         * modules/unistr/u16-to-u32-tests: Likewise.
32047         * modules/unistr/u16-to-u8-tests: Likewise.
32048         * modules/unistr/u16-uctomb-tests: Likewise.
32049         * modules/unistr/u32-check-tests: Likewise.
32050         * modules/unistr/u32-chr-tests: Likewise.
32051         * modules/unistr/u32-cmp-tests: Likewise.
32052         * modules/unistr/u32-cmp2-tests: Likewise.
32053         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32054         * modules/unistr/u32-cpy-tests: Likewise.
32055         * modules/unistr/u32-mblen-tests: Likewise.
32056         * modules/unistr/u32-mbsnlen-tests: Likewise.
32057         * modules/unistr/u32-mbtouc-tests: Likewise.
32058         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32059         * modules/unistr/u32-mbtoucr-tests: Likewise.
32060         * modules/unistr/u32-move-tests: Likewise.
32061         * modules/unistr/u32-next-tests: Likewise.
32062         * modules/unistr/u32-prev-tests: Likewise.
32063         * modules/unistr/u32-set-tests: Likewise.
32064         * modules/unistr/u32-stpcpy-tests: Likewise.
32065         * modules/unistr/u32-stpncpy-tests: Likewise.
32066         * modules/unistr/u32-strcat-tests: Likewise.
32067         * modules/unistr/u32-strcmp-tests: Likewise.
32068         * modules/unistr/u32-strcoll-tests: Likewise.
32069         * modules/unistr/u32-strcpy-tests: Likewise.
32070         * modules/unistr/u32-strdup-tests: Likewise.
32071         * modules/unistr/u32-strlen-tests: Likewise.
32072         * modules/unistr/u32-strmblen-tests: Likewise.
32073         * modules/unistr/u32-strmbtouc-tests: Likewise.
32074         * modules/unistr/u32-strncat-tests: Likewise.
32075         * modules/unistr/u32-strncmp-tests: Likewise.
32076         * modules/unistr/u32-strncpy-tests: Likewise.
32077         * modules/unistr/u32-strnlen-tests: Likewise.
32078         * modules/unistr/u32-to-u16-tests: Likewise.
32079         * modules/unistr/u32-to-u8-tests: Likewise.
32080         * modules/unistr/u32-uctomb-tests: Likewise.
32081         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32082         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32083         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32084         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32085         * modules/uniwidth/u8-strwidth-tests: Likewise.
32086         * modules/uniwidth/u8-width-tests: Likewise.
32087         * modules/uniwidth/u16-strwidth-tests: Likewise.
32088         * modules/uniwidth/u16-width-tests: Likewise.
32089         * modules/uniwidth/u32-strwidth-tests: Likewise.
32090         * modules/uniwidth/u32-width-tests: Likewise.
32091         * modules/uniwidth/width-tests: Likewise.
32092
32093 2010-05-18  Richard Jones  <rjones@redhat.com>
32094
32095         doc: users.txt: list hivex
32096         * users.txt: Add hivex.
32097
32098 2010-05-18  Richard Jones  <rjones@redhat.com>
32099
32100         doc: users.txt: list febootstrap
32101         * users.txt: Add febootstrap.
32102
32103 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32104
32105         bootstrap: fix an error when gnulib is not used as a git submodule
32106         * build-aux/bootstrap (gnulib_path): If its length is zero then
32107         assign "gnulib" to it.
32108         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32109
32110 2010-05-16  Bruno Haible  <bruno@clisp.org>
32111
32112         Avoid autoconf warnings about AM_ICONV.
32113         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32114         2.64.
32115
32116 2010-05-16  Bruno Haible  <bruno@clisp.org>
32117
32118         absolute-header: Make the macro usable in more situations.
32119         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32120         from gl_ABSOLUTE_HEADER.
32121         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32122
32123 2010-05-16  James Youngman  <jay@gnu.org>
32124
32125         doc: update users.txt
32126         * users.txt: Add CSSC.
32127
32128 2010-05-16  Jim Meyering  <meyering@redhat.com>
32129
32130         init.sh: fix an error in the previous change; add more comments
32131         * tests/init.sh: Compare exit code in loop against 9, not 2.
32132         Patch by Bruno Haible.
32133         Make the two tests more similar by adding an empty "then" clause.
32134         Add comments.
32135
32136         init.sh: avoid unnecessary shell re-exec
32137         * tests/init.sh: Improve the re-exec-required check to first test the
32138         current shell.  If it passes the test, do not search for a shell that
32139         does pass, and do not re-exec.  This test is particularly contorted to
32140         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32141         of $(...) evokes a syntax error and causes immediate shell exit with
32142         status 2.  Bruno Haible reported that the re-exec made it impossible
32143         to single-step through any init.sh-using script.
32144
32145 2010-05-16  Bruno Haible  <bruno@clisp.org>
32146
32147         Fix collision between gnulib's and libintl's printf replacements.
32148         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32149         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32150         (printf): When using GNU C, map the __printf__ function to rpl_printf
32151         via __asm__. When not using GNU C, define rpl_printf instead of
32152         __printf__.
32153         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32154         commit.
32155         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32156         commit.
32157         * m4/asm-underscore.m4: New file.
32158         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32159         * modules/stdio (Files): Add m4/asm-underscore.m4.
32160         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32161         Reported by Ben Pfaff.
32162
32163 2010-05-16  Bruno Haible  <bruno@clisp.org>
32164
32165         verify: Avoid skipping the test on openSUSE 11.0.
32166         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32167
32168 2010-05-13  Bruno Haible  <bruno@clisp.org>
32169
32170         Avoid useless warnings from G++.
32171         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32172         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32173         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32174
32175 2010-05-11  Jim Meyering  <meyering@redhat.com>
32176
32177         maint.mk: tweak preceding change
32178         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32179         regexps tighter by anchoring at EOL, and make the new group "shy"
32180         for slightly decreased overhead.
32181
32182 2010-05-11  Eric Blake  <eblake@redhat.com>
32183
32184         maint.mk: gnulib doesn't guarantee NSIG
32185         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32186
32187 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32188
32189         test-pwrite.c: Remove unused variable declaration.
32190         * tests/test-pwrite.c (main): Remove read_buf declaration.
32191
32192         Remove useless test-pwrite.sh file.
32193         * tests/test-pwrite.sh: Delete file.
32194         * modules/pwrite-tests: Remove references.
32195         Reported by Bruno Haible.
32196
32197 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32198
32199         init.sh: fix a typo
32200         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32201
32202 2010-05-10  Jim Meyering  <meyering@redhat.com>
32203
32204         maint.mk: avoid using a temporary file in the always-defined-macros check
32205         * top/maint.mk (.re-defmac): Remove rule.
32206         (gl_trap_): Remove definition.
32207         (sc_prohibit_always-defined_macros): Rewrite not to create and
32208         depend on a temporary file.  Instead, depend on GNU grep's ability
32209         to read a list of regular expressions from stdin when given "-f -".
32210
32211 2010-05-09  Bruno Haible  <bruno@clisp.org>
32212
32213         Update to GNU gettext 0.18, part 1.
32214         * m4/gettext.m4: Update to GNU gettext 0.18.
32215         * m4/intl.m4: Likewise.
32216         * m4/po.m4: Likewise.
32217         * modules/gettext (Files): Add m4/fcntl-o.m4.
32218         (configure.ac): Require gettext infrastructure from version 0.18.
32219
32220 2010-05-09  Jim Meyering  <meyering@redhat.com>
32221
32222         init.sh: enable MALLOC_PERTURB_
32223         * tests/init.sh: Enable glibc's malloc-perturbing option.
32224
32225         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32226         With my recent change in init.sh from the two-line form:
32227             -#   : ${srcdir=.}
32228             -#   . "$srcdir/init.sh"; path_prepend_ .
32229             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32230         I noticed that using the one-line form would cause this test
32231         to fail with a false-positive, or to stop working altogether,
32232         depending on whether help-version changed or all the tests did.
32233         * top/maint.mk (_hv_regex): Remove this definition.
32234         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32235         (_hv_regex_strong): Use a stronger regex to check for conformance.
32236         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32237         Give a separate diagnostic for lack of conforming use.
32238
32239         maint.mk: prohibit definition of symbols defined by gnulib
32240         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32241         definition of symbols defined by gnulib.
32242
32243 2010-05-09  Bruno Haible  <bruno@clisp.org>
32244
32245         acl: Avoid test failure on Cygwin-hosted mingw.
32246         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32247
32248 2010-05-09  Bruno Haible  <bruno@clisp.org>
32249
32250         error: Use system's fcntl function.
32251         * lib/error.c (fcntl): Undefine.
32252
32253 2010-05-09  Jim Meyering  <meyering@redhat.com>
32254
32255         verify: adjust formatting to be more consistent
32256         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32257         argument-list '('s, and after one comma.
32258
32259 2010-05-09  Bruno Haible  <bruno@clisp.org>
32260
32261         error: More reliable output on mingw.
32262         * lib/error.c: Include <windows.h>.
32263         (is_open): New function.
32264         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32265         defined.
32266
32267 2010-05-09  Bruno Haible  <bruno@clisp.org>
32268
32269         vasnprintf: Fix syntax errors in libintl build on mingw.
32270         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32271         pad_ourselves and prec_ourselves after use.
32272
32273 2010-05-08  Bruno Haible  <bruno@clisp.org>
32274
32275         * lib/config.charset: Update comments for Cygwin 1.7.
32276         * lib/localcharset.c: Likewise.
32277
32278 2010-05-07  Jim Meyering  <meyering@redhat.com>
32279
32280         init.sh: improve comments
32281         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32282         . "${srcdir=.}/init.sh"; path_prepend_ .
32283         Add a note about path_prepend_ and the alternative of using
32284         TESTS_ENVIRONMENT.
32285
32286 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32287
32288         exclude: Unescape hashed patterns in wildcard mode.
32289         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32290         to the hash list.
32291         * tests/test-exclude8.sh: New test case.
32292         * modules/exclude-tests: Add new test.
32293
32294 2010-05-05  Eric Blake  <eblake@redhat.com>
32295
32296         verify: automate tests
32297         * modules/verify-tests: New module.
32298         * tests/test-verify.sh: New file.
32299         * tests/test-verify.c: Guard each negative test with a unique id.
32300         Also avoid warning about unused left hand of comma expressions.
32301
32302 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32303
32304         Further improvements to verify.h, suggested by Eric Blake.
32305         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32306         the GL_* versions, to avoid collision with OpenGL.
32307         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32308         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32309         than testing merely whether it's defined.
32310
32311         Modify verify.h to pacify gcc -Wredundant_decls.
32312         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32313         These use the prefix "GL_" since they're likely to be useful elsewhere.
32314         We may need to break them out into a different .h file.
32315         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32316         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32317         of verify_function__.
32318
32319 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32320
32321         Tests for module pwrite.
32322         * modules/pwrite-tests: New file.
32323         * tests/test-pwrite.sh: New file.
32324         * tests/test-pwrite.c: New file.
32325
32326         New module pwrite.
32327         * lib/unistd.in.h (pwrite): New declaration.
32328         * lib/pwrite.c: New file, from glibc with modifications.
32329         * m4/pwrite.m4: New file.
32330         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32331         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32332         REPLACE_PWRITE.
32333         * modules/pwrite: New file.
32334         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32335         REPLACE_PWRITE.
32336         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32337         * doc/posix-functions/pwrite.texi: Mention the new module.
32338
32339 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32340
32341         pread: Update documentation.
32342         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32343
32344 2010-05-04  Eric Blake  <eblake@redhat.com>
32345
32346         docs: update cygwin progress
32347         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32348         this bug.
32349         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32350         Added in cygwin 1.7.2.
32351         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32352         Likewise.
32353         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32354         Likewise.
32355         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32356         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32357         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32358         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32359         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32360         Mention nproc module.
32361         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32362         bug in cygwin 1.7.5 addition.
32363         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32364         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32365         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32366         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32367         1.7.5.
32368         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32369         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32370         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32371         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32372         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32373         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32374         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32375         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32376         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32377         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32378         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32379         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32380         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32381         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32382         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32383         Likewise.
32384         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32385         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32386         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32387         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32388         Likewise.
32389         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32390         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32391         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32392         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32393         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32394         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32395         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32396         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32397         Likewise.
32398         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32399         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32400         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32401         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32402         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32403         Likewise.
32404         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32405         Likewise.
32406         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32407         Likewise.
32408         * doc/glibc-functions/xdrrec_endofrecord.texi
32409         (xdrrec_endofrecord): Likewise.
32410         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32411         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32412         Likewise.
32413         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32414         Likewise.
32415
32416 2010-05-04  Jim Meyering  <meyering@redhat.com>
32417
32418         gendocs.sh: make its "-s FILE" option more useful
32419         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32420         $PACKAGE to reflect the probably-different basename of "FILE".
32421
32422 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32423
32424         bootstrap: don't ignore download_po_files failure
32425         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32426         failure.
32427
32428 2010-05-03  Jim Meyering  <meyering@redhat.com>
32429
32430         maint.mk: allow to pass options to gendocs.sh
32431         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32432         (gendocs_options_): New overridable variable.
32433
32434         gnu-web-doc-update: don't ignore configure or build failure
32435         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32436
32437         announce-gen: backslash-escape '@'s in --help output
32438         * build-aux/announce-gen: Fix syntax errors.
32439
32440         maint.mk, announce-gen: allow project-specific announcement mail headers
32441         * top/maint.mk (translation_project_): Define default.
32442         (announcement_Cc_, announcement_mail_headers_): Likewise.
32443         (announcement): Invoke announce-gen with new --mail-headers option.
32444         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32445
32446         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32447         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32448         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32449         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32450         line in the "err2" output file when running "make check" in verbose
32451         mode (i.e., with set -x enabled).
32452
32453 2010-05-03  Bruno Haible  <bruno@clisp.org>
32454
32455         wctob: Fix for weird platforms.
32456         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32457         argument value.
32458
32459 2010-05-03  Jim Meyering  <meyering@redhat.com>
32460
32461         maint.mk: prohibit unwarranted use of <strings.h>
32462         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32463         strings.h in a file that does not also use strcasecmp, strncasecmp,
32464         ffs or ffsll.
32465
32466         maint.mk: remove obsolete comments
32467         * top/maint.mk: Remove stale, commented-out rules.
32468
32469 2010-05-02  Bruno Haible  <bruno@clisp.org>
32470
32471         wcwidth: Declare also when it's aliased.
32472         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32473         macro.
32474
32475 2010-05-02  Bruno Haible  <bruno@clisp.org>
32476
32477         Fix regression from 2010-04-25.
32478         * gnulib-tool (func_modules_transitive_closure): Check the status of
32479         all modules, not only of the tests that are of the form foo-tests where
32480         foo is a module.
32481
32482 2010-05-02  Bruno Haible  <bruno@clisp.org>
32483
32484         wctob: Work around nasty Cygwin 1.7.2 bug.
32485         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32486         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32487
32488 2010-05-01  Bruno Haible  <bruno@clisp.org>
32489
32490         fpurge: Sharper test.
32491         * tests/test-fpurge.c (main): Add one more ftell check.
32492         * modules/fpurge-tests (Depends-on): Add ftell.
32493         Suggested by Eric Blake.
32494
32495 2010-05-01  Bruno Haible  <bruno@clisp.org>
32496
32497         ftello: Another test.
32498         * tests/test-ftello3.c: New file.
32499         * modules/ftello-tests (Files): Add it.
32500         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32501         MOSTLYCLEANFILES.
32502
32503         ftell: Another test.
32504         * tests/test-ftell3.c: New file.
32505         * modules/ftell-tests (Files): Add it.
32506         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32507         MOSTLYCLEANFILES.
32508
32509 2010-05-01  Bruno Haible  <bruno@clisp.org>
32510
32511         ftell, ftello: Work around Solaris bug.
32512         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32513         * lib/ftello.c: Include stdio-impl.h.
32514         (ftello): On Solaris, when _IOWRT is set, compute the result without
32515         looking at _IOREAD.
32516         * modules/ftello (Files): Add lib/stdio-impl.h.
32517         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32518         * doc/posix-functions/ftello.texi: Likewise.
32519         Reported by Eric Blake.
32520
32521 2010-05-01  Bruno Haible  <bruno@clisp.org>
32522
32523         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32524         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32525         the _IOWRT flag is also set.
32526
32527 2010-05-01  Bruno Haible  <bruno@clisp.org>
32528
32529         Fix doc about a HP-UX stdio bug.
32530         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32531         * doc/posix-functions/ftello.texi: Likewise.
32532
32533 2010-05-01  Bruno Haible  <bruno@clisp.org>
32534
32535         lseek test: Fix failure on Solaris.
32536         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32537         output.
32538
32539 2010-04-30  Jim Meyering  <meyering@redhat.com>
32540
32541         bootstrap: don't ignore failure to generate po*/Makevars
32542         * build-aux/bootstrap (with_gettext): Don't ignore failure
32543         to create po/Makevars or runtime-po/Makevars.
32544
32545 2010-04-29  Eric Blake  <eblake@redhat.com>
32546
32547         headers: relax license to LGPLv2+
32548         * modules/fcntl-h (License): Relax license.
32549         * modules/getopt-posix (License): Likewise.
32550         * modules/locale (License): Likewise.
32551         * modules/math (License): Likewise.
32552         * modules/pty (License): Likewise.
32553         * modules/sched (License): Likewise.
32554         * modules/search (License): Likewise.
32555         * modules/spawn (License): Likewise.
32556         * modules/stdarg (License): Likewise.
32557         * modules/sysexits (License): Likewise.
32558
32559 2010-04-29  Jim Meyering  <meyering@redhat.com>
32560
32561         inttypes: relax license to LGPLv2+
32562         * modules/inttypes (License): Relax license.
32563
32564 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32565
32566         * top/maint.mk (indent): Run twice to produce idempotent results.
32567
32568 2010-04-28  Bruno Haible  <bruno@clisp.org>
32569
32570         getdate: Generate getdate.c in the source directory.
32571         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32572         MOSTLYCLEANFILES.
32573         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32574
32575 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32576
32577         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32578         is not declared as a const *; avoid warnings in that case.
32579
32580 2010-04-28  Eric Blake  <eblake@redhat.com>
32581
32582         canonicalize-lgpl: avoid compiler warning
32583         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32584         declaration' / 'extraneous semicolon' warning with some compilers.
32585         Reported by Andreas Gruenbacher.
32586
32587 2010-04-28  Jim Meyering  <meyering@redhat.com>
32588
32589         init.sh: ensure a more reliable exit status when exiting via trap
32590         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32591         Inspired by patches from Dmitry V. Levin.
32592         Also trap on signal 3 (SIGQUIT).
32593
32594 2010-04-27  Bruno Haible  <bruno@clisp.org>
32595
32596         Update doc about utimes().
32597         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32598         'utimens' module.
32599         Reported by Andreas Gruenbacher <agruen@suse.de>.
32600
32601 2010-04-27  Eric Blake  <eblake@redhat.com>
32602
32603         full-read, full-write: relax license
32604         * modules/full-read (License): Drop to LGPLv2+.
32605         * modules/full-write (License): Likewise.
32606         * modules/safe-read (License): Likewise.
32607         * modules/safe-write (License): Likewise.
32608
32609         pthread: mention library for linking
32610         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32611
32612 2010-04-27  Jim Meyering  <meyering@redhat.com>
32613
32614         maint.mk: fix a bug introduced in last change
32615         * top/maint.mk (gl_assured_headers_): Now that all names are on
32616         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32617         is not anchored to end of word, it should be adequate.
32618
32619         maint.mk: avoid side-effect in latest syntax-check
32620         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32621         to run commands via $(shell...), and hence to incur cost only when
32622         the new rule is actually run.
32623
32624         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32625         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32626         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32627         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32628         (gl_assured_headers_, az_, AZ_): Define.
32629         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32630
32631 2010-04-26  Jim Meyering  <jim@meyering.net>
32632             Bruno Haible  <bruno@clisp.org>
32633
32634         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32635         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32636         Prompted by an exchange with Gilles Espinasse.
32637
32638 2010-04-26  Jim Meyering  <meyering@redhat.com>
32639
32640         git-version-gen: aesthetic tweak
32641         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32642         so that the command remains on a single line.
32643
32644 2010-04-26  Eric Blake  <eblake@redhat.com>
32645
32646         git-version-gen: allow use on EBCDIC hosts
32647         * build-aux/git-version-gen (dirty): Use literal rather than tying
32648         ourselves to ascii.
32649         Reported by Steve Goetze.
32650
32651 2010-04-25  Bruno Haible  <bruno@clisp.org>
32652
32653         netdb: Add support for GNULIB_POSIXCHECK.
32654         * lib/netdb.in.h: Include warn-on-use.h.
32655         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32656         functions are used when GNULIB_POSIXCHECK is defined and the
32657         getaddrinfo module is not in use.
32658         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32659         freeaddrinfo, gai_strerror, getnameinfo are declared.
32660         * modules/netdb (Depends-on): Add warn-on-use.
32661         (Makefile.am): Include warn-on-use.h in netdb.h.
32662
32663 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32664
32665         build: avoid "make check" failure without .git/ directory
32666         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32667         there is no .git/ directory.
32668
32669 2010-04-25  Bruno Haible  <bruno@clisp.org>
32670
32671         ptsname: Fix misuse of ttyname_r.
32672         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32673         of errno.
32674
32675 2010-04-25  Bruno Haible  <bruno@clisp.org>
32676
32677         ttyname_r: Make it work on Solaris 10.
32678         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32679         if the system function has the POSIX declaration. Test whether the
32680         function fails if the buffer is less than 128 bytes large.
32681         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32682         system's ttyname_r function. Provide a reasonably large buffer.
32683         * modules/ttyname_r (Depends-on): Add extensions.
32684         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32685
32686 2010-04-25  Bruno Haible  <bruno@clisp.org>
32687
32688         Use the 'extensions' module for some more functions on Solaris.
32689         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32690         module.
32691         * doc/posix-functions/ctime_r.texi: Likewise.
32692         * doc/posix-functions/getgrgid_r.texi: Likewise.
32693         * doc/posix-functions/getgrnam_r.texi: Likewise.
32694         * doc/posix-functions/getpwnam_r.texi: Likewise.
32695         * doc/posix-functions/getpwuid_r.texi: Likewise.
32696         * doc/posix-functions/readdir_r.texi: Likewise.
32697         * doc/posix-functions/sigwait.texi: Likewise.
32698         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32699         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32700
32701 2010-04-25  Bruno Haible  <bruno@clisp.org>
32702
32703         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32704         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32705         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32706         * lib/ttyname_r.c: Include <limits.h>.
32707         (ttyname_r): Define using the system's ttyname_r function, if it exists
32708         and not on Solaris.
32709         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32710         set.
32711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32712         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32713         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32714         Reported by Simon Josefsson.
32715
32716 2010-04-25  Bruno Haible  <bruno@clisp.org>
32717
32718         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32719         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32720         * doc/posix-functions/ctime_r.texi: Likewise.
32721         * doc/posix-functions/getgrgid_r.texi: Likewise.
32722         * doc/posix-functions/getgrnam_r.texi: Likewise.
32723         * doc/posix-functions/getlogin_r.texi: Likewise.
32724         * doc/posix-functions/getpwnam_r.texi: Likewise.
32725         * doc/posix-functions/getpwuid_r.texi: Likewise.
32726         * doc/posix-functions/readdir_r.texi: Likewise.
32727         * doc/posix-functions/sigwait.texi: Likewise.
32728         * doc/posix-functions/ttyname_r.texi: Likewise.
32729         Reported by Simon Josefsson.
32730
32731 2010-04-25  Bruno Haible  <bruno@clisp.org>
32732
32733         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32734         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32735         also to --create-testdir.
32736         (func_acceptable): Don't consider the status of *-tests modules here.
32737         (func_modules_transitive_closure): Consider it here, before including a
32738         test module.
32739         (func_import, func_create_testdir): Set inc_all_direct_tests,
32740         inc_all_indirect_tests.
32741         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32742         --create-testdir and --create-megatestdir.
32743
32744 2010-04-25  Bruno Haible  <bruno@clisp.org>
32745
32746         gnulib-tool: Add --without-*-tests options.
32747         * gnulib-tool (func_usage): Document the --without-*-tests options.
32748         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32749         excl_unportable_tests): New variables.
32750         Fail if they are specified with --import or --update.
32751         (func_acceptable): Respect the excl_*_tests variables.
32752         (func_import): Set the excl_*_tests variables to empty.
32753
32754 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32755             Bruno Haible  <bruno@clisp.org>
32756
32757         Work around a MacOS X 10.4 bug with openpty.
32758         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32759         * tests/test-openpty.c (main): Close the master side explicitly.
32760
32761 2010-04-25  Bruno Haible  <bruno@clisp.org>
32762
32763         strnlen: Fix a C++ test error on MacOS X and Solaris.
32764         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32765         the function is not declared.
32766         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32767         Simon Josefsson.
32768
32769 2010-04-24  Bruno Haible  <bruno@clisp.org>
32770
32771         Avoid a gcc warning.
32772         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32773         of correct type for %08lx directive.
32774         Reported by Eric Blake.
32775
32776 2010-04-24  Bruno Haible  <bruno@clisp.org>
32777
32778         vasnprintf: Correct errno value in case of out-of-memory.
32779         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32780         or sprintf. Use the errno value from SNPRINTF or sprintf.
32781         Reported by Ian Beckwith <ianb@erislabs.net>.
32782
32783 2010-04-24  Bruno Haible  <bruno@clisp.org>
32784
32785         ansi-c++-opt: Find correct compiler when cross-compiling.
32786         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32787         AC_CHECK_PROGS.
32788         Reported by Simon Josefsson.
32789
32790 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32791
32792         vc-list-files: Add support for subversion
32793         * build-aux/vc-list-files: Use "svn list" to generate the list of
32794         files controlled by subversion.
32795
32796 2010-04-23  Jim Meyering  <meyering@redhat.com>
32797
32798         vc-list-files tests: convert to use init.sh
32799         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32800         path_prepend_.
32801         Use Exit, not exit.
32802         Use skip_ rather than open coding it.
32803         Remove trap set-up and compare definitions.
32804         * tests/test-vc-list-files-git.sh: Likewise.
32805         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32806
32807 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32808
32809         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32810         backup files.
32811
32812 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32813
32814         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32815
32816 2010-04-20  Eric Blake  <eblake@redhat.com>
32817
32818         tests: be robust to ignored SIGPIPE
32819         * tests/test-select-in.sh: Consume all output.
32820         * tests/test-lseek.sh: Check correct exit status, while avoiding
32821         EPIPE.
32822
32823 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32824             Bruno Haible  <bruno@clisp.org>
32825
32826         visibility: Don't use -fvisibility if it leads to a warning.
32827         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32828         yes, don't pretend that visibility works if it leads to a warning.
32829         Reported by Mike Gran <spk121@yahoo.com>.
32830
32831 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32832
32833         * build-aux/bootstrap: Use "git -h" for testing for supported options
32834         instead of "git --help".  The short-form option only shows a summary,
32835         and doesn't layout the full man page.  Grep for the full option name
32836         in the summary, too.
32837
32838 2010-04-19  Bruno Haible  <bruno@clisp.org>
32839
32840         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32841         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32842         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32843         mention of RELOCATABLE_STRIP.
32844         Reported by Sylvain Beucler <beuc@beuc.net>.
32845
32846 2010-04-19  Bruno Haible  <bruno@clisp.org>
32847
32848         * lib/diffseq.h: Fix typo in comment.
32849         Reported by Eric Blake.
32850
32851 2010-04-19  Bruno Haible  <bruno@clisp.org>
32852
32853         ioctl: Move autoconf macro to a .m4 file.
32854         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32855         * modules/ioctl (Files): Add it.
32856         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32857         Reported by Ian Beckwith <ianb@erislabs.net>.
32858
32859 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32860             Bruno Haible  <bruno@clisp.org>
32861
32862         diffseq: Accommodate use-case with abstract arrays.
32863         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32864         is not defined.
32865         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32866         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32867
32868 2010-04-18  Bruno Haible  <bruno@clisp.org>
32869
32870         * doc/posix-headers/stdbool.texi: More precise wording.
32871
32872 2010-04-17  Jim Meyering  <meyering@redhat.com>
32873
32874         maint.mk: use gnu-style indentation in an embedded perl script
32875         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32876         Rename variable: s/two/last_two_bytes/
32877
32878 2010-04-16  Eric Blake  <eblake@redhat.com>
32879
32880         test-stdbool: skip test that fails with Solaris CC
32881         * tests/test-stdbool.c (f): Skip test that causes compilation
32882         error under buggy C++ compiler.
32883         * lib/stdbool.in.h: Document the limitation.
32884         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32885
32886         setenv: allow compilation with C++
32887         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32888         register keyword.
32889
32890         stdint: allow test to pass with C++
32891         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32892
32893         getopt: allow compilation with C++
32894         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32895         struct.
32896         * lib/getopt.c (_getopt_internal_r): Use correct type.
32897         Reported by Dagobert Michelson, via Joel E. Denny.
32898
32899 2010-04-16  Bruno Haible  <bruno@clisp.org>
32900
32901         Override netdb.h always.
32902         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32903         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32904         Reported by Ludovic Courtès <ludo@gnu.org>.
32905
32906 2010-04-15  Bruno Haible  <bruno@clisp.org>
32907
32908         openpty: Fix mistake from 2010-03-21.
32909         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32910         Reported by Simon Josefsson.
32911
32912 2010-04-15  Eric Blake  <eblake@redhat.com>
32913
32914         test-forkpty: fix expected signature
32915         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32916         Reported by Simon Josefsson.
32917
32918 2010-04-15  Jim Meyering  <meyering@redhat.com>
32919
32920         maint.mk: texinfo_suffix_re_: correct the default regexp
32921         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32922
32923         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32924         make it configurable via texinfo_suffix_re_.
32925
32926 2010-04-14  Eric Blake  <eblake@redhat.com>
32927
32928         strtok_r: relax license to LGPLv2+
32929         * modules/strtok_r (License): Relax license.
32930         Reported by Matthias Bolte.
32931
32932 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32933
32934         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32935         version 1.4.4 by default instead of requiring the libgcrypt
32936         version used during build.  This makes it possible to use the
32937         application with older but still binary compatible libgcrypt
32938         versions.
32939
32940 2010-04-13  Eric Blake  <eblake@redhat.com>
32941
32942         getopt-gnu: match recent glibc fixes and posix ruling
32943         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32944         '+' handling, when requesting extensions.
32945         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32946         'W;' handling.
32947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32948         * doc/posix-functions/getopt.texi (getopt): Document this.
32949         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32950         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32951         Likewise.
32952
32953         getopt: merge bug fixes from glibc
32954         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32955         diagnostics.  Honor '+:' correctly.  Reject ';'.
32956
32957         getopt-posix: detect MacOS bug
32958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32959         optind when missing a required argument.
32960         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32961         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32962         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32963         Likewise.
32964
32965         getopt-posix: avoid spurious failure on Solaris
32966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32967         an indicator that setting optind=1 is sufficient for reset.
32968
32969         getopt-posix: avoid spurious failure on FreeBSD
32970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32971         in POSIX mode, since the m4 test uses it.
32972
32973         gnulib-tool: silence warning on BSD sh
32974         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32975
32976 2010-04-13  Jim Meyering  <meyering@redhat.com>
32977
32978         doc: users.txt: GNU patch now uses gnulib
32979         * users.txt: Add patch.
32980
32981 2010-04-12  Jim Meyering  <meyering@redhat.com>
32982
32983         maint.mk: generate more concise timing data for syntax-check rules
32984         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32985         " done" from each line that reports a syntax-check test duration.
32986
32987 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32988
32989         git-version-gen: use "git update-index..." rather than "git status"
32990         * build-aux/git-version-gen: Use git update-index --refresh, not
32991         "git status".  With some versions of git, "git status" would fail
32992         to update the index and result in an unwarranted "-dirty" suffix.
32993
32994 2010-04-11  Jim Meyering  <meyering@redhat.com>
32995
32996         openat: correct formatting (no semantic change)
32997         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32998         Suggested by Bruno Haible.
32999
33000 2010-04-11  Bruno Haible  <bruno@clisp.org>
33001
33002         Stricter declaration checking in testdirs.
33003         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33004         If for_tests is true, augment AM_CPPFLAGS to define
33005         GNULIB_STRICT_CHECKING.
33006         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33007         GNULIB_STRICT_CHECKING is defined, verify that the function is
33008         declared.
33009
33010 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33011             Bruno Haible  <bruno@clisp.org>
33012
33013         libunistring: Improve configure output.
33014         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33015         Don't say "consider installing GNU libunistring" when checking again
33016         with libiconv.
33017
33018 2010-04-11  Bruno Haible  <bruno@clisp.org>
33019
33020         libunistring: Correct value of $LTLIBUNISTRING.
33021         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33022         correct the value of $LTLIBUNISTRING.
33023
33024 2010-04-11  Bruno Haible  <bruno@clisp.org>
33025
33026         havelib: Add static libraries to LIBS in the right order.
33027         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33028         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33029
33030 2010-04-11  Bruno Haible  <bruno@clisp.org>
33031
33032         libunistring: Detect libunistring also when it depends on libiconv.
33033         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33034         the second AC_LIB_HAVE_LINKFLAGS invocation.
33035
33036 2010-04-11  James Youngman  <jay@gnu.org>
33037
33038         close-stream: declare local scalars to be "const"
33039         * lib/close-stream.c (close_stream): Make boolean variables const
33040         to document the fact that we set but do not change them.
33041
33042 2010-04-11  Bruno Haible  <bruno@clisp.org>
33043
33044         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33045
33046 2010-04-11  Jim Meyering  <meyering@redhat.com>
33047
33048         maint.mk: don't include dist-check.mk
33049         * top/maint.mk: Remove bogus include directive.
33050
33051         maint.mk: improve empty-line-at-EOF check
33052         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33053         solution, rather than tail+Perl-based one.  The latter would read
33054         a few kilobytes from the end of each file, and did not handle empty
33055         files properly.
33056
33057         maint.mk: print the elapsed time for each syntax-check rule
33058         * top/maint.mk (sc_m_rules_): Save start time in a file.
33059         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33060         (local-check): Interpose the .z rules
33061
33062 2010-04-11  Jim Meyering  <meyering@redhat.com>
33063
33064         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33065         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33066         empty file with one that ends in an empty line.
33067
33068 2010-04-10  Bruno Haible  <bruno@clisp.org>
33069
33070         mkdir: Make it work on mingw64.
33071         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33072         * lib/mkdir.c: Update comment.
33073         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33074
33075 2010-04-10  Bruno Haible  <bruno@clisp.org>
33076
33077         Don't override improved macro from newer autoconf.
33078         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33079         autoconf >= 2.62.
33080         Reported by Joel E. Denny <jdenny@clemson.edu>.
33081
33082 2010-04-10  Jim Meyering  <meyering@redhat.com>
33083
33084         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33085         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33086
33087         maint.mk: correct a diagnostic
33088         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33089         in diagnostic; now use $prohibit.
33090
33091 2010-04-10  Bruno Haible  <address@hidden>
33092
33093         fchownat: Fix a C++ test error on Solaris 8.
33094         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33095         the function does not exist.
33096
33097 2010-04-10  Bruno Haible  <bruno@clisp.org>
33098
33099         vasnprintf: Add more tests.
33100         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33101         (test_function): Test converting an invalid wide string.
33102
33103         vasnprintf: Correct handling of unconvertible wide string arguments.
33104         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33105         VASNPRINTF.
33106         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33107         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33108         smaller than the expected maximum need for the directive. Set errno to
33109         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33110         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33112         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33113         * modules/vasnprintf (Files): Add m4/printf.m4.
33114         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33115
33116 2010-04-10  Bruno Haible  <bruno@clisp.org>
33117
33118         vasnprintf: Fix crash in %ls directive.
33119         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33120         string is passed as argument to %ls, with no precision and no width.
33121         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33122
33123 2010-04-10  Bruno Haible  <bruno@clisp.org>
33124
33125         vasnprintf: Fix multiple test failures on mingw.
33126         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33127         _snprintf, or snwprintf, not _snwprintf.
33128
33129 2010-04-10  Bruno Haible  <bruno@clisp.org>
33130
33131         write: Fix a C++ test error on mingw.
33132         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33133
33134 2010-04-10  Bruno Haible  <bruno@clisp.org>
33135
33136         vasnprintf test: Reduce code duplication.
33137         * tests/test-vasnprintf.c (test_function): New function, extracted from
33138         test_vasnprintf.
33139         (test_vasnprintf, test_asnprintf): Invoke it.
33140
33141 2010-04-10  Bruno Haible  <bruno@clisp.org>
33142
33143         strnlen: Fix warning in C++ mode on MacOS X.
33144         * lib/string.in.h (strnlen): Use the modern idiom.
33145         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33146         defining strnlen as a macro already in <config.h>.
33147         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33148         REPLACE_STRNLEN.
33149         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33150         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33151
33152 2010-04-08  James Youngman  <jay@gnu.org>
33153
33154         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33155         the example.
33156
33157 2010-04-09  Jim Meyering  <meyering@redhat.com>
33158
33159         maint.mk: print better diagnostic when there is no $(_hv_file)
33160         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33161         announce that when $(_hv_file) (aka help-version) does not exist.
33162
33163         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33164         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33165         not try to interpret its random input bytes.  Jarno Rajahalme reported
33166         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33167         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33168         (mktempd_): Likewise, just in case.
33169
33170         ftruncate: add two years to projected module removal date: 2012
33171         * m4/ftruncate.m4: Adjust comments.
33172
33173         ftruncate: mark module as obsolete; even MinGW provides it, now
33174         * modules/ftruncate (Status): Obsolete.
33175         (Notice): Say that.
33176         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33177         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33178
33179 2010-04-08  Bruno Haible  <bruno@clisp.org>
33180
33181         Fix side effects from tests-related modules.
33182         * modules/dprintf-posix (Comment): New section.
33183         * modules/fprintf-posix (Comment): Likewise.
33184         * modules/obstack-printf-posix (Comment): Likewise.
33185         * modules/printf-posix (Comment): Likewise.
33186         * modules/snprintf-posix (Comment): Likewise.
33187         * modules/sprintf-posix (Comment): Likewise.
33188         * modules/vasnprintf-posix (Comment): Likewise.
33189         * modules/vasprintf-posix (Comment): Likewise.
33190         * modules/vdprintf-posix (Comment): Likewise.
33191         * modules/vfprintf-posix (Comment): Likewise.
33192         * modules/vprintf-posix (Comment): Likewise.
33193         * modules/vsnprintf-posix (Comment): Likewise.
33194         * modules/vsprintf-posix (Comment): Likewise.
33195         * modules/xprintf-posix (Comment): Likewise.
33196         * modules/xvasprintf-posix (Comment): Likewise.
33197         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33198         * modules/floorf-tests (Depends-on): Likewise.
33199         * modules/round-tests (Depends-on): Likewise.
33200         * modules/roundf-tests (Depends-on): Likewise.
33201         * modules/trunc-tests (Depends-on): Likewise.
33202         * modules/truncf-tests (Depends-on): Likewise.
33203         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33204         'fprintf-posix' module is not present.
33205         * tests/test-floorf2.c (check): Likewise.
33206         * tests/test-trunc2.c (check): Likewise.
33207         * tests/test-truncf2.c (check): Likewise.
33208         * tests/test-round2.c (equal): Likewise.
33209         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33210
33211 2010-04-07  Karl Berry  <karl@gnu.org>
33212
33213         * config/srclist.txt,
33214         * config/srclistvars.sh,
33215         * config/srclist-update: doc fixes.
33216
33217 2010-04-07  Jim Meyering  <meyering@redhat.com>
33218
33219         maint.mk: add a PATH crosschecking syntax-check rule
33220         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33221         Useful if you use a test like the one in help-version (coreutils,
33222         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33223         printed by prog --version.
33224
33225 2010-04-06  Bruno Haible  <bruno@clisp.org>
33226
33227         Fix link error on mingw.
33228         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33229         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33230
33231 2010-04-06  Bruno Haible  <bruno@clisp.org>
33232
33233         Assume rmdir exists.
33234         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33235
33236 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33237
33238         doc: update users.txt
33239         * users.txt: Add gcal.
33240
33241 2010-04-06  Jim Meyering  <meyering@redhat.com>
33242
33243         init.sh: simply unset TMPDIR rather than risking env -i
33244         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33245         although it probably works fine on all Unix-based systems, some
33246         systems (Cygwin?) cannot tolerate a totally cleared environment.
33247         Suggestion from Eric Blake.
33248
33249 2010-04-06  Jim Meyering  <meyering@redhat.com>
33250
33251         init.sh: portability fix: use env's POSIX-specified -i option not -u
33252         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33253         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33254
33255 2010-04-05  Bruno Haible  <bruno@clisp.org>
33256
33257         btowc: Work around Cygwin 1.7.2 bug.
33258         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33259         does not map NUL to 0.
33260         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33261
33262 2010-04-05  Bruno Haible  <bruno@clisp.org>
33263
33264         Make the multithread modules work on Cygwin 1.7.2.
33265         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33266         imported symbols can be declared weak, so that it returns "no" on
33267         Cygwin 1.7.2.
33268
33269 2010-04-05  Bruno Haible  <bruno@clisp.org>
33270
33271         Use the module 'strncat'.
33272         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33273
33274         Tests for module 'strncat'.
33275         * modules/strncat-tests: New file.
33276         * tests/test-strncat.c: New file.
33277
33278         New module 'strncat'.
33279         * lib/string.in.h (strncat): New declaration.
33280         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33281         * m4/strncat.m4: New file, based on m4/memchr.m4.
33282         * modules/strncat: New file.
33283         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33284         is declared.
33285         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33286         REPLACE_STRNCAT.
33287         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33288         REPLACE_STRNCAT.
33289         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33290         module.
33291         * tests/test-string-c++.cc: Check signature of strncat.
33292
33293 2010-04-05  Jim Meyering  <meyering@redhat.com>
33294
33295         xstrtoumax-tests: convert to use init.sh
33296         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33297         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33298         Use Exit, not exit.
33299         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33300
33301         xstrtoimax-tests: convert to use init.sh
33302         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33303         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33304         Use Exit, not exit.
33305         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33306
33307 2010-04-05  Bruno Haible  <bruno@clisp.org>
33308
33309         sys_socket: Avoid #define replacements in C++ mode.
33310         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33311         warning to the function if possible, rather than #defining the symbol
33312         to a dysfunctional alias.
33313
33314 2010-04-05  Bruno Haible  <bruno@clisp.org>
33315
33316         fseeko: Fix C++ test error on mingw.
33317         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33318         gl_FUNC_FSEEKO.
33319         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33320         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33321         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33322         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33323
33324 2010-04-05  Bruno Haible  <bruno@clisp.org>
33325
33326         duplocale: Improve test output.
33327         * tests/test-duplocale.c (main): Print reason for skipped test.
33328
33329 2010-04-05  Bruno Haible  <bruno@clisp.org>
33330
33331         Assume rmdir exists.
33332         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33333         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33334
33335 2010-04-05  Bruno Haible  <bruno@clisp.org>
33336
33337         Fix link error on Solaris 8 with cc.
33338         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33339
33340 2010-04-05  Bruno Haible  <bruno@clisp.org>
33341
33342         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33343         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33344
33345 2010-04-05  Bruno Haible  <bruno@clisp.org>
33346
33347         vasprintf: Update documentation.
33348         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33349
33350 2010-04-05  Bruno Haible  <bruno@clisp.org>
33351
33352         ptsname: Improve test.
33353         * tests/test-ptsname.c (main): Also try the various master names of BSD
33354         systems.
33355
33356 2010-04-05  Bruno Haible  <bruno@clisp.org>
33357
33358         memchr: Avoid a possible C++ test error.
33359         * lib/string.in.h (memchr): Provide declaration if function is missing.
33360         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33361         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33363         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33364
33365 2010-04-05  Bruno Haible  <bruno@clisp.org>
33366
33367         strtok_r: Improve idiom.
33368         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33369         AC_LIBOBJ is used.
33370
33371 2010-04-05  Bruno Haible  <bruno@clisp.org>
33372
33373         strdup: Improve idiom.
33374         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33375         AC_LIBOBJ is used.
33376         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33377         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33378         when AC_LIBOBJ is used.
33379
33380 2010-04-05  Bruno Haible  <bruno@clisp.org>
33381
33382         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33383         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33384         don't set REPLACE_MBSINIT to 1.
33385         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33386         don't set REPLACE_MBRTOWC to 1.
33387         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33388         exist, don't set REPLACE_MBSRTOWCS to 1.
33389         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33390         exist, don't set REPLACE_MBSNRTOWCS to 1.
33391         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33392         don't set REPLACE_WCRTOMB to 1.
33393         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33394         exist, don't set REPLACE_WCSRTOMBS to 1.
33395         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33396         exist, don't set REPLACE_WCSNRTOMBS to 1.
33397
33398 2010-04-05  Bruno Haible  <bruno@clisp.org>
33399
33400         ldexpl: Improve idiom.
33401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33402         make sure to set HAVE_DECL_LDEXPL to 0.
33403
33404 2010-04-05  Jim Meyering  <meyering@redhat.com>
33405
33406         xstrtol-tests: convert to use init.sh
33407         * modules/xstrtol-tests (Files): Add tests/init.sh.
33408         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33409         Use Exit, not exit.
33410         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33411
33412         atexit-tests: convert to use init.sh
33413         * modules/atexit-tests (Files): Add tests/init.sh.
33414         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33415         Use Exit, not exit.
33416         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33417
33418         init.sh: fix typo
33419         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33420
33421         init.sh: make it easier for a test script to write to the tty, ...
33422         when using automake's parallel-tests mode.
33423         * tests/init.sh (stderr_fileno_): Define overridable variable.
33424         (warn_): New function, to use it.
33425         (fail_, skip_, framework_failure_): Use warn_.
33426
33427 2010-04-04  Bruno Haible  <bruno@clisp.org>
33428
33429         btowc: Avoid warning.
33430         * lib/btowc.c: Include <stdlib.h>.
33431         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33432
33433 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33434             Bruno Haible  <bruno@clisp.org>
33435
33436         wchar: Port to NetBSD 1.5.
33437         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33438         * lib/wctype.in.h (WEOF): Likewise.
33439
33440 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33441             Bruno Haible  <bruno@clisp.org>
33442
33443         Port extended stdio to NetBSD 1.5.
33444         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33445         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33446         older.
33447
33448 2010-04-04  Bruno Haible  <bruno@clisp.org>
33449
33450         string: Remove unused substitution.
33451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33452         HAVE_DECL_STRERROR.
33453         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33454
33455 2010-04-04  Bruno Haible  <bruno@clisp.org>
33456
33457         strtod: Avoid a possible C++ test error.
33458         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33459         set REPLACE_STRTOD.
33460
33461 2010-04-04  Bruno Haible  <bruno@clisp.org>
33462
33463         strerror: Update documentation.
33464         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33465
33466 2010-04-04  Bruno Haible  <bruno@clisp.org>
33467
33468         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33469         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33470         _GL_CXXALIAS_SYS_CAST.
33471
33472 2010-04-04  Bruno Haible  <bruno@clisp.org>
33473
33474         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33475         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33476         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33477         REPLACE_FREXPL to 1.
33478         * doc/posix-functions/frexpl.texi: Update documentation.
33479
33480 2010-04-04  Bruno Haible  <bruno@clisp.org>
33481
33482         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33483         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33484
33485 2010-04-04  Bruno Haible  <bruno@clisp.org>
33486
33487         Implement nanosleep for native Windows.
33488         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33489
33490 2010-04-04  Bruno Haible  <bruno@clisp.org>
33491
33492         math: Fix some C++ test errors on Solaris 8.
33493         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33494
33495 2010-04-04  Bruno Haible  <bruno@clisp.org>
33496
33497         math: Fix some C++ test errors on Cygwin.
33498         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33499         truncl): Provide declaration if the system does not have it.
33500         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33501         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33502         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33503         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33504         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33505         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33506         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33507         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33508         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33509         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33510         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33511         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33512         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33513         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33514         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33515         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33517         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33518         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33519         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33520         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33521         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33522
33523 2010-04-04  Bruno Haible  <bruno@clisp.org>
33524
33525         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33526         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33527         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33528         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33529         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33530         * m4/isinf.m4 (gl_ISINF): Likewise.
33531         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33532
33533 2010-04-04  Bruno Haible  <bruno@clisp.org>
33534
33535         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33536         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33537
33538 2010-04-04  Bruno Haible  <bruno@clisp.org>
33539
33540         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33541         * modules/tmpfile (configure.ac): Update.
33542
33543         tmpfile: Fix C++ test error on mingw.
33544         * lib/stdio.in.h (tmpfile): New declaration.
33545         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33546         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33547         * modules/tmpfile (Depends-on): Add stdio.
33548         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33549         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33550         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33551         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33552         REPLACE_TMPFILE.
33553         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33554
33555 2010-04-04  Bruno Haible  <bruno@clisp.org>
33556
33557         ioctl: Fix C++ test error on mingw.
33558         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33559         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33560         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33561
33562 2010-04-03  Bruno Haible  <bruno@clisp.org>
33563
33564         wcwidth: Fix C++ test error on mingw.
33565         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33567         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33568
33569 2010-04-03  Bruno Haible  <bruno@clisp.org>
33570
33571         nanosleep: Fix C++ test error on mingw.
33572         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33573         * lib/time.in.h (nanosleep): Use modern idiom.
33574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33575         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33576         REPLACE_NANOSLEEP to 1.
33577         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33578         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33579
33580 2010-04-03  Bruno Haible  <bruno@clisp.org>
33581
33582         strptime: Fix C++ test error on mingw.
33583         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33584         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33585         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33586         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33587         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33588         not REPLACE_STRPTIME.
33589         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33590         REPLACE_STRPTIME.
33591
33592 2010-04-03  Bruno Haible  <bruno@clisp.org>
33593
33594         timegm: Fix C++ test error on mingw.
33595         * lib/time.in.h (timegm): Use modern idiom.
33596         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33597         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33598         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33599         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33600
33601 2010-04-03  Bruno Haible  <bruno@clisp.org>
33602
33603         timegm: Assume declaration if function exists.
33604         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33605         if it exists. Don't clobber ac_cv_func_timegm.
33606
33607 2010-04-03  Bruno Haible  <bruno@clisp.org>
33608
33609         time_r: Fix C++ test error on mingw.
33610         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33611         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33612         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33613         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33614         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33615
33616 2010-04-03  Bruno Haible  <bruno@clisp.org>
33617
33618         time_r: Minor updates.
33619         * modules/time_r (Description): Mention the provided functions.
33620         * lib/time_r.c: Don't include <string.h>.
33621         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33622         * doc/posix-functions/localtime_r.texi: Likewise.
33623
33624 2010-04-03  Bruno Haible  <bruno@clisp.org>
33625
33626         time: Fix regression introduced on 2010-03-08.
33627         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33628         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33629
33630 2010-04-03  Jim Meyering  <meyering@redhat.com>
33631
33632         maint.mk: don't silently disable project-specific syntax-check rules
33633         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33634         that they need to convert their project-specific syntax-check rules
33635         to use the new _sc_search_regexp.
33636
33637 2010-04-03  Bruno Haible  <bruno@clisp.org>
33638
33639         fchdir: Fix regression introduced on 2010-03-08.
33640         * lib/unistd.in.h (fchdir): Fix declaration.
33641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33643         REPLACE_FCHDIR.
33644         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33645         REPLACE_FCHDIR.
33646
33647 2010-04-03  Bruno Haible  <bruno@clisp.org>
33648
33649         getpagesize: Fix C++ test error on mingw.
33650         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33651         system does not declare the function.
33652         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33653         declared.
33654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33655         HAVE_DECL_GETPAGESIZE.
33656         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33657
33658 2010-04-03  Bruno Haible  <bruno@clisp.org>
33659
33660         stdio: Make C++ tests work on mingw.
33661         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33662         does not declare the function.
33663
33664 2010-04-03  Bruno Haible  <bruno@clisp.org>
33665
33666         ftello: Fix C++ test error on mingw.
33667         * lib/stdio.in.h (ftello): Use modern idiom.
33668         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33669         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33670         is missing and that it needs to be replaced.
33671         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33673         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33674
33675 2010-04-03  Bruno Haible  <bruno@clisp.org>
33676
33677         fseeko: Fix C++ test error on mingw.
33678         * lib/stdio.in.h (fseeko): Use modern idiom.
33679         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33681         is missing and that it needs to be replaced.
33682         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33684         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33685
33686 2010-04-03  Bruno Haible  <bruno@clisp.org>
33687
33688         mkstemp: Fix C++ test error on mingw.
33689         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33691         function is missing and that it needs to be replaced.
33692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33693         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33694
33695 2010-04-03  Bruno Haible  <bruno@clisp.org>
33696
33697         stpncpy: Fix C++ test error on mingw.
33698         * lib/string.in.h (stpncpy): Use modern idiom.
33699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33700         function is missing and that it needs to be replaced.
33701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33702         REPLACE_STPNCPY.
33703         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33704
33705 2010-04-03  Bruno Haible  <bruno@clisp.org>
33706
33707         sys_stat: Fix C++ test error on mingw.
33708         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33709         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33710
33711 2010-04-03  Bruno Haible  <bruno@clisp.org>
33712
33713         pty: Update doc.
33714         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33715
33716 2010-04-03  Bruno Haible  <bruno@clisp.org>
33717
33718         unistd: Fix C++ test error on mingw.
33719         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33720
33721 2010-04-03  Bruno Haible  <bruno@clisp.org>
33722
33723         Update doc regarding mingw.
33724         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33725         * doc/glibc-functions/login_tty.texi: Likewise.
33726         * doc/glibc-functions/forkpty.texi: Likewise.
33727
33728 2010-04-03  Bruno Haible  <bruno@clisp.org>
33729
33730         stdlib: Avoid compilation failure of c-strtold on mingw.
33731         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33732
33733 2010-04-03  Bruno Haible  <bruno@clisp.org>
33734
33735         locale: Make C++ tests work on Cygwin and mingw.
33736         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33737         cannot provide the function.
33738         Reported by Simon Josefsson.
33739
33740 2010-04-03  Bruno Haible  <bruno@clisp.org>
33741
33742         localename: Port to MacOS X 10.6.
33743         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33744         memory layout of the locales in MacOS X 10.6 as well.
33745         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33746
33747 2010-04-02  Bruno Haible  <bruno@clisp.org>
33748
33749         gnulib-tool: Ensure that long-running tests are executed last.
33750         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33751         running tests after the one for the other tests.
33752
33753 2010-04-02  Bruno Haible  <bruno@clisp.org>
33754
33755         gnulib-tool: Ensure the tests in the main directory are executed first.
33756         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33757         start with the current directory.
33758
33759 2010-04-02  Bruno Haible  <bruno@clisp.org>
33760
33761         Tests for module 'havelib', moved here from GNU gettext.
33762         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33763         modifications.
33764         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33765         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33766         with modifications.
33767         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33768         modifications.
33769         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33770         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33771         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33772         with modifications.
33773         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33774         with modifications.
33775         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33776         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33777         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33778         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33779         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33780         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33781         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33782         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33783         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33784         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33785         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33786         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33787         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33788         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33789         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33790         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33791         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33792         with modifications.
33793         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33794         with modifications.
33795         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33796         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33797         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33798         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33799         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33800         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33801         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33802         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33803         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33804         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33805         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33806         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33807         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33808         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33809         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33810         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33811         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33812         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33813         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33814         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33815         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33816         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33817         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33818         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33819         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33820         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33821         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33822         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33823         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33824         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33825         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33826         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33827         * tests/havelib/rpathx/rpathx.c: New file, from
33828         gettext/autoconf-lib-link.
33829         * tests/havelib/rpathx/Makefile.am: New file, from
33830         gettext/autoconf-lib-link.
33831         * tests/havelib/rpathx/configure.ac: New file, from
33832         gettext/autoconf-lib-link with modifications.
33833         * tests/havelib/rpathy/rpathy.c: New file, from
33834         gettext/autoconf-lib-link.
33835         * tests/havelib/rpathy/Makefile.am: New file, from
33836         gettext/autoconf-lib-link.
33837         * tests/havelib/rpathy/configure.ac: New file, from
33838         gettext/autoconf-lib-link with modifications.
33839         * tests/havelib/rpathz/rpathz.c: New file, from
33840         gettext/autoconf-lib-link.
33841         * tests/havelib/rpathz/Makefile.am: New file, from
33842         gettext/autoconf-lib-link.
33843         * tests/havelib/rpathz/configure.ac: New file, from
33844         gettext/autoconf-lib-link with modifications.
33845         * tests/havelib/rpathlx/usex.c: New file, from
33846         gettext/autoconf-lib-link.
33847         * tests/havelib/rpathlx/Makefile.am: New file, from
33848         gettext/autoconf-lib-link.
33849         * tests/havelib/rpathlx/configure.ac: New file, from
33850         gettext/autoconf-lib-link with modifications.
33851         * tests/havelib/rpathly/usey.c: New file, from
33852         gettext/autoconf-lib-link.
33853         * tests/havelib/rpathly/Makefile.am: New file, from
33854         gettext/autoconf-lib-link.
33855         * tests/havelib/rpathly/configure.ac: New file, from
33856         gettext/autoconf-lib-link with modifications.
33857         * tests/havelib/rpathlz/usez.c: New file, from
33858         gettext/autoconf-lib-link.
33859         * tests/havelib/rpathlz/Makefile.am: New file, from
33860         gettext/autoconf-lib-link.
33861         * tests/havelib/rpathlz/configure.ac: New file, from
33862         gettext/autoconf-lib-link with modifications.
33863         * tests/havelib/rpathlyx/usey.c: New file, from
33864         gettext/autoconf-lib-link.
33865         * tests/havelib/rpathlyx/Makefile.am: New file, from
33866         gettext/autoconf-lib-link.
33867         * tests/havelib/rpathlyx/configure.ac: New file, from
33868         gettext/autoconf-lib-link with modifications.
33869         * tests/havelib/rpathlzyx/usez.c: New file, from
33870         gettext/autoconf-lib-link.
33871         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33872         gettext/autoconf-lib-link.
33873         * tests/havelib/rpathlzyx/configure.ac: New file, from
33874         gettext/autoconf-lib-link with modifications.
33875         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33876         with modifications.
33877
33878 2010-04-02  Bruno Haible  <bruno@clisp.org>
33879
33880         gnulib-tool: Create distributed built sources also for the tests.
33881         * gnulib-tool (func_create_testdir): Also generate distributed built
33882         sources in the tests directory.
33883
33884 2010-04-02  Bruno Haible  <bruno@clisp.org>
33885
33886         gnulib-tool: Obey user's environment variables.
33887         * gnulib-tool (func_create_testdir): When creating built sources,
33888         respect the environment variables for autoconf, automake, etc. given by
33889         the user.
33890
33891 2010-04-02  Bruno Haible  <bruno@clisp.org>
33892
33893         gnulib-tool: Provide the value of --m4-base to modules.
33894         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33895         of gl_m4_base.
33896
33897 2010-04-02  Eric Blake  <eblake@redhat.com>
33898
33899         maint.mk: fix some fallout
33900         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33901         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33902
33903 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33904
33905         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33906         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33907         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33908         (sc_cast_of_x_alloc_return_value): Likewise.
33909         (sc_cast_of_alloca_return_value): Likewise.
33910         (sc_space_tab): Likewise.
33911         (sc_prohibit_atoi_atof): Likewise.
33912         (sc_prohibit_magic_number_exit): Likewise.
33913         (sc_error_exit_success): Likewise.
33914         (sc_file_system): Likewise.
33915         (sc_prohibit_have_config_h): Likewise.
33916         (sc_require_config_h): Likewise.
33917         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33918         (sc_obsolete_symbols): Likewise.
33919         (sc_changelog): Likewise.
33920         (sc_program_name): Likewise.
33921         (sc_the_the): Likewise.
33922         (sc_trailing_blank): Likewise.
33923         (sc_two_space_separator_in_usage): Likewise.
33924         (sc_useless_cpp_parens): Likewise.
33925         (sc_GPL_version): Likewise.
33926         (sc_GFDL_version): Likewise.
33927         (sc_texinfo_acronym): Likewise.
33928         (sc_prohibit_cvs_keyword): Likewise.
33929         (sc_prohibit_stat_st_blocks): Likewise.
33930         (sc_prohibit_S_IS_definition): Likewise.
33931         (sc_redundant_const): Likewise.
33932         (sc_makefile_TAB_only_indentation): Likewise.
33933         (sc_m4_quote_check): Likewise.
33934         (sc_makefile_path_separator_check): Likewise.
33935         (sc_copyright_check): Likewise.
33936         (sc_Wundef_boolean): Likewise.
33937         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33938
33939         maint.mk: match 0 or more whitespace-before-function-call '('
33940         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33941         that have zero or two-and-more spaces between the function name
33942         and the open parenthesis.
33943         (sc_error_message_warn_fatal): Likewise.
33944         (sc_error_message_uppercase): Likewise.
33945         (sc_error_message_period): Likewise.
33946
33947 2010-03-31  Eric Blake  <eblake@redhat.com>
33948
33949         maint.mk: check for [ as well as test
33950         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33951         Based on a libvirt report by Matthias Bolte.
33952
33953         gnumakefile: don't squelch _version output
33954         * top/GNUmakefile (_version): Create one-shot dependency rather
33955         than using $(shell) when version must be regenerated.
33956         (_autoreconf): Run verbosely, by default.
33957
33958         sys_time: avoid compiler warnings
33959         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33960         unconditional, fixing regression from 2010-03-29.
33961         Reported by Simon Josefsson.
33962
33963 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33964
33965         maint.mk: s/_header_without_use/_sc_header_without_use/
33966         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33967         (sc_prohibit_assert_without_use): Use the new name.
33968         (sc_prohibit_close_stream_without_use): Likewise.
33969         (sc_prohibit_getopt_without_use): Likewise.
33970         (sc_prohibit_quotearg_without_use): Likewise.
33971         (sc_prohibit_quote_without_use): Likewise.
33972         (sc_prohibit_long_options_without_use): Likewise.
33973         (sc_prohibit_inttostr_without_use): Likewise.
33974         (sc_prohibit_ignore_value_without_use): Likewise.
33975         (sc_prohibit_error_without_use): Likewise.
33976         (sc_prohibit_xalloc_without_use): Likewise.
33977         (sc_prohibit_hash_without_use): Likewise.
33978         (sc_prohibit_hash_pjw_without_use): Likewise.
33979         (sc_prohibit_safe_read_without_use): Likewise.
33980         (sc_prohibit_argmatch_without_use): Likewise.
33981         (sc_prohibit_canonicalize_without_use): Likewise.
33982         (sc_prohibit_root_dev_ino_without_use): Likewise.
33983         (sc_prohibit_openat_without_use): Likewise.
33984         (sc_prohibit_c_ctype_without_use): Likewise.
33985         (sc_prohibit_signal_without_use): Likewise.
33986         (sc_prohibit_intprops_without_use): Likewise.
33987
33988 2010-03-30  Eric Blake  <eblake@redhat.com>
33989
33990         maint: improve module indicators
33991         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33992         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33993         columns, and avoid extra macro expansion.
33994
33995         fdopendir: work around FreeBSD bug
33996         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33997         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33998         * modules/dirent (Makefile.am): Substitute it.
33999         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34000         declaration.
34001         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34002         fix.
34003         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34004
34005 2010-03-29  Bruno Haible  <bruno@clisp.org>
34006
34007         Emit #pragma system_header after the inclusion guard, not before.
34008         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34009         guard that spans the entire file, not before. This enables an
34010         optimization in GCC's preprocessor.
34011         * lib/ctype.in.h: Likewise.
34012         * lib/dirent.in.h: Likewise.
34013         * lib/errno.in.h: Likewise.
34014         * lib/float.in.h: Likewise.
34015         * lib/getopt.in.h: Likewise.
34016         * lib/iconv.in.h: Likewise.
34017         * lib/langinfo.in.h: Likewise.
34018         * lib/locale.in.h: Likewise.
34019         * lib/math.in.h: Likewise.
34020         * lib/netdb.in.h: Likewise.
34021         * lib/netinet_in.in.h: Likewise.
34022         * lib/pty.in.h: Likewise.
34023         * lib/sched.in.h: Likewise.
34024         * lib/se-selinux.in.h: Likewise.
34025         * lib/search.in.h: Likewise.
34026         * lib/spawn.in.h: Likewise.
34027         * lib/stdarg.in.h: Likewise.
34028         * lib/stdint.in.h: Likewise.
34029         * lib/string.in.h: Likewise.
34030         * lib/strings.in.h: Likewise.
34031         * lib/sys_file.in.h: Likewise.
34032         * lib/sys_ioctl.in.h: Likewise.
34033         * lib/sys_time.in.h: Likewise.
34034         * lib/sys_times.in.h: Likewise.
34035         * lib/sys_utsname.in.h: Likewise.
34036         * lib/sys_wait.in.h: Likewise.
34037         * lib/sysexits.in.h: Likewise.
34038         * lib/wctype.in.h: Likewise.
34039
34040 2010-03-28  James Youngman  <jay@gnu.org>
34041
34042         save-cwd: don't leak a file descriptor when the caller execs.
34043         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34044         saved file descriptor.
34045         * modules/save-cwd (Depends-on): Depend on cloexec.
34046
34047 2010-03-29  Bruno Haible  <bruno@clisp.org>
34048
34049         Remove vestiges of fts-lgpl module.
34050         * lib/fts_.h: Assume GNULIB_FTS is 1.
34051         * lib/fts.c: Likewise.
34052         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34053
34054 2010-03-28  Bruno Haible  <bruno@clisp.org>
34055
34056         Fix definition of tests witness macro.
34057         * gnulib-tool (func_import): Fix definition of witness macro.
34058
34059 2010-03-28  Bruno Haible  <bruno@clisp.org>
34060
34061         Fix ioctl's protoype on glibc systems.
34062         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34063         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34064         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34065         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34066         signature. If not, arrange to replace the ioctl function.
34067         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34068         REPLACE_IOCTL.
34069         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34070         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34071         Reported by Ludovic Courtès <ludo@gnu.org>.
34072
34073 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34074
34075         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34076         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34077         made it so grep -r --include=GLOB* ... did not work.
34078
34079 2010-03-26  Jim Meyering  <meyering@redhat.com>
34080             Eric Blake  <eblake@redhat.com>
34081
34082         maint.mk: prohibit use of test's -o and -a operators
34083         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34084
34085 2010-03-28  Bruno Haible  <bruno@clisp.org>
34086
34087         Remove unused GNULIB_XYZ macro definitions.
34088         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34089         invocation.
34090
34091 2010-03-28  Bruno Haible  <bruno@clisp.org>
34092
34093         Mark privileged tests modules.
34094         * modules/idpriv-drop-tests (Status): New section.
34095         * modules/idpriv-droptemp-tests (Status): New section.
34096
34097 2010-03-28  Bruno Haible  <bruno@clisp.org>
34098
34099         Split C++ tests into separate tests modules.
34100         * modules/dirent-c++-tests: New file, extracted from
34101         modules/dirent-tests.
34102         * modules/dirent-tests: Depend on it.
34103         * modules/fcntl-h-c++-tests: New file, extracted from
34104         modules/fcntl-h-tests.
34105         * modules/fcntl-h-tests: Depend on it.
34106         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34107         * modules/glob-tests: Depend on it.
34108         * modules/iconv-h-c++-tests: New file, extracted from
34109         modules/iconv-h-tests.
34110         * modules/iconv-h-tests: Depend on it.
34111         * modules/langinfo-c++-tests: New file, extracted from
34112         modules/langinfo-tests.
34113         * modules/langinfo-tests: Depend on it.
34114         * modules/locale-c++-tests: New file, extracted from
34115         modules/locale-tests.
34116         * modules/locale-tests: Depend on it.
34117         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34118         * modules/math-tests: Depend on it.
34119         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34120         * modules/pty-tests: Depend on it.
34121         * modules/search-c++-tests: New file, extracted from
34122         modules/search-tests.
34123         * modules/search-tests: Depend on it.
34124         * modules/signal-c++-tests: New file, extracted from
34125         modules/signal-tests.
34126         * modules/signal-tests: Depend on it.
34127         * modules/spawn-c++-tests: New file, extracted from
34128         modules/spawn-tests.
34129         * modules/spawn-tests: Depend on it.
34130         * modules/stdio-c++-tests: New file, extracted from
34131         modules/stdio-tests.
34132         * modules/stdio-tests: Depend on it.
34133         * modules/stdlib-c++-tests: New file, extracted from
34134         modules/stdlib-tests.
34135         * modules/stdlib-tests: Depend on it.
34136         * modules/string-c++-tests: New file, extracted from
34137         modules/string-tests.
34138         * modules/string-tests: Depend on it.
34139         * modules/sys_ioctl-c++-tests: New file, extracted from
34140         modules/sys_ioctl-tests.
34141         * modules/sys_ioctl-tests: Depend on it.
34142         * modules/sys_select-c++-tests: New file, extracted from
34143         modules/sys_select-tests.
34144         * modules/sys_select-tests: Depend on it.
34145         * modules/sys_socket-c++-tests: New file, extracted from
34146         modules/sys_socket-tests.
34147         * modules/sys_socket-tests: Depend on it.
34148         * modules/sys_stat-c++-tests: New file, extracted from
34149         modules/sys_stat-tests.
34150         * modules/sys_stat-tests: Depend on it.
34151         * modules/sys_time-c++-tests: New file, extracted from
34152         modules/sys_time-tests.
34153         * modules/sys_time-tests: Depend on it.
34154         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34155         * modules/time-tests: Depend on it.
34156         * modules/unistd-c++-tests: New file, extracted from
34157         modules/unistd-tests.
34158         * modules/unistd-tests: Depend on it.
34159         * modules/wchar-c++-tests: New file, extracted from
34160         modules/wchar-tests.
34161         * modules/wchar-tests: Depend on it.
34162         * modules/wctype-c++-tests: New file, extracted from
34163         modules/wctype-tests.
34164         * modules/wctype-tests: Depend on it.
34165         Reported by Simon Josefsson.
34166
34167 2010-03-28  Bruno Haible  <bruno@clisp.org>
34168
34169         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34170         * gnulib-tool (func_exists_module): New function, extracted from
34171         func_verify_module.
34172         (func_verify_module): Use it.
34173         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34174         'foo' only if 'foo' exists.
34175         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34176         module.
34177
34178 2010-03-28  Bruno Haible  <bruno@clisp.org>
34179
34180         gnulib-tool: Add support for special categories of tests.
34181         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34182         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34183         (func_usage): Document them.
34184         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34185         inc_unportable_tests, inc_all_tests): New variables.
34186         (func_acceptable): Consider these variables.
34187         (func_modules_transitive_closure): Make it work when the 'Status' field
34188         consists of multiple words.
34189         (func_import): Store and restore the values of inc_cxx_tests,
34190         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34191         inc_all_tests in gnulib-comp.m4.
34192         (func_create_testdir): Set inc_all_tests to true.
34193         * doc/gnulib.texi (Extra tests modules): New section.
34194         Suggested by Jim Meyering.
34195
34196 2010-03-28  Bruno Haible  <bruno@clisp.org>
34197
34198         ansi-c++-opt: Allow turning off the C++ build by default.
34199         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34200         gl_CXX_CHOICE_DEFAULT_NO is defined.
34201         Requested by Eric Blake.
34202
34203 2010-03-28  Bruno Haible  <bruno@clisp.org>
34204
34205         unistd: Avoid #define replacements in C++ mode.
34206         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34207         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34208         setsockopt, shutdown, select): In C++, attach a warning to the function
34209         if possible, rather than #defining the symbol to a dysfunctional alias.
34210         Reported by John W. Eaton <jwe@gnu.org>.
34211
34212 2010-03-28  Bruno Haible  <bruno@clisp.org>
34213
34214         Fix link errors on mingw.
34215         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34216         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34217         $(LIBSOCKET).
34218         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34219         $(LIBSOCKET).
34220
34221 2010-03-28  Bruno Haible  <bruno@clisp.org>
34222             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34223
34224         lib-ignore: Determine different options for different compilers.
34225         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34226         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34227         Add comments.
34228         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34229         * NEWS: Mention the change.
34230
34231 2010-03-27  Bruno Haible  <bruno@clisp.org>
34232
34233         Remove unused GNULIB_XYZ macro definitions.
34234         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34235         * modules/fseek (configure.ac): Likewise.
34236         * modules/ioctl (configure.ac): Likewise.
34237         * modules/open (configure.ac): Likewise.
34238         * modules/stdlib-safer (configure.ac): Likewise.
34239
34240 2010-03-27  Bruno Haible  <bruno@clisp.org>
34241
34242         Add a remark about certain modules.
34243         * modules/malloc (Comment): New section.
34244         * modules/realloc (Comment): Likewise.
34245         * modules/sigpipe (Comment): Likewise.
34246
34247 2010-03-27  Bruno Haible  <bruno@clisp.org>
34248
34249         Resolve conflict between the two kinds of module indicators.
34250         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34251         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34252         * modules/canonicalize (configure.ac): Invoke
34253         gl_MODULE_INDICATOR_FOR_TESTS.
34254         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34255         GNULIB_XYZ.
34256         * tests/test-dirent-c++.cc: Likewise.
34257         * tests/test-dirent-safer.c: Likewise.
34258         * tests/test-dup2.c: Likewise.
34259         * tests/test-fchdir.c: Likewise.
34260         * tests/test-fcntl-h-c++.cc: Likewise.
34261         * tests/test-getopt.c: Likewise.
34262         * tests/test-getopt.h: Likewise.
34263         * tests/test-langinfo-c++.cc: Likewise.
34264         * tests/test-locale-c++.cc: Likewise.
34265         * tests/test-math-c++.cc: Likewise.
34266         * tests/test-pty-c++.cc: Likewise.
34267         * tests/test-search-c++.cc: Likewise.
34268         * tests/test-signal-c++.cc: Likewise.
34269         * tests/test-spawn-c++.cc: Likewise.
34270         * tests/test-stdio-c++.cc: Likewise.
34271         * tests/test-stdlib-c++.cc: Likewise.
34272         * tests/test-string-c++.cc: Likewise.
34273         * tests/test-sys_ioctl-c++.cc: Likewise.
34274         * tests/test-sys_select-c++.cc: Likewise.
34275         * tests/test-sys_socket-c++.cc: Likewise.
34276         * tests/test-sys_stat-c++.cc: Likewise.
34277         * tests/test-sys_time-c++.cc: Likewise.
34278         * tests/test-time-c++.cc: Likewise.
34279         * tests/test-unistd-c++.cc: Likewise.
34280         * tests/test-wchar-c++.cc: Likewise.
34281         * tests/uninorm/test-u8-nfc.c: Likewise.
34282         * tests/uninorm/test-u8-nfd.c: Likewise.
34283         * tests/uninorm/test-u8-nfkc.c: Likewise.
34284         * tests/uninorm/test-u8-nfkd.c: Likewise.
34285         * tests/uninorm/test-u16-nfc.c: Likewise.
34286         * tests/uninorm/test-u16-nfd.c: Likewise.
34287         * tests/uninorm/test-u16-nfkc.c: Likewise.
34288         * tests/uninorm/test-u16-nfkd.c: Likewise.
34289         * tests/uninorm/test-u32-nfc.c: Likewise.
34290         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34291         * tests/uninorm/test-u32-nfd.c: Likewise.
34292         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34293         * tests/uninorm/test-u32-nfkc.c: Likewise.
34294         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34295         * tests/uninorm/test-u32-nfkd.c: Likewise.
34296         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34297         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34298
34299 2010-03-27  Bruno Haible  <bruno@clisp.org>
34300
34301         Distinguish two kinds of module indicators.
34302         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34303         gl_MODULE_INDICATOR.
34304         (gl_MODULE_INDICATOR): New macro.
34305         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34306         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34307         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34308         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34309         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34310         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34311         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34312         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34313         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34314         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34315         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34316         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34318         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34319         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34321         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34322         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34323         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34324         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34325         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34326         * modules/cloexec (configure.ac): Likewise.
34327         * modules/getopt-gnu (configure.ac): Likewise.
34328         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34329         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34330         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34331         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34332
34333 2010-03-27  Bruno Haible  <bruno@clisp.org>
34334
34335         New module description field 'Comment'.
34336         * gnulib-tool: New option --extract-comment.
34337         (func_usage): Document it.
34338         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34339         (func_get_comment): New function.
34340         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34341
34342 2010-03-27  Bruno Haible  <bruno@clisp.org>
34343
34344         Addendum to 2010-02-07 commit.
34345         * gnulib-tool (func_usage): Document --extract-applicability option.
34346
34347 2010-03-27  Bruno Haible  <bruno@clisp.org>
34348
34349         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34350         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34351         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34352         rather than link errors.
34353
34354 2010-03-27  Bruno Haible  <bruno@clisp.org>
34355
34356         Avoid side effects from tests-related modules on the compilation of lib.
34357         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34358         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34359         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34360         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34361         macro.
34362         (func_import): Define a witness macro. Assign it a value that depends
34363         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34364         tests-related modules.
34365         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34366         Reported by Jim Meyering.
34367
34368 2010-03-27  Bruno Haible  <bruno@clisp.org>
34369
34370         Factorize common .m4 code.
34371         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34372         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34373         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34374         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34375         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34376         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34377         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34378         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34379         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34380         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34381         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34382         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34383         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34384         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34385         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34386         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34387         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34388         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34390         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34391         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34392         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34393         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34394         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34395         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34396         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34397         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34398         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34399         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34400         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34401         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34402         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34403
34404 2010-03-27  Bruno Haible  <bruno@clisp.org>
34405
34406         Fix a compilation error on Cygwin with g++ >= 4.3.
34407         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34408         if it is undefined or if we alias it to chmod.
34409         (lstat): Don't warn about the use of this function if it is undefined
34410         or if we alias it to stat.
34411         Reported by Simon Josefsson.
34412
34413 2010-03-27  Bruno Haible  <bruno@clisp.org>
34414
34415         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34416         * modules/getlogin (configure.ac): Update.
34417
34418         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34419         * modules/getlogin_r (configure.ac): Update.
34420
34421         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34423         * modules/inet_ntop (configure.ac): Update.
34424
34425         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34426         * modules/inet_pton (configure.ac): Update.
34427
34428         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34429         * modules/mbslen (configure.ac): Update.
34430
34431         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34432         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34433         * modules/forkpty (configure.ac): Update.
34434         * modules/openpty (configure.ac): Update.
34435
34436 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34437
34438         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34439         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34440
34441 2010-03-25  Eric Blake  <eblake@redhat.com>
34442
34443         maint: use pragma consistently across replacement headers
34444         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34445         * lib/dirent.in.h (system_header): Likewise.
34446         * lib/errno.in.h (system_header): Likewise.
34447         * lib/float.in.h (system_header): Likewise.
34448         * lib/getopt.in.h (system_header): Likewise.
34449         * lib/iconv.in.h (system_header): Likewise.
34450         * lib/inttypes.in.h (system_header): Likewise.
34451         * lib/langinfo.in.h (system_header): Likewise.
34452         * lib/locale.in.h (system_header): Likewise.
34453         * lib/math.in.h (system_header): Likewise.
34454         * lib/netdb.in.h (system_header): Likewise.
34455         * lib/netinet_in.in.h (system_header): Likewise.
34456         * lib/pty.in.h (system_header): Likewise.
34457         * lib/sched.in.h (system_header): Likewise.
34458         * lib/se-selinux.in.h (system_header): Likewise.
34459         * lib/search.in.h (system_header): Likewise.
34460         * lib/spawn.in.h (system_header): Likewise.
34461         * lib/stdarg.in.h (system_header): Likewise.
34462         * lib/stdint.in.h (system_header): Likewise.
34463         * lib/string.in.h (system_header): Likewise.
34464         * lib/strings.in.h (system_header): Likewise.
34465         * lib/sys_file.in.h (system_header): Likewise.
34466         * lib/sys_ioctl.in.h (system_header): Likewise.
34467         * lib/sys_socket.in.h (system_header): Likewise.
34468         * lib/sys_times.in.h (system_header): Likewise.
34469         * lib/sys_utsname.in.h (system_header): Likewise.
34470         * lib/sys_wait.in.h (system_header): Likewise.
34471         * lib/sysexits.in.h (system_header): Likewise.
34472         * lib/unistd.in.h (system_header): Likewise.
34473         * lib/wctype.in.h (system_header): Likewise.
34474
34475         arpa/inet: fix mingw compilation warning
34476         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34477         Reported by Matthew Bolte.
34478
34479 2010-03-25  Bruno Haible  <bruno@clisp.org>
34480
34481         Avoid collision between gnulib wrapper and libintl wrapper.
34482         * lib/printf.c (printf): Don't define if a printf wrapper is already
34483         defined in intl/printf.c.
34484         Reported by Michel Boaventura <michel@michelboaventura.com>.
34485
34486 2010-03-25  Bruno Haible  <bruno@clisp.org>
34487
34488         Use ANSI C.
34489         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34490
34491 2010-03-25  Bruno Haible  <bruno@clisp.org>
34492
34493         Minor formatting changes.
34494         * lib/acosl.c: Insert space before function argument list.
34495         * lib/argz.c: Likewise.
34496         * lib/asinl.c: Likewise.
34497         * lib/expl.c: Likewise.
34498         * lib/gen-uni-tables.c: Likewise.
34499         * lib/gettext.h: Likewise.
34500         * lib/glthread/lock.h: Likewise.
34501         * lib/tanl.c: Likewise.
34502         * lib/uniname/uniname.c: Likewise.
34503         * tests/test-idpriv-drop.c: Likewise.
34504         * tests/test-idpriv-droptemp.c: Likewise.
34505         * tests/test-lock.c: Likewise.
34506         * tests/test-tls.c: Likewise.
34507         * lib/argp-help.c: Insert space before function-like macro argument
34508         list.
34509         * lib/memcmp.c: Likewise.
34510         * tests/test-base64.c: Likewise.
34511         * lib/localename.c: Insert space before sizeof's argument list.
34512         * lib/safe-alloc.h: Likewise.
34513         * lib/file-set.h: Insert space before macro argument list.
34514         * tests/test-argp.c: Likewise.
34515         * lib/argp-namefrob.h: Insert space before function parameter list.
34516         * lib/getaddrinfo.c: Likewise.
34517         * lib/netdb.in.h: Likewise.
34518         * lib/parse-duration.h: Likewise.
34519         * lib/parse-duration.c: Likewise.
34520         * lib/poll.c: Likewise.
34521         * lib/select.c: Likewise.
34522         * lib/trim.h: Likewise.
34523         * tests/test-usleep.c: Likewise.
34524         * lib/ldexpl.c: Insert space before function parameter list and before
34525         function argument list.
34526         * lib/logl.c: Likewise.
34527         * lib/sqrtl.c: Likewise.
34528         * lib/trim.c: Likewise.
34529         * lib/cosl.c: Use GNU style indentation. Insert space before function
34530         argument list.
34531         * lib/sinl.c: Likewise.
34532         * lib/tsearch.c: Insert space after 'for'.
34533         Reported by Jim Meyering.
34534
34535 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34536
34537         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34538         config header before grepping, as it's not present before
34539         autoreconf/configure are run.  Reported by Simon Josefsson.
34540
34541 2010-03-23  Bruno Haible  <bruno@clisp.org>
34542
34543         pt_chown: Make it work with automake < 1.11.
34544         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34545         Reported by Simon Josefsson.
34546
34547 2010-03-23  Bruno Haible  <bruno@clisp.org>
34548
34549         pt_chown: Don't depend on GPLed modules.
34550         * lib/pt_chown.c: Don't include idpriv.h.
34551         (main): Don't drop privileges.
34552         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34553         Reported by Simon Josefsson.
34554
34555 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34556
34557         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34558         suggestions from karl@freefriends.org (Karl Berry).
34559
34560 2010-03-22  Eric Blake  <eblake@redhat.com>
34561
34562         gethostname: further tweaks
34563         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34564         are overriding gethostname.
34565         Suggested by Bruno Haible.
34566
34567 2010-03-21  Bruno Haible  <bruno@clisp.org>
34568
34569         Fix comments.
34570         * lib/forkpty.c (rpl_forkpty): Fix comment.
34571         * lib/openpty.c (rpl_openpty): Likewise.
34572         Reported by Eric Blake.
34573
34574 2010-03-22  Eric Blake  <eblake@redhat.com>
34575
34576         gethostname: fix build on mingw
34577         * lib/unistd.in.h (includes): Work around fact that mingw
34578         <winsock2.h> re-includes <unistd.h>, by avoiding any
34579         redeclarations if we are being included by <winsock2.h>.
34580         Reported by Matthias Bolte.
34581
34582 2010-03-21  Bruno Haible  <bruno@clisp.org>
34583
34584         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34585         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34586         modifications.
34587         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34588         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34589         provide the replacement.
34590         * modules/forkpty (Depends-on): Add openpty, login_tty.
34591         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34592         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34593         * doc/glibc-functions/forkpty.texi: More supported platforms.
34594         * config/srclist.txt: Add forkpty.c (commented).
34595
34596 2010-03-21  Bruno Haible  <bruno@clisp.org>
34597
34598         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34599         (Makefile.am): Verify that PTY_LIB is defined.
34600
34601         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34602
34603 2010-03-21  Bruno Haible  <bruno@clisp.org>
34604
34605         Tests for module 'login_tty'.
34606         * modules/login_tty-tests: New file.
34607         * tests/test-login_tty.c: New file.
34608
34609         New module 'login_tty'.
34610         * lib/login_tty.c: New file.
34611         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34612         * modules/login_tty: New file.
34613         * doc/glibc-functions/login_tty.texi: Mention the new module.
34614
34615 2010-03-21  Bruno Haible  <bruno@clisp.org>
34616
34617         login_tty: Documentation.
34618         * doc/glibc-functions/login_tty.texi: New file.
34619         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34620
34621 2010-03-21  Bruno Haible  <bruno@clisp.org>
34622
34623         pty: Consistent macro naming.
34624         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34625         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34626         * modules/pty (configure.ac): Update.
34627
34628 2010-03-21  Bruno Haible  <bruno@clisp.org>
34629
34630         Tests for openpty: Make stricter.
34631         * tests/test-openpty.c (main): Add test of canonical processing and
34632         erase.
34633         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34634
34635         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34636         * lib/openpty.c (openpty): New replacement function.
34637         * lib/pty.in.h: Include <termios.h>.
34638         (openpty): Update declaration. Add comments.
34639         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34640         is not declared, arrange to provide the replacement. Check for _getpty
34641         and posix_openpt.
34642         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34643         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34644         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34645         * modules/pty-tests (test_pty_c___LDADD): New variable.
34646         * doc/glibc-functions/openpty.texi: More supported platforms.
34647
34648 2010-03-21  Bruno Haible  <bruno@clisp.org>
34649
34650         setenv: Tweaks.
34651         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34652         the test program.
34653         * doc/posix-functions/setenv.texi: Update platforms list.
34654
34655 2010-03-21  Bruno Haible  <bruno@clisp.org>
34656
34657         New module 'unlockpt'.
34658         * lib/unlockpt.c: New file, from glibc with modifications.
34659         * m4/unlockpt.m4: New file.
34660         * modules/unlockpt: New file.
34661         * lib/stdlib.in.h (unlockpt): New declaration.
34662         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34663         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34664         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34665         HAVE_UNLOCKPT.
34666         * doc/posix-functions/unlockpt.texi: Mention the new module.
34667         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34668         * config/srclist.txt: Add unlockpt.c (commented).
34669
34670 2010-03-21  Jim Meyering  <meyering@redhat.com>
34671
34672         maint.mk: prohibit inclusion of "intprops.h" without use
34673         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34674
34675 2010-03-21  Bruno Haible  <bruno@clisp.org>
34676
34677         New module 'grantpt'.
34678         * lib/grantpt.c: New file, from glibc with modifications.
34679         * m4/grantpt.m4: New file.
34680         * modules/grantpt: New file.
34681         * lib/stdlib.in.h (grantpt): New declaration.
34682         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34683         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34684         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34685         HAVE_GRANTPT.
34686         * doc/posix-functions/grantpt.texi: Mention the new module.
34687         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34688         * config/srclist.txt: Add grantpt.c (commented).
34689
34690 2010-03-21  Bruno Haible  <bruno@clisp.org>
34691
34692         New module 'pt_chown'.
34693         * lib/pt_chown.c: New file, from glibc with modifications.
34694         * lib/pty-private.h: New file, from glibc with modifications.
34695         * modules/pt_chown: New file.
34696         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34697
34698 2010-03-21  Bruno Haible  <bruno@clisp.org>
34699
34700         Tests for module 'ptsname'.
34701         * modules/ptsname-tests: New file.
34702         * tests/test-ptsname.c: New file.
34703
34704         New module 'ptsname'.
34705         * lib/ptsname.c: New file, from glibc with modifications.
34706         * m4/ptsname.m4: New file.
34707         * modules/ptsname: New file.
34708         * lib/stdlib.in.h (ptsname): New declaration.
34709         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34710         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34711         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34712         HAVE_PTSNAME.
34713         * doc/posix-functions/ptsname.texi: Mention the new module.
34714         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34715         * config/srclist.txt: Add ptsname.c (commented).
34716
34717 2010-03-21  Bruno Haible  <bruno@clisp.org>
34718
34719         Tests for module 'ttyname_r'.
34720         * modules/ttyname_r-tests: New file.
34721         * tests/test-ttyname_r.c: New file.
34722
34723         New module 'ttyname_r'.
34724         * lib/ttyname_r.c: New file.
34725         * m4/ttyname_r.m4: New file.
34726         * modules/ttyname_r: New file.
34727         * lib/unistd.in.h (ttyname_r): New declaration.
34728         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34729         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34730         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34731         HAVE_TTYNAME_R.
34732         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34733         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34734
34735 2010-03-20  Bruno Haible  <bruno@clisp.org>
34736
34737         signal: Undefine macro definitions in C++ mode.
34738         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34739         sigfillset): Undefine macro definitions from the system header in C++
34740         mode.
34741         Reported by John W. Eaton <jwe@gnu.org>.
34742
34743 2010-03-20  Bruno Haible  <bruno@clisp.org>
34744
34745         Ensure no #include statements inside extern "C" { ... }.
34746         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34747         contain #include statements.
34748         * lib/time.in.h: Likewise.
34749
34750 2010-03-20  Bruno Haible  <bruno@clisp.org>
34751
34752         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34753         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34754         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34755         Reported by John W. Eaton <jwe@gnu.org>.
34756
34757 2010-03-20  Bruno Haible  <bruno@clisp.org>
34758
34759         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34760         Reported by Jim Meyering.
34761
34762 2010-03-20  Bruno Haible  <bruno@clisp.org>
34763
34764         pipe: Set errno upon failure.
34765         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34766         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34767         errno value in error message.
34768
34769 2010-03-20  Bruno Haible  <bruno@clisp.org>
34770             Jim Meyering  <meyering@redhat.com>
34771
34772         lchown: Avoid "unused variable" warning.
34773         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34774
34775 2010-03-20  Bruno Haible  <bruno@clisp.org>
34776
34777         Work around unlink() bug on MacOS X 10.5.6.
34778         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34779         attempting to unlink a parent directory.
34780         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34781         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34782         activate for the replacement function.
34783         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34784
34785 2010-03-20  Bruno Haible  <bruno@clisp.org>
34786
34787         Fix link errors on Solaris 8.
34788         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34789         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34790
34791 2010-03-19  Jim Meyering  <meyering@redhat.com>
34792
34793         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34794         The _LIBC implementation of build_range_exp correctly honors the
34795         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34796         However, the non-_LIBC implementation would ignore that syntax-bit
34797         flag and return REG_ERANGE unconditionally.
34798         This change makes it honor that flag.
34799         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34800         Make two pointer parameters "const".
34801         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34802         (parse_bracket_exp): Update caller.
34803
34804         regex.m4: correct the reversed range endpoint ([b-a]) test
34805         * m4/regex.m4: When requiring that [b-a] evoke failure,
34806         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34807         test pass once again for x86-based systems.
34808
34809 2010-03-19  Bruno Haible  <bruno@clisp.org>
34810
34811         scandir: Fix link error on Solaris 8.
34812         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34813         macros.
34814
34815 2010-03-19  Bruno Haible  <bruno@clisp.org>
34816
34817         getusershell: Fix documentation.
34818         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34819         module.
34820         * doc/glibc-functions/setusershell.texi: Likewise.
34821
34822         getusershell: Provide declaration, missing on Solaris 9.
34823         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34824         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34825         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34826         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34828         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34829         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34830         HAVE_GETUSERSHELL.
34831         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34832
34833 2010-03-19  Bruno Haible  <bruno@clisp.org>
34834
34835         wctype: Provide iswblank function.
34836         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34837         exists and is fine.
34838         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34839         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34840         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34841         * doc/posix-functions/iswblank.texi: Update.
34842
34843 2010-03-19  Bruno Haible  <bruno@clisp.org>
34844
34845         Tests of module 'pty' in C++ mode.
34846         * modules/pty-tests: New file.
34847         * tests/test-pty-c++.cc: New file.
34848         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34849
34850 2010-03-19  Eric Blake  <eblake@redhat.com>
34851
34852         logb: fix documentation
34853         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34854         1.5 declaration bug.
34855
34856         forkpty, openpty: prefer glibc's const-safe prototype
34857         * lib/forkpty.c (rpl_forkpty): New file.
34858         * lib/openpty.c (rpl_openpty): Likewise.
34859         * modules/forkpty (Files): Distribute it.
34860         * modules/openpty (Files): Likewise.
34861         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34862         check...
34863         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34864         replacement for for non-const BSD signature.
34865         * modules/pty (Makefile.am): Substitute witnesses.
34866         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34867         * tests/test-forkpty.c: Update signature check.
34868         * tests/test-openpty.c: Likewise.
34869         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34870         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34871
34872         forkpty, openpty: split functions into new modules
34873         * modules/pty (Makefile.am): Substitute new witnesses.
34874         (Libraries): Move library detection...
34875         * modules/forkpty: ...into new module.
34876         * modules/openpty: Another new module.
34877         * modules/pty-tests: Rename and split...
34878         * modules/forkpty-tests: ...to this...
34879         * modules/openpty-tests: ...and this.
34880         * tests/test-pty.c: Rename and split...
34881         * tests/test-forkpty.c: ...to this...
34882         * tests/test-openpty.c: ...and this.
34883         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34884         (gl_PTY): Split library searching...
34885         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34886         (gl_FORKPTY, gl_OPENPTY): New macros.
34887         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34888         * NEWS: Mention the split.
34889         * MODULES.html.sh (Misc): Document the modules.
34890         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34891         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34892
34893         pty: improve replacement header
34894         * lib/pty.in.h: New file.
34895         * modules/pty (Files): Ship it.
34896         (Makefile.am): Always build replacement.
34897         * m4/pty.m4: Rename...
34898         * m4/pty_h.m4: ...to this.
34899         (gl_PTY): Modernize setting of witness macros; update check of
34900         forkpty to take proper advantage of cache.
34901         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34902
34903         getopt: avoid compiler warning
34904         * lib/getopt.c (attribute_hidden): Remove unused macro.
34905
34906 2010-03-18  Bruno Haible  <bruno@clisp.org>
34907
34908         Fix link errors on Solaris 8.
34909         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34910         * modules/search-tests (test_search_c___LDADD): Likewise.
34911         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34912         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34913         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34914         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34915         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34916         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34917         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34918
34919 2010-03-18  Bruno Haible  <bruno@clisp.org>
34920
34921         Fix bug introduced on 2010-03-14.
34922         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34923         (gl_SPAWN_H): Require it.
34924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34925         Reported by Simon Josefsson.
34926
34927 2010-03-18  Bruno Haible  <bruno@clisp.org>
34928
34929         Fix typo introduced on 2009-12-31.
34930         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34931         posix_spawn_file_actions_adddup2.
34932
34933 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34934         and Eric Blake  <eblake@redhat.com>
34935
34936         test-vc-list-files-git: make more robust
34937         * tests/test-vc-list-files-git.sh: Unset problematic environment
34938         variables.  Chain commands together.
34939
34940 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34941
34942         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34943         `AC_CHECK_DECL' invocation.
34944
34945 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34946
34947         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34948         appears before executable statements. Suggested by Petr Sumbera
34949         <Petr.Sumbera@Sun.COM>.
34950
34951 2010-03-14  Bruno Haible  <bruno@clisp.org>
34952
34953         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34954         portability problems. Instead use a simpler test.
34955         (main): Check that invalid arguments are rejected only on Linux.
34956
34957 2010-03-14  Bruno Haible  <bruno@clisp.org>
34958
34959         Fix bug introduced on 2009-12-31.
34960         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34961         gl_PREREQ_SYS_H_WINSOCK2 always.
34962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34963         SYS_SOCKET_H variable.
34964         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34965         Update comments.
34966         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34967         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34968         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34969         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34970         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34971
34972 2010-03-14  Bruno Haible  <bruno@clisp.org>
34973
34974         Fix values returned by sinl, cosl.
34975         * lib/trigl.h: Add specification comments.
34976         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34977         that combines the values from the precomputed table with the values of
34978         the Chebyshev polynomials.
34979
34980 2010-03-14  Bruno Haible  <bruno@clisp.org>
34981
34982         Fix compilation error when modules 'posix_spawn[p]' are not used.
34983         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34985
34986 2010-03-14  Bruno Haible  <bruno@clisp.org>
34987
34988         Fix compilation error on mingw when module 'time_r' is not used.
34989         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34990         is 1.
34991         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34992         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34993         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34994         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34995
34996 2010-03-14  Bruno Haible  <bruno@clisp.org>
34997
34998         Fix compilation error with Sun C.
34999         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35000         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35001         instead of GCC specific ULONG_LONG_MAX.
35002         * lib/xstrtoll.c: Likewise.
35003         * lib/xstrtoull.c: Likewise.
35004
35005 2010-03-13  Bruno Haible  <bruno@clisp.org>
35006
35007         Allow the user to disable C++ code and tests.
35008         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35009         (gl_PROG_ANSI_CXX): Require it.
35010
35011 2010-03-13  Bruno Haible  <bruno@clisp.org>
35012
35013         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35014         cases.
35015
35016 2010-03-13  Bruno Haible  <bruno@clisp.org>
35017
35018         Test that gnulib does not break the standard C++ headers.
35019         * tests/test-locale-c++2.cc: New file.
35020         * modules/locale-tests (Files): Add it.
35021         (Makefile.am): Compile it for test-locale-c++.
35022         * tests/test-math-c++2.cc: New file.
35023         * modules/math-tests (Files): Add it.
35024         (Makefile.am): Compile it for test-math-c++.
35025         * tests/test-signal-c++2.cc: New file.
35026         * modules/signal-tests (Files): Add it.
35027         (Makefile.am): Compile it for test-signal-c++.
35028         * tests/test-stdio-c++2.cc: New file.
35029         * modules/stdio-tests (Files): Add it.
35030         (Makefile.am): Compile it for test-stdio-c++.
35031         * tests/test-stdlib-c++2.cc: New file.
35032         * modules/stdlib-tests (Files): Add it.
35033         (Makefile.am): Compile it for test-stdlib-c++.
35034         * tests/test-string-c++2.cc: New file.
35035         * modules/string-tests (Files): Add it.
35036         (Makefile.am): Compile it for test-string-c++.
35037         * tests/test-time-c++2.cc: New file.
35038         * modules/time-tests (Files): Add it.
35039         (Makefile.am): Compile it for test-time-c++.
35040         Reported by John W. Eaton <jwe@gnu.org>.
35041
35042 2010-03-13  Bruno Haible  <bruno@clisp.org>
35043
35044         * gnulib-tool (func_usage): Clarify which options are available for
35045         --create-testdir and --create-megatestdir.
35046
35047 2010-03-13  Bruno Haible  <bruno@clisp.org>
35048
35049         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35050         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35051         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35052         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35053         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35054         when appropriate.
35055         Reported by Jim Meyering.
35056
35057 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35058
35059         * gnulib-tool (func_import): Explain origin of code.
35060
35061 2010-03-12  Bruno Haible  <bruno@clisp.org>
35062
35063         Fix problem with automake's definition of CXXLINK.
35064         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35065         Reported by Simon Josefsson and Ludovic Courtès.
35066
35067 2010-03-12  Bruno Haible  <bruno@clisp.org>
35068
35069         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35070         stable releases.
35071
35072 2010-03-11  Bruno Haible  <bruno@clisp.org>
35073
35074         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35075         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35076         whether the system provides one variant or multiple variants of the
35077         function.
35078         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35079         C++ compilers.
35080         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35081         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35082         Reported by Jim Meyering.
35083
35084 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35085
35086         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35087
35088 2010-03-08  Bruno Haible  <bruno@clisp.org>
35089
35090         gnulib-tool: Add support for --libtool in --create-testdir.
35091         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35092         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35093
35094 2010-03-08  Eric Blake  <eblake@redhat.com>
35095
35096         gnulib-tool.texi: mention possibility of git submodule
35097         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35098         submodules.
35099         * doc/.gitignore: Ignore another generated file.
35100
35101 2010-03-08  Karl Berry  <karl@gnu.org>
35102
35103         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35104         of committing gnulib files while skipping others.
35105
35106 2010-03-07  Bruno Haible  <bruno@clisp.org>
35107
35108         Tests of module 'wctype' in C++ mode.
35109         * tests/test-wctype-c++.cc: New file.
35110         * modules/wctype-tests (Files): Add it and tests/signature.h.
35111         (Depends-on): Add ansi-c++-opt.
35112         (Makefile.am): Arrange to compile and run test-wctype-c++.
35113
35114         Tests of module 'wchar' in C++ mode.
35115         * tests/test-wchar-c++.cc: New file.
35116         * modules/wchar-tests (Files): Add it and tests/signature.h.
35117         (Depends-on): Add ansi-c++-opt.
35118         (Makefile.am): Arrange to compile and run test-wchar-c++.
35119         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35120         gl_MODULE_INDICATOR.
35121
35122         Tests of module 'unistd' in C++ mode.
35123         * tests/test-unistd-c++.cc: New file.
35124         * modules/unistd-tests (Files): Add it and tests/signature.h.
35125         (Depends-on): Add ansi-c++-opt.
35126         (Makefile.am): Arrange to compile and run test-unistd-c++.
35127         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35128         gl_MODULE_INDICATOR.
35129
35130         Tests of module 'time' in C++ mode.
35131         * tests/test-time-c++.cc: New file.
35132         * modules/time-tests (Files): Add it and tests/signature.h.
35133         (Depends-on): Add ansi-c++-opt.
35134         (Makefile.am): Arrange to compile and run test-time-c++.
35135         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35136
35137         Tests of module 'sys_time' in C++ mode.
35138         * tests/test-sys_time-c++.cc: New file.
35139         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35140         (Depends-on): Add ansi-c++-opt.
35141         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35142         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35143         gl_MODULE_INDICATOR.
35144
35145         Tests of module 'sys_stat' in C++ mode.
35146         * tests/test-sys_stat-c++.cc: New file.
35147         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35148         (Depends-on): Add ansi-c++-opt.
35149         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35150         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35151         gl_MODULE_INDICATOR.
35152
35153         Tests of module 'sys_socket' in C++ mode.
35154         * tests/test-sys_socket-c++.cc: New file.
35155         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35156         (Depends-on): Add ansi-c++-opt.
35157         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35158         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35159         gl_MODULE_INDICATOR.
35160
35161         Tests of module 'sys_select' in C++ mode.
35162         * tests/test-sys_select-c++.cc: New file.
35163         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35164         (Depends-on): Add ansi-c++-opt.
35165         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35166         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35167         gl_MODULE_INDICATOR.
35168
35169         Tests of module 'sys_ioctl' in C++ mode.
35170         * tests/test-sys_ioctl-c++.cc: New file.
35171         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35172         (Depends-on): Add ansi-c++-opt.
35173         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35174         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35175         gl_MODULE_INDICATOR.
35176
35177         Tests of module 'string' in C++ mode.
35178         * tests/test-string-c++.cc: New file.
35179         * modules/string-tests (Files): Add it and tests/signature.h.
35180         (Depends-on): Add ansi-c++-opt.
35181         (Makefile.am): Arrange to compile and run test-string-c++.
35182         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35183         gl_MODULE_INDICATOR.
35184
35185         Tests of module 'stdlib' in C++ mode.
35186         * tests/test-stdlib-c++.cc: New file.
35187         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35188         (Depends-on): Add ansi-c++-opt.
35189         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35190         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35191         gl_MODULE_INDICATOR.
35192
35193         Tests of module 'stdio' in C++ mode.
35194         * tests/test-stdio-c++.cc: New file.
35195         * modules/stdio-tests (Files): Add it and tests/signature.h.
35196         (Depends-on): Add ansi-c++-opt.
35197         (Makefile.am): Arrange to compile and run test-stdio-c++.
35198         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35199         gl_MODULE_INDICATOR.
35200
35201         Tests of module 'spawn' in C++ mode.
35202         * tests/test-spawn-c++.cc: New file.
35203         * modules/spawn-tests (Files): Add it and tests/signature.h.
35204         (Depends-on): Add ansi-c++-opt.
35205         (Makefile.am): Arrange to compile and run test-spawn-c++.
35206         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35207         gl_MODULE_INDICATOR.
35208
35209         Tests of module 'signal' in C++ mode.
35210         * tests/test-signal-c++.cc: New file.
35211         * modules/signal-tests (Files): Add it and tests/signature.h.
35212         (Depends-on): Add ansi-c++-opt.
35213         (Makefile.am): Arrange to compile and run test-signal-c++.
35214         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35215         gl_MODULE_INDICATOR.
35216
35217         Tests of module 'search' in C++ mode.
35218         * tests/test-search-c++.cc: New file.
35219         * modules/search-tests (Files): Add it and tests/signature.h.
35220         (Depends-on): Add ansi-c++-opt.
35221         (Makefile.am): Arrange to compile and run test-search-c++.
35222         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35223         gl_MODULE_INDICATOR.
35224
35225         Tests of module 'math' in C++ mode.
35226         * tests/test-math-c++.cc: New file.
35227         * modules/math-tests (Files): Add it and tests/signature.h.
35228         (Depends-on): Add ansi-c++-opt.
35229         (Makefile.am): Arrange to compile and run test-math-c++.
35230         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35231
35232         Tests of module 'locale' in C++ mode.
35233         * tests/test-locale-c++.cc: New file.
35234         * modules/locale-tests (Files): Add it and tests/signature.h.
35235         (Depends-on): Add ansi-c++-opt.
35236         (Makefile.am): Arrange to compile and run test-locale-c++.
35237         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35238         gl_MODULE_INDICATOR.
35239
35240         Tests of module 'langinfo' in C++ mode.
35241         * tests/test-langinfo-c++.cc: New file.
35242         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35243         (Depends-on): Add ansi-c++-opt.
35244         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35245         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35246         gl_MODULE_INDICATOR.
35247
35248         Tests of module 'iconv-h' in C++ mode.
35249         * tests/test-iconv-h-c++.cc: New file.
35250         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35251         (Depends-on): Add ansi-c++-opt.
35252         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35253
35254         Tests of module 'glob' in C++ mode.
35255         * tests/test-glob-c++.cc: New file.
35256         * modules/glob-tests (Files): Add it.
35257         (Depends-on): Add ansi-c++-opt.
35258         (Makefile.am): Arrange to compile and run test-glob-c++.
35259
35260         Tests of module 'fcntl-h' in C++ mode.
35261         * tests/test-fcntl-h-c++.cc: New file.
35262         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35263         (Depends-on): Add ansi-c++-opt.
35264         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35265         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35266         gl_MODULE_INDICATOR.
35267
35268         Tests of module 'dirent' in C++ mode.
35269         * tests/test-dirent-c++.cc: New file.
35270         * modules/dirent-tests (Files): Add it and tests/signature.h.
35271         (Depends-on): Add ansi-c++-opt.
35272         (Makefile.am): Arrange to compile and run test-dirent-c++.
35273         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35274         gl_MODULE_INDICATOR.
35275
35276         New module 'ansi-c++-opt'.
35277         * modules/ansi-c++-opt: New file.
35278         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35279
35280         Document C++ namespace mode.
35281         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35282
35283         wctype: Avoid #define replacements in C++ mode.
35284         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35285         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35286         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35287         In C++, define a namespaced alias symbol.
35288         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35289         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35290         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35291         rule.
35292
35293         wchar: Avoid #define replacements in C++ mode.
35294         * lib/wchar.in.h: Include c++defs.h.
35295         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35296         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35297         symbol.
35298         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35299         * modules/wchar (Depends-on): Add c++defs.
35300         (Makefile.am): Update wchar.h rule.
35301
35302         unistd: Avoid #define replacements in C++ mode.
35303         * lib/unistd.in.h: Include c++defs.h.
35304         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35305         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35306         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35307         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35308         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35309         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35310         symbol.
35311         (environ): Update.
35312         * modules/unistd (Depends-on): Add c++defs.
35313         (Makefile.am): Update unistd.h rule.
35314
35315         time: Avoid #define replacements in C++ mode.
35316         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35317         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35318         define a namespaced alias symbol.
35319         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35320         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35321         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35322         * modules/time (Depends-on): Add c++defs, warn-on-use.
35323         (Makefile.am): Update time.h rule.
35324         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35325         * modules/nanosleep (configure.ac): Likewise.
35326         * modules/strptime (configure.ac): Likewise.
35327         * modules/timegm (configure.ac): Likewise.
35328
35329         sys_time: Avoid #define replacements in C++ mode.
35330         * lib/sys_time.in.h: Include c++defs.h.
35331         (gettimeofday): In C++, define a namespaced alias symbol.
35332         * modules/sys_time (Depends-on): Add c++defs.
35333         (Makefile.am): Update sys/time.h rule.
35334
35335         sys_stat: Avoid #define replacements in C++ mode.
35336         * lib/sys_stat.in.h: Include c++defs.h.
35337         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35338         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35339         namespaced alias symbol.
35340         In C++, define a namespaced alias symbol.
35341         * modules/sys_stat (Depends-on): Add c++defs.
35342         (Makefile.am): Update sys/stat.h rule.
35343
35344         sys_socket: Avoid #define replacements in C++ mode.
35345         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35346         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35347         definitions also when the system has a <sys/socket.h>.
35348         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35349         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35350         In C++, define a namespaced alias symbol.
35351         * modules/sys_socket (Depends-on): Add c++defs.
35352         (Makefile.am): Update sys/socket.h rule.
35353
35354         sys_select: Avoid #define replacements in C++ mode.
35355         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35356         definitions also when the system has a <sys/select.h>.
35357         (select): In C++, define a namespaced alias symbol.
35358         * modules/sys_select (Depends-on): Add c++defs.
35359         (Makefile.am): Update sys/select.h rule.
35360
35361         sys_ioctl: Avoid #define replacements in C++ mode.
35362         * lib/sys_ioctl.in.h: Include c++defs.h.
35363         (ioctl): In C++, define a namespaced alias symbol.
35364         * modules/sys_ioctl (Depends-on): Add c++defs.
35365         (Makefile.am): Update sys/ioctl.h rule.
35366
35367         string: Avoid #define replacements in C++ mode.
35368         * lib/string.in.h: Include c++defs.h.
35369         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35370         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35371         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35372         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35373         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35374         * modules/string (Depends-on): Add c++defs.
35375         (Makefile.am): Update string.h rule.
35376
35377         stdlib: Avoid #define replacements in C++ mode.
35378         * lib/stdlib.in.h: Include c++defs.h.
35379         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35380         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35381         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35382         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35383         symbol.
35384         * modules/stdlib (Depends-on): Add c++defs.
35385         (Makefile.am): Update stdlib.h rule.
35386
35387         stdio: Avoid #define replacements in C++ mode.
35388         * lib/stdio.in.h: Include c++defs.h.
35389         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35390         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35391         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35392         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35393         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35394         namespaced alias symbol.
35395         * modules/stdio (Depends-on): Add c++defs.
35396         (Makefile.am): Update stdio.h rule.
35397
35398         spawn: Avoid #define replacements in C++ mode.
35399         * lib/spawn.in.h: Include c++defs.h.
35400         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35401         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35402         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35403         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35404         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35405         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35406         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35407         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35408         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35409         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35410         In C++, define a namespaced alias symbol.
35411         * modules/spawn (Depends-on): Add c++defs.
35412         (Makefile.am): Update spawn.h rule.
35413
35414         signal: Avoid #define replacements in C++ mode.
35415         * lib/signal.in.h: Include c++defs.h.
35416         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35417         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35418         namespaced alias symbol.
35419         * modules/signal (Depends-on): Add c++defs.
35420         (Makefile.am): Update signal.h rule.
35421
35422         search: Avoid #define replacements in C++ mode.
35423         * lib/search.in.h: Include c++defs.h.
35424         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35425         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35426         symbol.
35427         * modules/search (Depends-on): Add c++defs.
35428         (Makefile.am): Update search.h rule.
35429
35430         math: Avoid #define replacements in C++ mode.
35431         * lib/math.in.h: Include c++defs.h.
35432         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35433         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35434         trunc, truncl): In C++, define a namespaced alias symbol.
35435         * modules/math (Depends-on): Add c++defs.
35436         (Makefile.am): Update math.h rule.
35437
35438         locale: Avoid #define replacements in C++ mode.
35439         * lib/locale.in.h: Include c++defs.h.
35440         (duplocale): In C++, define a namespaced alias symbol.
35441         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35442         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35443         * modules/locale (Depends-on): Add c++defs.
35444         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35445
35446         langinfo: Avoid #define replacements in C++ mode.
35447         * lib/langinfo.in.h: Include c++defs.h.
35448         (nl_langinfo): In C++, define a namespaced alias symbol.
35449         * modules/langinfo (Depends-on): Add c++defs.
35450         (Makefile.am): Update langinfo.h rule.
35451
35452         iconv-h: Avoid #define replacements in C++ mode.
35453         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35454         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35455         symbol.
35456         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35457         whenever iconv is present.
35458         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35459         (Makefile.am): Update iconv.h rule.
35460
35461         glob: Avoid #define replacements in C++ mode.
35462         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35463         (_gl_glob_errfunc_fn): New type.
35464         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35465         symbol.
35466         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35467         (Makefile.am): Update glob.h rule.
35468
35469         fcntl-h: Avoid #define replacements in C++ mode.
35470         * lib/fcntl.in.h: Include c++defs.h.
35471         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35472         * modules/fcntl-h (Depends-on): Add c++defs.
35473         (Makefile.am): Update fcntl.h rule.
35474
35475         dirent: Avoid #define replacements in C++ mode.
35476         * lib/dirent.in.h: Include c++defs.h.
35477         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35478         namespaced alias symbol.
35479         (dirfd): Update declaration.
35480         * modules/dirent (Depends-on): Add c++defs.
35481         (Makefile.am): Update dirent.h rule.
35482
35483         ctype: Make it usable in C++ code.
35484         * lib/ctype.in.h: Include c++defs.h.
35485         (isblank): Declare as extern "C".
35486         * modules/ctype (Depends-on): Add c++defs.
35487         (Makefile.am): Update ctype.h rule.
35488
35489         New module 'c++defs'.
35490         * modules/c++defs: New file.
35491         * build-aux/c++defs.h: New file.
35492         Reported by John W. Eaton <jwe@gnu.org>.
35493
35494 2010-03-07  Bruno Haible  <bruno@clisp.org>
35495
35496         logb: Provide missing declaration for Cygwin.
35497         * lib/math.in.h (logb): New declaration.
35498         * m4/logb.m4: New file.
35499         * modules/logb (Files): Add m4/logb.m4.
35500         (Depends-on): Add math.
35501         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35502         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35504         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35505         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35506
35507 2010-03-07  Bruno Haible  <bruno@clisp.org>
35508
35509         Fix test-cond link error.
35510         * tests/test-cond.c: Include <stdio.h>.
35511
35512 2010-03-07  Bruno Haible  <bruno@clisp.org>
35513
35514         Fix test-dirent-safer link error.
35515         * modules/dirent-safer-tests (Makefile.am): Define
35516         test_dirent_safer_LDADD.
35517
35518 2010-03-07  Bruno Haible  <bruno@clisp.org>
35519
35520         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35521         among default module list.
35522
35523 2010-03-07  Bruno Haible  <bruno@clisp.org>
35524
35525         Fix link error on platforms with GNU libiconv.
35526         * modules/unistr/u8-strcoll-tests (Makefile): Define
35527         test_u8_strcoll_LDADD.
35528         * modules/unistr/u16-strcoll-tests (Makefile): Define
35529         test_u16_strcoll_LDADD.
35530         * modules/unistr/u32-strcoll-tests (Makefile): Define
35531         test_u32_strcoll_LDADD.
35532
35533 2010-03-07  Bruno Haible  <bruno@clisp.org>
35534
35535         Use POSIX declarations for socket functions.
35536         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35537         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35538         rpl_sendto): Change declaration to match POSIX.
35539         * lib/connect.c (rpl_connect): Likewise.
35540         * lib/accept.c (rpl_accept): Likewise.
35541         * lib/bind.c (rpl_bind): Likewise.
35542         * lib/getpeername.c (rpl_getpeername): Likewise.
35543         * lib/getsockname.c (rpl_getsockname): Likewise.
35544         * lib/recv.c (rpl_recv): Likewise.
35545         * lib/send.c (rpl_send): Likewise.
35546         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35547         * lib/sendto.c (rpl_sendto): Likewise.
35548
35549 2010-03-06  Bruno Haible  <bruno@clisp.org>
35550
35551         Clarify access, euidaccess, faccessat.
35552         * doc/posix-functions/faccessat.texi: Mention security problem under
35553         "Other problems", not "Portability problems".
35554         * doc/posix-functions/access.texi: Likewise. Mention a related security
35555         problem.
35556         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35557         * lib/euidaccess.c: Add comments about platforms.
35558         * lib/unistd.in.h (access, euidaccess): Add warnings.
35559
35560 2010-03-07  Bruno Haible  <bruno@clisp.org>
35561
35562         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35563         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35564         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35565         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35566         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35567         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35568         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35569         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35570         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35571         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35572         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35573         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35574         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35575         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35576         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35577         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35578         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35579         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35580         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35581         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35582         Likewise.
35583         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35584         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35585         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35586         Likewise.
35587         * tests/test-spawn.c (main): Make it work when
35588         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35589
35590 2010-03-07  Bruno Haible  <bruno@clisp.org>
35591
35592         Fix incorrect Makefile.am generation in German locale.
35593         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35594         Execute sed command with character range in C locale.
35595
35596 2010-03-06  Bruno Haible  <bruno@clisp.org>
35597
35598         Tests for module 'iconv-h'.
35599         * modules/iconv-h-tests: New file.
35600         * tests/test-iconv-h.c: New file.
35601
35602         New module 'iconv-h'.
35603         * modules/iconv-h: New file.
35604         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35605         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35606         (configure.ac): Remove gl_ICONV_H.
35607         (Makefile.am): Remove rule for iconv.h.
35608
35609 2010-03-06  Bruno Haible  <bruno@clisp.org>
35610
35611         More consistent naming of *.m4 files.
35612         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35613         * modules/wctype (Files): Update.
35614
35615         More consistent naming of *.m4 files.
35616         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35617         * modules/wchar (Files): Update.
35618
35619 2010-03-06  Jim Meyering  <meyering@redhat.com>
35620
35621         euidaccess: relax license to LGPLv2+
35622         * modules/euidaccess (License): Relax to LGPLv2+.
35623
35624 2010-03-06  Bruno Haible  <bruno@clisp.org>
35625
35626         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35627         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35628         (Makefile.am): Augment lib_SOURCES instead.
35629
35630 2010-03-04  Jim Meyering  <meyering@redhat.com>
35631
35632         utime: remove obsolete module
35633         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35634         unnecessary for years, and has been marked as obsolete for 10 months.
35635         * modules/utime: Remove file.
35636         * lib/utime.c: Remove file.
35637         * m4/utime.m4: Remove file.
35638         * m4/utimes-null.m4: Remove file.
35639         * doc/posix-functions/utime.texi (utime): Remove reference to
35640         the module.  Move the sole "fixed by gnulib" item into the
35641         "problems not fixed by Gnulib" list.
35642         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35643
35644 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35645
35646         * modules/exit (License): Relax license to LGPLv2+.
35647         (Status): Mark as obsolete.
35648         * NEWS: Mention deprecated 'exit' module.
35649         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35650         of now obsolete 'exit'.
35651
35652 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35653
35654         fts-lgpl: remove unused module
35655         * modules/fts-lgpl: Remove.
35656         * MODULES.html.sh (func_all_modules): Adjust.
35657         * check-module (find_included_lib_files): Adjust.
35658         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35659
35660 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35661
35662         copy-acl: enhance Solaris ACL error handling
35663         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35664         * lib/set-mode-acl.c (qset_acl): Likewise.
35665
35666 2010-03-02  Bruno Haible  <bruno@clisp.org>
35667
35668         spawn: Don't override the system defined values on FreeBSD 8.
35669         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35670         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35671         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35672         if HAVE_POSIX_SPAWN is 1.
35673         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35674
35675 2010-03-01  Bruno Haible  <bruno@clisp.org>
35676
35677         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35678         regarding Automake.
35679
35680 2010-02-25  Bruno Haible  <bruno@clisp.org>
35681
35682         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35683         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35684         setting, not afterwards.
35685         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35686
35687 2010-02-24  Eric Blake  <eblake@redhat.com>
35688
35689         bootstrap, git-version-gen: use timestamp
35690         * build-aux/git-version-gen (scriptversion): Force UTC.
35691         * build-aux/bootstrap (scriptversion): New variable.
35692
35693         bootstrap: allow older git
35694         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35695         older than 1.6.4.  Requested by the libvirt project.
35696
35697 2010-02-23  Eric Blake  <eblake@redhat.com>
35698
35699         warn-on-use: work with old autoconf
35700         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35701         AS_VAR semantics of autoconf 2.60.
35702         Reported by Bruno Haible.
35703
35704         bootstrap: improve some comments
35705         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35706         clarification comments.
35707
35708         gettimeofday: provide correct function
35709         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35710         when replacement is declared, otherwise provide gettimeofday.
35711         Reported by Michael Goffioul.
35712
35713 2010-02-23  Jim Meyering  <meyering@redhat.com>
35714
35715         lib-ignore: relax license to "unlimited", not LGPLv2+
35716         * modules/lib-ignore (License): Relax to "unlimited".
35717
35718 2010-02-23  Jim Meyering  <meyering@redhat.com>
35719
35720         lib-ignore: relax license to LGPLv2+
35721         * modules/lib-ignore (License): Relax to LGPLv2+.
35722
35723 2010-02-22  Eric Blake  <eblake@redhat.com>
35724
35725         lseek: avoid bash 3.2 broken pipe bug
35726         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35727         warning from bash 3.2.
35728         Reported by Ben Pfaff, with analysis from Bruno Haible.
35729
35730         bootstrap: support non-FSF copyright holder
35731         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35732         bootstrap.conf override of COPYRIGHT_HOLDER.
35733         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35734
35735         bootstrap: interoperate with gettext 0.14.1
35736         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35737
35738         bootstrap: allow for alternate submodule location
35739         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35740         hardcoding submodule location.
35741         (gnulib_mk): Allow direct use of Makefile.am.
35742
35743         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35744         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35745         rather than reconfiguring where the submodule points.
35746
35747         gettimeofday: restore support for platforms that lack function
35748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35749         replacement if function is missing.
35750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35751         * modules/sys_time (Makefile.am): Substitute it.
35752         * lib/sys_time.in.h (gettimeofday): Check it.
35753         Reported by Michael Goffioul.
35754
35755 2010-02-21  Bruno Haible  <bruno@clisp.org>
35756
35757         * lib/stdio.in.h (obstack_printf): Fix typo.
35758
35759 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35760
35761         vc-list-files: use bzr ls's -R option
35762         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35763         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35764
35765 2010-02-21  Jim Meyering  <meyering@redhat.com>
35766
35767         init.sh: fix EXEEXT shims to work also for names like test-prog
35768         * tests/init.sh: Re-exec a better shell, when needed.
35769         If the current shell lacks support for posix $(...), an init.sh-using
35770         test will now try to find a shell that supports that.  If EXEEXT is
35771         nonempty, we also require support for hyphen-in-alias-name and shell
35772         substitutions like ${var#glob}.  Failure to find such a shell results
35773         in a skipped test.
35774
35775 2010-02-21  Bruno Haible  <bruno@clisp.org>
35776
35777         Really work around around "broken pipe" error message from bash 3.2.
35778         * gnulib-tool (func_reset_sigpipe): Remove function.
35779         (echo): In bash 3.2, define to a function that uses printf.
35780         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35781
35782 2010-02-20  Bruno Haible  <bruno@clisp.org>
35783
35784         Restore support for automake 1.9.6 with autoconf 2.61.
35785         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35786         Reported by James Youngman <jay@gnu.org>.
35787
35788 2010-02-20  Bruno Haible  <bruno@clisp.org>
35789
35790         Improve *printf warning condition.
35791         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35792         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35793         and the function is overridden due to SIGPIPE emulation.
35794
35795 2010-02-20  Bruno Haible  <bruno@clisp.org>
35796
35797         * lib/stdio.in.h: Tweak comments.
35798
35799 2010-02-19  Bruno Haible  <bruno@clisp.org>
35800
35801         Make it easier to find modules. New gnulib-tool option '--find'.
35802         * gnulib-tool: New option --find.
35803         (func_usage): Document it.
35804         (func_sanitize_modulelist): New function, extracted from
35805         func_all_modules.
35806         (func_all_modules): Invoke it.
35807         * doc/gnulib-tool.texi (Which modules?): New node.
35808
35809 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35810
35811         * lib/sys_select.in.h: Provide select replacement even if
35812         sys/select.h exists on a system, for Interix.
35813
35814 2010-02-18  Jim Meyering  <meyering@redhat.com>
35815
35816         init.sh: don't use $(...) just yet
35817         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35818         to accommodate e.g., Solaris' /bin/sh.
35819
35820 2010-02-17  Bruno Haible  <bruno@clisp.org>
35821
35822         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35823         Reported by Ludovic Courtès <ludo@gnu.org>.
35824
35825 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35826
35827         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35828         linking with -lintl.
35829
35830 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35831
35832         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35833         if not provided by the system's netdb.h.  Reported by
35834         ludo@gnu.org (Ludovic Courtès).
35835
35836 2010-02-15  Jim Meyering  <meyering@redhat.com>
35837
35838         init.sh: improve portability and efficiency
35839         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35840         "dummy" in a for loop.
35841         Use '!', not '^' to select the complement of a character set used
35842         in a "case" statement.
35843         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35844         Suggestions from Eric Blake.
35845
35846         init.sh: automatically accommodate programs with the .exe suffix
35847         Automatically arrange for an invocation of "prog" to execute the
35848         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35849         may use the simpler "prog", yet still work when built on a system
35850         that requires specifying the added suffix.
35851         Do this by constructing a function named "prog" that invokes
35852         "prog.exe" for each .exe file in selected directories.
35853         * tests/init.sh (find_exe_basenames_): New function.
35854         (create_exe_shim_functions_): New function.
35855         (path_prepend_): Use it.
35856
35857         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35858         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35859         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35860
35861 2010-02-14  Jim Meyering  <meyering@redhat.com>
35862
35863         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35864         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35865         (sc_prohibit_hash_pjw_without_use): New rule.
35866
35867         maint.mk: allow the default upload destination dir to be overridden
35868         * top/maint.mk (upload_dest_dir_): Define with a default that
35869         preserves the status quo.
35870         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35871         Reported by Peter Simons.
35872
35873         maint.mk: prohibit inclusion of "hash.h" without_use
35874         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35875
35876 2010-02-10  Jim Meyering  <meyering@redhat.com>
35877
35878         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35879         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35880
35881 2010-02-09  Eric Blake  <ebb9@byu.net>
35882         and Bruno Haible  <bruno@clisp.org>
35883
35884         obstack-printf-posix: ensure declaration
35885         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35886         extracted from gl_FUNC_OBSTACK_PRINTF.
35887         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35888         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35889         Likewise.
35890         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35891         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35892         0.
35893
35894 2010-02-08  Bruno Haible  <bruno@clisp.org>
35895
35896         gnulib-tool: Fix typo in 2010-02-07 commit.
35897         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35898         Reported by Eric Blake.
35899
35900 2010-02-07  Bruno Haible  <bruno@clisp.org>
35901
35902         gnulib-tool: Fix up caching patches.
35903         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35904         option --no-cache. Use associative arrays when supported by the shell.
35905         (sed_comments): New variable.
35906         (modcache): Renamed from do_cache.
35907         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35908         abbreviate unnecessarily.
35909         (have_associative): New variable.
35910         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35911         way also for ksh and zsh.
35912         (func_init_sed_convert_to_cache_statements): New function, extracted
35913         from func_cache_lookup_module. Add support for associative arrays.
35914         Don't set the c_MODULE_cached variable here. Ignore all lines before
35915         the first field header. Remove only the final newline, not all trailing
35916         newlines. Support empty fields correctly. Limit the use of 'eval' to
35917         assignments.
35918         (func_get_description, func_get_status, func_get_notice,
35919         func_get_applicability, func_get_filelist, func_get_dependencies,
35920         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35921         func_get_automake_snippet, func_get_include_directive,
35922         func_get_link_directive, func_get_license, func_get_maintainer):
35923         Update documentation. List the unoptimized code first. Add support for
35924         associative arrays. Limit the use of 'eval' to assignments.
35925         (func_get_applicability): Undo stylistic pessimisations.
35926         (func_get_automake_snippet, func_get_include_directive): Reduce code
35927         duplication.
35928         (func_modules_transitive_closure, func_modules_add_dummy,
35929         func_modules_notice, func_modules_to_filelist, func_add_file,
35930         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35931         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35932         func_create_testdir, func_create_megatestdir): Update documentation.
35933
35934 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35935
35936         * gnulib-tool (func_cache_lookup_module): Store the module name
35937         belonging to the cache variable; error out if two different
35938         module names map to the same cache variable name.
35939
35940 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35941
35942         gnulib-tool: Make caching optional.
35943         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35944         Update matching short versions of --no-changelog.
35945         (func_usage): Update.
35946         (sed_extract_cache_prog): Renamed from ...
35947         (sed_extract_prog): ... this; revert to old extraction script.
35948         (func_get_description, func_get_status)
35949         (func_get_notice, func_get_applicability, func_get_filelist)
35950         (func_get_dependencies, func_get_autoconf_early_snippet)
35951         (func_get_autoconf_snippet, func_get_automake_snippet)
35952         (func_get_include_directive, func_get_link_directive)
35953         (func_get_license, func_get_maintainer): If $do_cache is false,
35954         use old, non-caching extraction scripts.
35955         Suggestion by Bruno Haible.
35956
35957 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35958
35959         gnulib-tool: cache module metainformation.
35960         * gnulib-tool (sed_extract_prog): Match newline before each
35961         header, and rewrite header to a shell variable suffix.
35962         (func_cache_var, func_cache_lookup_module): New functions,
35963         to turn a module name into a cache variable prefix, and to
35964         look up and cache module metainformation.
35965         (func_get_description, func_get_status)
35966         (func_get_notice, func_get_applicability, func_get_filelist)
35967         (func_get_dependencies, func_get_autoconf_early_snippet)
35968         (func_get_autoconf_snippet, func_get_automake_snippet)
35969         (func_get_include_directive, func_get_link_directive)
35970         (func_get_license, func_get_maintainer): Use
35971         func_cache_lookup_module.
35972
35973 2010-02-07  Bruno Haible  <bruno@clisp.org>
35974
35975         fnctl: Fix missing dependency.
35976         * modules/fcntl (Depends-on): Add getdtablesize.
35977         Reported by John W. Eaton <jwe@gnu.org>.
35978
35979 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35980
35981         Argp: fix recognition of short alias options.
35982
35983         * lib/argp-parse.c (convert_options): Fix improper use of
35984         `|' between character values.
35985         * tests/test-argp.c (group1_option): New alias option
35986         --read (-r).
35987         (group1_parser): Special handling for 'r'.
35988         (test15): New test case.
35989         (test_fun): Add test15.
35990         * tests/test-argp-2.sh: Update expected --help and --usage
35991         outputs.
35992
35993 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35994
35995         * tests/test-argp.c: Fix indentation.
35996
35997 2010-02-04  Eric Blake  <ebb9@byu.net>
35998
35999         gettimeofday: expose type of second argument
36000         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36001         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36002         * tests/test-gettimeofday.c: Use it to silence warning.
36003         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36004         the issue.
36005
36006 2010-02-03  Jim Meyering  <meyering@redhat.com>
36007
36008         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36009         * lib/regcomp.c (TYPE_SIGNED): Define.
36010         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36011
36012         regcomp.c: avoid a new -Wshadow warning
36013         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36014
36015 2010-02-01  Jim Meyering  <meyering@redhat.com>
36016
36017         removing useless parentheses in cpp #define directives
36018         For motivation, see commit c0221df4, "define STREQ(a,b)
36019         consistently, removing useless parentheses"
36020         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36021         * lib/mountlist.c (MNT_IGNORE): Likewise.
36022         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36023
36024 2010-02-01  Eric Blake  <ebb9@byu.net>
36025
36026         sys_time: use link-warning
36027         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36028         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36029         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36030         * modules/sys_time (Depends-on): Add warn-on-use.
36031         (Makefile.am): Always build replacement.
36032         (configure.ac): Update substitutions.
36033         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36034         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36035         bother with SYS_TIME_H.
36036         * modules/gettimeofday (configure.ac): Declare indicator.
36037         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36038         in use.
36039
36040         closein-tests: silence compiler warning
36041         * tests/test-closein.c (main): Ignore fread result.
36042         * modules/closein-tests (Depends-on): Add ignore-value.
36043
36044         tests: silence warning about system return
36045         * tests/test-areadlink-with-size.c (main): Ignore system result.
36046         * tests/test-areadlink.c (main): Likewise.
36047         * tests/test-areadlinkat-with-size.c (main): Likewise.
36048         * tests/test-areadlinkat.c (main): Likewise.
36049         * tests/test-canonicalize-lgpl.c (main): Likewise.
36050         * tests/test-canonicalize.c (main): Likewise.
36051         * tests/test-chown.c (main): Likewise.
36052         * tests/test-fchownat.c (main): Likewise.
36053         * tests/test-fdutimensat.c (main): Likewise.
36054         * tests/test-fstatat.c (main): Likewise.
36055         * tests/test-futimens.c (main): Likewise.
36056         * tests/test-lchown.c (main): Likewise.
36057         * tests/test-link.c (main): Likewise.
36058         * tests/test-linkat.c (main): Likewise.
36059         * tests/test-lstat.c (main): Likewise.
36060         * tests/test-mkdir.c (main): Likewise.
36061         * tests/test-mkdirat.c (main): Likewise.
36062         * tests/test-mkfifo.c (main): Likewise.
36063         * tests/test-mkfifoat.c (main): Likewise.
36064         * tests/test-mknod.c (main): Likewise.
36065         * tests/test-readlink.c (main): Likewise.
36066         * tests/test-remove.c (main): Likewise.
36067         * tests/test-rename.c (main): Likewise.
36068         * tests/test-renameat.c (main): Likewise.
36069         * tests/test-rmdir.c (main): Likewise.
36070         * tests/test-symlink.c (main): Likewise.
36071         * tests/test-symlinkat.c (main): Likewise.
36072         * tests/test-unlink.c (main): Likewise.
36073         * tests/test-unlinkat.c (main): Likewise.
36074         * tests/test-utimens.c (main): Likewise.
36075         * tests/test-utimensat.c (main): Likewise.
36076         * modules/areadlink-tests (Depends-on): Add ignore-value.
36077         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36078         * modules/areadlinkat-tests (Depends-on): Likewise.
36079         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36080         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36081         * modules/canonicalize-tests (Depends-on): Likewise.
36082         * modules/chown-tests (Depends-on): Likewise.
36083         * modules/fdutimensat-tests (Depends-on): Likewise.
36084         * modules/futimens-tests (Depends-on): Likewise.
36085         * modules/lchown-tests (Depends-on): Likewise.
36086         * modules/link-tests (Depends-on): Likewise.
36087         * modules/linkat-tests (Depends-on): Likewise.
36088         * modules/lstat-tests (Depends-on): Likewise.
36089         * modules/mkdir-tests (Depends-on): Likewise.
36090         * modules/mkfifo-tests (Depends-on): Likewise.
36091         * modules/mkfifoat-tests (Depends-on): Likewise.
36092         * modules/mknod-tests (Depends-on): Likewise.
36093         * modules/openat-tests (Depends-on): Likewise.
36094         * modules/readlink-tests (Depends-on): Likewise.
36095         * modules/remove-tests (Depends-on): Likewise.
36096         * modules/rename-tests (Depends-on): Likewise.
36097         * modules/renameat-tests (Depends-on): Likewise.
36098         * modules/rmdir-tests (Depends-on): Likewise.
36099         * modules/symlink-tests (Depends-on): Likewise.
36100         * modules/symlinkat-tests (Depends-on): Likewise.
36101         * modules/unlink-tests (Depends-on): Likewise.
36102         * modules/utimens-tests (Depends-on): Likewise.
36103         * modules/utimensat-tests (Depends-on): Likewise.
36104
36105 2010-01-31  Bruno Haible  <bruno@clisp.org>
36106
36107         Perform the same test for many <math.h> functions.
36108         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36109         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36110         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36111         of gl_MATHFUNC.
36112         * modules/acos (configure.ac): Likewise.
36113         * modules/asin (configure.ac): Likewise.
36114         * modules/atan (configure.ac): Likewise.
36115         * modules/atan2 (configure.ac): Likewise.
36116         * modules/cbrt (configure.ac): Likewise.
36117         * modules/copysign (configure.ac): Likewise.
36118         * modules/cos (configure.ac): Likewise.
36119         * modules/cosh (configure.ac): Likewise.
36120         * modules/erf (configure.ac): Likewise.
36121         * modules/erfc (configure.ac): Likewise.
36122         * modules/exp (configure.ac): Likewise.
36123         * modules/fmod (configure.ac): Likewise.
36124         * modules/hypot (configure.ac): Likewise.
36125         * modules/j0 (configure.ac): Likewise.
36126         * modules/j1 (configure.ac): Likewise.
36127         * modules/jn (configure.ac): Likewise.
36128         * modules/lgamma (configure.ac): Likewise.
36129         * modules/log (configure.ac): Likewise.
36130         * modules/log10 (configure.ac): Likewise.
36131         * modules/log1p (configure.ac): Likewise.
36132         * modules/pow (configure.ac): Likewise.
36133         * modules/remainder (configure.ac): Likewise.
36134         * modules/sin (configure.ac): Likewise.
36135         * modules/sinh (configure.ac): Likewise.
36136         * modules/tan (configure.ac): Likewise.
36137         * modules/tanh (configure.ac): Likewise.
36138         * modules/y0 (configure.ac): Likewise.
36139         * modules/y1 (configure.ac): Likewise.
36140         * modules/yn (configure.ac): Likewise.
36141         Suggested by Paolo Bonzini.
36142
36143 2010-01-31  Bruno Haible  <bruno@clisp.org>
36144
36145         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36146
36147 2010-01-31  Bruno Haible  <bruno@clisp.org>
36148
36149         Work around getdelim() bug on FreeBSD 8.0.
36150         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36151         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36152         not work.
36153         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36154         is 1.
36155         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36156         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36157         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36158         a non-zero size.
36159         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36160
36161 2010-01-31  Bruno Haible  <bruno@clisp.org>
36162
36163         Work around getline() bug on FreeBSD 8.0.
36164         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36165         and a non-zero size.
36166         * tests/test-getline.c (main): Likewise.
36167         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36168         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36169
36170 2010-01-28  Eric Blake  <ebb9@byu.net>
36171
36172         regex: fix build failure
36173         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36174         platforms.
36175
36176 2010-01-28  Jim Meyering  <meyering@redhat.com>
36177
36178         regex: do not ignore memory allocation failure
36179         * lib/regex_internal.c (create_cd_newstate): Detect
36180         re_node_set_init_copy failure.   Extracted from glibc commit
36181         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36182
36183         regex: sync more white-space changes from libc
36184         * lib/regex_internal.c: White-space only changes.
36185         * lib/regexec.c: Likewise.
36186
36187         regex: add many uses of __attribute_warn_unused_result__
36188         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36189         * lib/regexec.c: Likewise.
36190         Extracted from a messy glibc commit.
36191
36192         regcomp.c: spelling and merge-artifact from glibc
36193         * lib/regcomp.c: Merge remainder of glibc's
36194         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36195
36196         regcomp.c: sync white-space changes from glibc
36197         * lib/regcomp.c: Merge to accommodate white space
36198         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36199
36200         regcomp.c: do not ignore internal return values
36201         * lib/regcomp.c: Do not ignore internal return values.
36202         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36203         but without its white-space changes and spelling fixes.
36204
36205         regex_internal.h: define __attribute_warn_unused_result__
36206         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36207
36208         maint: add a syntax-check rule to check for vulnerable Makefile.in
36209         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36210
36211 2010-01-27  Jim Meyering  <meyering@redhat.com>
36212
36213         ncftpput-ftp: clean up spaces
36214         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36215         Remove trailing blanks.
36216
36217 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36218
36219         * build-aux/git-version-gen: Fix copyright statement.
36220         * build-aux/gnupload: Likewise.
36221         * tests/test-arcfour.c: Likewise.
36222         * tests/test-arctwo.c: Likewise.
36223         * tests/test-count-one-bits.c: Likewise.
36224         * tests/test-crc.c: Likewise.
36225         * tests/test-des.c: Likewise.
36226         * tests/test-gc-arcfour.c: Likewise.
36227         * tests/test-gc-arctwo.c: Likewise.
36228         * tests/test-gc-des.c: Likewise.
36229         * tests/test-gc-hmac-md5.c: Likewise.
36230         * tests/test-gc-hmac-sha1.c: Likewise.
36231         * tests/test-gc-md2.c: Likewise.
36232         * tests/test-gc-md4.c: Likewise.
36233         * tests/test-gc-md5.c: Likewise.
36234         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36235         * tests/test-gc-rijndael.c: Likewise.
36236         * tests/test-gc-sha1.c: Likewise.
36237         * tests/test-gc.c: Likewise.
36238         * tests/test-gethostname.c: Likewise.
36239         * tests/test-gettimeofday.c: Likewise.
36240         * tests/test-hash.c: Likewise.
36241         * tests/test-hmac-md5.c: Likewise.
36242         * tests/test-hmac-sha1.c: Likewise.
36243         * tests/test-md2.c: Likewise.
36244         * tests/test-md4.c: Likewise.
36245         * tests/test-md5.c: Likewise.
36246         * tests/test-memchr.c: Likewise.
36247         * tests/test-memchr2.c: Likewise.
36248         * tests/test-memcmp.c: Likewise.
36249         * tests/test-memmem.c: Likewise.
36250         * tests/test-memrchr.c: Likewise.
36251         * tests/test-rawmemchr.c: Likewise.
36252         * tests/test-read-file.c: Likewise.
36253         * tests/test-rijndael.c: Likewise.
36254         * tests/test-sockets.c: Likewise.
36255         * tests/test-strchrnul.c: Likewise.
36256         * tests/test-strstr.c: Likewise.
36257         * tests/test-strtod.c: Likewise.
36258         * build-aux/ncftpput-ftp: Likewise.
36259
36260 2010-01-26  Eric Blake  <ebb9@byu.net>
36261
36262         ignore-value: update recommended header name
36263         * modules/ignore-value (Include): Only use <> for headers that
36264         exist in glibc.
36265
36266 2010-01-26  Jim Meyering  <meyering@redhat.com>
36267
36268         test-userspec.c: avoid compiler warnings
36269         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36270         and "initialization discards qualifiers..." warnings.
36271         Put the first "uid" in its own scope, and make char* members "const".
36272
36273 2010-01-25  Bruno Haible  <bruno@clisp.org>
36274
36275         gnulib-tool: Make warning diagnostics consistent.
36276         * gnulib-tool (func_warning): New function.
36277         Use it everywhere where gnulib-tool produces output to stderr and it is
36278         not a fatal error.
36279
36280 2010-01-25  Bruno Haible  <bruno@clisp.org>
36281
36282         Fix test dependencies.
36283         * modules/xstrtol-tests (Depends-on): Add inttypes.
36284         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36285
36286 2010-01-25 Pádraig Brady <P@draigBrady.com>
36287
36288         syntax-check: detect incorrect boolean macro values in config.h
36289         * modules/maintainer-makefile (configure.ac): Parameterize the location
36290         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36291         The logic is from Eric Blake and the location indicated by Jim Meyering.
36292         Note the more natural CONFIG_HEADER name is prohibited by automake
36293         for backwards compatibility reasons.
36294         * top/maint.mk (sc_Wundef_boolean): New rule.
36295
36296 2010-01-25  Jim Meyering  <meyering@redhat.com>
36297
36298         bootstrap: detect MacOS 10.6's shasum, too
36299         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36300         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36301
36302 2010-01-23  Jim Meyering  <meyering@redhat.com>
36303
36304         xstrtoll: new module
36305         * modules/xstrtoll: New file.
36306         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36307         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36308         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36309         ./configure fails if you use this module and lack "long long".
36310         * modules/xstrtoll-tests: New module.
36311         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36312         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36313         new init.sh-based test framework.
36314
36315 2010-01-24  Bruno Haible  <bruno@clisp.org>
36316
36317         Tests for module 'yn'.
36318         * modules/yn-tests: New file.
36319         * tests/test-yn.c: New file.
36320
36321         Tests for module 'y1'.
36322         * modules/y1-tests: New file.
36323         * tests/test-y1.c: New file.
36324
36325         Tests for module 'y0'.
36326         * modules/y0-tests: New file.
36327         * tests/test-y0.c: New file.
36328
36329         Tests for module 'tanh'.
36330         * modules/tanh-tests: New file.
36331         * tests/test-tanh.c: New file.
36332
36333         Tests for module 'tan'.
36334         * modules/tan-tests: New file.
36335         * tests/test-tan.c: New file.
36336
36337         Tests for module 'sqrt'.
36338         * modules/sqrt-tests: New file.
36339         * tests/test-sqrt.c: New file.
36340
36341         Tests for module 'sinh'.
36342         * modules/sinh-tests: New file.
36343         * tests/test-sinh.c: New file.
36344
36345         Tests for module 'sin'.
36346         * modules/sin-tests: New file.
36347         * tests/test-sin.c: New file.
36348
36349         Tests for module 'rint'.
36350         * modules/rint-tests: New file.
36351         * tests/test-rint.c: New file.
36352
36353         Tests for module 'remainder'.
36354         * modules/remainder-tests: New file.
36355         * tests/test-remainder.c: New file.
36356
36357         Tests for module 'pow'.
36358         * modules/pow-tests: New file.
36359         * tests/test-pow.c: New file.
36360
36361         Tests for module 'nextafter'.
36362         * modules/nextafter-tests: New file.
36363         * tests/test-nextafter.c: New file.
36364
36365         Tests for module 'modf'.
36366         * modules/modf-tests: New file.
36367         * tests/test-modf.c: New file.
36368
36369         Tests for module 'logb'.
36370         * modules/logb-tests: New file.
36371         * tests/test-logb.c: New file.
36372
36373         Tests for module 'log1p'.
36374         * modules/log1p-tests: New file.
36375         * tests/test-log1p.c: New file.
36376
36377         Tests for module 'log10'.
36378         * modules/log10-tests: New file.
36379         * tests/test-log10.c: New file.
36380
36381         Tests for module 'log'.
36382         * modules/log-tests: New file.
36383         * tests/test-log.c: New file.
36384
36385         Tests for module 'lgamma'.
36386         * modules/lgamma-tests: New file.
36387         * tests/test-lgamma.c: New file.
36388
36389         Tests for module 'ldexp'.
36390         * modules/ldexp-tests: New file.
36391         * tests/test-ldexp.c: New file.
36392
36393         Tests for module 'jn'.
36394         * modules/jn-tests: New file.
36395         * tests/test-jn.c: New file.
36396
36397         Tests for module 'j1'.
36398         * modules/j1-tests: New file.
36399         * tests/test-j1.c: New file.
36400
36401         Tests for module 'j0'.
36402         * modules/j0-tests: New file.
36403         * tests/test-j0.c: New file.
36404
36405         Tests for module 'hypot'.
36406         * modules/hypot-tests: New file.
36407         * tests/test-hypot.c: New file.
36408
36409         Tests for module 'fmod'.
36410         * modules/fmod-tests: New file.
36411         * tests/test-fmod.c: New file.
36412
36413         Tests for module 'fabs'.
36414         * modules/fabs-tests: New file.
36415         * tests/test-fabs.c: New file.
36416
36417         Tests for module 'exp'.
36418         * modules/exp-tests: New file.
36419         * tests/test-exp.c: New file.
36420
36421         Tests for module 'erfc'.
36422         * modules/erfc-tests: New file.
36423         * tests/test-erfc.c: New file.
36424
36425         Tests for module 'erf'.
36426         * modules/erf-tests: New file.
36427         * tests/test-erf.c: New file.
36428
36429         Tests for module 'cosh'.
36430         * modules/cosh-tests: New file.
36431         * tests/test-cosh.c: New file.
36432
36433         Tests for module 'cos'.
36434         * modules/cos-tests: New file.
36435         * tests/test-cos.c: New file.
36436
36437         Tests for module 'copysign'.
36438         * modules/copysign-tests: New file.
36439         * tests/test-copysign.c: New file.
36440
36441         Tests for module 'cbrt'.
36442         * modules/cbrt-tests: New file.
36443         * tests/test-cbrt.c: New file.
36444
36445         Tests for module 'atan2'.
36446         * modules/atan2-tests: New file.
36447         * tests/test-atan2.c: New file.
36448
36449         Tests for module 'atan'.
36450         * modules/atan-tests: New file.
36451         * tests/test-atan.c: New file.
36452
36453         Tests for module 'asin'.
36454         * modules/asin-tests: New file.
36455         * tests/test-asin.c: New file.
36456
36457         Tests for module 'acos'.
36458         * modules/acos-tests: New file.
36459         * tests/test-acos.c: New file.
36460
36461 2010-01-24  Bruno Haible  <bruno@clisp.org>
36462
36463         Fix tests for common <math.h> functions.
36464         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36465         code snippet that references the function pointer, rather than merely
36466         calling the function. Substitute the FUNC_LIBM variable.
36467         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36468         * modules/acos (configure.ac): Likewise.
36469         * modules/asin (configure.ac): Likewise.
36470         * modules/atan (configure.ac): Likewise.
36471         * modules/atan2 (configure.ac): Likewise.
36472         * modules/cbrt (configure.ac): Likewise.
36473         * modules/copysign (configure.ac): Likewise.
36474         * modules/cos (configure.ac): Likewise.
36475         * modules/cosh (configure.ac): Likewise.
36476         * modules/erf (configure.ac): Likewise.
36477         * modules/erfc (configure.ac): Likewise.
36478         * modules/exp (configure.ac): Likewise.
36479         * modules/fabs (configure.ac): Likewise.
36480         * modules/fmod (configure.ac): Likewise.
36481         * modules/hypot (configure.ac): Likewise.
36482         * modules/j0 (configure.ac): Likewise.
36483         * modules/j1 (configure.ac): Likewise.
36484         * modules/jn (configure.ac): Likewise.
36485         * modules/ldexp (configure.ac): Likewise.
36486         * modules/lgamma (configure.ac): Likewise.
36487         * modules/log (configure.ac): Likewise.
36488         * modules/log10 (configure.ac): Likewise.
36489         * modules/log1p (configure.ac): Likewise.
36490         * modules/logb (configure.ac): Likewise.
36491         * modules/modf (configure.ac): Likewise.
36492         * modules/nextafter (configure.ac): Likewise.
36493         * modules/pow (configure.ac): Likewise.
36494         * modules/remainder (configure.ac): Likewise.
36495         * modules/rint (configure.ac): Likewise.
36496         * modules/sin (configure.ac): Likewise.
36497         * modules/sinh (configure.ac): Likewise.
36498         * modules/tan (configure.ac): Likewise.
36499         * modules/tanh (configure.ac): Likewise.
36500         * modules/y0 (configure.ac): Likewise.
36501         * modules/y1 (configure.ac): Likewise.
36502         * modules/yn (configure.ac): Likewise.
36503
36504 2010-01-24  Bruno Haible  <bruno@clisp.org>
36505
36506         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36507         * tests/test-acosl.c (x): New variable.
36508         (main): Store argument in x and fetch it from x.
36509         * tests/test-asinl.c (x): New variable.
36510         (main): Store argument in x and fetch it from x.
36511         * tests/test-atanl.c (x): New variable.
36512         (main): Store argument in x and fetch it from x.
36513         * tests/test-cosl.c (x): New variable.
36514         (main): Store argument in x and fetch it from x.
36515         * tests/test-expl.c (x): New variable.
36516         (main): Store argument in x and fetch it from x.
36517         * tests/test-logl.c (x): New variable.
36518         (main): Store argument in x and fetch it from x.
36519         * tests/test-sinl.c (x): New variable.
36520         (main): Store argument in x and fetch it from x.
36521         * tests/test-sqrtl.c (x): New variable.
36522         (main): Store argument in x and fetch it from x.
36523         * tests/test-tanl.c (x): New variable.
36524         (main): Store argument in x and fetch it from x.
36525
36526 2010-01-24  Bruno Haible  <bruno@clisp.org>
36527
36528         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36529         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36530         assignments to the initial TESTS_ENVIRONMENT.
36531         * doc/gnulib.texi (Unit test modules): Document it.
36532         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36533         TESTS_ENVIRONMENT.
36534         * modules/btowc-tests (Makefile.am): Likewise.
36535         * modules/c-stack-tests (Makefile.am): Likewise.
36536         * modules/c-strcase-tests (Makefile.am): Likewise.
36537         * modules/copy-file-tests (Makefile.am): Likewise.
36538         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36539         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36540         * modules/mbrtowc-tests (Makefile.am): Likewise.
36541         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36542         * modules/mbscasestr-tests (Makefile.am): Likewise.
36543         * modules/mbschr-tests (Makefile.am): Likewise.
36544         * modules/mbscspn-tests (Makefile.am): Likewise.
36545         * modules/mbsinit-tests (Makefile.am): Likewise.
36546         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36547         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36548         * modules/mbspbrk-tests (Makefile.am): Likewise.
36549         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36550         * modules/mbsrchr-tests (Makefile.am): Likewise.
36551         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36552         * modules/mbsspn-tests (Makefile.am): Likewise.
36553         * modules/mbsstr-tests (Makefile.am): Likewise.
36554         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36555         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36556         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36557         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36558         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36559         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36560         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36561         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36562         * modules/wcrtomb-tests (Makefile.am): Likewise.
36563         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36564         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36565         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36566         assignments from TESTS_ENVIRONMENT.
36567         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36568         augmentation.
36569         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36570         * modules/atexit-tests (Makefile.am): Likewise.
36571         * modules/binary-io-tests (Makefile.am): Likewise.
36572         * modules/closein-tests (Makefile.am): Likewise.
36573         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36574         * modules/exclude-tests (Makefile.am): Likewise.
36575         * modules/fflush-tests (Makefile.am): Likewise.
36576         * modules/fpending-tests (Makefile.am): Likewise.
36577         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36578         * modules/freadahead-tests (Makefile.am): Likewise.
36579         * modules/freadptr-tests (Makefile.am): Likewise.
36580         * modules/freadseek-tests (Makefile.am): Likewise.
36581         * modules/fseek-tests (Makefile.am): Likewise.
36582         * modules/fseeko-tests (Makefile.am): Likewise.
36583         * modules/ftell-tests (Makefile.am): Likewise.
36584         * modules/ftello-tests (Makefile.am): Likewise.
36585         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36586         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36587         * modules/lseek-tests (Makefile.am): Likewise.
36588         * modules/parse-duration-tests (Makefile.am): Likewise.
36589         * modules/perror-tests (Makefile.am): Likewise.
36590         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36591         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36592         * modules/pipe-tests (Makefile.am): Likewise.
36593         * modules/pread-tests (Makefile.am): Likewise.
36594         * modules/printf-posix-tests (Makefile.am): Likewise.
36595         * modules/select-tests (Makefile.am): Likewise.
36596         * modules/sigpipe-tests (Makefile.am): Likewise.
36597         * modules/tsearch-tests (Makefile.am): Likewise.
36598         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36599         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36600         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36601         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36602         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36603         * modules/version-etc-tests (Makefile.am): Likewise.
36604         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36605         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36606         * modules/xalloc-die-tests (Makefile.am): Likewise.
36607         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36608         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36609         * modules/xstrtol-tests (Makefile.am): Likewise.
36610         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36611         * modules/yesno-tests (Makefile.am): Likewise.
36612         Suggested by Jim Meyering.
36613
36614 2010-01-24  Bruno Haible  <bruno@clisp.org>
36615
36616         More documentation.
36617         * doc/gnulib.texi (Writing modules): New chapter.
36618         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36619         the new chapter.
36620
36621 2010-01-24  Jim Meyering  <meyering@redhat.com>
36622
36623         maint.mk: do not prepend "./" after filtering
36624         * top/maint.mk (_prepend_srcdir_prefix): New variable
36625         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36626         "./" when $(srcdir) is ".".
36627
36628         define STREQ(a,b) consistently, removing useless parentheses
36629         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36630         since the only risk is that "a" or "b" contains an unparenthesized
36631         comma, but if either did that, STREQ would have 3 or more arguments.
36632         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36633         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36634         * lib/hash-triple.c (STREQ): Likewise.
36635         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36636         * lib/getugroups.c (STREQ): Likewise.
36637
36638 2010-01-23  Jim Meyering  <meyering@redhat.com>
36639
36640         maint.mk: fix syntax-check in a non-srcdir build directory
36641         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36642         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36643
36644 2010-01-22  Jim Meyering  <meyering@redhat.com>
36645
36646         userspec: add unit tests
36647         * tests/test-userspec.c: New file.
36648         * modules/userspec-tests: Likewise.
36649
36650 2010-01-21  Jim Meyering  <meyering@redhat.com>
36651
36652         maint.mk: handle source file names containing "." robustly
36653         * top/maint.mk (_dot_escaped_srcdir): Define.
36654         (VC_LIST): Use it in LHS of sed substitution.
36655
36656 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36657
36658         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36659         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36660         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36661         from a non-srcdir build.
36662
36663 2010-01-20  Eric Blake  <ebb9@byu.net>
36664
36665         warn-on-use: use instead of link-warning
36666         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36667         * modules/unistd (Depends-on, Makefile.am): Likewise.
36668         * modules/arpa_inet (Depends-on): Replace link-warning with
36669         warn-on-use.
36670         (Makefile.am): Update rules accordingly.
36671         * modules/ctype (Depends-on, Makefile.am): Likewise.
36672         * modules/dirent (Depends-on, Makefile.am): Likewise.
36673         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36674         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36675         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36676         * modules/locale (Depends-on, Makefile.am): Likewise.
36677         * modules/math (Depends-on, Makefile.am): Likewise.
36678         * modules/search (Depends-on, Makefile.am): Likewise.
36679         * modules/signal (Depends-on, Makefile.am): Likewise.
36680         * modules/spawn (Depends-on, Makefile.am): Likewise.
36681         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36682         * modules/string (Depends-on, Makefile.am): Likewise.
36683         * modules/strings (Depends-on, Makefile.am): Likewise.
36684         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36685         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36686         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36687         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36688         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36689         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36690         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36691         * modules/wchar (Depends-on, Makefile.am): Likewise.
36692         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36693         should be poisoned.
36694         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36695         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36696         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36697         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36698         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36699         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36700         * m4/math_h.m4 (gl_MATH_H): Likewise.
36701         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36702         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36703         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36704         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36705         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36706         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36707         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36708         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36709         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36712         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36713         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36714         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36715         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36716         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36717         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36718         GL_LINK_WARNING.
36719         * lib/ctype.in.h: Likewise.
36720         * lib/dirent.in.h: Likewise.
36721         * lib/fcntl.in.h: Likewise.
36722         * lib/inttypes.in.h: Likewise.
36723         * lib/langinfo.in.h: Likewise.
36724         * lib/locale.in.h: Likewise.
36725         * lib/math.in.h: Likewise.
36726         * lib/search.in.h: Likewise.
36727         * lib/signal.in.h: Likewise.
36728         * lib/spawn.in.h: Likewise.
36729         * lib/stdio.in.h: Likewise.
36730         * lib/stdlib.in.h: Likewise.
36731         * lib/string.in.h: Likewise.
36732         * lib/strings.in.h: Likewise.
36733         * lib/sys_file.in.h: Likewise.
36734         * lib/sys_ioctl.in.h: Likewise.
36735         * lib/sys_select.in.h: Likewise.
36736         * lib/sys_socket.in.h: Likewise.
36737         * lib/sys_stat.in.h: Likewise.
36738         * lib/sys_times.in.h: Likewise.
36739         * lib/sys_utsname.in.h: Likewise.
36740         * lib/unistd.in.h: Likewise.
36741         * lib/wchar.in.h: Likewise.
36742
36743 2010-01-20  Bruno Haible  <bruno@clisp.org>
36744
36745         Avoid duplicate -lm.
36746         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36747         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36748         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36749         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36750         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36751         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36752         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36753         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36754         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36755         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36756         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36757         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36758         Reported by Paolo Bonzini.
36759
36760 2010-01-19  Bruno Haible  <bruno@clisp.org>
36761
36762         langinfo, nl_langinfo: Relicense under LGPLv2+.
36763         * modules/langinfo (License): Change to LGPLv2+.
36764         * modules/nl_langinfo (License): Likewise.
36765         Patch by David Lutterkort <lutter@redhat.com>.
36766
36767 2010-01-19  Bruno Haible  <bruno@clisp.org>
36768
36769         Avoid compilation error with cc on OSF/1 5.1.
36770         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36771         statement, not before.
36772         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36773
36774 2010-01-18  Bruno Haible  <bruno@clisp.org>
36775
36776         Avoid a link error due to the __printf__ symbol.
36777         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36778         and 2.6.x.
36779         (__format__, __printf__): Remove definitions.
36780         * lib/argp-fmtstream.h: Likewise.
36781         * lib/argp.h: Likewise.
36782         * lib/error.h: Likewise.
36783         * lib/vasnprintf.h: Likewise.
36784         * lib/xprintf.h: Likewise.
36785         * lib/xvasprintf.h: Likewise.
36786         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36787
36788 2010-01-18  Bruno Haible  <bruno@clisp.org>
36789
36790         Tests for module 'tanl'.
36791         * modules/tanl-tests: New file.
36792         * tests/test-tanl.c: New file.
36793
36794         Tests for module 'sqrtl'.
36795         * modules/sqrtl-tests: New file.
36796         * tests/test-sqrtl.c: New file.
36797
36798         Tests for module 'sinl'.
36799         * modules/sinl-tests: New file.
36800         * tests/test-sinl.c: New file.
36801
36802         Tests for module 'logl'.
36803         * modules/logl-tests: New file.
36804         * tests/test-logl.c: New file.
36805
36806         Tests for module 'expl'.
36807         * modules/expl-tests: New file.
36808         * tests/test-expl.c: New file.
36809
36810         Tests for module 'cosl'.
36811         * modules/cosl-tests: New file.
36812         * tests/test-cosl.c: New file.
36813
36814         Tests for module 'atanl'.
36815         * modules/atanl-tests: New file.
36816         * tests/test-atanl.c: New file.
36817
36818         Tests for module 'asinl'.
36819         * modules/asinl-tests: New file.
36820         * tests/test-asinl.c: New file.
36821
36822         Tests for module 'acosl'.
36823         * modules/acosl-tests: New file.
36824         * tests/test-acosl.c: New file.
36825
36826         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36827         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36828         tanl): Use the standard gnulib idiom.
36829         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36830         * lib/sinl.c: Likewise.
36831         * lib/tanl.c: Don't include trigl.c.
36832         (kernel_tanl): Make static.
36833         * lib/sincosl.c: Include trigl.h first.
36834         * lib/trigl.c: Likewise.
36835         * m4/acosl.m4: New file.
36836         * m4/asinl.m4: New file.
36837         * m4/atanl.m4: New file.
36838         * m4/cosl.m4: New file.
36839         * m4/expl.m4: New file.
36840         * m4/logl.m4: New file.
36841         * m4/sinl.m4: New file.
36842         * m4/sqrtl.m4: New file.
36843         * m4/tanl.m4: New file.
36844         * m4/mathl.m4: Remove file.
36845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36846         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36847         Don't initialize GNULIB_MATHL.
36848         * modules/acosl: New file.
36849         * modules/asinl: New file.
36850         * modules/atanl: New file.
36851         * modules/cosl: New file.
36852         * modules/expl: New file.
36853         * modules/logl: New file.
36854         * modules/sinl: New file.
36855         * modules/sqrtl: New file.
36856         * modules/tanl: New file.
36857         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36858         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36859         substitute GNULIB_MATHL.
36860         * modules/mathl: Rewritten.
36861         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36862         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36863         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36864         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36865         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36866         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36867         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36868         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36869         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36870
36871 2010-01-18  Bruno Haible  <bruno@clisp.org>
36872
36873         sqrt: Make gl_FUNC_SQRT requirable.
36874         * m4/sqrt.m4: New file.
36875         * modules/sqrt (Files): Add it.
36876         (configure.ac): Invoke gl_FUNC_SQRT.
36877
36878 2010-01-18  Bruno Haible  <bruno@clisp.org>
36879
36880         New modules for common <math.h> functions.
36881         * m4/mathfunc.m4: New file.
36882         * modules/acos: New file.
36883         * modules/asin: New file.
36884         * modules/atan: New file.
36885         * modules/atan2: New file.
36886         * modules/cbrt: New file.
36887         * modules/copysign: New file.
36888         * modules/cos: New file.
36889         * modules/cosh: New file.
36890         * modules/erf: New file.
36891         * modules/erfc: New file.
36892         * modules/exp: New file.
36893         * modules/fabs: New file.
36894         * modules/fmod: New file.
36895         * modules/hypot: New file.
36896         * modules/j0: New file.
36897         * modules/j1: New file.
36898         * modules/jn: New file.
36899         * modules/ldexp: New file.
36900         * modules/lgamma: New file.
36901         * modules/log: New file.
36902         * modules/log10: New file.
36903         * modules/log1p: New file.
36904         * modules/logb: New file.
36905         * modules/modf: New file.
36906         * modules/nextafter: New file.
36907         * modules/pow: New file.
36908         * modules/remainder: New file.
36909         * modules/rint: New file.
36910         * modules/sin: New file.
36911         * modules/sinh: New file.
36912         * modules/sqrt: New file.
36913         * modules/tan: New file.
36914         * modules/tanh: New file.
36915         * modules/y0: New file.
36916         * modules/y1: New file.
36917         * modules/yn: New file.
36918         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36919         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36920         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36921         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36922         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36923         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36924         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36925         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36926         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36927         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36928         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36929         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36930         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36931         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36932         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36933         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36934         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36935         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36936         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36937         * doc/posix-functions/log.texi: Mention the 'log' module.
36938         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36939         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36940         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36941         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36942         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36943         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36944         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36945         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36946         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36947         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36948         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36949         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36950         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36951         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36952         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36953         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36954
36955 2010-01-18  Jim Meyering  <meyering@redhat.com>
36956
36957         ignore-value: relax license to LGPLv2+
36958         * modules/ignore-value (License): Relax to LGPLv2+.
36959
36960         getdate: don't leak when TZ contains two or more '"'s
36961         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36962         double quote in TZ after the first one.
36963
36964         readtokens: do not leak internal token_lengths buffer
36965         * lib/readtokens.c (readtokens): Free the local, lengths,
36966         when the supplied "token_lengths" parameter is NULL.
36967
36968 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36969
36970         Fix a couple of missing LIBTHREAD link failures on AIX.
36971         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36972         $(LIBTHREAD).
36973         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36974
36975         Link test-poll against INET_PTON_LIB.
36976         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36977         for inet_pton on Solaris 10.
36978
36979 2010-01-17  Bruno Haible  <bruno@clisp.org>
36980
36981         unistdio/*-sprintf: Fix typo in module description.
36982         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36983         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36984         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36985         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36986         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36987         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36988         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36989         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36990
36991 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36992
36993         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36994         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36995         variables in shell case patterns, for AIX and HP-UX ksh.
36996
36997         Split large sed scripts, for HP-UX sed.
36998         * modules/stdio: Split sed scripts around 50 sed commands,
36999         to avoid HP-UX limit of 99 commands, in the near future.
37000         * modules/string: Likewise.
37001         * modules/unistd: Likewise.
37002
37003         gnulib-tool: avoid writing in the current directory.
37004         * gnulib-tool (func_emit_lib_Makefile_am)
37005         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37006         not in the current directory, so concurrent gnulib-tool
37007         instances do not interfere.
37008
37009 2010-01-16  Jim Meyering  <meyering@redhat.com>
37010
37011         doc: update users.txt
37012         * users.txt: Add grep.
37013         (diffutils, gzip): Update URLs.
37014
37015 2010-01-12  Bruno Haible  <bruno@clisp.org>
37016
37017         posix_spawn: Avoid test failure on Cygwin.
37018         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37019         characters.
37020         Reported by Simon Josefsson.
37021
37022 2010-01-12  Bruno Haible  <bruno@clisp.org>
37023
37024         * tests/test-cond.c (main): When skipping the test, show the reason.
37025
37026 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37027
37028         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37029
37030 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37031
37032         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37033         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37034
37035 2010-01-12  Eric Blake  <ebb9@byu.net>
37036
37037         build: guarantee AS_VAR_IF
37038         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37039         (gl_AS_VAR_IF): Move...
37040         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37041         Reported by Simon Josefsson.
37042
37043 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37044
37045         * lib/stdio.in.h: Fix typo.
37046
37047 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37048
37049         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37050         libgpg-error.
37051
37052 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37053
37054         * tests/test-xalloc-die.sh: Use $EXEEXT.
37055
37056 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37057             Bruno Haible  <bruno@clisp.org>
37058
37059         getlogin, getlogin_r: Avoid test failure.
37060         * tests/test-getlogin.c: Include <stdio.h>.
37061         (main): Skip the test when the function fails because stdin is not a
37062         tty.
37063         * tests/test-getlogin_r.c: Include <stdio.h>.
37064         (main): Skip the test when the function fails because stdin is not a
37065         tty.
37066
37067 2010-01-11  Eric Blake  <ebb9@byu.net>
37068
37069         tests: avoid more large file warnings
37070         * tests/test-fflush.c: Avoid warning about ftell use.
37071         * tests/test-fseek.c: Avoid warning about fseek use.
37072
37073 2010-01-10  Bruno Haible  <bruno@clisp.org>
37074
37075         nproc: Work better on Linux when /proc and /sys are not mounted.
37076         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37077         as lower bound when, on glibc/Linux systems,
37078         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37079         Suggested by Pádraig Brady <P@draigbrady.com>.
37080         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37081
37082         nproc: Refactor.
37083         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37084         extracted from num_processors.
37085         (num_processors): Call it.
37086
37087 2010-01-11  Jim Meyering  <meyering@redhat.com>
37088
37089         utimecmp: avoid new warning from upcoming gcc-4.5.0
37090         * lib/utimecmp.c (BILLION): Define using #define rather than an
37091         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37092
37093 2010-01-11  Eric Blake  <ebb9@byu.net>
37094
37095         math: add portability warnings for classification macros
37096         * modules/math (Depends-on): Add warn-on-use.
37097         (Makefile.am): Provide new substitutions.
37098         * m4/math_h.m4 (gl_MATH_H): Require inline.
37099         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37100         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37101         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37102         implement warnings.
37103
37104         unistd: warn on use of environ without module
37105         * modules/unistd (Depends-on): Add warn-on-use.
37106         (Makefile.am): Provide new substitutions.
37107         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37108         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37109
37110         stdio: warn on suspicious uses
37111         * modules/stdio (Depends-on): Add warn-on-use.
37112         (Makefile.am): Provide new substitutions.
37113         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37114         fseeko.
37115         * lib/stdio.in.h (gets): Always warn on use.
37116         (fseek, ftell): Adjust when warnings are issued, and honor
37117         _GL_NO_LARGE_FILES as a way to silence the warning.
37118         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37119         any warning about large file offsets.
37120         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37121         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37122         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37123         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37124         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37125         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37126         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37127         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37128
37129         warn-on-use: new module
37130         * modules/warn-on-use: New file.
37131         * build-aux/warn-on-use.h: Likewise.
37132         * m4/warn-on-use.m4: Likewise.
37133         * MODULES.html.sh (Support for building): Mention it.
37134
37135 2010-01-10  Bruno Haible  <bruno@clisp.org>
37136
37137         Tests for module 'unistr/u32-strdup'.
37138         * modules/unistr/u32-strdup-tests: New file.
37139         * tests/unistr/test-u32-strdup.c: New file.
37140
37141         Tests for module 'unistr/u16-strdup'.
37142         * modules/unistr/u16-strdup-tests: New file.
37143         * tests/unistr/test-u16-strdup.c: New file.
37144
37145         Tests for module 'unistr/u8-strdup'.
37146         * modules/unistr/u8-strdup-tests: New file.
37147         * tests/unistr/test-u8-strdup.c: New file.
37148         * tests/unistr/test-strdup.h: New file.
37149
37150         Tests for module 'unistr/u32-strncmp'.
37151         * modules/unistr/u32-strncmp-tests: New file.
37152         * tests/unistr/test-u32-strncmp.c: New file.
37153
37154         Tests for module 'unistr/u16-strncmp'.
37155         * modules/unistr/u16-strncmp-tests: New file.
37156         * tests/unistr/test-u16-strncmp.c: New file.
37157
37158         Tests for module 'unistr/u8-strncmp'.
37159         * modules/unistr/u8-strncmp-tests: New file.
37160         * tests/unistr/test-u8-strncmp.c: New file.
37161         * tests/unistr/test-strncmp.h: New file.
37162
37163         Tests for module 'unistr/u32-strcoll'.
37164         * modules/unistr/u32-strcoll-tests: New file.
37165         * tests/unistr/test-u32-strcoll.c: New file.
37166
37167         Tests for module 'unistr/u16-strcoll'.
37168         * modules/unistr/u16-strcoll-tests: New file.
37169         * tests/unistr/test-u16-strcoll.c: New file.
37170
37171         Tests for module 'unistr/u8-strcoll'.
37172         * modules/unistr/u8-strcoll-tests: New file.
37173         * tests/unistr/test-u8-strcoll.c: New file.
37174
37175         Tests for module 'unistr/u32-strcmp'.
37176         * modules/unistr/u32-strcmp-tests: New file.
37177         * tests/unistr/test-u32-strcmp.c: New file.
37178         * tests/unistr/test-u32-strcmp.h: New file.
37179
37180         Tests for module 'unistr/u16-strcmp'.
37181         * modules/unistr/u16-strcmp-tests: New file.
37182         * tests/unistr/test-u16-strcmp.c: New file.
37183         * tests/unistr/test-u16-strcmp.h: New file.
37184
37185         Tests for module 'unistr/u8-strcmp'.
37186         * modules/unistr/u8-strcmp-tests: New file.
37187         * tests/unistr/test-u8-strcmp.c: New file.
37188         * tests/unistr/test-u8-strcmp.h: New file.
37189         * tests/unistr/test-strcmp.h: New file.
37190
37191         Tests for module 'unistr/u32-strncat'.
37192         * modules/unistr/u32-strncat-tests: New file.
37193         * tests/unistr/test-u32-strncat.c: New file.
37194
37195         Tests for module 'unistr/u16-strncat'.
37196         * modules/unistr/u16-strncat-tests: New file.
37197         * tests/unistr/test-u16-strncat.c: New file.
37198
37199         Tests for module 'unistr/u8-strncat'.
37200         * modules/unistr/u8-strncat-tests: New file.
37201         * tests/unistr/test-u8-strncat.c: New file.
37202         * tests/unistr/test-strncat.h: New file.
37203
37204         Tests for module 'unistr/u32-strcat'.
37205         * modules/unistr/u32-strcat-tests: New file.
37206         * tests/unistr/test-u32-strcat.c: New file.
37207
37208         Tests for module 'unistr/u16-strcat'.
37209         * modules/unistr/u16-strcat-tests: New file.
37210         * tests/unistr/test-u16-strcat.c: New file.
37211
37212         Tests for module 'unistr/u8-strcat'.
37213         * modules/unistr/u8-strcat-tests: New file.
37214         * tests/unistr/test-u8-strcat.c: New file.
37215         * tests/unistr/test-strcat.h: New file.
37216
37217         Tests for module 'unistr/u32-stpncpy'.
37218         * modules/unistr/u32-stpncpy-tests: New file.
37219         * tests/unistr/test-u32-stpncpy.c: New file.
37220
37221         Tests for module 'unistr/u16-stpncpy'.
37222         * modules/unistr/u16-stpncpy-tests: New file.
37223         * tests/unistr/test-u16-stpncpy.c: New file.
37224
37225         Tests for module 'unistr/u8-stpncpy'.
37226         * modules/unistr/u8-stpncpy-tests: New file.
37227         * tests/unistr/test-u8-stpncpy.c: New file.
37228         * tests/unistr/test-stpncpy.h: New file.
37229
37230         Tests for module 'unistr/u32-strncpy'.
37231         * modules/unistr/u32-strncpy-tests: New file.
37232         * tests/unistr/test-u32-strncpy.c: New file.
37233
37234         Tests for module 'unistr/u16-strncpy'.
37235         * modules/unistr/u16-strncpy-tests: New file.
37236         * tests/unistr/test-u16-strncpy.c: New file.
37237
37238         Tests for module 'unistr/u8-strncpy'.
37239         * modules/unistr/u8-strncpy-tests: New file.
37240         * tests/unistr/test-u8-strncpy.c: New file.
37241         * tests/unistr/test-strncpy.h: New file.
37242
37243         Tests for module 'unistr/u32-stpcpy'.
37244         * modules/unistr/u32-stpcpy-tests: New file.
37245         * tests/unistr/test-u32-stpcpy.c: New file.
37246
37247         Tests for module 'unistr/u16-stpcpy'.
37248         * modules/unistr/u16-stpcpy-tests: New file.
37249         * tests/unistr/test-u16-stpcpy.c: New file.
37250
37251         Tests for module 'unistr/u8-stpcpy'.
37252         * modules/unistr/u8-stpcpy-tests: New file.
37253         * tests/unistr/test-u8-stpcpy.c: New file.
37254         * tests/unistr/test-stpcpy.h: New file.
37255
37256         Tests for module 'unistr/u32-strcpy'.
37257         * modules/unistr/u32-strcpy-tests: New file.
37258         * tests/unistr/test-u32-strcpy.c: New file.
37259
37260         Tests for module 'unistr/u16-strcpy'.
37261         * modules/unistr/u16-strcpy-tests: New file.
37262         * tests/unistr/test-u16-strcpy.c: New file.
37263
37264         Tests for module 'unistr/u8-strcpy'.
37265         * modules/unistr/u8-strcpy-tests: New file.
37266         * tests/unistr/test-u8-strcpy.c: New file.
37267         * tests/unistr/test-strcpy.h: New file.
37268
37269         Tests for module 'unistr/u32-strnlen'.
37270         * modules/unistr/u32-strnlen-tests: New file.
37271         * tests/unistr/test-u32-strnlen.c: New file.
37272
37273         Tests for module 'unistr/u16-strnlen'.
37274         * modules/unistr/u16-strnlen-tests: New file.
37275         * tests/unistr/test-u16-strnlen.c: New file.
37276
37277         Tests for module 'unistr/u8-strnlen'.
37278         * modules/unistr/u8-strnlen-tests: New file.
37279         * tests/unistr/test-u8-strnlen.c: New file.
37280         * tests/unistr/test-strnlen.h: New file.
37281
37282         Tests for module 'unistr/u32-strlen'.
37283         * modules/unistr/u32-strlen-tests: New file.
37284         * tests/unistr/test-u32-strlen.c: New file.
37285
37286         Tests for module 'unistr/u16-strlen'.
37287         * modules/unistr/u16-strlen-tests: New file.
37288         * tests/unistr/test-u16-strlen.c: New file.
37289
37290         Tests for module 'unistr/u8-strlen'.
37291         * modules/unistr/u8-strlen-tests: New file.
37292         * tests/unistr/test-u8-strlen.c: New file.
37293
37294         Tests for module 'unistr/u32-prev'.
37295         * modules/unistr/u32-prev-tests: New file.
37296         * tests/unistr/test-u32-prev.c: New file.
37297
37298         Tests for module 'unistr/u16-prev'.
37299         * modules/unistr/u16-prev-tests: New file.
37300         * tests/unistr/test-u16-prev.c: New file.
37301
37302         Tests for module 'unistr/u8-prev'.
37303         * modules/unistr/u8-prev-tests: New file.
37304         * tests/unistr/test-u8-prev.c: New file.
37305
37306         Tests for module 'unistr/u32-next'.
37307         * modules/unistr/u32-next-tests: New file.
37308         * tests/unistr/test-u32-next.c: New file.
37309
37310         Tests for module 'unistr/u16-next'.
37311         * modules/unistr/u16-next-tests: New file.
37312         * tests/unistr/test-u16-next.c: New file.
37313
37314         Tests for module 'unistr/u8-next'.
37315         * modules/unistr/u8-next-tests: New file.
37316         * tests/unistr/test-u8-next.c: New file.
37317
37318         Tests for module 'unistr/u32-strmbtouc'.
37319         * modules/unistr/u32-strmbtouc-tests: New file.
37320         * tests/unistr/test-u32-strmbtouc.c: New file.
37321
37322         Tests for module 'unistr/u16-strmbtouc'.
37323         * modules/unistr/u16-strmbtouc-tests: New file.
37324         * tests/unistr/test-u16-strmbtouc.c: New file.
37325
37326         Tests for module 'unistr/u8-strmbtouc'.
37327         * modules/unistr/u8-strmbtouc-tests: New file.
37328         * tests/unistr/test-u8-strmbtouc.c: New file.
37329
37330         Tests for module 'unistr/u32-strmblen'.
37331         * modules/unistr/u32-strmblen-tests: New file.
37332         * tests/unistr/test-u32-strmblen.c: New file.
37333
37334         Tests for module 'unistr/u16-strmblen'.
37335         * modules/unistr/u16-strmblen-tests: New file.
37336         * tests/unistr/test-u16-strmblen.c: New file.
37337
37338         Tests for module 'unistr/u8-strmblen'.
37339         * modules/unistr/u8-strmblen-tests: New file.
37340         * tests/unistr/test-u8-strmblen.c: New file.
37341
37342         Tests for module 'unistr/u32-cpy-alloc'.
37343         * modules/unistr/u32-cpy-alloc-tests: New file.
37344         * tests/unistr/test-u32-cpy-alloc.c: New file.
37345
37346         Tests for module 'unistr/u16-cpy-alloc'.
37347         * modules/unistr/u16-cpy-alloc-tests: New file.
37348         * tests/unistr/test-u16-cpy-alloc.c: New file.
37349
37350         Tests for module 'unistr/u8-cpy-alloc'.
37351         * modules/unistr/u8-cpy-alloc-tests: New file.
37352         * tests/unistr/test-u8-cpy-alloc.c: New file.
37353         * tests/unistr/test-cpy-alloc.h: New file.
37354
37355         Tests for module 'unistr/u32-mbsnlen'.
37356         * modules/unistr/u32-mbsnlen-tests: New file.
37357         * tests/unistr/test-u32-mbsnlen.c: New file.
37358
37359         Tests for module 'unistr/u16-mbsnlen'.
37360         * modules/unistr/u16-mbsnlen-tests: New file.
37361         * tests/unistr/test-u16-mbsnlen.c: New file.
37362
37363         Tests for module 'unistr/u8-mbsnlen'.
37364         * modules/unistr/u8-mbsnlen-tests: New file.
37365         * tests/unistr/test-u8-mbsnlen.c: New file.
37366
37367         Tests for module 'unistr/u32-chr'.
37368         * modules/unistr/u32-chr-tests: New file.
37369         * tests/unistr/test-u32-chr.c: New file.
37370
37371         Tests for module 'unistr/u16-chr'.
37372         * modules/unistr/u16-chr-tests: New file.
37373         * tests/unistr/test-u16-chr.c: New file.
37374
37375         Tests for module 'unistr/u8-chr'.
37376         * modules/unistr/u8-chr-tests: New file.
37377         * tests/unistr/test-u8-chr.c: New file.
37378         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37379
37380         Tests for module 'unistr/u32-cmp2'.
37381         * modules/unistr/u32-cmp2-tests: New file.
37382         * tests/unistr/test-u32-cmp2.c: New file.
37383
37384         Tests for module 'unistr/u16-cmp2'.
37385         * modules/unistr/u16-cmp2-tests: New file.
37386         * tests/unistr/test-u16-cmp2.c: New file.
37387
37388         Tests for module 'unistr/u8-cmp2'.
37389         * modules/unistr/u8-cmp2-tests: New file.
37390         * tests/unistr/test-u8-cmp2.c: New file.
37391         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37392
37393         Tests for module 'unistr/u32-cmp'.
37394         * modules/unistr/u32-cmp-tests: New file.
37395         * tests/unistr/test-u32-cmp.c: New file.
37396
37397         Tests for module 'unistr/u16-cmp'.
37398         * modules/unistr/u16-cmp-tests: New file.
37399         * tests/unistr/test-u16-cmp.c: New file.
37400
37401         Tests for module 'unistr/u8-cmp'.
37402         * modules/unistr/u8-cmp-tests: New file.
37403         * tests/unistr/test-u8-cmp.c: New file.
37404         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37405
37406         Tests for module 'unistr/u32-set'.
37407         * modules/unistr/u32-set-tests: New file.
37408         * tests/unistr/test-u32-set.c: New file.
37409
37410         Tests for module 'unistr/u16-set'.
37411         * modules/unistr/u16-set-tests: New file.
37412         * tests/unistr/test-u16-set.c: New file.
37413
37414         Tests for module 'unistr/u8-set'.
37415         * modules/unistr/u8-set-tests: New file.
37416         * tests/unistr/test-u8-set.c: New file.
37417         * tests/unistr/test-set.h: New file.
37418
37419         Tests for module 'unistr/u32-move'.
37420         * modules/unistr/u32-move-tests: New file.
37421         * tests/unistr/test-u32-move.c: New file.
37422
37423         Tests for module 'unistr/u16-move'.
37424         * modules/unistr/u16-move-tests: New file.
37425         * tests/unistr/test-u16-move.c: New file.
37426
37427         Tests for module 'unistr/u8-move'.
37428         * modules/unistr/u8-move-tests: New file.
37429         * tests/unistr/test-u8-move.c: New file.
37430         * tests/unistr/test-move.h: New file.
37431
37432         Tests for module 'unistr/u32-cpy'.
37433         * modules/unistr/u32-cpy-tests: New file.
37434         * tests/unistr/test-u32-cpy.c: New file.
37435
37436         Tests for module 'unistr/u16-cpy'.
37437         * modules/unistr/u16-cpy-tests: New file.
37438         * tests/unistr/test-u16-cpy.c: New file.
37439
37440         Tests for module 'unistr/u8-cpy'.
37441         * modules/unistr/u8-cpy-tests: New file.
37442         * tests/unistr/test-u8-cpy.c: New file.
37443         * tests/unistr/test-cpy.h: New file.
37444
37445 2010-01-09  Bruno Haible  <bruno@clisp.org>
37446
37447         Tests for module 'unistr/u32-uctomb'.
37448         * modules/unistr/u32-uctomb-tests: New file.
37449         * tests/unistr/test-u32-uctomb.c: New file.
37450
37451         Tests for module 'unistr/u16-uctomb'.
37452         * modules/unistr/u16-uctomb-tests: New file.
37453         * tests/unistr/test-u16-uctomb.c: New file.
37454
37455         Tests for module 'unistr/u8-uctomb'.
37456         * modules/unistr/u8-uctomb-tests: New file.
37457         * tests/unistr/test-u8-uctomb.c: New file.
37458
37459         Tests for module 'unistr/u32-mbtoucr'.
37460         * modules/unistr/u32-mbtoucr-tests: New file.
37461         * tests/unistr/test-u32-mbtoucr.c: New file.
37462
37463         Tests for module 'unistr/u16-mbtoucr'.
37464         * modules/unistr/u16-mbtoucr-tests: New file.
37465         * tests/unistr/test-u16-mbtoucr.c: New file.
37466
37467         Tests for module 'unistr/u8-mbtoucr'.
37468         * modules/unistr/u8-mbtoucr-tests: New file.
37469         * tests/unistr/test-u8-mbtoucr.c: New file.
37470
37471         Tests for module 'unistr/u32-mbtouc'.
37472         * modules/unistr/u32-mbtouc-tests: New file.
37473         * tests/unistr/test-u32-mbtouc.c: New file.
37474
37475         Tests for module 'unistr/u16-mbtouc'.
37476         * modules/unistr/u16-mbtouc-tests: New file.
37477         * tests/unistr/test-u16-mbtouc.c: New file.
37478
37479         Tests for module 'unistr/u8-mbtouc'.
37480         * modules/unistr/u8-mbtouc-tests: New file.
37481         * tests/unistr/test-u8-mbtouc.c: New file.
37482
37483         Tests for module 'unistr/u32-mbtouc-unsafe'.
37484         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37485         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37486         * tests/unistr/test-u32-mbtouc.h: New file.
37487
37488         Tests for module 'unistr/u16-mbtouc-unsafe'.
37489         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37490         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37491         * tests/unistr/test-u16-mbtouc.h: New file.
37492
37493         Tests for module 'unistr/u8-mbtouc-unsafe'.
37494         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37495         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37496         * tests/unistr/test-u8-mbtouc.h: New file.
37497
37498         Tests for module 'unistr/u32-mblen'.
37499         * modules/unistr/u32-mblen-tests: New file.
37500         * tests/unistr/test-u32-mblen.c: New file.
37501
37502         Tests for module 'unistr/u16-mblen'.
37503         * modules/unistr/u16-mblen-tests: New file.
37504         * tests/unistr/test-u16-mblen.c: New file.
37505
37506         Tests for module 'unistr/u8-mblen'.
37507         * modules/unistr/u8-mblen-tests: New file.
37508         * tests/unistr/test-u8-mblen.c: New file.
37509
37510         Tests for module 'unistr/u32-to-u16'.
37511         * modules/unistr/u32-to-u16-tests: New file.
37512         * tests/unistr/test-u32-to-u16.c: New file.
37513
37514         Tests for module 'unistr/u32-to-u8'.
37515         * modules/unistr/u32-to-u8-tests: New file.
37516         * tests/unistr/test-u32-to-u8.c: New file.
37517
37518         Tests for module 'unistr/u16-to-u32'.
37519         * modules/unistr/u16-to-u32-tests: New file.
37520         * tests/unistr/test-u16-to-u32.c: New file.
37521
37522         Tests for module 'unistr/u16-to-u8'.
37523         * modules/unistr/u16-to-u8-tests: New file.
37524         * tests/unistr/test-u16-to-u8.c: New file.
37525
37526         Tests for module 'unistr/u8-to-u32'.
37527         * modules/unistr/u8-to-u32-tests: New file.
37528         * tests/unistr/test-u8-to-u32.c: New file.
37529
37530         Tests for module 'unistr/u8-to-u16'.
37531         * modules/unistr/u8-to-u16-tests: New file.
37532         * tests/unistr/test-u8-to-u16.c: New file.
37533
37534         Tests for module 'unistr/u32-check'.
37535         * modules/unistr/u32-check-tests: New file.
37536         * tests/unistr/test-u32-check.c: New file.
37537
37538         Tests for module 'unistr/u16-check'.
37539         * modules/unistr/u16-check-tests: New file.
37540         * tests/unistr/test-u16-check.c: New file.
37541
37542         Tests for module 'unistr/u8-check'.
37543         * modules/unistr/u8-check-tests: New file.
37544         * tests/unistr/test-u8-check.c: New file.
37545
37546         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37547         (category_equals): New function.
37548         (main): Add more tests.
37549         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37550
37551         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37552
37553 2010-01-10  Bruno Haible  <bruno@clisp.org>
37554
37555         unistr/u*-strcoll: Try harder to distinguish different strings.
37556         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37557         compare s1 and s2 to see if they are different.
37558
37559 2010-01-10  Bruno Haible  <bruno@clisp.org>
37560
37561         unistr/u*-stpncpy: Fix the return value.
37562         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37563         description of the return value consistent with stpncpy in glibc.
37564         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37565         written non-NUL unit.
37566
37567 2010-01-10  Bruno Haible  <bruno@clisp.org>
37568
37569         unistr/u*-next: Add missing dependencies.
37570         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37571         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37572         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37573
37574 2010-01-10  Bruno Haible  <bruno@clisp.org>
37575
37576         unistr/u8-mbsnlen: Fix return value for incomplete character.
37577         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37578         u8_mblen.
37579         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37580         Remove unistr/u8-mblen.
37581         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37582         u16_mblen.
37583         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37584         Remove unistr/u16-mblen.
37585
37586 2010-01-10  Bruno Haible  <bruno@clisp.org>
37587
37588         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37589         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37590         Reported by Brian Gough <bjg@gnu.org> and
37591         Chris Clayton <chris2553@googlemail.com> via
37592         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37593
37594 2010-01-09  Bruno Haible  <bruno@clisp.org>
37595
37596         unistr/u16-to-u32: Reject invalid input.
37597         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37598         u16_mbtouc.
37599         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37600         Remove unistr/u16-mbtouc.
37601
37602         unistr/u16-to-u8: Reject invalid input.
37603         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37604         u16_mbtouc.
37605         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37606         Remove unistr/u16-mbtouc.
37607
37608         unistr/u8-to-u32: Reject invalid input.
37609         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37610         u8_mbtouc.
37611         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37612         Remove unistr/u8-mbtouc.
37613
37614         unistr/u8-to-u16: Reject invalid input.
37615         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37616         u8_mbtouc.
37617         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37618         Remove unistr/u8-mbtouc.
37619
37620 2010-01-09  Bruno Haible  <bruno@clisp.org>
37621
37622         Tests for module 'getlogin'.
37623         * modules/getlogin-tests: New file.
37624         * tests/test-getlogin.c: New file.
37625
37626         New module 'getlogin'.
37627         * lib/unistd.in.h (getlogin): New declaration.
37628         * lib/getlogin.c: New file.
37629         * m4/getlogin.m4: New file.
37630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37631         HAVE_GETLOGIN.
37632         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37633         HAVE_GETLOGIN.
37634         * modules/getlogin: New file.
37635         * doc/posix-functions/getlogin.texi: Mention the new module.
37636         Reported by John W. Eaton <jwe@gnu.org>.
37637
37638 2010-01-09  Bruno Haible  <bruno@clisp.org>
37639
37640         getlogin_r: Support for native Windows.
37641         * lib/getlogin_r.c: Include <windows.h>
37642         (getlogin_r): Implement for native Windows.
37643         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37644         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37645         via John W. Eaton <jwe@gnu.org>.
37646
37647 2010-01-09  Bruno Haible  <bruno@clisp.org>
37648
37649         getlogin_r: Small fixes.
37650         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37651         succeeds.
37652         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37653         before testing whether getlogin_r is declared. No need to set
37654         HAVE_DECL_GETLOGIN_R to 1.
37655         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37656
37657 2010-01-09  Bruno Haible  <bruno@clisp.org>
37658
37659         * lib/unistd.in.h (getlogin_r): Add comment.
37660
37661 2010-01-09  Bruno Haible  <bruno@clisp.org>
37662
37663         Tests for module 'getlogin_r'.
37664         * modules/getlogin_r-tests: New file.
37665         * tests/test-getlogin_r.c: New file.
37666
37667 2010-01-09  Jim Meyering  <meyering@redhat.com>
37668
37669         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37670         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37671         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37672
37673 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37674
37675         * lib/dup2.c (rpl_dup2): Improve comment.
37676
37677 2010-01-08  Eric Blake  <ebb9@byu.net>
37678
37679         maint.mk: allow packages to add makefile @@ exceptions
37680         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37681         (sc_makefile_check): Rename...
37682         (sc_makefile_at_at_check): ...to this, and use hook.
37683
37684         dup2: work around mingw bug
37685         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37686         Reported by Simon Josefsson.
37687
37688 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37689
37690         glob: Fix C++ compilation.
37691         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37692         C++.
37693
37694 2010-01-07  Bruno Haible  <bruno@clisp.org>
37695
37696         Fix indentation of wctype.in.h, broken since 2007-01-06.
37697         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37698
37699 2010-01-07  Bruno Haible  <bruno@clisp.org>
37700
37701         mbslen: Avoid collision with system function.
37702         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37703         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37704         * m4/mbslen.m4: New file.
37705         * modules/mbslen (Files): Add it.
37706         (configure.ac): Invoke gl_MBSLEN.
37707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37708         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37709         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37710         via Ian Beckwith <ianb@erislabs.net>.
37711
37712 2010-01-07  Bruno Haible  <bruno@clisp.org>
37713
37714         dirent: Document the last fix.
37715         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37716
37717 2010-01-07  Bruno Haible  <bruno@clisp.org>
37718
37719         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37720         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37721         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37722         va_list are defined.
37723         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37724         Reported by Eric Blake.
37725
37726 2010-01-07  Bruno Haible  <bruno@clisp.org>
37727
37728         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37729         * modules/xlist (Depends-on): Add 'list',
37730         * modules/xoset (Depends-on): Add 'oset'.
37731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37732
37733 2010-01-07  Bruno Haible  <bruno@clisp.org>
37734
37735         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37736         * doc/posix-functions/strncasecmp.texi: Likewise.
37737
37738 2010-01-07  Bruno Haible  <bruno@clisp.org>
37739
37740         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37741
37742 2010-01-07  John W. Eaton  <jwe@octave.org>
37743
37744         wctype: allow C++ use
37745         * lib/wctype.in.h: Add extern "C" block for C++.
37746
37747 2010-01-06  Eric Blake  <ebb9@byu.net>
37748
37749         maint.mk: detect incorrect GFDL usage
37750         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37751
37752 2010-01-06  Jim Meyering  <meyering@redhat.com>
37753         and Eric Blake  <ebb9@byu.net>
37754
37755         maint.mk: ignore multi-line copyright in NEWS
37756         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37757
37758 2010-01-06  Eric Blake  <ebb9@byu.net>
37759
37760         select: add missing dependency
37761         * modules/select-tests (Depends-on): Move sockets dependency...
37762         * modules/select (Depends-on): ...here.
37763         Reported by Ian Beckwith.
37764
37765         doc: regenerate INSTALL
37766         * doc/INSTALL: Reflect recent autoconf update.
37767         * doc/INSTALL.ISO: Likewise.
37768         * doc/INSTALL.UTF-8: Likewise.
37769
37770         pread: fix compilation on glibc
37771         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37772         Reported by Ralf Wildenhues.
37773
37774         dirent: fix test failure
37775         * lib/dirent.in.h (includes): Guarantee ino_t.
37776         Reported by Ralf Wildenhues.
37777
37778 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37779
37780         linkat, renameat: avoid bad free
37781         * lib/at-func2.c (at_func2): Fix typo.
37782         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37783
37784 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37785
37786         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37787         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37788         to avoid failure of symlink test later.
37789
37790 2010-01-06  Eric Blake  <ebb9@byu.net>
37791
37792         stdio, unistd: guarantee ssize_t
37793         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37794         2008 are exposed when needed.
37795         * lib/stdio.in.h (includes): Likewise.
37796         Reported by Ralf Wildenhues.
37797
37798 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37799
37800         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37801         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37802         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37803
37804 2010-01-06  Jim Meyering  <meyering@redhat.com>
37805
37806         readtokens: this module *does* require xalloc.h
37807         It uses only functions that were omitted by the old syntax-check rule.
37808         * lib/readtokens.c: Include "xalloc.h" once again.
37809         * modules/readtokens (Depends-on): Add xalloc.
37810         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37811
37812 2010-01-05  Eric Blake  <ebb9@byu.net>
37813
37814         maint: support 'make announcement' from a VPATH build
37815         * top/maint.mk (announcement): Look for correct NEWS file.
37816
37817 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37818
37819         utimens (fdutimens): ignore a negative FD, per contract
37820         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37821         when we have a valid file descriptor.  Otherwise, using a brand
37822         new glibc (with just-patched futimens that now fails with EBADF)
37823         would cause this function to fail with ENOSYS.
37824         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37825         See also http://bugzilla.redhat.com/552320.
37826
37827 2010-01-05  Eric Blake  <ebb9@byu.net>
37828
37829         strcase: document what it provides
37830         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37831         gnulib module.
37832         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37833         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37834
37835 2010-01-05  Jim Meyering  <meyering@redhat.com>
37836
37837         maint: remove useless inclusions of "xalloc.h"
37838         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37839         * lib/readtokens.c: Likewise.
37840         * lib/same.c: Likewise.
37841         * modules/getloadavg (Depends-on): Remove xalloc.
37842         * modules/readtokens: Likewise.
37843         * modules/same: Likewise.
37844
37845         maint.mk: include 4 more function names in alloca.h-checking regexp
37846         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37847         regexp.  Before, we would give a false-positive (saying alloca.h
37848         is included unnecessarily) when the only uses involved omitted symbols.
37849
37850         xalloc.h: use consistent formatting
37851         * lib/xalloc.h: Move declarations to start in the first column.
37852
37853 2010-01-05  Eric Blake  <ebb9@byu.net>
37854
37855         mkdir: avoid xalloc
37856         * lib/mkdir.c (includes): Drop unused header.
37857         Reported by John W. Eaton.
37858
37859 2010-01-04  Jim Meyering  <meyering@redhat.com>
37860
37861         nl_langinfo: avoid configure-time syntax error
37862         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37863         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37864         the empty string.  Don't let that provoke a shell syntax error.
37865
37866         regcomp, regexec, fnmatch: avoid array bounds read error
37867         * lib/regcomp.c (build_equiv_class): From glibc:
37868         Use only the low 24 bits of a findidx return value as an index
37869         into the weights array.  Patch by Ulrich Drepper:
37870         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37871         * lib/regexec.c (check_node_accept_bytes): Likewise.
37872         * lib/fnmatch_loop.c (FCT): Likewise.
37873
37874         regcomp: skip collseq lookup when there are no rules
37875         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37876         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37877
37878         regcomp: recognize ill-formed { } expressions
37879         * lib/regcomp.c (parse_dup_op): From glibc:
37880         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37881
37882         regcomp: fix typo in comment
37883         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37884         s/satisfy/satisfies/.
37885
37886         regcomp: sync from glibc: remove dead store
37887         * lib/regcomp.c (duplicate_node_closure): Remove useless
37888         search_duplicated_node call and dead store.
37889
37890         regcomp: sync from glibc; always use nl_langinfo
37891         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37892         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37893         * modules/regex (Depends-on): Add nl_langinfo.
37894
37895 2010-01-04  Eric Blake  <ebb9@byu.net>
37896
37897         fdopendir: fix configure test
37898         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37899
37900 2010-01-01  Bruno Haible  <bruno@clisp.org>
37901
37902         wchar: Remove unused configure check.
37903         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37904
37905 2010-01-01  Eric Blake  <ebb9@byu.net>
37906
37907         headers: make check of system header explicit
37908         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37909         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37910         ourselves.
37911         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37912         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37913         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37914         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37915         internals.
37916         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37917         missing.
37918         Suggested by Bruno Haible.
37919
37920 2010-01-01  Jim Meyering  <meyering@redhat.com>
37921
37922         ChangeLog: tweak to eliminate unnecessary copyright line
37923         * ChangeLog: Remove a copyright line that was mistakenly updated
37924         by today's update-copyright run.  Reported by Eric Blake.
37925
37926         test-update-copyright: don't let envvar setting cause test failure
37927         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37928
37929 2010-01-01  Bruno Haible  <bruno@clisp.org>
37930
37931         localename: Avoid gcc warning.
37932         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37933         function if it is not used.
37934
37935 2010-01-01  Jim Meyering  <meyering@redhat.com>
37936
37937         update nearly all FSF copyright year lists to include 2010
37938         Use the same procedure as for 2009, outlined in
37939         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37940
37941         version-etc: set COPYRIGHT_YEAR to 2010
37942         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37943
37944 2009-12-31  Eric Blake  <ebb9@byu.net>
37945
37946         doc: correct availability of cygwin 1.5.x getopt
37947         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37948         variables.
37949         * doc/posix-functions/opterr.texi (opterr): Likewise.
37950         * doc/posix-functions/optind.texi (optind): Likewise.
37951         * doc/posix-functions/optopt.texi (optopt): Likewise.
37952         * doc/posix-functions/tzname.texi (tzname): Likewise.
37953
37954         openat: update maintainer
37955         * modules/openat (Maintainer): Add myself.
37956
37957         utimens: avoid shadowing warning
37958         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37959         buffers into one, to avoid shadowing, as well as avoiding a
37960         redundant stat.
37961         Reported by Jim Meyering.
37962
37963         test-dup2: avoid compiler warning
37964         * tests/test-dup2.c (is_inheritable): Only define if used.
37965
37966 2010-01-01  Bruno Haible  <bruno@clisp.org>
37967
37968         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37969         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37970         defined, use wctomb instead of wcrtomb.
37971
37972 2010-01-01  Bruno Haible  <bruno@clisp.org>
37973
37974         iconv: Reject native Solaris iconv.
37975         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37976         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37977
37978 2009-12-31  Bruno Haible  <bruno@clisp.org>
37979
37980         * tests/test-signal.c (main): Remove test of 'SIG'.
37981
37982 2009-12-31  Bruno Haible  <bruno@clisp.org>
37983
37984         spawn: Fix incomplete fix.
37985         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37986         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37987         warnings for GNULIB_POSIXCHECK again.
37988         Reported by Eric Blake.
37989
37990 2009-12-31  Bruno Haible  <bruno@clisp.org>
37991
37992         Avoid namespace pollution on glibc systems.
37993         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37994         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37995         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37996         glibc systems.
37997
37998 2009-12-31  Bruno Haible  <bruno@clisp.org>
37999
38000         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38001         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38002         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38003         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38004         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38005         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38006         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38007
38008 2009-12-31  Bruno Haible  <bruno@clisp.org>
38009
38010         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38011         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38012         afterwards.
38013
38014 2009-12-31  Bruno Haible  <bruno@clisp.org>
38015
38016         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38017         SYS_UTSNAME_H.
38018
38019 2009-12-31  Bruno Haible  <bruno@clisp.org>
38020
38021         spawn: Fix misapplied patch.
38022         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38023         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38024         warnings for GNULIB_POSIXCHECK.
38025
38026 2009-12-31  Bruno Haible  <bruno@clisp.org>
38027
38028         times: Update after sys_times changed.
38029         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38030         * modules/times (Files): Add it.
38031         (configure.ac): Invoke gl_FUNC_TIMES.
38032
38033 2009-12-31  Bruno Haible  <bruno@clisp.org>
38034
38035         Use AC_C_INLINE where necessary.
38036         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38037         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38039         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38040         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38041         * m4/mbiter.m4 (gl_MBITER): Likewise.
38042         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38043         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38044         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38045         * modules/u64 (configure.ac): Likewise.
38046
38047 2009-12-31  Bruno Haible  <bruno@clisp.org>
38048
38049         Use AC_C_INLINE instead of module 'inline' where possible.
38050         * modules/inline (Description): Clarify purpose.
38051         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38052         * modules/count-one-bits (Depends-on): Remove inline.
38053         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38054         * modules/openat (Depends-on): Remove inline.
38055         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38056         instead of depending on module 'inline'.
38057         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38058         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38059         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38060         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38061         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38062         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38063         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38064         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38065         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38066         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38067         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38068         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38069         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38070         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38071         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38072         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38073         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38074         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38075         Likewise.
38076         * modules/unictype/property-ascii-hex-digit (Depends-on,
38077         configure.ac): Likewise.
38078         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38079         configure.ac): Likewise.
38080         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38081         configure.ac): Likewise.
38082         * modules/unictype/property-bidi-block-separator (Depends-on,
38083         configure.ac): Likewise.
38084         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38085         configure.ac): Likewise.
38086         * modules/unictype/property-bidi-common-separator (Depends-on,
38087         configure.ac): Likewise.
38088         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38089         Likewise.
38090         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38091         configure.ac): Likewise.
38092         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38093         configure.ac): Likewise.
38094         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38095         configure.ac): Likewise.
38096         * modules/unictype/property-bidi-european-digit (Depends-on,
38097         configure.ac): Likewise.
38098         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38099         configure.ac): Likewise.
38100         * modules/unictype/property-bidi-left-to-right (Depends-on,
38101         configure.ac): Likewise.
38102         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38103         configure.ac): Likewise.
38104         * modules/unictype/property-bidi-other-neutral (Depends-on,
38105         configure.ac): Likewise.
38106         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38107         Likewise.
38108         * modules/unictype/property-bidi-segment-separator (Depends-on,
38109         configure.ac): Likewise.
38110         * modules/unictype/property-bidi-whitespace (Depends-on,
38111         configure.ac): Likewise.
38112         * modules/unictype/property-combining (Depends-on, configure.ac):
38113         Likewise.
38114         * modules/unictype/property-composite (Depends-on, configure.ac):
38115         Likewise.
38116         * modules/unictype/property-currency-symbol (Depends-on,
38117         configure.ac): Likewise.
38118         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38119         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38120         Likewise.
38121         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38122         configure.ac): Likewise.
38123         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38124         Likewise.
38125         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38126         Likewise.
38127         * modules/unictype/property-extender (Depends-on, configure.ac):
38128         Likewise.
38129         * modules/unictype/property-format-control (Depends-on, configure.ac):
38130         Likewise.
38131         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38132         Likewise.
38133         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38134         Likewise.
38135         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38136         Likewise.
38137         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38138         Likewise.
38139         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38140         Likewise.
38141         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38142         Likewise.
38143         * modules/unictype/property-id-start (Depends-on, configure.ac):
38144         Likewise.
38145         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38146         Likewise.
38147         * modules/unictype/property-ids-binary-operator (Depends-on,
38148         configure.ac): Likewise.
38149         * modules/unictype/property-ids-trinary-operator (Depends-on,
38150         configure.ac): Likewise.
38151         * modules/unictype/property-ignorable-control (Depends-on,
38152         configure.ac): Likewise.
38153         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38154         Likewise.
38155         * modules/unictype/property-join-control (Depends-on, configure.ac):
38156         Likewise.
38157         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38158         Likewise.
38159         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38160         Likewise.
38161         * modules/unictype/property-logical-order-exception (Depends-on,
38162         configure.ac): Likewise.
38163         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38164         Likewise.
38165         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38166         * modules/unictype/property-non-break (Depends-on, configure.ac):
38167         Likewise.
38168         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38169         Likewise.
38170         * modules/unictype/property-numeric (Depends-on, configure.ac):
38171         Likewise.
38172         * modules/unictype/property-other-alphabetic (Depends-on,
38173         configure.ac): Likewise.
38174         * modules/unictype/property-other-default-ignorable-code-point
38175         (Depends-on, configure.ac): Likewise.
38176         * modules/unictype/property-other-grapheme-extend (Depends-on,
38177         configure.ac): Likewise.
38178         * modules/unictype/property-other-id-continue (Depends-on,
38179         configure.ac): Likewise.
38180         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38181         Likewise.
38182         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38183         Likewise.
38184         * modules/unictype/property-other-math (Depends-on, configure.ac):
38185         Likewise.
38186         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38187         Likewise.
38188         * modules/unictype/property-paired-punctuation (Depends-on,
38189         configure.ac): Likewise.
38190         * modules/unictype/property-paragraph-separator (Depends-on,
38191         configure.ac): Likewise.
38192         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38193         Likewise.
38194         * modules/unictype/property-pattern-white-space (Depends-on,
38195         configure.ac): Likewise.
38196         * modules/unictype/property-private-use (Depends-on, configure.ac):
38197         Likewise.
38198         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38199         Likewise.
38200         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38201         Likewise.
38202         * modules/unictype/property-radical (Depends-on, configure.ac):
38203         Likewise.
38204         * modules/unictype/property-sentence-terminal (Depends-on,
38205         configure.ac): Likewise.
38206         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38207         Likewise.
38208         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38209         * modules/unictype/property-terminal-punctuation (Depends-on,
38210         configure.ac): Likewise.
38211         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38212         Likewise.
38213         * modules/unictype/property-unassigned-code-value (Depends-on,
38214         configure.ac): Likewise.
38215         * modules/unictype/property-unified-ideograph (Depends-on,
38216         configure.ac): Likewise.
38217         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38218         Likewise.
38219         * modules/unictype/property-variation-selector (Depends-on,
38220         configure.ac): Likewise.
38221         * modules/unictype/property-white-space (Depends-on, configure.ac):
38222         Likewise.
38223         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38224         Likewise.
38225         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38226         Likewise.
38227         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38228         Likewise.
38229         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38230         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38231         Likewise.
38232
38233 2009-12-31  Bruno Haible  <bruno@clisp.org>
38234
38235         Remove unnecessary AC_C_INLINE invocation.
38236         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38237         since 2009-08-21.
38238
38239 2009-12-31  Jim Meyering  <meyering@redhat.com>
38240
38241         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38242         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38243         With this change, we can all remove the gpg_key_ID = ... definition
38244         from our respective cfg.mk files.
38245
38246         maint.mk: create announcement template in ~/, not in /tmp
38247         * top/maint.mk (emit_upload_commands): Adjust.
38248         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38249         Remove temporary file, .ci-msg.
38250
38251 2009-12-31  Eric Blake  <ebb9@byu.net>
38252
38253         link-warning: always build headers with link warnings
38254         * modules/arpa_inet (Makefile.am): Always build replacement
38255         header.
38256         * modules/ctype (Makefile.am): Likewise.
38257         * modules/dirent (Makefile.am): Likewise.
38258         * modules/inttypes (Makefile.am): Likewise.
38259         * modules/langinfo (Makefile.am): Likewise.
38260         * modules/locale (Makefile.am): Likewise.
38261         * modules/spawn (Makefile.am): Likewise.
38262         * modules/sys_file (Makefile.am): Likewise.
38263         * modules/sys_ioctl (Makefile.am): Likewise.
38264         * modules/sys_select (Makefile.am): Likewise.
38265         * modules/sys_socket (Makefile.am): Likewise.
38266         * modules/sys_times (Makefile.am): Likewise.
38267         * modules/sys_utsname (Makefile.am): Likewise.
38268         * modules/sys_wait (Makefile.am): Likewise.
38269         * modules/wchar (Makefile.am): Likewise.
38270         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38271         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38272         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38273         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38274         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38275         Likewise.
38276         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38277         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38278         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38279         Likewise.
38280         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38281         Likewise.
38282         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38283         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38284         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38285         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38286         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38287         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38288         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38289         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38290         (gl_WCHAR_H_DEFAULTS): Likewise.
38291
38292 2009-12-31  Eric Blake  <ebb9@byu.net>
38293
38294         signal, spawn: use link warnings
38295         * lib/signal.in.h (sigset_t): Make unconditional.
38296         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38297         (sigpending, sigprocmask, sigaction): Add link warnings.
38298         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38299         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38300         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38301         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38302         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38303         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38304         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38305         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38306         (posix_spawn_file_actions_destroy)
38307         (posix_spawn_file_actions_addopen)
38308         (posix_spawn_file_actions_addclose)
38309         (posix_spawn_file_actions_adddup2): Likewise.
38310         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38311         * tests/test-signal.c (main): Enhance test.
38312
38313         spawn: improve wrapper support
38314         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38315         (gl_SPAWN_H_DEFAULTS): New defaults.
38316         * modules/spawn (Makefile.am): Substitute them.
38317         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38318         Only declare if missing or broken.
38319
38320         sys_times, sys_utsname: use include_next
38321         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38322         header.
38323         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38324         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38325         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38326         * modules/sys_times (Depends-on): Add include_next.
38327         (Makefile.am): Substitute additional values.
38328         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38329         * lib/sys_times.in.h (includes): Include native header, if
38330         available.
38331         * lib/sys_utsname.in.h (includes): Likewise.
38332         * tests/test-sys_times.c (main): Enhance test.
38333
38334         fdutimensat: revert prior patch
38335         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38336         utimens.h.
38337         Reported by Bruno Haible.
38338
38339 2009-12-30  Eric Blake  <ebb9@byu.net>
38340
38341         sys_wait: drop link-warning dependency
38342         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38343         link-warning efforts.
38344         * lib/sys_wait.in.h: Likewise.
38345
38346         fdutimensat: remove bogus dependency
38347         * modules/fdutimensat (Depends-on): Drop inline.
38348
38349         unistd: fix typo
38350         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38351
38352 2009-12-30  Bruno Haible  <bruno@clisp.org>
38353
38354         Fix compilation error with Solaris cc.
38355         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38356         * lib/unicase/u16-is-invariant.c: Likewise.
38357         * lib/unicase/u32-is-invariant.c: Likewise.
38358         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38359
38360 2009-12-30  Bruno Haible  <bruno@clisp.org>
38361
38362         Fix test crash.
38363         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38364         locales.
38365         Reported by Simon Josefsson <simon@josefsson.org>.
38366
38367 2009-12-30  Bruno Haible  <bruno@clisp.org>
38368
38369         Fix compilation error on most platforms.
38370         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38371         Reported by Simon Josefsson <simon@josefsson.org>
38372         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38373
38374 2009-12-30  Eric Blake  <ebb9@byu.net>
38375
38376         futimens, utimensat: work around ntfs-3g bug
38377         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38378         a ctime bug is present, and expand workaround to cover ntfs-3g.
38379         * lib/utimens.c (fdutimens, lutimens): Likewise.
38380         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38381         (validate_timespec): Adjust return value.
38382         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38383         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38384         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38385
38386 2009-12-29  Eric Blake  <ebb9@byu.net>
38387
38388         link-warning: make usage consistent
38389         * modules/ctype (Depends-on): Add link-warning.
38390         (Makefile.am): Update rules accordingly.
38391         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38392         * modules/locale (Depends-on, Makefile.am): Likewise.
38393         * modules/sys_file (Makefile.am): Likewise.
38394         * modules/getopt-posix (Makefile.am): Delete unused link warning
38395         efforts.
38396         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38397         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38398         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38399         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38400
38401         stdio: remove unused variables
38402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38403         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38404         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38405
38406         tests: test more substitute headers
38407         * modules/ctype-tests: New file.
38408         * modules/dirent-tests: Likewise.
38409         * modules/spawn-tests: Likewise.
38410         * modules/sys_file-tests: Likewise.
38411         * modules/sys_ioctl-tests: Likewise.
38412         * modules/sys_wait-tests: Likewise.
38413         * tests/test-ctype.c: Likewise.
38414         * tests/test-dirent.c: Likewise.
38415         * tests/test-spawn.c: Likewise.
38416         * tests/test-sys_file.c: Likewise.
38417         * tests/test-sys_ioctl.c: Likewise.
38418         * tests/test-sys_wait.c: Likewise.
38419         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38420         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38421         whether or not flock is in use.
38422
38423         tests: remove License section from module
38424         * modules/arpa_inet-tests: Remove unneeded section.
38425         * modules/byteswap-tests: Likewise.
38426         * modules/ceilf-tests: Likewise.
38427         * modules/ceill-tests: Likewise.
38428         * modules/crypto/des-tests: Likewise.
38429         * modules/crypto/gc-arcfour-tests: Likewise.
38430         * modules/crypto/gc-arctwo-tests: Likewise.
38431         * modules/crypto/gc-des-tests: Likewise.
38432         * modules/crypto/gc-hmac-md5-tests: Likewise.
38433         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38434         * modules/crypto/gc-md2-tests: Likewise.
38435         * modules/crypto/gc-md4-tests: Likewise.
38436         * modules/crypto/gc-md5-tests: Likewise.
38437         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38438         * modules/crypto/gc-rijndael-tests: Likewise.
38439         * modules/crypto/gc-sha1-tests: Likewise.
38440         * modules/crypto/gc-tests: Likewise.
38441         * modules/crypto/md2-tests: Likewise.
38442         * modules/crypto/md4-tests: Likewise.
38443         * modules/fcntl-h-tests: Likewise.
38444         * modules/floorf-tests: Likewise.
38445         * modules/floorl-tests: Likewise.
38446         * modules/frexp-nolibm-tests: Likewise.
38447         * modules/frexp-tests: Likewise.
38448         * modules/frexpl-nolibm-tests: Likewise.
38449         * modules/frexpl-tests: Likewise.
38450         * modules/getaddrinfo-tests: Likewise.
38451         * modules/inttypes-tests: Likewise.
38452         * modules/isfinite-tests: Likewise.
38453         * modules/isinf-tests: Likewise.
38454         * modules/ldexpl-tests: Likewise.
38455         * modules/locale-tests: Likewise.
38456         * modules/math-tests: Likewise.
38457         * modules/netdb-tests: Likewise.
38458         * modules/netinet_in-tests: Likewise.
38459         * modules/printf-frexp-tests: Likewise.
38460         * modules/printf-frexpl-tests: Likewise.
38461         * modules/priv-set-tests: Likewise.
38462         * modules/random_r-tests: Likewise.
38463         * modules/round-tests: Likewise.
38464         * modules/roundf-tests: Likewise.
38465         * modules/roundl-tests: Likewise.
38466         * modules/search-tests: Likewise.
38467         * modules/select-tests: Likewise.
38468         * modules/signal-tests: Likewise.
38469         * modules/stdbool-tests: Likewise.
38470         * modules/stddef-tests: Likewise.
38471         * modules/stdint-tests: Likewise.
38472         * modules/stdio-tests: Likewise.
38473         * modules/stdlib-tests: Likewise.
38474         * modules/string-tests: Likewise.
38475         * modules/strings-tests: Likewise.
38476         * modules/sys_select-tests: Likewise.
38477         * modules/sys_socket-tests: Likewise.
38478         * modules/sys_stat-tests: Likewise.
38479         * modules/sys_time-tests: Likewise.
38480         * modules/sys_utsname-tests: Likewise.
38481         * modules/sysexits-tests: Likewise.
38482         * modules/time-tests: Likewise.
38483         * modules/trunc-tests: Likewise.
38484         * modules/truncf-tests: Likewise.
38485         * modules/truncl-tests: Likewise.
38486         * modules/tsearch-tests: Likewise.
38487         * modules/unistd-tests: Likewise.
38488         * modules/wchar-tests: Likewise.
38489         * modules/wctype-tests: Likewise.
38490
38491         tests: fix license on several tests
38492         * tests/test-des.c: Update to GPLv3+.
38493         * tests/test-flock.c: Likewise.
38494         * tests/test-fsync.c: Likewise.
38495         * tests/test-futimens.h: Likewise.
38496         * tests/test-gc-arcfour.c: Likewise.
38497         * tests/test-gc-arctwo.c: Likewise.
38498         * tests/test-gc-des.c: Likewise.
38499         * tests/test-gc-hmac-md5.c: Likewise.
38500         * tests/test-gc-hmac-sha1.c: Likewise.
38501         * tests/test-gc-md2.c: Likewise.
38502         * tests/test-gc-md4.c: Likewise.
38503         * tests/test-gc-md5.c: Likewise.
38504         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38505         * tests/test-gc-rijndael.c: Likewise.
38506         * tests/test-gc-sha1.c: Likewise.
38507         * tests/test-gc.c: Likewise.
38508         * tests/test-getcwd.c: Likewise.
38509         * tests/test-link.c: Likewise.
38510         * tests/test-link.h: Likewise.
38511         * tests/test-lutimens.h: Likewise.
38512         * tests/test-md2.c: Likewise.
38513         * tests/test-md4.c: Likewise.
38514         * tests/test-mkdir.h: Likewise.
38515         * tests/test-rename.c: Likewise.
38516         * tests/test-rename.h: Likewise.
38517         * tests/test-safe-alloc.c: Likewise.
38518         * tests/test-utimens-common.h: Likewise.
38519         * tests/test-utimens.h: Likewise.
38520
38521         maint: sync license texts
38522         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38523         * doc/gpl-3.0.texi: Revert copyright year update.
38524         * doc/lgpl-3.0.texi: Likewise.
38525
38526 2009-12-29  Jim Meyering  <meyering@redhat.com>
38527
38528         update nearly all FSF copyright year lists to include 2009
38529         The files named by the following are exempted:
38530             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38531               test -f "$dst" && { echo "$dst"; continue; }
38532               test -d "$dst" || continue
38533               echo "$dst"/$(basename "$src")
38534             done > exempt
38535             git ls-files tests/unictype >> exempt
38536         In the remaining files, convert to all-interval notation if
38537         - there is already at least one year interval like 2000-2003
38538         - the file is maintained by me
38539         - the file is in lib/uni*/, where that style already prevails
38540         Otherwise, use update-copyright's default.
38541
38542 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38543         and Eric Blake  <ebb9@byu.net>
38544
38545         tests: don't require debug system() to pass
38546         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38547         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38548         * tests/test-unlink.h (test_unlink_func): Likewise.
38549         * tests/test-fstatat.c (main): ...into callers.
38550         * tests/test-lstat.c (main): Likewise.
38551         * tests/test-rmdir.c (main): Likewise.
38552         * tests/test-unlink.c (main): Likewise.
38553         * tests/test-unlinkat.c (main): Likewise.
38554         * tests/test-areadlink-with-size.c (main): Don't require a
38555         debug-only system call to pass, aiding cross-testing to mingw.
38556         * tests/test-areadlink.c (main): Likewise.
38557         * tests/test-areadlinkat-with-size.c (main): Likewise.
38558         * tests/test-areadlinkat.c (main): Likewise.
38559         * tests/test-canonicalize-lgpl.c (main): Likewise.
38560         * tests/test-canonicalize.c (main): Likewise.
38561         * tests/test-chown.c (main): Likewise.
38562         * tests/test-fchownat.c (main): Likewise.
38563         * tests/test-lchown.c (main): Likewise.
38564         * tests/test-fdutimensat.c (main): Likewise.
38565         * tests/test-futimens.c (main): Likewise.
38566         * tests/test-link.c (main): Likewise.
38567         * tests/test-linkat.c (main): Likewise.
38568         * tests/test-mkdir.c (main): Likewise.
38569         * tests/test-mkdirat.c (main): Likewise.
38570         * tests/test-mkfifo.c (main): Likewise.
38571         * tests/test-mkfifoat.c (main): Likewise.
38572         * tests/test-mknod.c (main): Likewise.
38573         * tests/test-readlink.c (main): Likewise.
38574         * tests/test-remove.c (main): Likewise.
38575         * tests/test-rename.c (main): Likewise.
38576         * tests/test-renameat.c (main): Likewise.
38577         * tests/test-symlink.c (main): Likewise.
38578         * tests/test-symlinkat.c (main): Likewise.
38579         * tests/test-utimens.c (main): Likewise.
38580         * tests/test-utimensat.c (main): Likewise.
38581
38582 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38583
38584         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38585         on $(UNUSED_PARAMETER_H) to avoid build failure.
38586
38587 2009-12-28  Jim Meyering  <meyering@redhat.com>
38588
38589         update-copyright: you may specify a max. line length other than 72
38590         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38591
38592         maint: use consistent FSF copyright line syntax
38593         * lib/posixtm.c: Add missing comma in FSF copyright line.
38594         * lib/posixtm.h: Likewise.
38595         * lib/getugroups.c: Add missing ", Inc.".
38596
38597         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38598         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38599         FSF copyright line.  Remove trailing blanks.
38600
38601 2009-12-28  Eric Blake  <ebb9@byu.net>
38602
38603         test-dup2: reduce dependencies
38604         * modules/cloexec (Configure.ac): Set witness.
38605         * modules/dup2-tests (Depends-on): Drop cloexec.
38606         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38607         not present.
38608         Suggested by Bruno Haible.
38609
38610 2009-12-26  Bruno Haible  <bruno@clisp.org>
38611
38612         Remove an unneeded dependency.
38613         * modules/fseterr (Depends-on): Remove dup2.
38614
38615 2009-12-26  Eric Blake  <ebb9@byu.net>
38616
38617         tests: use macros.h in more places
38618         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38619         (ASSERT_STREAM): Provide default of stderr.
38620         * tests/test-dirent-safer.c: Include macros.h, using alternate
38621         stream for assertions.
38622         * tests/test-dup-safer.c: Likewise.
38623         * tests/test-freopen-safer.c: Likewise.
38624         * tests/test-getopt.c: Likewise.
38625         * tests/test-openat-safer.c: Likewise.
38626         * tests/test-pipe.c: Likewise.
38627         * tests/test-popen-safer.c: Likewise.
38628         * modules/dirent-safer-tests (Files): Include macros.h.
38629         * modules/unistd-safer-tests (Files): Likewise.
38630         * modules/freopen-safer-tests (Files): Likewise.
38631         * modules/getopt-posix-tests (Files): Likewise.
38632         * modules/openat-safer-tests (Files): Likewise.
38633         * modules/pipe-tests (Files): Likewise.
38634
38635 2009-12-26  Bruno Haible  <bruno@clisp.org>
38636
38637         javacomp: Portability fix.
38638         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38639         that it also works on Solaris.
38640
38641 2009-12-26  Bruno Haible  <bruno@clisp.org>
38642
38643         localename: Fix storage allocation of gl_locale_name_thread's result.
38644         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38645         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38646         all platforms that have 'uselocale'.
38647         (gl_locale_name_thread_unsafe): New function, extracted from
38648         gl_locale_name_thread.
38649         (gl_locale_name_thread): Call struniq on all platforms that have
38650         'uselocale'.
38651         * tests/test-localename.c (test_locale_name_thread): Check that the
38652         resulting strings are permanently allocated.
38653         * modules/localename-tests (Depends-on): Add strdup.
38654
38655 2009-12-26  Bruno Haible  <bruno@clisp.org>
38656
38657         * tests/test-localename.c (categories): Fill in the strings.
38658
38659 2009-12-26  Jim Meyering  <meyering@redhat.com>
38660
38661         isdir: complete the removal of m4/isdir.m4
38662         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38663
38664         isdir: clean up, since at least grep still uses it
38665         * lib/isdir.c: Include "isdir.h".
38666         (S_ISDIR): Remove now-unneeded definition.
38667         * modules/isdir (Files): Add lib/isdir.h.
38668         * lib/isdir.h: New file, with declaration.
38669         * m4/isdir.m4: Remove file -- unneeded.
38670
38671 2009-12-25  Bruno Haible  <bruno@clisp.org>
38672
38673         selinux-h: Make generated .h files standalone.
38674         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38675         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38676         * lib/se-selinux.in.h: Likewise.
38677         * modules/selinux-h (Depends-on): Add unused-parameter.
38678         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38679         selinux/selinux.h and selinux/context.h.
38680         Suggested by Eric Blake.
38681
38682 2009-12-25  Bruno Haible  <bruno@clisp.org>
38683
38684         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38685         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38686         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38687         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38688         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38689
38690 2009-12-24  Bruno Haible  <bruno@clisp.org>
38691
38692         openat: Fix warning.
38693         * lib/openat-proc.c: Include <unistd.h>.
38694
38695 2009-12-24  Bruno Haible  <bruno@clisp.org>
38696
38697         New module 'unused-parameter'.
38698         * build-aux/unused-parameter.h: New file, extracted from earlier
38699         gnulib-common.m4.
38700         * modules/unused-parameter: New file.
38701         * lib/unistr.h: Include unused-parameter.h.
38702         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38703         _GL_UNUSED.
38704         * modules/unistr/base (Depends-on): Add unused-parameter.
38705
38706 2009-12-24  Bruno Haible  <bruno@clisp.org>
38707
38708         Add missing dependencies to 'extensions' module.
38709         * m4/extensions.m4: Add comment.
38710         * modules/accept4 (Depends-on): Add extensions.
38711         * modules/dup3 (Depends-on): Likewise.
38712         * modules/fcntl (Depends-on): Likewise.
38713         * modules/futimens (Depends-on): Likewise.
38714         * modules/mknod (Depends-on): Likewise.
38715         * modules/pipe2 (Depends-on): Likewise.
38716         * modules/stat-time (Depends-on): Likewise.
38717         * modules/strcasestr-simple (Depends-on): Likewise.
38718         * modules/strsignal (Depends-on): Likewise.
38719         * modules/utimensat (Depends-on): Likewise.
38720         * modules/localcharset (Depends-on): Likewise. Needed because of
38721         gl_FCNTL_O_FLAGS.
38722         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38723         AC_TYPE_MBSTATE_T.
38724         * modules/wcsnrtombs (Depends-on): Likewise.
38725         * modules/wcsrtombs (Depends-on): Likewise.
38726
38727 2009-12-24  Bruno Haible  <bruno@clisp.org>
38728
38729         binary-io: Avoid gcc warning due to SET_BINARY.
38730         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38731         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38732
38733 2009-12-24  Bruno Haible  <bruno@clisp.org>
38734
38735         Avoid future namespace pollution on glibc systems.
38736         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38737         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38738         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38739         glibc systems.
38740
38741 2009-12-24  Bruno Haible  <bruno@clisp.org>
38742
38743         Refactor common macros used in tests.
38744         * tests/macros.h: New file.
38745         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38746         and/or <stdlib.h>, if appropriate.
38747         (ASSERT, SIZEOF): Remove macros.
38748         * tests/test-areadlink-with-size.c: Likewise.
38749         * tests/test-areadlinkat.c: Likewise.
38750         * tests/test-areadlinkat-with-size.c: Likewise.
38751         * tests/test-argmatch.c: Likewise.
38752         * tests/test-argv-iter.c: Likewise.
38753         * tests/test-array-mergesort.c: Likewise.
38754         * tests/test-array_list.c: Likewise.
38755         * tests/test-array_oset.c: Likewise.
38756         * tests/test-avltree_list.c: Likewise.
38757         * tests/test-avltree_oset.c: Likewise.
38758         * tests/test-avltreehash_list.c: Likewise.
38759         * tests/test-base64.c: Likewise.
38760         * tests/test-binary-io.c: Likewise.
38761         * tests/test-bitrotate.c: Likewise.
38762         * tests/test-btowc.c: Likewise.
38763         * tests/test-byteswap.c: Likewise.
38764         * tests/test-c-ctype.c: Likewise.
38765         * tests/test-c-stack.c: Likewise.
38766         * tests/test-c-strcasecmp.c: Likewise.
38767         * tests/test-c-strcasestr.c: Likewise.
38768         * tests/test-c-strncasecmp.c: Likewise.
38769         * tests/test-c-strstr.c: Likewise.
38770         * tests/test-canonicalize-lgpl.c: Likewise.
38771         * tests/test-canonicalize.c: Likewise.
38772         * tests/test-carray_list.c: Likewise.
38773         * tests/test-ceilf1.c: Likewise.
38774         * tests/test-ceilf2.c: Likewise.
38775         * tests/test-ceill.c: Likewise.
38776         * tests/test-chown.c: Likewise.
38777         * tests/test-cloexec.c: Likewise.
38778         * tests/test-copy-acl.c: Likewise.
38779         * tests/test-copy-file.c: Likewise.
38780         * tests/test-count-one-bits.c: Likewise.
38781         * tests/test-dprintf-posix.c: Likewise.
38782         * tests/test-dup2.c: Likewise.
38783         * tests/test-dup3.c: Likewise.
38784         * tests/test-duplocale.c: Likewise.
38785         * tests/test-fbufmode.c: Likewise.
38786         * tests/test-fchdir.c: Likewise.
38787         * tests/test-fchownat.c: Likewise.
38788         * tests/test-fcntl-safer.c: Likewise.
38789         * tests/test-fcntl.c: Likewise.
38790         * tests/test-fdopendir.c: Likewise.
38791         * tests/test-fdutimensat.c: Likewise.
38792         * tests/test-fflush2.c: Likewise.
38793         * tests/test-file-has-acl.c: Likewise.
38794         * tests/test-filevercmp.c: Likewise.
38795         * tests/test-flock.c: Likewise.
38796         * tests/test-floorf1.c: Likewise.
38797         * tests/test-floorf2.c: Likewise.
38798         * tests/test-floorl.c: Likewise.
38799         * tests/test-fnmatch.c: Likewise.
38800         * tests/test-fopen.h: Likewise.
38801         * tests/test-fpending.c: Likewise.
38802         * tests/test-fprintf-posix.c: Likewise.
38803         * tests/test-fpurge.c: Likewise.
38804         * tests/test-freadable.c: Likewise.
38805         * tests/test-freadahead.c: Likewise.
38806         * tests/test-freading.c: Likewise.
38807         * tests/test-freadptr.c: Likewise.
38808         * tests/test-freadptr2.c: Likewise.
38809         * tests/test-freadseek.c: Likewise.
38810         * tests/test-freopen.c: Likewise.
38811         * tests/test-frexp.c: Likewise.
38812         * tests/test-frexpl.c: Likewise.
38813         * tests/test-fseek.c: Likewise.
38814         * tests/test-fseeko.c: Likewise.
38815         * tests/test-fstatat.c: Likewise.
38816         * tests/test-fstrcmp.c: Likewise.
38817         * tests/test-fsync.c: Likewise.
38818         * tests/test-ftell.c: Likewise.
38819         * tests/test-ftello.c: Likewise.
38820         * tests/test-func.c: Likewise.
38821         * tests/test-futimens.c: Likewise.
38822         * tests/test-fwritable.c: Likewise.
38823         * tests/test-fwriting.c: Likewise.
38824         * tests/test-getcwd.c: Likewise.
38825         * tests/test-getdate.c: Likewise.
38826         * tests/test-getdelim.c: Likewise.
38827         * tests/test-getdtablesize.c: Likewise.
38828         * tests/test-getgroups.c: Likewise.
38829         * tests/test-getline.c: Likewise.
38830         * tests/test-getndelim2.c: Likewise.
38831         * tests/test-glob.c: Likewise.
38832         * tests/test-hash.c: Likewise.
38833         * tests/test-i-ring.c: Likewise.
38834         * tests/test-iconv-utf.c: Likewise.
38835         * tests/test-iconv.c: Likewise.
38836         * tests/test-idpriv-drop.c: Likewise.
38837         * tests/test-idpriv-droptemp.c: Likewise.
38838         * tests/test-inet_ntop.c: Likewise.
38839         * tests/test-inet_pton.c: Likewise.
38840         * tests/test-isblank.c: Likewise.
38841         * tests/test-isfinite.c: Likewise.
38842         * tests/test-isinf.c: Likewise.
38843         * tests/test-isnan.c: Likewise.
38844         * tests/test-isnand.h: Likewise.
38845         * tests/test-isnanf.h: Likewise.
38846         * tests/test-isnanl.h: Likewise.
38847         * tests/test-lchown.c: Likewise.
38848         * tests/test-ldexpl.c: Likewise.
38849         * tests/test-link.c: Likewise.
38850         * tests/test-linkat.c: Likewise.
38851         * tests/test-linked_list.c: Likewise.
38852         * tests/test-linkedhash_list.c: Likewise.
38853         * tests/test-localename.c: Likewise.
38854         * tests/test-lseek.c: Likewise.
38855         * tests/test-lstat.c: Likewise.
38856         * tests/test-mbmemcasecmp.c: Likewise.
38857         * tests/test-mbmemcasecoll.c: Likewise.
38858         * tests/test-mbrtowc.c: Likewise.
38859         * tests/test-mbscasecmp.c: Likewise.
38860         * tests/test-mbscasestr1.c: Likewise.
38861         * tests/test-mbscasestr2.c: Likewise.
38862         * tests/test-mbscasestr3.c: Likewise.
38863         * tests/test-mbscasestr4.c: Likewise.
38864         * tests/test-mbschr.c: Likewise.
38865         * tests/test-mbscspn.c: Likewise.
38866         * tests/test-mbsinit.c: Likewise.
38867         * tests/test-mbsncasecmp.c: Likewise.
38868         * tests/test-mbsnrtowcs.c: Likewise.
38869         * tests/test-mbspbrk.c: Likewise.
38870         * tests/test-mbspcasecmp.c: Likewise.
38871         * tests/test-mbsrchr.c: Likewise.
38872         * tests/test-mbsrtowcs.c: Likewise.
38873         * tests/test-mbsspn.c: Likewise.
38874         * tests/test-mbsstr1.c: Likewise.
38875         * tests/test-mbsstr2.c: Likewise.
38876         * tests/test-mbsstr3.c: Likewise.
38877         * tests/test-memchr.c: Likewise.
38878         * tests/test-memchr2.c: Likewise.
38879         * tests/test-memcmp.c: Likewise.
38880         * tests/test-memmem.c: Likewise.
38881         * tests/test-memrchr.c: Likewise.
38882         * tests/test-mkdir.c: Likewise.
38883         * tests/test-mkdirat.c: Likewise.
38884         * tests/test-mkfifo.c: Likewise.
38885         * tests/test-mkfifoat.c: Likewise.
38886         * tests/test-mknod.c: Likewise.
38887         * tests/test-nanosleep.c: Likewise.
38888         * tests/test-nl_langinfo.c: Likewise.
38889         * tests/test-obstack-printf.c: Likewise.
38890         * tests/test-open.c: Likewise.
38891         * tests/test-openat.c: Likewise.
38892         * tests/test-pipe-filter-gi1.c: Likewise.
38893         * tests/test-pipe-filter-gi2-main.c: Likewise.
38894         * tests/test-pipe-filter-ii1.c: Likewise.
38895         * tests/test-pipe-filter-ii2-main.c: Likewise.
38896         * tests/test-pipe2.c: Likewise.
38897         * tests/test-popen.h: Likewise.
38898         * tests/test-posixtm.c: Likewise.
38899         * tests/test-pread.c: Likewise.
38900         * tests/test-printf-frexp.c: Likewise.
38901         * tests/test-printf-frexpl.c: Likewise.
38902         * tests/test-printf-posix.c: Likewise.
38903         * tests/test-priv-set.c: Likewise.
38904         * tests/test-quotearg.c: Likewise.
38905         * tests/test-random_r.c: Likewise.
38906         * tests/test-rawmemchr.c: Likewise.
38907         * tests/test-rbtree_list.c: Likewise.
38908         * tests/test-rbtree_oset.c: Likewise.
38909         * tests/test-rbtreehash_list.c: Likewise.
38910         * tests/test-readlink.c: Likewise.
38911         * tests/test-remove.c: Likewise.
38912         * tests/test-rename.c: Likewise.
38913         * tests/test-renameat.c: Likewise.
38914         * tests/test-rmdir.c: Likewise.
38915         * tests/test-round1.c: Likewise.
38916         * tests/test-roundf1.c: Likewise.
38917         * tests/test-roundl.c: Likewise.
38918         * tests/test-safe-alloc.c: Likewise.
38919         * tests/test-sameacls.c: Likewise.
38920         * tests/test-set-mode-acl.c: Likewise.
38921         * tests/test-setenv.c: Likewise.
38922         * tests/test-sigaction.c: Likewise.
38923         * tests/test-signbit.c: Likewise.
38924         * tests/test-sleep.c: Likewise.
38925         * tests/test-snprintf-posix.c: Likewise.
38926         * tests/test-snprintf.c: Likewise.
38927         * tests/test-sprintf-posix.c: Likewise.
38928         * tests/test-stat-time.c: Likewise.
38929         * tests/test-stat.c: Likewise.
38930         * tests/test-strcasestr.c: Likewise.
38931         * tests/test-strchrnul.c: Likewise.
38932         * tests/test-strerror.c: Likewise.
38933         * tests/test-striconv.c: Likewise.
38934         * tests/test-striconveh.c: Likewise.
38935         * tests/test-striconveha.c: Likewise.
38936         * tests/test-strsignal.c: Likewise.
38937         * tests/test-strstr.c: Likewise.
38938         * tests/test-strtod.c: Likewise.
38939         * tests/test-strverscmp.c: Likewise.
38940         * tests/test-symlink.c: Likewise.
38941         * tests/test-symlinkat.c: Likewise.
38942         * tests/test-trunc1.c: Likewise.
38943         * tests/test-trunc2.c: Likewise.
38944         * tests/test-truncf1.c: Likewise.
38945         * tests/test-truncf2.c: Likewise.
38946         * tests/test-truncl.c: Likewise.
38947         * tests/test-uname.c: Likewise.
38948         * tests/test-unlink.c: Likewise.
38949         * tests/test-unlinkat.c: Likewise.
38950         * tests/test-unsetenv.c: Likewise.
38951         * tests/test-usleep.c: Likewise.
38952         * tests/test-utimens.c: Likewise.
38953         * tests/test-utimensat.c: Likewise.
38954         * tests/test-vasnprintf-posix.c: Likewise.
38955         * tests/test-vasnprintf-posix2.c: Likewise.
38956         * tests/test-vasnprintf.c: Likewise.
38957         * tests/test-vasprintf-posix.c: Likewise.
38958         * tests/test-vasprintf.c: Likewise.
38959         * tests/test-vdprintf-posix.c: Likewise.
38960         * tests/test-vfprintf-posix.c: Likewise.
38961         * tests/test-vprintf-posix.c: Likewise.
38962         * tests/test-vsnprintf-posix.c: Likewise.
38963         * tests/test-vsnprintf.c: Likewise.
38964         * tests/test-vsprintf-posix.c: Likewise.
38965         * tests/test-wcrtomb.c: Likewise.
38966         * tests/test-wcsnrtombs.c: Likewise.
38967         * tests/test-wcsrtombs.c: Likewise.
38968         * tests/test-wctype.c: Likewise.
38969         * tests/test-wcwidth.c: Likewise.
38970         * tests/test-xfprintf-posix.c: Likewise.
38971         * tests/test-xmemdup0.c: Likewise.
38972         * tests/test-xprintf-posix.c: Likewise.
38973         * tests/test-xvasprintf.c: Likewise.
38974         * tests/unicase/test-locale-language.c: Likewise.
38975         * tests/unicase/test-mapping-part1.h: Likewise.
38976         * tests/unicase/test-predicate-part1.h: Likewise.
38977         * tests/unicase/test-u8-casecmp.c: Likewise.
38978         * tests/unicase/test-u8-casecoll.c: Likewise.
38979         * tests/unicase/test-u8-casefold.c: Likewise.
38980         * tests/unicase/test-u8-is-cased.c: Likewise.
38981         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38982         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38983         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38984         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38985         * tests/unicase/test-u8-tolower.c: Likewise.
38986         * tests/unicase/test-u8-totitle.c: Likewise.
38987         * tests/unicase/test-u8-toupper.c: Likewise.
38988         * tests/unicase/test-u16-casecmp.c: Likewise.
38989         * tests/unicase/test-u16-casecoll.c: Likewise.
38990         * tests/unicase/test-u16-casefold.c: Likewise.
38991         * tests/unicase/test-u16-is-cased.c: Likewise.
38992         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38993         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38994         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38995         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38996         * tests/unicase/test-u16-tolower.c: Likewise.
38997         * tests/unicase/test-u16-totitle.c: Likewise.
38998         * tests/unicase/test-u16-toupper.c: Likewise.
38999         * tests/unicase/test-u32-casecmp.c: Likewise.
39000         * tests/unicase/test-u32-casecoll.c: Likewise.
39001         * tests/unicase/test-u32-casefold.c: Likewise.
39002         * tests/unicase/test-u32-is-cased.c: Likewise.
39003         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39004         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39005         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39006         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39007         * tests/unicase/test-u32-tolower.c: Likewise.
39008         * tests/unicase/test-u32-totitle.c: Likewise.
39009         * tests/unicase/test-u32-toupper.c: Likewise.
39010         * tests/unicase/test-ulc-casecmp.c: Likewise.
39011         * tests/unicase/test-ulc-casecoll.c: Likewise.
39012         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39013         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39014         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39015         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39016         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39017         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39018         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39019         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39020         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39021         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39022         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39023         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39024         * tests/unictype/test-bidi_byname.c: Likewise.
39025         * tests/unictype/test-bidi_name.c: Likewise.
39026         * tests/unictype/test-bidi_of.c: Likewise.
39027         * tests/unictype/test-bidi_test.c: Likewise.
39028         * tests/unictype/test-block_list.c: Likewise.
39029         * tests/unictype/test-block_of.c: Likewise.
39030         * tests/unictype/test-block_test.c: Likewise.
39031         * tests/unictype/test-categ_and.c: Likewise.
39032         * tests/unictype/test-categ_and_not.c: Likewise.
39033         * tests/unictype/test-categ_byname.c: Likewise.
39034         * tests/unictype/test-categ_name.c: Likewise.
39035         * tests/unictype/test-categ_none.c: Likewise.
39036         * tests/unictype/test-categ_of.c: Likewise.
39037         * tests/unictype/test-categ_or.c: Likewise.
39038         * tests/unictype/test-categ_test_withtable.c: Likewise.
39039         * tests/unictype/test-combining.c: Likewise.
39040         * tests/unictype/test-decdigit.c: Likewise.
39041         * tests/unictype/test-digit.c: Likewise.
39042         * tests/unictype/test-mirror.c: Likewise.
39043         * tests/unictype/test-numeric.c: Likewise.
39044         * tests/unictype/test-pr_byname.c: Likewise.
39045         * tests/unictype/test-pr_test.c: Likewise.
39046         * tests/unictype/test-predicate-part1.h: Likewise.
39047         * tests/unictype/test-scripts.c: Likewise.
39048         * tests/unictype/test-sy_c_ident.c: Likewise.
39049         * tests/unictype/test-sy_java_ident.c: Likewise.
39050         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39051         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39052         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39053         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39054         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39055         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39056         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39057         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39058         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39059         * tests/uninorm/test-compat-decomposition.c: Likewise.
39060         * tests/uninorm/test-composition.c: Likewise.
39061         * tests/uninorm/test-decomposing-form.c: Likewise.
39062         * tests/uninorm/test-decomposition.c: Likewise.
39063         * tests/uninorm/test-u8-nfc.c: Likewise.
39064         * tests/uninorm/test-u8-nfd.c: Likewise.
39065         * tests/uninorm/test-u8-nfkc.c: Likewise.
39066         * tests/uninorm/test-u8-nfkd.c: Likewise.
39067         * tests/uninorm/test-u8-normcmp.c: Likewise.
39068         * tests/uninorm/test-u8-normcoll.c: Likewise.
39069         * tests/uninorm/test-u16-nfc.c: Likewise.
39070         * tests/uninorm/test-u16-nfd.c: Likewise.
39071         * tests/uninorm/test-u16-nfkc.c: Likewise.
39072         * tests/uninorm/test-u16-nfkd.c: Likewise.
39073         * tests/uninorm/test-u16-normcmp.c: Likewise.
39074         * tests/uninorm/test-u16-normcoll.c: Likewise.
39075         * tests/uninorm/test-u32-nfc.c: Likewise.
39076         * tests/uninorm/test-u32-nfd.c: Likewise.
39077         * tests/uninorm/test-u32-nfkc.c: Likewise.
39078         * tests/uninorm/test-u32-nfkd.c: Likewise.
39079         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39080         * tests/uninorm/test-u32-normcmp.c: Likewise.
39081         * tests/uninorm/test-u32-normcoll.c: Likewise.
39082         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39083         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39084         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39085         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39086         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39087         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39088         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39089         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39090         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39091         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39092         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39093         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39094         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39095         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39096         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39097         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39098         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39099         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39100         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39101         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39102         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39103         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39104         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39105         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39106         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39107         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39108         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39109         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39110         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39111         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39112         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39113         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39114         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39115         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39116         * tests/uniwidth/test-u8-width.c: Likewise.
39117         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39118         * tests/uniwidth/test-u16-width.c: Likewise.
39119         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39120         * tests/uniwidth/test-u32-width.c: Likewise.
39121         * tests/uniwidth/test-uc_width.c: Likewise.
39122         * tests/uniwidth/test-uc_width2.c: Likewise.
39123         * modules/acl-tests (Files): Add tests/macros.h.
39124         * modules/areadlink-tests (Files): Likewise.
39125         * modules/areadlink-with-size-tests (Files): Likewise.
39126         * modules/areadlinkat-tests (Files): Likewise.
39127         * modules/areadlinkat-with-size-tests (Files): Likewise.
39128         * modules/argmatch-tests (Files): Likewise.
39129         * modules/argv-iter-tests (Files): Likewise.
39130         * modules/array-list-tests (Files): Likewise.
39131         * modules/array-mergesort-tests (Files): Likewise.
39132         * modules/array-oset-tests (Files): Likewise.
39133         * modules/avltree-list-tests (Files): Likewise.
39134         * modules/avltree-oset-tests (Files): Likewise.
39135         * modules/avltreehash-list-tests (Files): Likewise.
39136         * modules/base64-tests (Files): Likewise.
39137         * modules/binary-io-tests (Files): Likewise.
39138         * modules/bitrotate-tests (Files): Likewise.
39139         * modules/btowc-tests (Files): Likewise.
39140         * modules/byteswap-tests (Files): Likewise.
39141         * modules/c-ctype-tests (Files): Likewise.
39142         * modules/c-stack-tests (Files): Likewise.
39143         * modules/c-strcase-tests (Files): Likewise.
39144         * modules/c-strcasestr-tests (Files): Likewise.
39145         * modules/c-strstr-tests (Files): Likewise.
39146         * modules/canonicalize-lgpl-tests (Files): Likewise.
39147         * modules/canonicalize-tests (Files): Likewise.
39148         * modules/carray-list-tests (Files): Likewise.
39149         * modules/ceilf-tests (Files): Likewise.
39150         * modules/ceill-tests (Files): Likewise.
39151         * modules/chown-tests (Files): Likewise.
39152         * modules/cloexec-tests (Files): Likewise.
39153         * modules/copy-file-tests (Files): Likewise.
39154         * modules/count-one-bits-tests (Files): Likewise.
39155         * modules/dprintf-posix-tests (Files): Likewise.
39156         * modules/dup2-tests (Files): Likewise.
39157         * modules/dup3-tests (Files): Likewise.
39158         * modules/duplocale-tests (Files): Likewise.
39159         * modules/fbufmode-tests (Files): Likewise.
39160         * modules/fchdir-tests (Files): Likewise.
39161         * modules/fcntl-safer-tests (Files): Likewise.
39162         * modules/fcntl-tests (Files): Likewise.
39163         * modules/fdopendir-tests (Files): Likewise.
39164         * modules/fdutimensat-tests (Files): Likewise.
39165         * modules/fflush-tests (Files): Likewise.
39166         * modules/filevercmp-tests (Files): Likewise.
39167         * modules/flock-tests (Files): Likewise.
39168         * modules/floorf-tests (Files): Likewise.
39169         * modules/floorl-tests (Files): Likewise.
39170         * modules/fnmatch-tests (Files): Likewise.
39171         * modules/fopen-safer-tests (Files): Likewise.
39172         * modules/fopen-tests (Files): Likewise.
39173         * modules/fpending-tests (Files): Likewise.
39174         * modules/fprintf-posix-tests (Files): Likewise.
39175         * modules/fpurge-tests (Files): Likewise.
39176         * modules/freadable-tests (Files): Likewise.
39177         * modules/freadahead-tests (Files): Likewise.
39178         * modules/freading-tests (Files): Likewise.
39179         * modules/freadptr-tests (Files): Likewise.
39180         * modules/freadseek-tests (Files): Likewise.
39181         * modules/freopen-tests (Files): Likewise.
39182         * modules/frexp-nolibm-tests (Files): Likewise.
39183         * modules/frexp-tests (Files): Likewise.
39184         * modules/frexpl-nolibm-tests (Files): Likewise.
39185         * modules/frexpl-tests (Files): Likewise.
39186         * modules/fseek-tests (Files): Likewise.
39187         * modules/fseeko-tests (Files): Likewise.
39188         * modules/fstrcmp-tests (Files): Likewise.
39189         * modules/fsync-tests (Files): Likewise.
39190         * modules/ftell-tests (Files): Likewise.
39191         * modules/ftello-tests (Files): Likewise.
39192         * modules/func-tests (Files): Likewise.
39193         * modules/futimens-tests (Files): Likewise.
39194         * modules/fwritable-tests (Files): Likewise.
39195         * modules/fwriting-tests (Files): Likewise.
39196         * modules/getcwd-tests (Files): Likewise.
39197         * modules/getdate-tests (Files): Likewise.
39198         * modules/getdelim-tests (Files): Likewise.
39199         * modules/getdtablesize-tests (Files): Likewise.
39200         * modules/getgroups-tests (Files): Likewise.
39201         * modules/getline-tests (Files): Likewise.
39202         * modules/getndelim2-tests (Files): Likewise.
39203         * modules/glob-tests (Files): Likewise.
39204         * modules/hash-tests (Files): Likewise.
39205         * modules/i-ring-tests (Files): Likewise.
39206         * modules/iconv-tests (Files): Likewise.
39207         * modules/iconv_open-utf-tests (Files): Likewise.
39208         * modules/idpriv-drop-tests (Files): Likewise.
39209         * modules/idpriv-droptemp-tests (Files): Likewise.
39210         * modules/inet_ntop-tests (Files): Likewise.
39211         * modules/inet_pton-tests (Files): Likewise.
39212         * modules/isblank-tests (Files): Likewise.
39213         * modules/isfinite-tests (Files): Likewise.
39214         * modules/isinf-tests (Files): Likewise.
39215         * modules/isnan-tests (Files): Likewise.
39216         * modules/isnand-nolibm-tests (Files): Likewise.
39217         * modules/isnand-tests (Files): Likewise.
39218         * modules/isnanf-nolibm-tests (Files): Likewise.
39219         * modules/isnanf-tests (Files): Likewise.
39220         * modules/isnanl-nolibm-tests (Files): Likewise.
39221         * modules/isnanl-tests (Files): Likewise.
39222         * modules/lchown-tests (Files): Likewise.
39223         * modules/ldexpl-tests (Files): Likewise.
39224         * modules/link-tests (Files): Likewise.
39225         * modules/linkat-tests (Files): Likewise.
39226         * modules/linked-list-tests (Files): Likewise.
39227         * modules/linkedhash-list-tests (Files): Likewise.
39228         * modules/localename-tests (Files): Likewise.
39229         * modules/lseek-tests (Files): Likewise.
39230         * modules/lstat-tests (Files): Likewise.
39231         * modules/mbmemcasecmp-tests (Files): Likewise.
39232         * modules/mbmemcasecoll-tests (Files): Likewise.
39233         * modules/mbrtowc-tests (Files): Likewise.
39234         * modules/mbscasecmp-tests (Files): Likewise.
39235         * modules/mbscasestr-tests (Files): Likewise.
39236         * modules/mbschr-tests (Files): Likewise.
39237         * modules/mbscspn-tests (Files): Likewise.
39238         * modules/mbsinit-tests (Files): Likewise.
39239         * modules/mbsncasecmp-tests (Files): Likewise.
39240         * modules/mbsnrtowcs-tests (Files): Likewise.
39241         * modules/mbspbrk-tests (Files): Likewise.
39242         * modules/mbspcasecmp-tests (Files): Likewise.
39243         * modules/mbsrchr-tests (Files): Likewise.
39244         * modules/mbsrtowcs-tests (Files): Likewise.
39245         * modules/mbsspn-tests (Files): Likewise.
39246         * modules/mbsstr-tests (Files): Likewise.
39247         * modules/memchr-tests (Files): Likewise.
39248         * modules/memchr2-tests (Files): Likewise.
39249         * modules/memcmp-tests (Files): Likewise.
39250         * modules/memmem-tests (Files): Likewise.
39251         * modules/memrchr-tests (Files): Likewise.
39252         * modules/mkdir-tests (Files): Likewise.
39253         * modules/mkfifo-tests (Files): Likewise.
39254         * modules/mkfifoat-tests (Files): Likewise.
39255         * modules/mknod-tests (Files): Likewise.
39256         * modules/nanosleep-tests (Files): Likewise.
39257         * modules/nl_langinfo-tests (Files): Likewise.
39258         * modules/obstack-printf-tests (Files): Likewise.
39259         * modules/open-tests (Files): Likewise.
39260         * modules/openat-tests (Files): Likewise.
39261         * modules/pipe-filter-gi-tests (Files): Likewise.
39262         * modules/pipe-filter-ii-tests (Files): Likewise.
39263         * modules/pipe2-tests (Files): Likewise.
39264         * modules/popen-safer-tests (Files): Likewise.
39265         * modules/popen-tests (Files): Likewise.
39266         * modules/posixtm-tests (Files): Likewise.
39267         * modules/pread-tests (Files): Likewise.
39268         * modules/printf-frexp-tests (Files): Likewise.
39269         * modules/printf-frexpl-tests (Files): Likewise.
39270         * modules/printf-posix-tests (Files): Likewise.
39271         * modules/priv-set-tests (Files): Likewise.
39272         * modules/quotearg-tests (Files): Likewise.
39273         * modules/random_r-tests (Files): Likewise.
39274         * modules/rawmemchr-tests (Files): Likewise.
39275         * modules/rbtree-list-tests (Files): Likewise.
39276         * modules/rbtree-oset-tests (Files): Likewise.
39277         * modules/rbtreehash-list-tests (Files): Likewise.
39278         * modules/readlink-tests (Files): Likewise.
39279         * modules/remove-tests (Files): Likewise.
39280         * modules/rename-tests (Files): Likewise.
39281         * modules/renameat-tests (Files): Likewise.
39282         * modules/rmdir-tests (Files): Likewise.
39283         * modules/round-tests (Files): Likewise.
39284         * modules/roundf-tests (Files): Likewise.
39285         * modules/roundl-tests (Files): Likewise.
39286         * modules/safe-alloc-tests (Files): Likewise.
39287         * modules/setenv-tests (Files): Likewise.
39288         * modules/sigaction-tests (Files): Likewise.
39289         * modules/signbit-tests (Files): Likewise.
39290         * modules/sleep-tests (Files): Likewise.
39291         * modules/snprintf-posix-tests (Files): Likewise.
39292         * modules/snprintf-tests (Files): Likewise.
39293         * modules/sprintf-posix-tests (Files): Likewise.
39294         * modules/stat-tests (Files): Likewise.
39295         * modules/stat-time-tests (Files): Likewise.
39296         * modules/strcasestr-tests (Files): Likewise.
39297         * modules/strchrnul-tests (Files): Likewise.
39298         * modules/strerror-tests (Files): Likewise.
39299         * modules/striconv-tests (Files): Likewise.
39300         * modules/striconveh-tests (Files): Likewise.
39301         * modules/striconveha-tests (Files): Likewise.
39302         * modules/strsignal-tests (Files): Likewise.
39303         * modules/strstr-tests (Files): Likewise.
39304         * modules/strtod-tests (Files): Likewise.
39305         * modules/strverscmp-tests (Files): Likewise.
39306         * modules/symlink-tests (Files): Likewise.
39307         * modules/symlinkat-tests (Files): Likewise.
39308         * modules/trunc-tests (Files): Likewise.
39309         * modules/truncf-tests (Files): Likewise.
39310         * modules/truncl-tests (Files): Likewise.
39311         * modules/uname-tests (Files): Likewise.
39312         * modules/unicase/cased-tests (Files): Likewise.
39313         * modules/unicase/ignorable-tests (Files): Likewise.
39314         * modules/unicase/locale-language-tests (Files): Likewise.
39315         * modules/unicase/tolower-tests (Files): Likewise.
39316         * modules/unicase/totitle-tests (Files): Likewise.
39317         * modules/unicase/toupper-tests (Files): Likewise.
39318         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39319         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39320         * modules/unicase/u8-casefold-tests (Files): Likewise.
39321         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39322         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39323         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39324         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39325         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39326         * modules/unicase/u8-tolower-tests (Files): Likewise.
39327         * modules/unicase/u8-totitle-tests (Files): Likewise.
39328         * modules/unicase/u8-toupper-tests (Files): Likewise.
39329         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39330         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39331         * modules/unicase/u16-casefold-tests (Files): Likewise.
39332         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39333         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39334         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39335         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39336         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39337         * modules/unicase/u16-tolower-tests (Files): Likewise.
39338         * modules/unicase/u16-totitle-tests (Files): Likewise.
39339         * modules/unicase/u16-toupper-tests (Files): Likewise.
39340         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39341         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39342         * modules/unicase/u32-casefold-tests (Files): Likewise.
39343         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39344         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39345         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39346         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39347         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39348         * modules/unicase/u32-tolower-tests (Files): Likewise.
39349         * modules/unicase/u32-totitle-tests (Files): Likewise.
39350         * modules/unicase/u32-toupper-tests (Files): Likewise.
39351         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39352         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39353         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39354         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39355         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39356         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39357         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39358         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39359         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39360         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39361         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39362         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39363         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39364         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39365         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39366         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39367         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39368         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39369         * modules/unictype/block-list-tests (Files): Likewise.
39370         * modules/unictype/block-of-tests (Files): Likewise.
39371         * modules/unictype/block-test-tests (Files): Likewise.
39372         * modules/unictype/category-C-tests (Files): Likewise.
39373         * modules/unictype/category-Cc-tests (Files): Likewise.
39374         * modules/unictype/category-Cf-tests (Files): Likewise.
39375         * modules/unictype/category-Cn-tests (Files): Likewise.
39376         * modules/unictype/category-Co-tests (Files): Likewise.
39377         * modules/unictype/category-Cs-tests (Files): Likewise.
39378         * modules/unictype/category-L-tests (Files): Likewise.
39379         * modules/unictype/category-Ll-tests (Files): Likewise.
39380         * modules/unictype/category-Lm-tests (Files): Likewise.
39381         * modules/unictype/category-Lo-tests (Files): Likewise.
39382         * modules/unictype/category-Lt-tests (Files): Likewise.
39383         * modules/unictype/category-Lu-tests (Files): Likewise.
39384         * modules/unictype/category-M-tests (Files): Likewise.
39385         * modules/unictype/category-Mc-tests (Files): Likewise.
39386         * modules/unictype/category-Me-tests (Files): Likewise.
39387         * modules/unictype/category-Mn-tests (Files): Likewise.
39388         * modules/unictype/category-N-tests (Files): Likewise.
39389         * modules/unictype/category-Nd-tests (Files): Likewise.
39390         * modules/unictype/category-Nl-tests (Files): Likewise.
39391         * modules/unictype/category-No-tests (Files): Likewise.
39392         * modules/unictype/category-P-tests (Files): Likewise.
39393         * modules/unictype/category-Pc-tests (Files): Likewise.
39394         * modules/unictype/category-Pd-tests (Files): Likewise.
39395         * modules/unictype/category-Pe-tests (Files): Likewise.
39396         * modules/unictype/category-Pf-tests (Files): Likewise.
39397         * modules/unictype/category-Pi-tests (Files): Likewise.
39398         * modules/unictype/category-Po-tests (Files): Likewise.
39399         * modules/unictype/category-Ps-tests (Files): Likewise.
39400         * modules/unictype/category-S-tests (Files): Likewise.
39401         * modules/unictype/category-Sc-tests (Files): Likewise.
39402         * modules/unictype/category-Sk-tests (Files): Likewise.
39403         * modules/unictype/category-Sm-tests (Files): Likewise.
39404         * modules/unictype/category-So-tests (Files): Likewise.
39405         * modules/unictype/category-Z-tests (Files): Likewise.
39406         * modules/unictype/category-Zl-tests (Files): Likewise.
39407         * modules/unictype/category-Zp-tests (Files): Likewise.
39408         * modules/unictype/category-Zs-tests (Files): Likewise.
39409         * modules/unictype/category-and-not-tests (Files): Likewise.
39410         * modules/unictype/category-and-tests (Files): Likewise.
39411         * modules/unictype/category-byname-tests (Files): Likewise.
39412         * modules/unictype/category-name-tests (Files): Likewise.
39413         * modules/unictype/category-none-tests (Files): Likewise.
39414         * modules/unictype/category-of-tests (Files): Likewise.
39415         * modules/unictype/category-or-tests (Files): Likewise.
39416         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39417         * modules/unictype/combining-class-tests (Files): Likewise.
39418         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39419         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39420         * modules/unictype/ctype-blank-tests (Files): Likewise.
39421         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39422         * modules/unictype/ctype-digit-tests (Files): Likewise.
39423         * modules/unictype/ctype-graph-tests (Files): Likewise.
39424         * modules/unictype/ctype-lower-tests (Files): Likewise.
39425         * modules/unictype/ctype-print-tests (Files): Likewise.
39426         * modules/unictype/ctype-punct-tests (Files): Likewise.
39427         * modules/unictype/ctype-space-tests (Files): Likewise.
39428         * modules/unictype/ctype-upper-tests (Files): Likewise.
39429         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39430         * modules/unictype/decimal-digit-tests (Files): Likewise.
39431         * modules/unictype/digit-tests (Files): Likewise.
39432         * modules/unictype/mirror-tests (Files): Likewise.
39433         * modules/unictype/numeric-tests (Files): Likewise.
39434         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39435         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39436         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39437         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39438         Likewise.
39439         * modules/unictype/property-bidi-block-separator-tests (Files):
39440         Likewise.
39441         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39442         Likewise.
39443         * modules/unictype/property-bidi-common-separator-tests (Files):
39444         Likewise.
39445         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39446         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39447         Likewise.
39448         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39449         Likewise.
39450         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39451         Likewise.
39452         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39453         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39454         Likewise.
39455         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39456         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39457         Likewise.
39458         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39459         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39460         * modules/unictype/property-bidi-segment-separator-tests (Files):
39461         Likewise.
39462         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39463         * modules/unictype/property-byname-tests (Files): Likewise.
39464         * modules/unictype/property-combining-tests (Files): Likewise.
39465         * modules/unictype/property-composite-tests (Files): Likewise.
39466         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39467         * modules/unictype/property-dash-tests (Files): Likewise.
39468         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39469         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39470         Likewise.
39471         * modules/unictype/property-deprecated-tests (Files): Likewise.
39472         * modules/unictype/property-diacritic-tests (Files): Likewise.
39473         * modules/unictype/property-extender-tests (Files): Likewise.
39474         * modules/unictype/property-format-control-tests (Files): Likewise.
39475         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39476         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39477         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39478         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39479         * modules/unictype/property-hyphen-tests (Files): Likewise.
39480         * modules/unictype/property-id-continue-tests (Files): Likewise.
39481         * modules/unictype/property-id-start-tests (Files): Likewise.
39482         * modules/unictype/property-ideographic-tests (Files): Likewise.
39483         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39484         * modules/unictype/property-ids-trinary-operator-tests (Files):
39485         Likewise.
39486         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39487         * modules/unictype/property-iso-control-tests (Files): Likewise.
39488         * modules/unictype/property-join-control-tests (Files): Likewise.
39489         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39490         * modules/unictype/property-line-separator-tests (Files): Likewise.
39491         * modules/unictype/property-logical-order-exception-tests (Files):
39492         Likewise.
39493         * modules/unictype/property-lowercase-tests (Files): Likewise.
39494         * modules/unictype/property-math-tests (Files): Likewise.
39495         * modules/unictype/property-non-break-tests (Files): Likewise.
39496         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39497         * modules/unictype/property-numeric-tests (Files): Likewise.
39498         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39499         * modules/unictype/property-other-default-ignorable-code-point-tests
39500         (Files): Likewise.
39501         * modules/unictype/property-other-grapheme-extend-tests (Files):
39502         Likewise.
39503         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39504         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39505         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39506         * modules/unictype/property-other-math-tests (Files): Likewise.
39507         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39508         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39509         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39510         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39511         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39512         * modules/unictype/property-private-use-tests (Files): Likewise.
39513         * modules/unictype/property-punctuation-tests (Files): Likewise.
39514         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39515         * modules/unictype/property-radical-tests (Files): Likewise.
39516         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39517         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39518         * modules/unictype/property-space-tests (Files): Likewise.
39519         * modules/unictype/property-terminal-punctuation-tests (Files):
39520         Likewise.
39521         * modules/unictype/property-test-tests (Files): Likewise.
39522         * modules/unictype/property-titlecase-tests (Files): Likewise.
39523         * modules/unictype/property-unassigned-code-value-tests (Files):
39524         Likewise.
39525         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39526         * modules/unictype/property-uppercase-tests (Files): Likewise.
39527         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39528         * modules/unictype/property-white-space-tests (Files): Likewise.
39529         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39530         * modules/unictype/property-xid-start-tests (Files): Likewise.
39531         * modules/unictype/property-zero-width-tests (Files): Likewise.
39532         * modules/unictype/scripts-tests (Files): Likewise.
39533         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39534         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39535         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39536         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39537         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39538         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39539         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39540         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39541         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39542         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39543         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39544         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39545         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39546         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39547         * modules/uninorm/composition-tests (Files): Likewise.
39548         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39549         * modules/uninorm/decomposition-tests (Files): Likewise.
39550         * modules/uninorm/filter-tests (Files): Likewise.
39551         * modules/uninorm/nfc-tests (Files): Likewise.
39552         * modules/uninorm/nfd-tests (Files): Likewise.
39553         * modules/uninorm/nfkc-tests (Files): Likewise.
39554         * modules/uninorm/nfkd-tests (Files): Likewise.
39555         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39556         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39557         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39558         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39559         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39560         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39561         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39562         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39563         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39564         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39565         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39566         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39567         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39568         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39569         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39570         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39571         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39572         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39573         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39574         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39575         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39576         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39577         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39578         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39579         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39580         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39581         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39582         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39583         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39584         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39585         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39586         * modules/uniwidth/u8-width-tests (Files): Likewise.
39587         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39588         * modules/uniwidth/u16-width-tests (Files): Likewise.
39589         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39590         * modules/uniwidth/u32-width-tests (Files): Likewise.
39591         * modules/uniwidth/width-tests (Files): Likewise.
39592         * modules/unlink-tests (Files): Likewise.
39593         * modules/unsetenv-tests (Files): Likewise.
39594         * modules/usleep-tests (Files): Likewise.
39595         * modules/utimens-tests (Files): Likewise.
39596         * modules/utimensat-tests (Files): Likewise.
39597         * modules/vasnprintf-posix-tests (Files): Likewise.
39598         * modules/vasnprintf-tests (Files): Likewise.
39599         * modules/vasprintf-posix-tests (Files): Likewise.
39600         * modules/vasprintf-tests (Files): Likewise.
39601         * modules/vdprintf-posix-tests (Files): Likewise.
39602         * modules/vfprintf-posix-tests (Files): Likewise.
39603         * modules/vprintf-posix-tests (Files): Likewise.
39604         * modules/vsnprintf-posix-tests (Files): Likewise.
39605         * modules/vsnprintf-tests (Files): Likewise.
39606         * modules/vsprintf-posix-tests (Files): Likewise.
39607         * modules/wcrtomb-tests (Files): Likewise.
39608         * modules/wcsnrtombs-tests (Files): Likewise.
39609         * modules/wcsrtombs-tests (Files): Likewise.
39610         * modules/wctype-tests (Files): Likewise.
39611         * modules/wcwidth-tests (Files): Likewise.
39612         * modules/xmemdup0-tests (Files): Likewise.
39613         * modules/xprintf-posix-tests (Files): Likewise.
39614         * modules/xvasprintf-tests (Files): Likewise.
39615
39616 2009-12-24  Eric Blake  <ebb9@byu.net>
39617
39618         test-nanosleep: fix typo
39619         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39620         patch.
39621         Reported by Bruno Haible.
39622
39623 2009-12-24  Bruno Haible  <bruno@clisp.org>
39624
39625         Reduce namespace pollution on glibc systems.
39626         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39627         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39628         systems.
39629         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39630         <getopt.h> on glibc systems.
39631         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39632         systems.
39633         * lib/fcntl.c: Include <unistd.h> here instead.
39634
39635 2009-12-24  Bruno Haible  <bruno@clisp.org>
39636
39637         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39638
39639 2009-12-24  Eric Blake  <ebb9@byu.net>
39640
39641         tests: add signature checks
39642         * tests/signature.h (SIGNATURE_CHECK): New file.
39643         * modules/atexit-tests (Files): Use it.
39644         * modules/btowc-tests (Files): Likewise.
39645         * modules/canonicalize-lgpl-tests (Files): Likewise.
39646         * modules/ceilf-tests (Files): Likewise.
39647         * modules/ceill-tests (Files): Likewise.
39648         * modules/chown-tests (Files): Likewise.
39649         * modules/dprintf-posix-tests (Files): Likewise.
39650         * modules/dup2-tests (Files): Likewise.
39651         * modules/dup3-tests (Files): Likewise.
39652         * modules/duplocale-tests (Files): Likewise.
39653         * modules/fchdir-tests (Files): Likewise.
39654         * modules/fcntl-tests (Files): Likewise.
39655         * modules/fdopendir-tests (Files): Likewise.
39656         * modules/fflush-tests (Files): Likewise.
39657         * modules/flock-tests (Files): Likewise.
39658         * modules/floorf-tests (Files): Likewise.
39659         * modules/floorl-tests (Files): Likewise.
39660         * modules/fnmatch-tests (Files): Likewise.
39661         * modules/fopen-tests (Files): Likewise.
39662         * modules/fprintf-posix-tests (Files): Likewise.
39663         * modules/freopen-tests (Files): Likewise.
39664         * modules/frexp-nolibm-tests (Files): Likewise.
39665         * modules/frexp-tests (Files): Likewise.
39666         * modules/frexpl-nolibm-tests (Files): Likewise.
39667         * modules/frexpl-tests (Files): Likewise.
39668         * modules/fseek-tests (Files): Likewise.
39669         * modules/fseeko-tests (Files): Likewise.
39670         * modules/fsync-tests (Files): Likewise.
39671         * modules/ftell-tests (Files): Likewise.
39672         * modules/ftello-tests (Files): Likewise.
39673         * modules/futimens-tests (Files): Likewise.
39674         * modules/getaddrinfo-tests (Files): Likewise.
39675         * modules/getcwd-tests (Files): Likewise.
39676         * modules/getdelim-tests (Files): Likewise.
39677         * modules/getdtablesize-tests (Files): Likewise.
39678         * modules/getgroups-tests (Files): Likewise.
39679         * modules/gethostname-tests (Files): Likewise.
39680         * modules/getline-tests (Files): Likewise.
39681         * modules/getopt-posix-tests (Files): Likewise.
39682         * modules/gettimeofday-tests (Files): Likewise.
39683         * modules/glob-tests (Files): Likewise.
39684         * modules/iconv-tests (Files): Likewise.
39685         * modules/inet_ntop-tests (Files): Likewise.
39686         * modules/inet_pton-tests (Files): Likewise.
39687         * modules/isblank-tests (Files): Likewise.
39688         * modules/lchown-tests (Files): Likewise.
39689         * modules/ldexpl-tests (Files): Likewise.
39690         * modules/link-tests (Files): Likewise.
39691         * modules/linkat-tests (Files): Likewise.
39692         * modules/lseek-tests (Files): Likewise.
39693         * modules/lstat-tests (Files): Likewise.
39694         * modules/mbrtowc-tests (Files): Likewise.
39695         * modules/mbsinit-tests (Files): Likewise.
39696         * modules/mbsnrtowcs-tests (Files): Likewise.
39697         * modules/mbsrtowcs-tests (Files): Likewise.
39698         * modules/memchr-tests (Files): Likewise.
39699         * modules/memcmp-tests (Files): Likewise.
39700         * modules/memmem-tests (Files): Likewise.
39701         * modules/memrchr-tests (Files): Likewise.
39702         * modules/mkdir-tests (Files): Likewise.
39703         * modules/mkfifo-tests (Files): Likewise.
39704         * modules/mkfifoat-tests (Files): Likewise.
39705         * modules/mknod-tests (Files): Likewise.
39706         * modules/nanosleep-tests (Files): Likewise.
39707         * modules/nl_langinfo-tests (Files): Likewise.
39708         * modules/obstack-printf-tests (Files): Likewise.
39709         * modules/open-tests (Files): Likewise.
39710         * modules/openat-tests (Files): Likewise.
39711         * modules/perror-tests (Files): Likewise.
39712         * modules/pipe2-tests (Files): Likewise.
39713         * modules/poll-tests (Files): Likewise.
39714         * modules/popen-tests (Files): Likewise.
39715         * modules/posix_spawn-tests (Files): Likewise.
39716         * modules/posix_spawnp-tests (Files): Likewise.
39717         * modules/pread-tests (Files): Likewise.
39718         * modules/printf-posix-tests (Files): Likewise.
39719         * modules/pty-tests (Files): Likewise.
39720         * modules/random_r-tests (Files): Likewise.
39721         * modules/rawmemchr-tests (Files): Likewise.
39722         * modules/readlink-tests (Files): Likewise.
39723         * modules/remove-tests (Files): Likewise.
39724         * modules/rename-tests (Files): Likewise.
39725         * modules/renameat-tests (Files): Likewise.
39726         * modules/rmdir-tests (Files): Likewise.
39727         * modules/round-tests (Files): Likewise.
39728         * modules/roundf-tests (Files): Likewise.
39729         * modules/roundl-tests (Files): Likewise.
39730         * modules/select-tests (Files): Likewise.
39731         * modules/setenv-tests (Files): Likewise.
39732         * modules/sigaction-tests (Files): Likewise.
39733         * modules/sleep-tests (Files): Likewise.
39734         * modules/snprintf-posix-tests (Files): Likewise.
39735         * modules/snprintf-tests (Files): Likewise.
39736         * modules/sprintf-posix-tests (Files): Likewise.
39737         * modules/stat-tests (Files): Likewise.
39738         * modules/strcasestr-tests (Files): Likewise.
39739         * modules/strchrnul-tests (Files): Likewise.
39740         * modules/strerror-tests (Files): Likewise.
39741         * modules/strsignal-tests (Files): Likewise.
39742         * modules/strstr-tests (Files): Likewise.
39743         * modules/strtod-tests (Files): Likewise.
39744         * modules/strverscmp-tests (Files): Likewise.
39745         * modules/symlink-tests (Files): Likewise.
39746         * modules/symlinkat-tests (Files): Likewise.
39747         * modules/times-tests (Files): Likewise.
39748         * modules/trunc-tests (Files): Likewise.
39749         * modules/truncf-tests (Files): Likewise.
39750         * modules/truncl-tests (Files): Likewise.
39751         * modules/tsearch-tests (Files): Likewise.
39752         * modules/uname-tests (Files): Likewise.
39753         * modules/unlink-tests (Files): Likewise.
39754         * modules/unsetenv-tests (Files): Likewise.
39755         * modules/usleep-tests (Files): Likewise.
39756         * modules/utimensat-tests (Files): Likewise.
39757         * modules/vasprintf-tests (Files): Likewise.
39758         * modules/vdprintf-posix-tests (Files): Likewise.
39759         * modules/vfprintf-posix-tests (Files): Likewise.
39760         * modules/vprintf-posix-tests (Files): Likewise.
39761         * modules/vsnprintf-posix-tests (Files): Likewise.
39762         * modules/vsnprintf-tests (Files): Likewise.
39763         * modules/vsprintf-posix-tests (Files): Likewise.
39764         * modules/wcrtomb-tests (Files): Likewise.
39765         * modules/wcsnrtombs-tests (Files): Likewise.
39766         * modules/wcsrtombs-tests (Files): Likewise.
39767         * modules/wcwidth-tests (Files): Likewise.
39768         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39769         * tests/test-isinf.c (isinf): Likewise.
39770         * tests/test-isnan.c (isnan): Likewise.
39771         * tests/test-signbit.c (signbit): Likewise.
39772         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39773         declaration, either as macro or with correct signature.
39774         (select): Ensure function under test is declared with correct
39775         signature in correct header.
39776         * tests/test-atexit.c (atexit): Likewise.
39777         * tests/test-btowc.c (btowc): Likewise.
39778         * tests/test-canonicalize-lgpl.c (realpath)
39779         (canonicalize_file_name): Likewise.
39780         * tests/test-ceilf1.c (ceilf): Likewise.
39781         * tests/test-ceill.c (ceill): Likewise.
39782         * tests/test-chown.c (chown): Likewise.
39783         * tests/test-dprintf-posix.c (dprintf): Likewise.
39784         * tests/test-dup2.c (dup2): Likewise.
39785         * tests/test-dup3.c (dup3): Likewise.
39786         * tests/test-duplocale.c (duplocale): Likewise.
39787         * tests/test-fchdir.c (fchdir): Likewise.
39788         * tests/test-fchownat.c (fchownat): Likewise.
39789         * tests/test-fcntl.c (fcntl): Likewise.
39790         * tests/test-fdopendir.c (fdopendir): Likewise.
39791         * tests/test-fflush.c (fflush): Likewise.
39792         * tests/test-flock.c (flock): Likewise.
39793         * tests/test-floorf1.c (floorf): Likewise.
39794         * tests/test-floorl.c (floorl): Likewise.
39795         * tests/test-fnmatch.c (fnmatch): Likewise.
39796         * tests/test-fopen.c (fopen): Likewise.
39797         * tests/test-fprintf-posix.c (fprintf): Likewise.
39798         * tests/test-freopen.c (freopen): Likewise.
39799         * tests/test-frexp.c (frexp): Likewise.
39800         * tests/test-frexpl.c (frexpl): Likewise.
39801         * tests/test-fseek.c (fseek): Likewise.
39802         * tests/test-fseeko.c (fseeko): Likewise.
39803         * tests/test-fstatat.c (fstatat): Likewise.
39804         * tests/test-fsync.c (fsync): Likewise.
39805         * tests/test-ftell.c (ftell): Likewise.
39806         * tests/test-ftello.c (ftello): Likewise.
39807         * tests/test-futimens.c (futimens): Likewise.
39808         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39809         (gai_strerror): Likewise.
39810         * tests/test-getcwd.c (getcwd): Likewise.
39811         * tests/test-getdelim.c (getdelim): Likewise.
39812         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39813         * tests/test-getgroups.c (getgroups): Likewise.
39814         * tests/test-gethostname.c (gethostname): Likewise.
39815         * tests/test-getline.c (getline): Likewise.
39816         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39817         Likewise.
39818         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39819         * tests/test-glob.c (glob, globfree): Likewise.
39820         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39821         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39822         * tests/test-inet_pton.c (inet_pton): Likewise.
39823         * tests/test-isblank.c (isblank): Likewise.
39824         * tests/test-lchown.c (lchown): Likewise.
39825         * tests/test-ldexpl.c (ldexpl): Likewise.
39826         * tests/test-link.c (link): Likewise.
39827         * tests/test-linkat.c (linkat): Likewise.
39828         * tests/test-lseek.c (lseek): Likewise.
39829         * tests/test-lstat.c (lstat): Likewise.
39830         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39831         * tests/test-mbsinit.c (mbsinit): Likewise.
39832         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39833         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39834         * tests/test-memchr.c (memchr): Likewise.
39835         * tests/test-memcmp.c (memcmp): Likewise.
39836         * tests/test-memmem.c (memmem): Likewise.
39837         * tests/test-memrchr.c (memrchr): Likewise.
39838         * tests/test-mkdir.c (mkdir): Likewise.
39839         * tests/test-mkdirat.c (mkdirat): Likewise.
39840         * tests/test-mkfifo.c (mkfifo): Likewise.
39841         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39842         * tests/test-mknod.c (mknod): Likewise.
39843         * tests/test-nanosleep.c (nanosleep): Likewise.
39844         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39845         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39846         Likewise.
39847         * tests/test-open.c (open): Likewise.
39848         * tests/test-openat.c (openat): Likewise.
39849         * tests/test-perror.c (perror): Likewise.
39850         * tests/test-pipe2.c (pipe2): Likewise.
39851         * tests/test-poll.c (poll): Likewise.
39852         * tests/test-popen.c (popen, pclose): Likewise.
39853         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39854         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39855         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39856         (posix_spawn_file_actions_destroy)
39857         (posix_spawn_file_actions_addclose)
39858         (posix_spawn_file_actions_addopen)
39859         (posix_spawn_file_actions_adddup2): Likewise.
39860         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39861         * tests/test-pread.c (pread): Likewise.
39862         * tests/test-printf-posix.c (printf): Likewise.
39863         * tests/test-pty.c (openpty, forkpty): Likewise.
39864         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39865         (random_r): Likewise.
39866         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39867         * tests/test-readlink.c (readlink): Likewise.
39868         * tests/test-remove.c (remove): Likewise.
39869         * tests/test-rename.c (rename): Likewise.
39870         * tests/test-renameat.c (renameat): Likewise.
39871         * tests/test-rmdir.c (rmdir): Likewise.
39872         * tests/test-round1.c (round): Likewise.
39873         * tests/test-roundf1.c (roundf): Likewise.
39874         * tests/test-roundl.c (roundl): Likewise.
39875         * tests/test-setenv.c (setenv): Likewise.
39876         * tests/test-sigaction.c (sigaction): Likewise.
39877         * tests/test-sleep.c (sleep): Likewise.
39878         * tests/test-snprintf.c (snprintf): Likewise.
39879         * tests/test-sprintf-posix.c (sprintf): Likewise.
39880         * tests/test-stat.c (stat): Likewise.
39881         * tests/test-stpncpy.c (stpncpy): Likewise.
39882         * tests/test-strcasestr.c (strcasestr): Likewise.
39883         * tests/test-strchrnul.c (strchrnul): Likewise.
39884         * tests/test-strerror.c (strerror): Likewise.
39885         * tests/test-strsignal.c (strsignal): Likewise.
39886         * tests/test-strstr.c (strstr): Likewise.
39887         * tests/test-strtod.c (strtod): Likewise.
39888         * tests/test-strverscmp.c (strverscmp): Likewise.
39889         * tests/test-symlink.c (symlink): Likewise.
39890         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39891         * tests/test-times.c (times): Likewise.
39892         * tests/test-trunc1.c (trunc): Likewise.
39893         * tests/test-truncf1.c (truncf): Likewise.
39894         * tests/test-truncl.c (truncl): Likewise.
39895         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39896         Likewise.
39897         * tests/test-uname.c (uname): Likewise.
39898         * tests/test-unlink.c (unlink): Likewise.
39899         * tests/test-unlinkat.c (unlinkat): Likewise.
39900         * tests/test-unsetenv.c (unsetenv): Likewise.
39901         * tests/test-usleep.c (usleep): Likewise.
39902         * tests/test-utimensat.c (utimensat): Likewise.
39903         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39904         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39905         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39906         * tests/test-vprintf-posix.c (vprintf): Likewise.
39907         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39908         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39909         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39910         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39911         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39912         * tests/test-wcwidth.c (wcwidth): Likewise.
39913
39914         build: pull in conditional headers during GNULIB_POSIXCHECK
39915         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39916         definitions from any conditionally-included headers.
39917         * lib/stdlib.in.h (includes): Likewise.
39918         * lib/unistd.in.h (includes): Likewise.
39919
39920 2009-12-24  Bruno Haible  <bruno@clisp.org>
39921
39922         * tests/test-argv-iter.c: Include header file being tested immediately
39923         after config.h.
39924         * tests/test-base64.c: Likewise.
39925         * tests/test-flock.c: Likewise.
39926         * tests/test-fsync.c: Likewise.
39927         * tests/test-getdate.c: Likewise.
39928         * tests/test-getndelim2.c: Likewise.
39929         * tests/test-isfinite.c: Likewise.
39930         * tests/test-isinf.c: Likewise.
39931         * tests/test-strerror.c: Likewise.
39932         * tests/test-strsignal.c: Likewise.
39933
39934 2009-12-23  Eric Blake  <ebb9@byu.net>
39935
39936         unistd: work around cygwin bug
39937         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39938         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39939         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39940
39941 2009-12-23  Bruno Haible  <bruno@clisp.org>
39942
39943         localename: More tests.
39944         * tests/test-localename.c (SIZEOF): New macro.
39945         (categories): New variable.
39946         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39947         test_locale_name_default): Add test w.r.t. thread locale.
39948         (test_locale_name_thread): New function.
39949         (main): Invoke it.
39950
39951         localename: Make aware of thread locale.
39952         * lib/localename.h (gl_locale_name_thread): New declaration.
39953         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39954         behaviour with respect to thread locale.
39955         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39956         <langinfo.h>, glthread/lock.h.
39957         (SIZE_BITS): New macro.
39958         (string_hash): New function.
39959         (struct hash_node): New type.
39960         (HASH_TABLE_SIZE): New macro.
39961         (struniq_hash_table, struniq_lock): New variables.
39962         (struniq): New function.
39963         (gl_locale_name_thread): New function.
39964         (gl_locale_name): Invoke it.
39965         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39966         * modules/localename (Depends-on): Add lock.
39967         Reported by Mike Gran <spk121@yahoo.com>.
39968
39969 2009-12-23  Eric Blake  <ebb9@byu.net>
39970
39971         va-args: new module
39972         * modules/va-args: New file.
39973         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39974         * MODULES.html.sh (Core language properties): Mention it.
39975
39976         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39977         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39978         named alias for __attribute__((__unused__)).
39979         * lib/chown.c: Update client.
39980         * lib/fchmodat.c: Likewise.
39981         * lib/fts.c: Likewise.
39982         * lib/getdate.y: Likewise.
39983         * lib/getgroups.c: Likewise.
39984         * lib/getopt.c: Likewise.
39985         * lib/getugroups.c: Likewise.
39986         * lib/mkdir.c: Likewise.
39987         * lib/mkfifo.c: Likewise.
39988         * lib/mkfifoat.c: Likewise.
39989         * lib/mknod.c: Likewise.
39990         * lib/mknodat.c: Likewise.
39991         * lib/readlink.c: Likewise.
39992         * lib/se-context.in.h: Likewise.
39993         * lib/se-selinux.in.h: Likewise.
39994         * lib/sockets.c: Likewise.
39995         * lib/symlink.c: Likewise.
39996         * lib/symlinkat.c: Likewise.
39997         * lib/unicodeio.c: Likewise.
39998         * lib/unistr.h: Likewise.
39999         * tests/test-areadlink.c: Likewise.
40000         * tests/test-areadlinkat.c: Likewise.
40001         * tests/test-filenamecat.c: Likewise.
40002         * tests/test-fseeko.c: Likewise.
40003         * tests/test-ftello.c: Likewise.
40004         * tests/test-getdate.c: Likewise.
40005         * tests/test-getgroups.c: Likewise.
40006         * tests/test-gethostname.c: Likewise.
40007         * tests/test-quotearg.c: Likewise.
40008         * tests/test-version-etc.c: Likewise.
40009         * tests/test-xalloc-die.c: Likewise.
40010         * tests/test-xfprintf-posix.c: Likewise.
40011         * tests/test-xprintf-posix.c: Likewise.
40012         * tests/test-xvasprintf.c: Likewise.
40013
40014         tests: avoid compiler warnings
40015         * tests/test-fcntl.c (main): Delete unused parameters.
40016         * tests/test-freopen-safer.c (main): Likewise.
40017         * tests/test-xalloc-die.c (main): Mark unused parameters.
40018         * tests/test-fseeko.c (main): Likewise.
40019         * tests/test-ftello.c (main): Likewise.
40020         * tests/test-nanosleep.c (main): Avoid declaration warning.
40021         * tests/test-sleep.c (main): Likewise.
40022         * tests/test-unsetenv.c (main): Silence warning about string
40023         literal.
40024         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40025
40026 2009-12-23  Bruno Haible  <bruno@clisp.org>
40027
40028         * tests/test-localename.c (test_locale_name): New function, extracted
40029         from main. Also test mixed situations.
40030         (test_locale_name_posix, test_locale_name_environ,
40031         test_locale_name_default): New functions.
40032         (main): Invoke them all.
40033         * modules/localename-tests (configure.ac): Test for newlocale.
40034
40035 2009-12-23  Bruno Haible  <bruno@clisp.org>
40036
40037         unistd: Ensure getcwd gets declared before being overridden.
40038         * lib/unistd.in.h: Conditionally include <io.h>.
40039
40040 2009-12-22  Bruno Haible  <bruno@clisp.org>
40041
40042         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40043         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40044         (gl_WCHAR_H): Invoke it.
40045         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40046         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40047         Reported by Karl Berry <karl@freefriends.org>.
40048
40049 2009-12-22  Eric Blake  <ebb9@byu.net>
40050
40051         math, unistd: avoid redundant includes
40052         * lib/math.in.h (isnan): No need to re-include <math.h>.
40053         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40054
40055         getsubopt: work around cygwin bug
40056         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40057         avoid conflicting with system getsubopt.
40058         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40059         bug.
40060
40061         getopt: synchronize from glibc
40062         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40063         parameter order.  Adjust all callers.
40064         (_getopt_internal_r, main): Adjust quoting in error messages.
40065         Drop considerations for outdated POSIX 1003.2 error message.
40066         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40067         callers.
40068         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40069
40070         test-getopt: test stderr behavior
40071         * modules/getopt-posix-tests (Depends-on): Add dup2.
40072         * tests/test-getopt.c (ASSERT): Avoid stderr.
40073         (main): Move stderr to a temporary file.
40074         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40075         Instead, add parameter to inform caller if output occurred.
40076         (test_getopt): Adjust all existing tests to expect silence, and
40077         add new tests of leading ":".
40078         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40079         glibc shortcomings with leading "-:" or "+:" in optstring.
40080         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40081         Likewise.
40082         * doc/posix-functions/getopt.texi (getopt): Likewise.
40083
40084         test-getopt: enhance test
40085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40086         supports optind=0.
40087         * tests/test-getopt.c (OPTIND_MIN): Move...
40088         * tests/test-getopt.h (OPTIND_MIN): ...here.
40089         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40090         Require that optind=0 works, since modern BSD supports it in
40091         addition to optreset, and since coreutils expects it.
40092         (test_getopt_long_only): New test.
40093         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40094         glibc shortcomings with 'W;', and enforcement of optind=0.
40095         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40096         Likewise.
40097
40098 2009-12-21  Bruno Haible  <bruno@clisp.org>
40099
40100         localename: Improvements for MacOS X and Cygwin.
40101         * lib/localename.h (gl_locale_name_environ): New declaration.
40102         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40103         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40104         (gl_locale_name_posix): Invoke it.
40105         (gl_locale_name_default): Add comments. Use Windows native API also on
40106         Cygwin.
40107
40108 2009-12-21  Bruno Haible  <bruno@clisp.org>
40109
40110         Update list of Win32 locale ids.
40111         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40112         (LANG_SAMI): Renamed from LANG_SAAMI.
40113         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40114         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40115         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40116         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40117         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40118         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40119         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40120         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40121         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40122         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40123         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40124         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40125         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40126         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40127         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40128         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40129         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40130         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40131         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40132         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40133         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40134         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40135         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40136         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40137         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40138         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40139         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40140         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40141         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40142         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40143         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40144         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40145         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40146         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40147         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40148         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40149         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40150         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40151         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40152         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40153         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40154         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40155         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40156         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40157         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40158         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40159         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40160         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40161         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40162         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40163         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40164         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40165         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40166         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40167         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40168         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40169         Add more languages and countries for Sami, Sorbian. Add more countries
40170         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40171         for Pashto. Change country for Syriac, Tswana.
40172
40173 2009-12-21  Eric Blake  <ebb9@byu.net>
40174
40175         test-utimens: avoid spurious failure
40176         * tests/test-chown.h (nap): Factor...
40177         * tests/nap.h: ...into new file.
40178         * tests/test-lchown.h (nap): Avoid duplication.
40179         * tests/test-utimens-common.h (nap): Use shared implementation,
40180         necessary on file systems with 1-second resolution.
40181         * modules/chown-tests (Files): Include new file.
40182         * modules/fdutimensat-tests (Files): Likewise.
40183         * modules/futimens-tests (Files): Likewise.
40184         * modules/lchown-tests (Files): Likewise.
40185         * modules/openat-tests (Files): Likewise.
40186         * modules/utimens-tests (Files): Likewise.
40187         * modules/utimensat-tests (Files): Likewise.
40188
40189 2009-12-19  Eric Blake  <ebb9@byu.net>
40190
40191         futimens, utimensat: work around Linux bug
40192         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40193         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40194         * lib/utimensat.c (rpl_utimensat): Work around it.
40195         * lib/futimens.c (rpl_futimens): Adjust comment.
40196
40197         utimens: work around Linux ctime bug
40198         * lib/utimens.c (detect_ctime_bug): New helper function.
40199         (update_timespec): Differentiate between workaround needed for
40200         this bug vs. what is needed for systems that lack utimensat.
40201         (fdutimens, lutimens): Work around bug.
40202
40203         utimens: check for ctime update
40204         * tests/test-utimens-common.h (check_ctime): Define.
40205         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40206         * tests/test-futimens.h (test_futimens): Likewise.
40207         * tests/test-lutimens.h (test_lutimens): Likewise.
40208         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40209         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40210
40211 2009-12-19  Bruno Haible  <bruno@clisp.org>
40212
40213         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40214         * tests/test-dprintf-posix2.sh: New file.
40215         * tests/test-dprintf-posix2.c: New file.
40216         * modules/dprintf-posix-tests (Files): Add them.
40217         (configure.ac): Check for getrlimit and setrlimit.
40218         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40219
40220 2009-12-19  Bruno Haible  <bruno@clisp.org>
40221
40222         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40223         * tests/test-fprintf-posix3.sh: New file.
40224         * tests/test-fprintf-posix3.c: New file.
40225         * modules/fprintf-posix-tests (Files): Add them.
40226         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40227
40228 2009-12-19  Eric Blake  <ebb9@byu.net>
40229
40230         dirfd: fix prototype
40231         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40232         * lib/dirfd.c (dirfd): Likewise.
40233
40234         canonicalize: reduce memory usage
40235         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40236         allocation to size.
40237         Reported by Solar Designer <solar@openwall.com>.
40238
40239 2009-12-19  Bruno Haible  <bruno@clisp.org>
40240
40241         New module attribute 'Applicability'.
40242         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40243         * gnulib-tool: New option --extract-applicability.
40244         (func_usage): Document it.
40245         (sed_extract_prog): Recognize it.
40246         (func_get_applicability): New function.
40247         (func_import): Generalize handling of 'link-warning' module.
40248         * modules/link-warning (Applicability): New section.
40249         * modules/arg-nonnull (Applicability): New section.
40250         Repoted by Simon Josefsson <simon@josefsson.org>.
40251
40252 2009-12-19  Bruno Haible  <bruno@clisp.org>
40253
40254         fflush: tweak
40255         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40256         * lib/fseeko.c (rpl_fseeko): Likewise.
40257
40258 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40259
40260         * lib/gl_list.h: Fix typo in comment.
40261
40262 2009-12-16  Eric Blake  <ebb9@byu.net>
40263
40264         fcntl: use to simplify other modules
40265         * modules/cloexec (Depends-on): Add fcntl.
40266         * modules/fchdir (Depends-on): Likewise.
40267         * modules/fd-safer-flag (Depends-on): Likewise.
40268         * modules/unistd-safer (Depends-on): Likewise.
40269         * modules/dup3 (configure.ac): Set module indicator.
40270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40271         missing.
40272         * lib/fchdir.c (_gl_register_dup): Fix comment.
40273         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40274         * lib/dup-safer.c (dup_safer): Likewise.
40275         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40276         * lib/dup3.c (dup3): Likewise.
40277         * tests/test-fchdir.c (main): Enhance test.
40278         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40279
40280         fcntl: port portions of fcntl to mingw
40281         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40282         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40283         replacement for mingw.
40284         * modules/fcntl (Description): Update.
40285         (Depends-on): Add dup2.
40286         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40287         * modules/fcntl-h (Makefile.am): Substitute it.
40288         * lib/fcntl.in.h (fcntl): Update declaration.
40289         (F_DUPFD, F_GETFD): New macros, when needed.
40290         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40291         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40292         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40293         we now guarantee.
40294
40295         fcntl: work around cygwin bug in F_DUPFD
40296         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40297         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40298         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40299         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40300         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40301
40302         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40303         * modules/fcntl (Files): List new files.
40304         (configure.ac): Run a test.
40305         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40306         * lib/fcntl.c (rpl_fcntl): Likewise.
40307         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40308         (gl_FCNTL_H): Always replace fcntl.h.
40309         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40310         * lib/fcntl.in.h (fcntl): Declare replacement.
40311         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40312         needed, plus a witness.
40313         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40314         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40315         * tests/test-fcntl.c: New file.
40316         * modules/fcntl-tests: Likewise.
40317
40318         binary-io: avoid potential compilation warning
40319         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40320         directives.
40321
40322         fflush: avoid compilation error on NetBSD
40323         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40324         between off_t and fpos_t, since the latter is sometimes a struct.
40325         * lib/fseeko.c (rpl_fseeko): Likewise.
40326         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40327
40328 2009-12-15  Eric Blake  <ebb9@byu.net>
40329
40330         fcntl-h, stdio, sys_ioctl: fix declarations
40331         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40332         function must not take arguments.
40333         * lib/sys_ioctl.in.h (ioctl): Likewise.
40334         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40335         (open): Add a link warning.
40336
40337 2009-12-15  Jim Meyering  <meyering@redhat.com>
40338
40339         areadlink, areadlink-with-size: relax license to LGPLv2+
40340         * modules/areadlink (License): Relax to LGPLv2+.
40341         * modules/areadlink-with-size (License): Likewise.
40342
40343 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40344             Bruno Haible  <bruno@clisp.org>
40345
40346         *printf: Fix memory leak.
40347         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40348         * lib/vfprintf.c (vfprintf): Likewise.
40349         * lib/dprintf.c (dprintf): Likewise.
40350         * lib/vdprintf.c (vdprintf): Likewise.
40351
40352 2009-12-14  Eric Blake  <ebb9@byu.net>
40353
40354         accept4: adjust module dependencies
40355         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40356
40357         utimens: one more try at avoiding compiler warning
40358         * lib/utimens.c (lutimens): Lower scope of result.
40359
40360 2009-12-13  Bruno Haible  <bruno@clisp.org>
40361
40362         Move the malloc checking from module 'list' to new module 'xlist'.
40363         * modules/xlist: New file.
40364         * lib/gl_xlist.h: New file.
40365         * lib/gl_xlist.c: New file.
40366         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40367         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40368         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40369         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40370         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40371         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40372         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40373         gl_sortedlist_nx_add): New declarations.
40374         (struct gl_list_implementation): Rename and change methods accordingly.
40375         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40376         (gl_list_nx_create): Renamed from gl_list_create.
40377         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40378         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40379         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40380         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40381         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40382         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40383         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40384         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40385         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40386         gl_list_create_empty.
40387         (gl_list_nx_create): Renamed from gl_list_create.
40388         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40389         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40390         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40391         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40392         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40393         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40394         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40395         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40396         * lib/gl_array_list.c: Don't include xalloc.h.
40397         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40398         NULL upon out-of-memory.
40399         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40400         out-of-memory.
40401         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40402         Change return type to 'int'.
40403         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40404         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40405         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40406         upon out-of-memory.
40407         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40408         upon out-of-memory.
40409         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40410         upon out-of-memory.
40411         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40412         upon out-of-memory.
40413         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40414         out-of-memory.
40415         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40416         Update.
40417         (gl_array_list_implementation): Update.
40418         * lib/gl_carray_list.c: Don't include xalloc.h.
40419         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40420         Return NULL upon out-of-memory.
40421         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40422         out-of-memory.
40423         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40424         Change return type to 'int'.
40425         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40426         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40427         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40428         upon out-of-memory.
40429         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40430         upon out-of-memory.
40431         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40432         out-of-memory.
40433         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40434         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40435         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40436         Update.
40437         (gl_carray_list_implementation): Update.
40438         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40439         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40440         gl_linked_create_empty. Return NULL upon out-of-memory.
40441         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40442         out-of-memory.
40443         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40444         Change return type to 'int'. Return -1 upon out-of-memory.
40445         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40446         out-of-memory.
40447         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40448         upon out-of-memory.
40449         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40450         upon out-of-memory.
40451         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40452         NULL upon out-of-memory.
40453         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40454         upon out-of-memory.
40455         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40456         out-of-memory.
40457         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40458         Update.
40459         * lib/gl_linked_list.c: Don't include xalloc.h.
40460         (gl_linked_list_implementation): Update.
40461         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40462         (add_to_bucket): Change return type to 'int'.
40463         (gl_linkedhash_list_implementation): Update.
40464         * lib/gl_anytree_list1.h (free_subtree): New function.
40465         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40466         gl_tree_create_empty. Return NULL upon out-of-memory.
40467         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40468         Change return type to 'int'. Return -1 upon out-of-memory.
40469         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40470         out-of-memory.
40471         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40472         (gl_tree_remove_node): New function, moved here from
40473         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40474         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40475         Update.
40476         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40477         malloc, not xmalloc. Return NULL upon out-of-memory.
40478         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40479         out-of-memory.
40480         (gl_tree_remove_node_from_tree): New function, extracted from
40481         gl_tree_remove_node.
40482         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40483         upon out-of-memory.
40484         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40485         out-of-memory.
40486         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40487         upon out-of-memory.
40488         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40489         upon out-of-memory.
40490         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40491         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40492         not xmalloc. Return NULL upon out-of-memory.
40493         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40494         out-of-memory.
40495         (gl_tree_remove_node_from_tree): New function, extracted from
40496         gl_tree_remove_node.
40497         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40498         upon out-of-memory.
40499         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40500         out-of-memory.
40501         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40502         upon out-of-memory.
40503         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40504         upon out-of-memory.
40505         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40506         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40507         gl_anytree_list1.h before gl_anyavltree_list2.h.
40508         (gl_avltree_list_implementation): Update.
40509         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40510         gl_anytree_list1.h before gl_anyavltree_list2.h.
40511         (gl_rbtree_list_implementation): Update.
40512         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40513         Change return type to 'int'. Return -1 upon out-of-memory. Use
40514         __builtin_expect.
40515         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40516         (gl_avltreehash_list_implementation): Update.
40517         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40518         (gl_rbtreehash_list_implementation): Update.
40519         * modules/array-list (Depends-on): Remove xalloc.
40520         * modules/carray-list (Depends-on): Likewise.
40521         * modules/linked-list (Depends-on): Likewise.
40522         * modules/linkedhash-list (Depends-on): Likewise.
40523         * modules/avltree-list (Depends-on): Likewise.
40524         * modules/rbtree-list (Depends-on): Likewise.
40525         * modules/avltreehash-list (Depends-on): Likewise.
40526         * modules/rbtreehash-list (Depends-on): Likewise.
40527
40528         * modules/xsublist: New file.
40529         * lib/gl_xsublist.h: New file.
40530         * lib/gl_xsublist.c: New file.
40531         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40532         (gl_sublist_nx_create): New declaration.
40533         * lib/gl_sublist.c: Don't include xalloc.h.
40534         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40535         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40536         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40537         Change return type to 'int'. Return -1 upon out-of-memory.
40538         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40539         upon out-of-memory.
40540         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40541         NULL upon out-of-memory.
40542         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40543         upon out-of-memory.
40544         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40545         NULL upon out-of-memory.
40546         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40547         NULL upon out-of-memory.
40548         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40549         upon out-of-memory.
40550         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40551         (gl_sublist_list_implementation): Update.
40552         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40553         upon out-of-memory.
40554         * modules/sublist (Depends-on): Remove xalloc.
40555
40556         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40557         * tests/test-carray_list.c: Likewise.
40558         * tests/test-linked_list.c: Likewise.
40559         * tests/test-linkedhash_list.c: Likewise.
40560         * tests/test-avltree_list.c: Likewise.
40561         * tests/test-rbtree_list.c: Likewise.
40562         * tests/test-avltreehash_list.c: Likewise.
40563         * tests/test-rbtreehash_list.c: Likewise.
40564         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40565         * modules/carray-list-tests (Makefile.am): Likewise.
40566         * modules/linked-list-tests (Makefile.am): Likewise.
40567         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40568         * modules/avltree-list-tests (Makefile.am): Likewise.
40569         * modules/rbtree-list-tests (Makefile.am): Likewise.
40570         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40571         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40572
40573         * NEWS: Mention the changes.
40574
40575         * lib/clean-temp.c: Include gl_xlist.h.
40576         * modules/clean-temp (Depends-on): Add xlist.
40577
40578         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40579         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40580
40581         * tests/test-array_oset.c: Include gl_xlist.h.
40582         * modules/array-oset-tests (Depends-on): Add xlist.
40583
40584         Reported by José E. Marchesi <jemarch@gnu.org>.
40585
40586 2009-12-13  Bruno Haible  <bruno@clisp.org>
40587
40588         Move the malloc checking from module 'oset' to new module 'xoset'.
40589         * modules/xoset: New file.
40590         * lib/gl_xoset.h: New file.
40591         * lib/gl_xoset.c: New file.
40592         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40593         declarations.
40594         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40595         (struct gl_oset_implementation): Rename and change methods accordingly.
40596         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40597         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40598         'int'. Mark as __warn_unused_result__.
40599         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40600         gl_oset_create_empty.
40601         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40602         'int'.
40603         * lib/gl_array_oset.c: Don't include xalloc.h.
40604         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40605         malloc, not xmalloc.
40606         (grow): Change return type to 'int'. Don't call xalloc_die.
40607         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40608         to 'int'.
40609         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40610         'int'.
40611         (gl_array_oset_implementation): Update.
40612         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40613         gl_tree_create_empty.
40614         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40615         'int'.
40616         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40617         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40618         xmalloc.
40619         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40620         not xmalloc.
40621         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40622         xmalloc.
40623         (gl_avltree_oset_implementation): Update.
40624         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40625         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40626         xmalloc.
40627         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40628         not xmalloc.
40629         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40630         xmalloc.
40631         (gl_rbtree_oset_implementation): Update.
40632         * modules/array-oset (Depends-on): Remove xalloc.
40633         * modules/avltree-oset (Depends-on): Likewise.
40634         * modules/rbtree-oset (Depends-on): Likewise.
40635         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40636         * tests/test-avltree_oset.c: Likewise.
40637         * tests/test-rbtree_oset.c: Likewise.
40638         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40639         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40640         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40641         * NEWS: Mention the change.
40642
40643 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40644
40645         maint.mk: allow a project to override release-prep commands
40646         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40647         commands into a new rule.
40648         (release-prep): New rule.
40649         (release-prep-hook): New overridable variable.
40650
40651 2009-12-13  Bruno Haible  <bruno@clisp.org>
40652
40653         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40654
40655 2009-12-13  Jim Meyering  <meyering@redhat.com>
40656
40657         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40658         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40659
40660 2009-12-12  Bruno Haible  <bruno@clisp.org>
40661
40662         duplocale: Tweak.
40663         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40664
40665 2009-12-12  Karl Berry  <karl@gnu.org>
40666
40667         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40668
40669 2009-12-12  Bruno Haible  <bruno@clisp.org>
40670
40671         * m4/po.m4: Undo incorrect untabification.
40672
40673 2009-12-12  Bruno Haible  <bruno@clisp.org>
40674
40675         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40676         * modules/c-strtod (Depends-on): Add locale.
40677         * modules/c-strtold (Depends-on): Likewise.
40678
40679 2009-12-12  Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40682
40683 2009-12-11  Eric Blake  <ebb9@byu.net>
40684
40685         setenv: relax requirement in light of POSIX ruling
40686         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40687         not NULL.
40688         * tests/test-setenv.c (main): Relax test.
40689         * tests/test-unsetenv.c (main): Likewise.
40690         * doc/posix-functions/setenv.texi (setenv): Document this.
40691         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40692
40693 2009-12-11  Bruno Haible  <bruno@clisp.org>
40694
40695         New module 'fd-safer-flag'.
40696         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40697         * lib/dup-safer.c (dup_safer_flag): Remove function.
40698         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40699         * lib/fd-safer.c (fd_safer_flag): Remove function.
40700         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40701         * modules/cloexec (configure.ac): Drop indicator macro.
40702         * modules/fd-safer-flag: New file.
40703         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40704         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40705         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40706
40707 2009-12-11  Bruno Haible  <bruno@clisp.org>
40708
40709         Tests for module 'nl_langinfo'.
40710         * modules/nl_langinfo-tests: New file.
40711         * tests/test-nl_langinfo.sh: New file.
40712         * tests/test-nl_langinfo.c: New file.
40713
40714         New module 'nl_langinfo'.
40715         * lib/nl_langinfo.c: New file.
40716         * m4/nl_langinfo.m4: New file.
40717         * modules/nl_langinfo: New file.
40718         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40719
40720 2009-12-11  Bruno Haible  <bruno@clisp.org>
40721
40722         Tests for module 'langinfo'.
40723         * modules/langinfo-tests: New file.
40724         * tests/test-langinfo.c: New file.
40725
40726         New module 'langinfo'.
40727         * lib/langinfo.in.h: New file.
40728         * m4/langinfo_h.m4: New file.
40729         * modules/langinfo: New file.
40730         * doc/posix-headers/langinfo.texi: Mention the new module.
40731
40732 2009-12-11  Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/config.charset: Untabify.
40735
40736 2009-12-11  Bruno Haible  <bruno@clisp.org>
40737
40738         * modules/unistd-safer (configure.ac): Drop indicator macro.
40739
40740 2009-12-11  Bruno Haible  <bruno@clisp.org>
40741
40742         Move pipe2-safer code to its own file.
40743         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40744         * lib/pipe-safer.c (pipe2_safer): Remove function.
40745         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40746         (Makefile.am): Add it to lib_SOURCES.
40747
40748 2009-12-10  Bruno Haible  <bruno@clisp.org>
40749
40750         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40751
40752 2009-12-10  Bruno Haible  <bruno@clisp.org>
40753
40754         Declare which arguments expect non-NULL values, for GCC and clang.
40755         * build-aux/arg-nonnull.h: New file.
40756         * modules/arg-nonnull: New file.
40757         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40758         (inet_ntop, inet_pton): Use it.
40759         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40760         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40761         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40762         (open, openat): Use it.
40763         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40764         (fnmatch): Use it.
40765         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40766         (getopt, getopt_long, getopt_long_only): Use it.
40767         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40768         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40769         Use it.
40770         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40771         (iconv_open): Use it.
40772         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40773         (strtoimax, strtoumax): Use it.
40774         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40775         (duplocale): Use it.
40776         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40777         (frexp, frexpl): Use it.
40778         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40779         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40780         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40781         (tsearch, tfind, tdelete, twalk): Use it.
40782         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40783         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40784         sigpending): Use it.
40785         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40786         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40787         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40788         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40789         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40790         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40791         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40792         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40793         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40794         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40795         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40796         Use it.
40797         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40798         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40799         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40800         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40801         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40802         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40803         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40804         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40805         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40806         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40807         strtoull, unsetenv): Use it.
40808         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40809         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40810         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40811         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40812         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40813         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40814         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40815         (strcasecmp, strncasecmp): Use it.
40816         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40817         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40818         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40819         rpl_setsockopt): Use it.
40820         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40821         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40822         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40823         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40824         (gettimeofday): Use it.
40825         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40826         (times): Use it.
40827         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40828         (uname): Use it.
40829         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40830         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40831         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40832         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40833         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40834         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40835         unlinkat, write): Use it.
40836         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40837         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40838         * lib/argv-iter.h: Include arg-nonnull.h.
40839         (_ATTRIBUTE_NONNULL_): Remove macro.
40840         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40841         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40842         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40843         optimization.
40844         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40845         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40846         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40847         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40848         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40849         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40850         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40851         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40852         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40853         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40854         * modules/dirent (Depends-on): Add arg-nonnull.
40855         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40856         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40857         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40858         * modules/fnmatch (Depends-on): Add arg-nonnull.
40859         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40860         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40861         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40862         * modules/glob (Depends-on): Add arg-nonnull.
40863         (Makefile.am): Insert arg-nonnull.h into glob.h.
40864         * modules/iconv_open (Depends-on): Add arg-nonnull.
40865         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40866         * modules/inttypes (Depends-on): Add arg-nonnull.
40867         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40868         * modules/locale (Depends-on): Add arg-nonnull.
40869         (Makefile.am): Insert arg-nonnull.h into locale.h.
40870         * modules/math (Depends-on): Add arg-nonnull.
40871         (Makefile.am): Insert arg-nonnull.h into math.h.
40872         * modules/netdb (Depends-on): Add arg-nonnull.
40873         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40874         * modules/search (Depends-on): Add arg-nonnull.
40875         (Makefile.am): Insert arg-nonnull.h into search.h.
40876         * modules/signal (Depends-on): Add arg-nonnull.
40877         (Makefile.am): Insert arg-nonnull.h into signal.h.
40878         * modules/spawn (Depends-on): Add arg-nonnull.
40879         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40880         * modules/stdio (Depends-on): Add arg-nonnull.
40881         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40882         * modules/stdlib (Depends-on): Add arg-nonnull.
40883         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40884         * modules/string (Depends-on): Add arg-nonnull.
40885         (Makefile.am): Insert arg-nonnull.h into string.h.
40886         * modules/strings (Depends-on): Add arg-nonnull.
40887         (Makefile.am): Insert arg-nonnull.h into strings.h.
40888         * modules/sys_socket (Depends-on): Add arg-nonnull.
40889         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40890         * modules/sys_stat (Depends-on): Add arg-nonnull.
40891         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40892         * modules/sys_time (Depends-on): Add arg-nonnull.
40893         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40894         * modules/sys_times (Depends-on): Add arg-nonnull.
40895         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40896         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40897         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40898         * modules/time (Depends-on): Add arg-nonnull.
40899         (Makefile.am): Insert arg-nonnull.h into time.h.
40900         * modules/unistd (Depends-on): Add arg-nonnull.
40901         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40902         * modules/wchar (Depends-on): Add arg-nonnull.
40903         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40904         * modules/argv-iter (Depends-on): Add arg-nonnull.
40905         * tests/test-canonicalize.c (null_ptr): New function.
40906         (main): Use it.
40907         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40908         (main): Use it.
40909         * tests/test-memmem.c (null_ptr): New function.
40910         (main): Use it.
40911         Reported by Jim Meyering.
40912
40913 2009-12-10  Bruno Haible  <bruno@clisp.org>
40914
40915         Use spaces for indentation, not tabs.
40916         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40917         * m4/*.m4: Untabify.
40918         * build-aux/*.h: Untabify.
40919         * tests/**/*.[hc]: Untabify.
40920         * README: New section "Indent with spaces, not TABs", based on
40921         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40922         * NEWS: Mention the change.
40923
40924 2009-12-10  Bruno Haible  <bruno@clisp.org>
40925
40926         pty test: Fix link error.
40927         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40928         test_pty_LDADD.
40929
40930 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40931
40932         * modules/pty: New file.
40933         * modules/pty-tests: New file.
40934         * m4/pty.m4: New file.
40935         * tests/test-pty.c: New file.
40936         * doc/glibc-headers/pty.texi: Modified.
40937         * doc/glibc-functions/forkpty.texi: Modified.
40938         * doc/glibc-functions/openpty.texi: Modified.
40939
40940 2009-12-10  Bruno Haible  <bruno@clisp.org>
40941
40942         Avoid syntax error in C++ mode.
40943         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40944
40945 2009-12-10  Bruno Haible  <bruno@clisp.org>
40946
40947         Use sed with option -e.
40948         * gnulib-tool (func_version, func_emit_copyright_notice,
40949         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40950         option -e to sed.
40951         * modules/link-warning (Makefile.am): Likewise.
40952
40953 2009-12-10  Jim Meyering  <meyering@redhat.com>
40954
40955         mgetgroups: do not write bytes beyond end of malloc'd buffer
40956         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40957         username, we call getgroups with a one-element-shorter buffer,
40958         but still told it the length was original, max_n_groups.
40959
40960 2009-12-09  Eric Blake  <ebb9@byu.net>
40961
40962         cloexec: relax license
40963         * modules/cloexec (Maintainer): Add myself.
40964         (License): Use LGPL, not GPL.
40965
40966         link-warning: optimize generation
40967         * modules/link-warning (Makefile.am): Reduce process usage.
40968
40969 2009-12-09  Bruno Haible  <bruno@clisp.org>
40970
40971         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40972         workaround was added on 2009-11-17.
40973
40974 2009-12-09  Jim Meyering  <meyering@redhat.com>
40975             Bruno Haible  <bruno@clisp.org>
40976
40977         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40978         * modules/link-warning (Makefile.am): Make the comment-removing sed
40979         command more robust in the face of bootstrap-prepended comment lines.
40980
40981 2009-12-09  Bruno Haible  <bruno@clisp.org>
40982
40983         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40984         most one group.
40985
40986 2009-12-09  Simon Josefsson <simon@josefsson.org>
40987             Bruno Haible  <bruno@clisp.org>
40988
40989         * build-aux/link-warning.h: Add copyright notice.
40990         * modules/link-warning (Makefile.am): Generate link-warning.h from
40991         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40992         * NEWS: Mention change in link-warning module.
40993         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40994         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40995         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40996         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40997         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40998         * modules/math (Makefile.am): Add dependency to math.h.
40999         * modules/search (Makefile.am): Add dependency to search.h.
41000         * modules/signal (Makefile.am): Add dependency to signal.h.
41001         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41002         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41003         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41004         * modules/string (Makefile.am): Add dependency to string.h.
41005         * modules/strings (Makefile.am): Add dependency to strings.h.
41006         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41007         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41008         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41009         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41010         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41011         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41012         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41013         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41014         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41015
41016 2009-12-09  Bruno Haible  <bruno@clisp.org>
41017
41018         fchdir: Optimize away rpl_fstat when possible.
41019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41020         REPLACE_OPEN_DIRECTORY.
41021         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41022
41023 2009-12-09  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/fchdir.c: Update comment.
41026
41027 2009-12-09  Bruno Haible  <bruno@clisp.org>
41028
41029         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41030
41031 2009-12-08  Eric Blake  <ebb9@byu.net>
41032
41033         fchdir: avoid memory leak on re-registration.
41034         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41035
41036 2009-12-08  Jim Meyering  <meyering@redhat.com>
41037
41038         init.sh: avoid Solaris 10 /bin/sh portability problem
41039         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41040         sourced script:
41041           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41042           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41043           bar
41044         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41045         and two tests used that idiom.
41046         * tests/init.sh: Update suggested usage comments.
41047         (path_prepend_): New function, to be used in place
41048         of the --src-path=DIR option.
41049         (setup_): Move PATH-prepending code into path_prepend_.
41050         * tests/test-pread.sh: Adapt to new usage.
41051         * tests/test-xalloc-die.sh: Likewise.
41052
41053 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41054
41055         * doc/gnulib.texi (Glibc pty.h): Add.
41056         * doc/glibc-functions/forkpty.texi: Add.
41057         * doc/glibc-functions/openpty.texi: Add.
41058         Suggested by Bruno Haible.
41059
41060 2009-12-08  Eric Blake  <ebb9@byu.net>
41061
41062         fchdir: fix logic bugs
41063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41064         * tests/test-fchdir.c (main): Enhance test.
41065         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41066         is in use.
41067
41068         dup2: fix logic bugs
41069         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41070         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41071         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41072         exists.
41073         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41074
41075 2009-12-07  Eric Blake  <ebb9@byu.net>
41076
41077         unlink: fix m4 detection
41078         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41079
41080         unistd-safer: add unit test
41081         * modules/unistd-safer-tests: New file.
41082         * tests/test-dup-safer.c: Likewise.
41083         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41084         * tests/test-dup2.c (setmode): Likewise.
41085         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41086
41087         cloexec: preserve text vs. binary across dup_cloexec
41088         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41089         mode.
41090         * modules/dup2-tests (Depends-on): Add binary-io.
41091         * modules/cloexec-tests (Depends-on): Likewise.
41092         * tests/test-dup2.c (setmode, is_mode): New helpers.
41093         (main): Add tests that translation mode is preserved.
41094         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41095         Reported by Bruno Haible.
41096
41097         mgetgroups: reduce duplicate listings
41098         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41099         resulting array.
41100         * tests/test-chown.h (test_chown): Simplify client.
41101         * tests/test-lchown.h (test_lchown): Likewise.
41102
41103 2009-12-06  Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41106         value.
41107
41108 2009-12-06  Bruno Haible  <bruno@clisp.org>
41109
41110         * lib/progname.c: Include stdio.h, stdlib.h.
41111         (set_program_name): Reject a NULL argument.
41112
41113 2009-12-05  Eric Blake  <ebb9@byu.net>
41114
41115         pipe2-safer: new module
41116         * modules/pipe2-safer: New file.
41117         * lib/unistd-safer.h (pipe2_safer): New prototype.
41118         * lib/unistd--.h (pipe2): New wrapper.
41119         * lib/pipe-safer.c (pipe2_safer): New function.
41120         * modules/pipe (Depends-on): Add pipe2-safer.
41121         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41122
41123         stdlib-safer: preserve cloexec flag for mkostemp[s]
41124         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41125         fd_safer_flag.
41126
41127         unistd-safer: allow preservation of cloexec status via flag
41128         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41129         prototypes.
41130         * lib/dup-safer.c (dup_safer_flag): New function.
41131         * lib/fd-safer.c (fd_safer_flag): Likewise.
41132         * modules/cloexec (configure.ac): Set witness.
41133
41134         test-dup2: enhance test
41135         * modules/dup2-tests (Depends-on): Add cloexec.
41136         * tests/test-dup2.c (main): Enhance test.
41137
41138         cloexec: add dup_cloexec
41139         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41140         header and comments.
41141         * lib/cloexec.c (set_cloexec_flag): Add comments.
41142         (dup_cloexec): New function, with mingw implementation borrowed
41143         from...
41144         * lib/w32spawn.h (dup_noinherit): ...here.
41145         * modules/execute (Depends-on): Add cloexec.
41146         * modules/pipe (Depends-on): Likewise.
41147         * modules/cloexec (Depends-on): Add dup2.
41148         * modules/cloexec-tests (Files): New file.
41149         * tests/test-cloexec.c: Likewise.
41150
41151         test-xalloc-die: fix test for mingw
41152         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41153         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41154         directory and .exe suffix off argv[0] output.
41155
41156         test-fseeko: fix test for mingw
41157         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41158         than undefining fseek, so test will pass on mingw.
41159
41160 2009-12-05  Bruno Haible  <bruno@clisp.org>
41161
41162         * lib/progname.h (set_program_name): Clarify specification.
41163         * lib/progname.c (set_program_name): Likewise.
41164         Reported by Jim Meyering.
41165
41166 2009-12-05  Jim Meyering  <meyering@redhat.com>
41167
41168         maint.mk: backslash-escape parens in default regexp
41169         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41170         backslash-escape the literal parentheses.
41171
41172         maint.mk: news-date-check: use grep -E
41173         * top/maint.mk (today): Define a Make variable, not a...
41174         (news-date-check): ...shell variable.
41175         (news-date-regexp): Use the Make variable.
41176         Use grep's -E option.  Change the failing diagnostic to mention
41177         the variable, $(news-date-regexp).
41178
41179 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41180
41181         maintainer-makefile: allow customization of NEWS entry format
41182         * top/maint.mk (news-date-regexp): New overridable variable.
41183         (news-date-check): Use it.
41184
41185 2009-12-04  Eric Blake  <ebb9@byu.net>
41186
41187         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41188         * lib/mgetgroups.h (xgetgroups): New prototype.
41189         * lib/mgetgroups.c (xgetgroups): New wrapper.
41190         (mgetgroups): Handle ENOSYS.
41191         * modules/mgetgroups (Depends-on): Add realloc.
41192         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41193
41194         mgetgroups: avoid argument promotion issues with -1
41195         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41196         for invalid gid_t.
41197         * tests/test-chown.h (getegid, test_chown): Likewise.
41198         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41199
41200 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41201
41202         exclude: Fix header file problems.
41203         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41204
41205 2009-12-01  Jim Meyering  <meyering@redhat.com>
41206
41207         fts: fts_open: do not let an empty string cause immediate failure
41208         This is required in support of GNU rm, for which the command
41209         "rm A '' B" must process and remove both A and B, in spite of
41210         the empty string argument.
41211         * lib/fts.c (fts_open): Do not let the presence of an empty string
41212         cause fts_open to fail immediately.  Most fts-using tools must be
41213         able to process all arguments, in order, and can be expected to
41214         diagnose such arguments themselves.
41215
41216 2009-11-30  Eric Blake  <ebb9@byu.net>
41217
41218         utimens: fix compilation error
41219         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41220         Declare variable at right scope.
41221
41222 2009-11-29  Jim Meyering  <meyering@redhat.com>
41223
41224         bootstrap: handle perl-5.11's changed --version output
41225         * build-aux/bootstrap (get_version): Handle perl separately,
41226         since perl-5.11's --version output is different.
41227
41228 2009-11-28  Jim Meyering  <meyering@redhat.com>
41229
41230         userspec: depend on the inttostr module, too
41231         * modules/userspec (Depends-on): Add inttostr.
41232
41233         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41234         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41235         number of MAXUID when it evaluates to (uid_t) -1.
41236         Likewise for group ID.  Reported by Matt McCutchen in
41237         <http://savannah.gnu.org/bugs/?28113>
41238
41239         userspec: reformat to use spaces, not TABs
41240         * lib/userspec.c: Expand TABs to spaces.
41241         Add Emacs' "indent-tabs-mode: nil" hint.
41242
41243 2009-11-27  Eric Blake  <ebb9@byu.net>
41244
41245         getopt-gnu: flush out another BSD bug
41246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41247         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41248         flush out BSD bug.
41249         * tests/test-getopt.h (test_getopt): End lists with NULL.
41250         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41251         (test_getopt_long_posix): Enhance test.
41252         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41253         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41254         getopt-gnu.
41255         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41256         Likewise.
41257
41258 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41259
41260         * modules/idpriv-droptemp-tests (Notice): Fix text.
41261
41262 2009-11-27  Jim Meyering  <meyering@redhat.com>
41263
41264         test-xalloc-die: avoid spurious failure due to libtool argv difference
41265         In a libtool-enabled project, this test would fail due to a difference
41266         in the emitted program name, e.g.,
41267         -test-xalloc-die: memory exhausted
41268         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41269         Use program to avoid that.
41270         * modules/xalloc-die-tests (Depends-on): Add progname.
41271         * tests/test-xalloc-die.c: Include progname.h".
41272         (program_name): Remove decl.
41273         (main): Call set_program_name.
41274         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41275
41276 2009-11-26  Richard Jones  <rjones@redhat.com>
41277
41278         w32sock: leave win32 error in place.
41279         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41280
41281 2009-11-26  Eric Blake  <ebb9@byu.net>
41282
41283         init.sh: suggest to use skip_ and fail_ functions in comments
41284         * tests/init.sh: Add a sentence.
41285
41286 2009-11-25  Bruno Haible  <bruno@clisp.org>
41287
41288         init.sh: add documentation in comments
41289         * tests/init.sh: Add some developer and user documentation.
41290
41291 2009-11-26  Jim Meyering  <meyering@redhat.com>
41292
41293         init.sh: accommodate even those who specify bogus srcdir manually
41294         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41295         configure-time tests to be sanitized, so that there is no need to
41296         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41297         (with no double quotes) suffices.  However, since tests may be
41298         invoked manually, and since you may explicitly set srcdir to the
41299         name of a directory containing spaces, do quote its uses here.
41300         * tests/test-pread.sh: Likewise.
41301         Suggested by Bruno Haible.
41302
41303         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41304         * tests/test-pread.sh: Write no data into the pipe, because
41305         test-pread actually reads none.  This avoids a diagnostic,
41306         "bash: echo: write error: Broken pipe", that arises in the unusual
41307         event something is ignoring SIGPIPE, and might be interpreted
41308         as some sort of failure.  Reported by Bruno Haible.
41309
41310 2009-11-25  Jim Meyering  <meyering@redhat.com>
41311
41312         test-pread: cover failure with ESPIPE and EINVAL
41313         * tests/test-pread.c (main): Test for failure, too.
41314         * tests/test-pread.sh: Invoke with stdin on a pipe.
41315         Suggested by Eric Blake.
41316
41317         pread: improvement and fix
41318         * modules/pread (Depends-on): Depend on lseek, for portability to
41319         e.g., mingw.  Suggested by Eric Blake.
41320         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41321
41322         unistd.in.h: correct declaration of pread
41323         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41324         Reported by Richard W.M. Jones.
41325
41326         test-pread.sh: distribute the test script
41327         * modules/pread-tests (Files): Include test-pread.sh.
41328
41329         test-pread.sh: clean up
41330         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41331         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41332         That is unnecessary, since it's always ".".
41333         Suggestion from Eric Blake.
41334
41335         test-pread.sh: make executable
41336         * tests/test-pread.sh: Set executable bit.
41337         Reported by Eric Blake.
41338
41339         correct typo in test-pread.sh
41340         * tests/test-pread.sh: Add #! line.
41341
41342         test pread
41343         * tests/test-pread.c: New file.
41344         * tests/test-pread.sh: Likewise.
41345         * modules/pread-tests: Likewise.
41346
41347         pread: new module
41348         * modules/pread: New file.
41349         * lib/unistd.in.h (pread): Define/declare.
41350         * lib/pread.c (pread): New file.
41351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41352         * modules/unistd (Makefile.am): Substitute witnesses.
41353         * doc/posix-functions/pread.texi (pread): Update.
41354         * MODULES.html.sh: Add pread.
41355
41356 2009-11-25  Jim Meyering  <meyering@redhat.com>
41357
41358         tests/init.sh: new file to be used via most *.sh tests
41359         * tests/init.sh: New file.
41360
41361 2009-11-25  Eric Blake  <ebb9@byu.net>
41362
41363         utimens: work around older Linux failure with symlinks
41364         * lib/utimens.c (lutimensat_works_really): New variable.
41365         (fdutimens, lutimens): Use it to manage kernels that support
41366         nanosecond times on files, but not on symlinks.
41367         Reported by OndÅ™ej Vašík.
41368
41369         utimes: fix configure grammar
41370         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41371
41372 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41373
41374         regex: Fix fastmap for multibyte character ranges.
41375         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41376         characters when a multibyte character range is included.
41377
41378 2009-11-22  Andy Wingo  <wingo@pobox.com>
41379
41380         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41381         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41382
41383 2009-11-24  Bruno Haible  <bruno@clisp.org>
41384
41385         doc: Most *_l functions exist in MacOS X 10.5.
41386         * doc/posix-functions/duplocale.texi: Update platforms list.
41387         * doc/posix-functions/freelocale.texi: Likewise.
41388         * doc/posix-functions/newlocale.texi: Likewise.
41389         * doc/posix-functions/uselocale.texi: Likewise.
41390         * doc/posix-functions/isalnum_l.texi: Likewise.
41391         * doc/posix-functions/isalpha_l.texi: Likewise.
41392         * doc/posix-functions/isblank_l.texi: Likewise.
41393         * doc/posix-functions/iscntrl_l.texi: Likewise.
41394         * doc/posix-functions/isdigit_l.texi: Likewise.
41395         * doc/posix-functions/isgraph_l.texi: Likewise.
41396         * doc/posix-functions/islower_l.texi: Likewise.
41397         * doc/posix-functions/isprint_l.texi: Likewise.
41398         * doc/posix-functions/ispunct_l.texi: Likewise.
41399         * doc/posix-functions/isspace_l.texi: Likewise.
41400         * doc/posix-functions/isupper_l.texi: Likewise.
41401         * doc/posix-functions/iswalnum_l.texi: Likewise.
41402         * doc/posix-functions/iswalpha_l.texi: Likewise.
41403         * doc/posix-functions/iswblank_l.texi: Likewise.
41404         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41405         * doc/posix-functions/iswctype_l.texi: Likewise.
41406         * doc/posix-functions/iswdigit_l.texi: Likewise.
41407         * doc/posix-functions/iswgraph_l.texi: Likewise.
41408         * doc/posix-functions/iswlower_l.texi: Likewise.
41409         * doc/posix-functions/iswprint_l.texi: Likewise.
41410         * doc/posix-functions/iswpunct_l.texi: Likewise.
41411         * doc/posix-functions/iswspace_l.texi: Likewise.
41412         * doc/posix-functions/iswupper_l.texi: Likewise.
41413         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41414         * doc/posix-functions/isxdigit_l.texi: Likewise.
41415         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41416         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41417         * doc/posix-functions/strcoll_l.texi: Likewise.
41418         * doc/posix-functions/strfmon_l.texi: Likewise.
41419         * doc/posix-functions/strftime_l.texi: Likewise.
41420         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41421         * doc/posix-functions/strxfrm_l.texi: Likewise.
41422         * doc/posix-functions/tolower_l.texi: Likewise.
41423         * doc/posix-functions/toupper_l.texi: Likewise.
41424         * doc/posix-functions/towctrans_l.texi: Likewise.
41425         * doc/posix-functions/towlower_l.texi: Likewise.
41426         * doc/posix-functions/towupper_l.texi: Likewise.
41427         * doc/posix-functions/wcscoll_l.texi: Likewise.
41428         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41429         * doc/posix-functions/wctrans_l.texi: Likewise.
41430         * doc/posix-functions/wctype_l.texi: Likewise.
41431         * doc/glibc-functions/strptime_l.texi: Likewise.
41432         * doc/glibc-functions/strtod_l.texi: Likewise.
41433         * doc/glibc-functions/strtof_l.texi: Likewise.
41434         * doc/glibc-functions/strtol_l.texi: Likewise.
41435         * doc/glibc-functions/strtold_l.texi: Likewise.
41436         * doc/glibc-functions/strtoll_l.texi: Likewise.
41437         * doc/glibc-functions/strtoul_l.texi: Likewise.
41438         * doc/glibc-functions/strtoull_l.texi: Likewise.
41439         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41440         * doc/glibc-functions/wcstod_l.texi: Likewise.
41441         * doc/glibc-functions/wcstof_l.texi: Likewise.
41442         * doc/glibc-functions/wcstol_l.texi: Likewise.
41443         * doc/glibc-functions/wcstold_l.texi: Likewise.
41444         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41445         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41446         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41447
41448 2009-11-24  Bruno Haible  <bruno@clisp.org>
41449
41450         duplocale: Fix logic bug.
41451         * lib/duplocale.c: Don't include <langinfo.h>.
41452         (_NL_LOCALE_NAME): Remove macro.
41453         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41454         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41455
41456 2009-11-23  Jim Meyering  <meyering@redhat.com>
41457
41458         test-update-copyright: don't hard-code /usr/bin/perl
41459         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41460         perl to print the current year.  Gilles Espinasse reported that
41461         the replaced use of perl was hard-coded as /usr/bin/perl.
41462
41463 2009-11-23  Bruno Haible  <bruno@clisp.org>
41464
41465         duplocale: Add support for glibc 2.3.x.
41466         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41467
41468 2009-11-22  Bruno Haible  <bruno@clisp.org>
41469
41470         vasnprintf: Tiny optimization.
41471         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41472         MacOS X.
41473
41474 2009-11-22  Bruno Haible  <bruno@clisp.org>
41475
41476         Tests for module 'duplocale'.
41477         * modules/duplocale-tests: New file.
41478         * tests/test-duplocale.c: New file.
41479
41480         New module 'duplocale'.
41481         * m4/duplocale.m4: New file.
41482         * lib/locale.in.h (duplocale): New declaration.
41483         * lib/duplocale.c: New file.
41484         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41485         gl_LOCALE_H_DEFAULTS): New macros.
41486         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41487         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41488         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41489         REPLACE_DUPLOCALE.
41490         * modules/duplocale: New file.
41491         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41492
41493 2009-11-22  Bruno Haible  <bruno@clisp.org>
41494
41495         * modules/locale-tests (configure.ac): Test for newlocale function.
41496         * tests/test-locale.c: When the system has extended locale functions,
41497         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41498
41499         locale: Make locale_t available when possible.
41500         * lib/locale.in.h: Include <xlocale.h> when it exists.
41501         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41502         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41503         * modules/locale (Depends-on): Add extensions.
41504         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41505         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41506
41507 2009-11-22  Bruno Haible  <bruno@clisp.org>
41508
41509         Add comments.
41510         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41511         invocation.
41512         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41513         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41514         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41515
41516 2009-11-22  Bruno Haible  <bruno@clisp.org>
41517
41518         error: account for the possibility of freopen (stdout).
41519         * lib/error.c: Include <unistd.h>.
41520         (flush_stdout): New function, extracted from error and error_at_line.
41521         Determine stdout's fd dynamically.
41522         (error, error_at_line): Invoke flush_stdout.
41523         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41524         * modules/error (Depends-on): Add unistd.
41525
41526 2009-11-22  Bruno Haible  <bruno@clisp.org>
41527
41528         diffseq: Add comment.
41529         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41530
41531 2009-11-22  Jim Meyering  <meyering@redhat.com>
41532
41533         c-stack: avoid defining an unused static function
41534         * lib/c-stack.c (find_stack_direction): Do not define this function
41535         when it will not be used.
41536
41537         diffseq: avoid spurious gcc warnings
41538         * lib/diffseq.h (IF_LINT2): Define.
41539         (compareseq): Use it to initialize two members of "part".
41540         This avoids two used-uninitialized warnings.
41541
41542 2009-11-21  Jim Meyering  <meyering@redhat.com>
41543
41544         c-stack: avoid "ignoring return value of `write'" warning
41545         * lib/c-stack.c: Include "ignore-value.h".
41546         (die): Explicitly ignore each write return value.
41547         * modules/c-stack (Depends-on): Add ignore-value.
41548
41549 2009-11-21  Bruno Haible  <bruno@clisp.org>
41550
41551         diffseq: reduce scope of variable 'best'.
41552         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41553         variable, earlier used for two different purposes.
41554
41555 2009-11-21  Jim Meyering  <meyering@redhat.com>
41556
41557         diffseq: remove useless assignment to "best"
41558         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41559         assignment.  At that point "best" is already guaranteed to be zero.
41560
41561 2009-11-20  Eric Blake  <ebb9@byu.net>
41562
41563         build: mention ftp redirector in release announcements
41564         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41565         values that used to come from cfg.mk; mention FTP redirect URL.
41566         * build-aux/announce-gen: Mention the mirror list.
41567         Suggested by Karl Berry.
41568
41569         nanosleep: improve port to mingw
41570         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41572         LIB_NANOSLEEP, but only when needed.
41573         * modules/select (Link): Document LIBSOCKET.
41574         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41575         enough.
41576
41577         nanosleep: work around cygwin bug
41578         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41579         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41580         bug.
41581         (getnow): Delete, not needed.
41582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41583         LIB_CLOCK_GETTIME.
41584         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41585         clock-time, gettime.
41586         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41587         bug.
41588         * modules/nanosleep-tests: New test.
41589         * tests/test-nanosleep.c: New file.
41590
41591         sleep: work around cygwin bug
41592         * lib/sleep.c (rpl_sleep): Work around the bug.
41593         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41594         (gl_PREREQ_SLEEP): Delete unused macro.
41595         * modules/sleep (Depends-on): Add verify.
41596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41597         * modules/unistd (Makefile.am): Substitute witness.
41598         * lib/unistd.in.h (sleep): Update prototype.
41599         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41600         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41601         * modules/sleep-tests (Depends-on): Check for alarm.
41602
41603 2009-11-20  Jim Meyering  <meyering@redhat.com>
41604
41605         maint.mk: improve sc_prohibit_magic_number_exit
41606         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41607         so it does not match uses like System.exit(1).
41608         Add comments showing how to correct all offenders.
41609
41610 2009-11-19  Eric Blake  <ebb9@byu.net>
41611
41612         xalloc-die-tests: add missing library
41613         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41614
41615         test-xvasprintf: silence compiler warnings
41616         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41617         empty string from gcc.
41618
41619 2009-11-19  Jim Meyering  <meyering@redhat.com>
41620
41621         xfreopen: new module, from coreutils
41622         * modules/xfreopen: New module.
41623         * lib/xfreopen.c: New file.
41624         * lib/xfreopen.h: New file.
41625         * MODULES.html.sh (File stream based Input/Output"): Add it.
41626
41627 2009-11-19  Eric Blake  <ebb9@byu.net>
41628
41629         manywarnings: depend on warnings
41630         * modules/manywarnings (Depends-on): Add warnings.
41631
41632         build: avoid compiler warnings
41633         * lib/select.c (rpl_select): Delete unused variable.
41634         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41635
41636 2009-11-18  Eric Blake  <ebb9@byu.net>
41637
41638         tests: avoid false negative with --with-packager
41639         * tests/test-version-etc.sh: Discard packager information.
41640         * tests/test-argp-version-etc-1.sh: Likewise.
41641         Reported by Mike Frysinger.
41642
41643         utimens: fix regression on Solaris
41644         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41645         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41646         can only change fd timestamps via futimesat.  Instead, use an
41647         additional witness macro to avoid BSD bug.
41648         Reported by Jim Meyering.
41649
41650 2009-11-17  Eric Blake  <ebb9@byu.net>
41651
41652         usleep: use it to simplify tests
41653         * modules/stat-time-tests (Depends-on): Add usleep.
41654         (configure.ac): Drop usleep check.
41655         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41656         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41657         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41658         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41659         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41660         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41661         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41662         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41663         Likewise.
41664         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41665         * tests/test-lchown.h (nap): Likewise.
41666         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41667         * tests/test-stat-time.c (nap): Likewise.
41668         * tests/test-utimens-common.h (nap): Update comments.
41669
41670         usleep: new module
41671         * modules/usleep: New file.
41672         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41673         * lib/usleep.c (usleep): Likewise.
41674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41675         * modules/unistd (Makefile.am): Substitute witnesses.
41676         * lib/unistd.in.h (usleep): Add declaration.
41677         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41678         * MODULES.html.sh (Date and time): Likewise.
41679         * modules/usleep-tests (Depends-on): New test.
41680         * tests/test-usleep.c: New file.
41681
41682         chown: work around OpenBSD bug
41683         * lib/chown.c (rpl_chown): Work around the bug.
41684         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41685         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41686         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41687         * modules/chown (Depends-on): Add stdbool.
41688         * modules/lchown (Depends-on): Likewise.
41689         * doc/posix-functions/chown.texi (chown): Document the bug.
41690         * doc/posix-functions/lchown.texi (lchown): Likewise.
41691         * tests/test-lchown.h (test_chown): Relax test.
41692
41693         mkstemp: avoid conflict with C++ keyword template
41694         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41695         * lib/mkostemp.c (mkostemp): Likewise.
41696         * lib/mkostemps.c (mkostemps): Likewise.
41697         * lib/mkstemp.c (mkstemp): Likewise.
41698         * lib/mkstemps.c (mkstemps): Likewise.
41699
41700         xalloc-die-tests: optimize
41701         * tests/test-xalloc-die.sh: Reduce number of processes.
41702
41703 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41704
41705         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41706         patch from ludo@gnu.org (Ludovic Courtès).
41707
41708 2009-11-17  Jim Meyering  <meyering@redhat.com>
41709
41710         version-etc: use proper license string
41711         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41712         * modules/version-etc-fsf: Likewise.
41713
41714 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41715
41716         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41717         printed to stdout.  Deal with EOL differences.
41718
41719 2009-11-17  Eric Blake  <ebb9@byu.net>
41720
41721         unsetenv: work around Solaris bug
41722         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41723         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41724         Reported by Jim Meyering.
41725
41726         vasnprintf: avoid compiler warnings
41727         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41728         variables.
41729         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41730
41731 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41732
41733         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41734         settings since xalloc-die is no longer the self test,
41735         xalloc-die.sh is.
41736
41737 2009-11-17  Jim Meyering  <meyering@redhat.com>
41738
41739         test-xalloc-die.sh: make the code agree with the commit log
41740         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41741         at the end, just in case you happen to have a test-xalloc-die
41742         program in some other PATH directory.
41743
41744         test-xalloc-die.sh: fix a portability bug
41745         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41746         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41747         Otherwise, argv[0] (as often seen in diagnostics) would be too
41748         system-dependent, sometimes with, and sometimes without the leading "./".
41749
41750         version-etc-fsf: relax license to LGPLv3+
41751         * modules/version-etc-fsf (License): Relax license.
41752
41753 2009-11-16  Eric Blake  <ebb9@byu.net>
41754
41755         xalloc-die-tests: avoid printing null pointer
41756         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41757         shell script.
41758         * tests/test-xalloc-die.c (program_name): Declare.
41759         * tests/test-xalloc-die.sh (tmpfiles): New file.
41760
41761         setenv, unsetenv: work around various bugs
41762         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41763         (setenv) [HAVE_SETENV]: Work around bugs.
41764         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41765         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41766         for bugs.
41767         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41768         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41770         * modules/stdlib (Makefile.am): Update substitutions.
41771         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41772         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41773         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41774         * modules/setenv-tests: New test.
41775         * modules/unsetenv-tests: Likewise.
41776         * tests/test-setenv.c: New file.
41777         * tests/test-unsetenv.c: Likewise.
41778
41779 2009-11-16  Jim Meyering  <meyering@redhat.com>
41780
41781         version-etc: relax license to LGPLv3+
41782         * modules/version-etc (License): Relax license.
41783
41784         better AC_REQUIRE expanded-before-required-warning avoidance
41785         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41786         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41787         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41788         which is no longer needed.
41789
41790 2009-11-16  Eric Blake  <ebb9@byu.net>
41791
41792         test-freading: clean up temporary file
41793         * tests/test-freading.c (main): Remove file on success, and use
41794         ASSERT more liberally.
41795         Reported by Jim Meyering.
41796
41797 2009-11-16  Jim Meyering  <meyering@redhat.com>
41798
41799         avoid new AC_REQUIRE expanded-before-required warnings
41800         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41801         merely using it.
41802         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41803         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41804
41805 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41806
41807         * tests/test-xalloc-die.c: New file.
41808         * modules/xalloc-die-tests: New file.
41809         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41810         XFAIL_TESTS so it can be appended by modules.
41811
41812 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41813
41814         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41815         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41816
41817 2009-11-14  Eric Blake  <ebb9@byu.net>
41818
41819         fnmatch: avoid compiler warning
41820         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41821         to silence compiler warning about mismatch signedness in ?:.
41822         Reported by Robert Millan.
41823
41824         intprops: add double-inclusion guard
41825         * lib/intprops.h: Allow idempotent includes.
41826         Suggested by Bruce Korb.
41827
41828         openat: detect Solaris fchownat bug
41829         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41830         penalizing glibc chownat when only lchownat is broken.
41831         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41832         trailing slash bugs.
41833         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41834         * modules/openat-tests (Files): Include more files.
41835         (Depends-on): Add mgetgroups, sleep, stat-time.
41836         (configure.ac): Add additional checks.
41837         (Makefile.am): Build new test.
41838         * tests/test-fchownat.c: New file.
41839
41840         lchown: detect Solaris and FreeBSD bug
41841         * lib/lchown.c (rpl_lchown): Work around bug.
41842         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41844         * modules/unistd (Makefile.am): Populate it.
41845         * lib/unistd.in.h (lchown): Update declaration.
41846         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41847         * modules/lchown-tests: New file.
41848         * tests/test-lchown.h (test_lchown): Likewise.
41849         * tests/test-lchown.c (main): Likewise.
41850
41851         chown: detect Solaris and FreeBSD bug
41852         * lib/chown.c (rpl_chown): Work around bug.
41853         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41854         (gl_PREREQ_CHOWN): Delete.
41855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41856         * modules/unistd (Makefile.am): Populate it.
41857         * lib/unistd.in.h (chown): Update declaration.
41858         * lib/lchown.c (chown): Update client.
41859         * modules/lchown (Depends-on): Add lstat.
41860         * doc/posix-functions/chown.texi (chown): Document the bug.
41861         * doc/posix-functions/getgroups.texi (getgroups): Document
41862         getgroups pitfall.
41863         * modules/chown-tests: New file.
41864         * tests/test-chown.h (test_chown): Likewise.
41865         * tests/test-chown.c (main): Likewise.
41866
41867 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41868
41869         gnulib-tool: correctly detect absence of m4 directories
41870         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41871
41872 2009-11-14  Jim Meyering  <meyering@redhat.com>
41873
41874         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41875         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41876
41877 2009-11-14  John W. Eaton  <jwe@gnu.org>
41878
41879         strftime.h: wrap function declaration in extern "C" block
41880         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41881
41882 2009-11-13  Eric Blake  <ebb9@byu.net>
41883
41884         getgroups: avoid compiler warning
41885         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41886
41887         getgroups: work around FreeBSD bug
41888         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41889         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41890         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41891         * tests/test-getgroups.c (main): Fix buffer overrun.
41892
41893         getgroups: avoid compilation failure
41894         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41895         * modules/getgroups (Depends-on): Add stdint.
41896
41897 2009-11-13  Jim Meyering  <meyering@redhat.com>
41898
41899         test-getgroups: avoid compilation failure
41900         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41901
41902 2009-11-13  Eric Blake  <ebb9@byu.net>
41903
41904         mgetgroups: new module, taken from coreutils
41905         * modules/mgetgroups: New file.
41906         * lib/mgetgroups.h: Likewise.
41907         * lib/mgetgroups.c (mgetgroups): Likewise.
41908         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41909         * MODULES.html.sh (Users and groups): Mention it.
41910
41911         getgroups: don't expose GETGROUPS_T to user
41912         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41913         an element at a time if GETGROUPS_T is wrong size.
41914         * lib/getugroups.h (getugroups): Change signature.
41915         * lib/unistd.in.h (getgroups): Likewise.
41916         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41917         signature needs fixing.
41918         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41919         AC_TYPE_GETGROUPS.
41920         * modules/group-member (Depends-on): Add getgroups.
41921         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41922         (group_member): Rely on getgroups replacement.
41923         * lib/getugroups.c (getugroups): Use gid_t.
41924         * tests/test-getgroups.c (main): Likewise.
41925         * NEWS: Mention the signature change.
41926         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41927         problem with signature.
41928         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41929         GETGROUPS_T is still useful for setgroups.
41930
41931         getgroups, getugroups: provide stubs for mingw
41932         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41933         * lib/getugroups.c (getugroups): Likewise.
41934         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41935         function.  Modernize replacement scheme.
41936         (gl_PREREQ_GETGROUPS): Delete.
41937         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41938         * modules/getgroups (configure.ac): Declare witness.
41939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41940         * modules/unistd (Depends-on): Substitute witness.
41941         * lib/unistd.in.h (getgroups): Declare replacement.
41942
41943         getgroups: avoid calling exit
41944         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41945         drop xalloc.
41946         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41947         dependencies.
41948         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41949         exiting, in the rare case of malloc failure.
41950
41951         getgroups: fix logic error
41952         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41953         has more than 20 groups.
41954         * modules/getgroups-tests: New test.
41955         * tests/test-getgroups.c: New file.
41956
41957 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41958
41959         * tests/test-base64.c: Improve.
41960
41961 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41962
41963         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41964         Blake <ebb9@byu.net>.
41965
41966 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41967
41968         * tests/test-xvasprintf.c: Add %s%s related checks.
41969
41970 2009-11-12  Eric Blake  <ebb9@byu.net>
41971
41972         version-etc: match standards.texi style
41973         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41974         and use <> only for URLs.
41975
41976 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41977
41978         fts: do not fail on a submount during traversal
41979         * lib/fts.c (fts_build): Read the stat info again after opening
41980         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41981         Original report at http://bugzilla.redhat.com/501848.
41982
41983 2009-11-12  Jim Meyering  <meyering@redhat.com>
41984
41985         bootstrap: sync from coreutils
41986         * build-aux/bootstrap (bootstrap_epilogue): New function.
41987         Use git_modules_config in one more place.  This make bootstrap's
41988         --gnulib-srcdir option more useful for testing.
41989
41990         bootstrap: generalize autoheader check
41991         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41992         AC_CONFIG_HEADERS.
41993
41994 2009-11-11  Eric Blake  <ebb9@byu.net>
41995
41996         mkfifoat: use new modules for Solaris and BSD bugs
41997         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41998         * lib/mkfifoat.c (mknodat): Split...
41999         * lib/mknodat.c (mknodat): ...into new file.
42000         * modules/mkfifoat (Files): Ship new file.
42001         (Depends-on): Add mkfifo, mknod.
42002         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42003         (Depends-on): Add symlink.
42004         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42005         redundant with test_mkfifo.h.
42006         (do_mkfifoat, do_mknodat): New helpers.
42007
42008         mknod: new module
42009         * modules/mknod: New file.
42010         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42011         * lib/mknod.c (mknod): Likewise.
42012         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42013         defaults.
42014         * modules/sys_stat (Makefile.am): Substitute them.
42015         * lib/sys_stat.in.h (mknod): Declare replacement.
42016         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42017         Document it.
42018         * doc/posix-functions/mknod.texi (mknod): Likewise.
42019         * modules/mknod-tests: New test.
42020         * tests/test-mknod.c: Likewise.
42021
42022         mkfifo: new module
42023         * modules/mkfifo: New file.
42024         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42025         * lib/mkfifo.c (mkfifo): Likewise.
42026         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42027         defaults.
42028         * modules/sys_stat (Makefile.am): Substitute them.
42029         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42030         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42031         Document it.
42032         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42033         * modules/mkfifo-tests: New test.
42034         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42035         from test-mkfifoat.c.
42036         * tests/test-mkfifo.c: New file.
42037
42038         readlink: detect FreeBSD bug
42039         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42040         slash on symlink.
42041         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42042         * tests/test-readlink.h (test_readlink): Enhance test.
42043
42044         symlink: detect FreeBSD bug
42045         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42046         slash on symlink.
42047         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42048         * tests/test-symlink.h (test_symlink): Enhance test.
42049
42050 2009-11-10  Eric Blake  <ebb9@byu.net>
42051
42052         link: detect FreeBSD bug
42053         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42054         symlink.
42055         * doc/posix-functions/link.texi (link): Document the bug.
42056         * tests/test-link.h (test_link): Enhance test.
42057         * tests/test-linkat.c (main): Update caller.
42058
42059         unlink, remove: detect FreeBSD bug
42060         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42061         slash on symlink.
42062         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42063         * doc/posix-functions/remove.texi (remove): Likewise.
42064         * tests/test-unlink.h (test_unlink): Enhance test.
42065         * tests/test-remove.c (main): Likewise.
42066
42067 2009-11-09  Eric Blake  <ebb9@byu.net>
42068
42069         rename: detect FreeBSD bug
42070         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42071         slash on symlink.
42072         * modules/renameat-tests (Depends-on): Add filenamecat.
42073         * tests/test-rename.h (test_rename): Allow one more errno.
42074         * tests/test-renameat.c (main): Likewise.
42075         * doc/posix-functions/rename.texi (rename): Document the bug.
42076
42077         open: detect FreeBSD bug
42078         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42079         symlink.
42080         * doc/posix-functions/open.texi (open): Document the bug.
42081         * doc/posix-functions/utimes.texi (utimes): Likewise.
42082         * tests/test-open.h (test_open): Add parameters, and test symlink
42083         handling.
42084         * tests/test-open.c (main): Adjust caller.
42085         * tests/test-fcntl-safer.c (main): Likewise.
42086         * modules/open-tests (Depends-on): Add stdbool, symlink.
42087         * modules/fcntl-safer-tests (Depends-on): Likewise.
42088         * tests/test-openat.c (main): Add test-open tests.
42089
42090         stat: detect FreeBSD bug
42091         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42092         symlink.
42093         * doc/posix-functions/stat.texi (stat): Document the bug.
42094         * tests/test-stat.h (test_stat_func): Add argument.
42095         * tests/test-stat.c (main): Adjust caller.
42096         * tests/test-fstatat.c (main): Likewise.
42097         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42098         Reported by Jim Meyering.
42099
42100 2009-11-09  James Youngman  <jay@gnu.org>
42101
42102         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42103         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42104
42105 2009-11-08  Jim Meyering  <meyering@redhat.com>
42106
42107         utimens: remove invalid futimesat call
42108         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42109         It used the file descriptor of the target file as the DIR_FD
42110         parameter and NULL as the file name.  That caused failure with
42111         errno == EFAULT on FreeBSD-8.0-rc2
42112
42113 2009-11-07  Eric Blake  <ebb9@byu.net>
42114
42115         fflush, freadseek: use fseeko, not fseek
42116         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42117         (clear_ungetc_buffer): Avoid potential problems on large files.
42118         * lib/freadseek.c (freadseek): Likewise.
42119         * modules/freadseek (Depends-on): Add fseeko.
42120         * modules/fseek (configure.ac): Set a witness.
42121         * tests/test-fflush.c (main): Use fseeko.
42122         * tests/test-fpurge.c (fseek): Disable link warning.
42123         * tests/test-freadable.c (fseek): Likewise.
42124         * tests/test-freading.c (fseek): Likewise.
42125         * tests/test-fseeko.c (fseek): Likewise.
42126         * tests/test-ftell.c (fseek): Likewise.
42127         * tests/test-ftello.c (fseek): Likewise.
42128         * tests/test-fwritable.c (fseek): Likewise.
42129         * tests/test-fwriting.c (fseek): Likewise.
42130
42131 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42132
42133         * modules/memchr (Depends-on): Drop getpagesize dependency.
42134
42135 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42136
42137         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42138         Reported by Ludovic Courtès.
42139         * build-aux/pmccabe2html: Improve example usage.
42140         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42141
42142 2009-11-06  Jim Meyering  <meyering@redhat.com>
42143
42144         do-release-commit-and-tag: New module.
42145         Automate the release-commit and tag process.
42146         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42147         * modules/do-release-commit-and-tag: New file.
42148         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42149
42150 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42151
42152         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42153         because test-select.c uses inet_pton.
42154
42155 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42156
42157         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42158         GETADDRINFO_LIB.  Bump serial number.
42159         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42160         Suggested by Eric Blake <ebb9@byu.net>.
42161
42162 2009-11-05  Eric Blake  <ebb9@byu.net>
42163
42164         strtod: detect darwin bug
42165         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42166         Reported by Leo Davis.
42167
42168         freopen-safer: new module
42169         * modules/freopen-safer: New module.
42170         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42171         * lib/freopen-safer.c (freopen_safer): New file.
42172         * lib/stdio-safer.h (freopen_safer): New declaration.
42173         * lib/stdio--.h (freopen): New override.
42174         * MODULES.html.sh (File stream based Input/Output): Mention it.
42175         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42176         freopen-safer module.
42177         * doc/posix-functions/stderr.texi (stderr): Likewise.
42178         * doc/posix-functions/stdin.texi (stdin): Likewise.
42179         * doc/posix-functions/stdout.texi (stdout): Likewise.
42180         * modules/freopen-safer-tests: New test.
42181         * tests/test-reopen-safer.c: New file.
42182
42183 2009-11-05  Jim Meyering  <meyering@redhat.com>
42184
42185         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42186         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42187
42188 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42189
42190         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42191
42192 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42193
42194         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42195
42196 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42197
42198         Fix link error.
42199         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42200         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42201
42202 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42203
42204         * tests/test-func.c: Also test value of __func__.
42205
42206 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42207
42208         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42209         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42210
42211 2009-11-05  Bruno Haible  <bruno@clisp.org>
42212
42213         Fix link error.
42214         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42215         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42216         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42217
42218 2009-11-05  Bruno Haible  <bruno@clisp.org>
42219
42220         Tests for module 'inet_pton'.
42221         * modules/inet_pton-tests: New file.
42222         * tests/test-inet_pton.c: New file.
42223
42224 2009-11-05  Bruno Haible  <bruno@clisp.org>
42225
42226         Tests for module 'inet_ntop'.
42227         * modules/inet_ntop-tests: New file.
42228         * tests/test-inet_ntop.c: New file.
42229
42230 2009-11-04  Eric Blake  <ebb9@byu.net>
42231
42232         stdlib-safer: wrap all mkstemp variants
42233         * modules/mkostemp (configure.ac): Set witness.
42234         * modules/mkostemps (configure.ac): Likewise.
42235         * modules/mkstemps (configure.ac): Likewise.
42236         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42237         (mkstemps_safer): Wrap more functions.
42238         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42239         wrapping.
42240         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42241         (mkstemps_safer): Implement the wrappers.
42242
42243         mkstemps, mkostemps: new modules
42244         * modules/mkostemps: New module.
42245         * modules/mkstemps: Likewise.
42246         * lib/mkostemps.c (mkostemps): New file.
42247         * lib/mkstemps.c (mkstemps): Likewise.
42248         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42249         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42251         * modules/stdlib (Makefile.am): Substitute them.
42252         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42253         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42254         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42255         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42256         * MODULES.html.sh (File system functions): Mention them.
42257
42258         tempname: resync from glibc
42259         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42260         same values for __GT_FILE as glibc.  Abort even when assertions
42261         are disabled.
42262         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42263         match its value otherwise.  Allow idempotent inclusion.
42264         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42265         * lib/mkostemp.c (mkostemp): Likewise.
42266         * lib/mkstemp.c (mkstemp): Likewise.
42267         * lib/tmpfile.c (tmpfile): Likewise.
42268         * NEWS: Document this.
42269
42270         utimens: fix use of futimens on older Linux
42271         * lib/utimens.c (fdutimens): Use updated, rather than original,
42272         timespec to avoid bug in older Linux kernel.
42273         Reported by Simon Josefsson.
42274
42275 2009-11-04  Bruno Haible  <bruno@clisp.org>
42276
42277         Make num_processors more flexible and consistent.
42278         * lib/nproc.h (enum nproc_query): New type.
42279         (num_processors): Add a 'query' argument.
42280         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42281         (num_processors): Add a 'query' argument. Test the value of the
42282         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42283         mingw, count the number of CPUs available for the current process.
42284         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42285         Check for sched_getaffinity and sched_getaffinity_np.
42286         * modules/nproc (Depends-on): Add c-ctype, extensions.
42287         * NEWS: Mention the change.
42288
42289 2009-11-03  Bruno Haible  <bruno@clisp.org>
42290
42291         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42292
42293 2009-11-03  Jim Meyering  <meyering@redhat.com>
42294
42295         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42296         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42297         if it is defined.
42298
42299 2009-11-02  Eric Blake  <ebb9@byu.net>
42300
42301         mktime, timegm: share common declaration
42302         * lib/mktime-internal.h: New file.
42303         * lib/mktime.c: Use it rather than open-coding a declaration.
42304         * lib/timegm.c: Likewise.
42305         * modules/mktime (Files): Ship it.
42306         * modules/timegm (Files): Likewise.
42307         Suggested by Bruno Haible.
42308
42309         test-update-copyright: update test to match script changes
42310         * tests/test-update-copyright.sh: Avoid hard-coding perl
42311         location.  Don't update *.bak created by earlier runs.
42312
42313 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42314             Simon Josefsson  <simon@josefsson.org>
42315             Bruno Haible  <bruno@clisp.org>
42316
42317         Fix link error on Solaris 8.
42318         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42319         also in libnsl. Define also INET_PTON_LIB.
42320         * modules/inet_pton (Link): New section.
42321
42322 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42323             Bruno Haible  <bruno@clisp.org>
42324
42325         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42326         * modules/inet_ntop (Link): New section.
42327         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42328
42329 2009-11-02  Eric Blake  <ebb9@byu.net>
42330
42331         maint: avoid compiler warnings in m4 macros
42332         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42333         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42334
42335 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42336
42337         * m4/pmccabe2html.m4: Remove file.
42338         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42339         function.  Change maintainer.
42340         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42341         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42342         Courtès).
42343
42344 2009-10-31  Eric Blake  <ebb9@byu.net>
42345
42346         fseeko: fix m4 regression
42347         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42348         regression from 2009-10-27.
42349         Reported by Ralf Wildenhues.
42350
42351 2009-10-31  Jim Meyering  <meyering@redhat.com>
42352
42353         inttostr: aesthetics and improved (compile-time) safety
42354         Define inttype_is_signed rather than inttype_is_unsigned,
42355         since the sole use is via "#if inttype_is_signed".
42356         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42357         inttype_is_unsigned.
42358         * lib/offtostr.c (inttype_is_signed): Likewise.
42359         * lib/uinttostr.c (inttype_is_signed): Likewise.
42360         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42361         * lib/inttostr.c (inttostr): Use verify to cross-check the
42362         inttype_is_signed value and the signedness of the actual type.
42363         * modules/inttostr (Depends-on): Add verify.
42364
42365 2009-10-30  Eric Blake  <ebb9@byu.net>
42366
42367         build: avoid compiler warnings
42368         * lib/fchmodat.c (lchmod): Mark unused variables.
42369         * lib/getopt.c (_getopt_initialize): Likewise.
42370         * lib/mktime.c (__mktime_internal): Provide prototype.
42371         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42372         older gcc that do not understand #pragma GCC diagnostic.
42373         * lib/uinttostr.c (inttype_is_unsigned): Define.
42374         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42375
42376 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42377
42378         stat: fix compilation on AIX
42379         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42380         only see struct stat64.
42381
42382 2009-10-30  Eric Blake  <ebb9@byu.net>
42383
42384         exclude: make more robust
42385         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42386         rather than masking a coding bug.
42387         Suggested by Bruno Haible.
42388
42389 2009-10-30  Jim Meyering  <meyering@redhat.com>
42390
42391         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42392         Rather than putting #!/usr/bin/perl on the first line,
42393         start with a variant of what's recommended by "man perlrun" that
42394         invokes the first "perl" program from your shell's search path.
42395         * build-aux/gitlog-to-changelog: Replace #!... as above.
42396         Add a "Local Variables" perl mode setting.
42397         Prompted by a patch from Ludovic Courtès.
42398         Improved by Eric Blake.
42399         * build-aux/useless-if-before-free: Likewise.
42400         * build-aux/announce-gen: Likewise.
42401         * build-aux/update-copyright: Likewise.
42402
42403 2009-10-29  Eric Blake  <ebb9@byu.net>
42404
42405         filenamecat-lgpl: adjust clients
42406         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42407         filenamecat.
42408         * modules/renameat (Depends-on): Likewise.
42409
42410         filenamecat: split into filenamecat-lgpl
42411         * modules/filenamecat-lgpl: New module.
42412         * modules/filenamecat (Files): Move library-safe files into
42413         filenamecat-lgpl.
42414         (Depends-on): Add filenamecat-lgpl.
42415         (configure.ac): Declare witness.
42416         * lib/filenamecat.h (file_name_concat): Only declare when using
42417         GPL module.
42418         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42419         Move...
42420         * lib/filenamecat-lgpl.c: ...into new file.
42421         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42422         (gl_FILE_NAME_CONCAT): Use it.
42423         * MODULES.html.sh (File system functions): Mention new module.
42424
42425         argp: avoid memory leak
42426         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42427         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42428         base_name, since the latter malloc()s and can call exit().
42429         Leak introduced 2006-07-03.
42430
42431         dirname-lgpl: adjust clients that don't need full dirname
42432         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42433         * modules/filenamecat (Depends-on): Likewise.
42434         * modules/linkat (Depends-on): Likewise.
42435         * modules/mkancesdirs (Depends-on): Likewise.
42436         * modules/mkdir (Depends-on): Likewise.
42437         * modules/openat (Depends-on): Likewise.
42438         * modules/savewd (Depends-on): Likewise.
42439         * modules/rename (Depends-on): Likewise.
42440         (License): Relax license.
42441         * modules/mkdir-tests (Depends-on): Drop progname.
42442         (Makefile.am): Delete unneeded LDADD.
42443         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42444
42445         dirname: split into dirname-lgpl
42446         * modules/dirname-lgpl: New module.
42447         * modules/dirname (Files): Move library-safe files into
42448         dirname-lgpl.
42449         (Depends-on): Add dirname-lgpl.
42450         (configure.ac): Declare witness.
42451         * modules/double-slash-root (License): Relax license.
42452         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42453         module.
42454         * lib/dirname.c (dir_len, mdir_name): Move...
42455         * lib/dirname-lgpl.c: ...into new file.
42456         * lib/basename.c (last_component, base_len): Move...
42457         * lib/basename-lgpl.c: ...into new file.
42458         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42459         (gl_DIRNAME): Use it.
42460         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42461         Mention new module.
42462         * modules/dirname-tests (Depends-on): Add progname.
42463         * tests/test-dirname.c (program_name): Delete.
42464
42465         mkdir: make safe for libraries
42466         * modules/mkdir (Depends-on): Drop xalloc.
42467         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42468         exit.
42469
42470         tests: avoid some compiler warnings
42471         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42472         literals.
42473         * tests/test-memchr.c (main): Avoid type mismatch.
42474         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42475         * tests/test-base64.c (main): Likewise.
42476         * tests/test-getdelim.c (main): Likewise.
42477         * tests/test-gethostname.c (main): Likewise.
42478         * tests/test-getline.c (main): Likewise.
42479         * tests/test-netinet_in.c (main): Likewise.
42480         * tests/test-select.c (open_server_socket, main): Likewise.
42481         * tests/test-select-stdin.c (main): Likewise.
42482         * tests/test-sockets.c (main): Likewise.
42483         * tests/test-strsignal.c (main): Likewise.
42484         * tests/test-sys_select.c (main): Likewise.
42485         * tests/test-sys_socket.c (main): Likewise.
42486         * tests/test-u64.c (main): Likewise.
42487         * tests/test-xfprintf-posix.c (main): Likewise.
42488         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42489
42490         sockets: avoid compiler warning
42491         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42492
42493         maint: detect usage(1) and other suspicious exits
42494         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42495
42496 2009-10-29  Jim Meyering  <meyering@redhat.com>
42497
42498         timespec: long-to-int truncation could make timespec_cmp malfunction
42499         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42500         a multiple of 2^32 nanoseconds as no difference.
42501
42502 2009-10-28  Jim Meyering  <meyering@redhat.com>
42503
42504         fprintftime: wrap macro code argument in "do {...} while(0)"
42505         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42506         cpy macro must be a statement that can be followed by a semicolon.
42507         Now that the else clause contains a comment and is hence longer
42508         than one line, I require curly braces.  That in turn requires
42509         that we wrap this code block in the standard do...while(0).
42510
42511         fprintftime: remove stray semicolon from previous change
42512         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42513
42514         fprintftime: avoid a warning about ignored fwrite return value
42515         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42516         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42517         that is unsafe.
42518         * modules/fprintftime (Depends-on): Add ignore-value.
42519
42520         exclude: avoid an unwarranted warning
42521         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42522
42523 2009-10-27  Eric Blake  <ebb9@byu.net>
42524
42525         fseek: avoid compilation failure when fflush is replaced
42526         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42527         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42528         module is in use.
42529         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42530         module is not in use; since REPLACE_FSEEK worked otherwise.
42531         (GNULIB_FTELLO): Likewise for ftell.
42532         Reported by Ian Beckwith and others.
42533
42534 2009-10-27  Bruno Haible  <bruno@clisp.org>
42535
42536         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42537         Reported by Jim Meyering.
42538
42539 2009-10-27  Jim Meyering  <jim@meyering.net>
42540             Bruno Haible  <bruno@clisp.org>
42541
42542         Avoid warning despite dropping the return value of fwrite.
42543         * lib/unicodeio.c: Include ignore-value.h.
42544         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42545         * modules/unicodeio (Depends-on): Add ignore-value.
42546
42547 2009-10-26  Eric Blake  <ebb9@byu.net>
42548
42549         areadlinkat: fix fallback path
42550         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42551         pointer and zero.
42552
42553 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42554
42555         Use a better IO block size for modern systems
42556         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42557         * lib/md2.c: Likewise.
42558         * lib/md4.c: Likewise.
42559         * lib/md5.c: Likewise.
42560         * lib/sha1.c: Likewise.
42561         * lib/sha256.c: Likewise.
42562         * lib/sha512.c: Likewise.
42563
42564 2009-10-22  Eric Blake  <ebb9@byu.net>
42565
42566         tests: avoid several compiler warnings
42567         * tests/test-getcwd.c (main): Avoid buffer underflow.
42568         * tests/test-getdate.c (main): String literals are not safe with
42569         putenv, so use setenv.  Declare unused argument.
42570         * modules/getdate-tests (Depends-on): Add setenv.
42571         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42572         problems with string literals in char *.
42573         * tests/test-hash.c (main): Avoid shadowing declaration.
42574         (insert_new): Treat string literals as char const *.
42575         * tests/test-getopt.h (test_getopt): Likewise.
42576         (getopt_loop): Alter types to minimize casting elsewhere.
42577         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42578         (test_getopt_long_posix): Likewise.
42579         (do_getopt_long): Add wrapper to minimize casting.
42580         * tests/test-atexit.c (clear_temp_file): Use void.
42581         * tests/test-areadlink-with-size.c (main): Declare unused
42582         arguments.
42583         * tests/test-areadlink.c (main): Likewise.
42584         * tests/test-areadlinkat-with-size.c (main): Likewise.
42585         * tests/test-areadlinkat.c (main): Likewise.
42586         * tests/test-canonicalize-lgpl.c (main): Likewise.
42587         * tests/test-canonicalize.c (main): Likewise.
42588         * tests/test-dirent-safer.c (main): Likewise.
42589         * tests/test-dirname.c (main): Likewise.
42590         * tests/test-dup2.c (main): Likewise.
42591         * tests/test-fchdir.c (main): Likewise.
42592         * tests/test-fcntl-h.c (main): Likewise.
42593         * tests/test-fcntl-safer.c (main): Likewise.
42594         * tests/test-fdopendir.c (main): Likewise.
42595         * tests/test-fdutimensat.c (main): Likewise.
42596         * tests/test-fflush.c (main): Likewise.
42597         * tests/test-filenamecat.c (main): Likewise.
42598         * tests/test-filevercmp.c (main): Likewise.
42599         * tests/test-fopen-safer.c (main): Likewise.
42600         * tests/test-fopen.c (main): Likewise.
42601         * tests/test-fpending.c (main): Likewise.
42602         * tests/test-fpurge.c (main): Likewise.
42603         * tests/test-freading.c (main): Likewise.
42604         * tests/test-fstatat.c (main): Likewise.
42605         * tests/test-fsync.c (main): Likewise.
42606         * tests/test-futimens.c (main): Likewise.
42607         * tests/test-getndelim2.c (main): Likewise.
42608         * tests/test-gettimeofday.c (main): Likewise.
42609         * tests/test-getopt.c (main): Likewise.
42610         * tests/test-i-ring.c (main): Likewise.
42611         * tests/test-inttypes.c (main): Likewise.
42612         * tests/test-link.c (main): Likewise.
42613         * tests/test-lstat.c (main): Likewise.
42614         * tests/test-math.c (main): Likewise.
42615         * tests/test-md5.c (main): Likewise.
42616         * tests/test-memchr2.c (main): Likewise.
42617         * tests/test-memrchr.c (main): Likewise.
42618         * tests/test-mkdir.c (main): Likewise.
42619         * tests/test-mkdirat.c (main): Likewise.
42620         * tests/test-mkfifoat.c (main): Likewise.
42621         * tests/test-open.c (main): Likewise.
42622         * tests/test-openat-safer.c (main): Likewise.
42623         * tests/test-openat.c (main): Likewise.
42624         * tests/test-quotearg.c (main): Likewise.
42625         * tests/test-rawmemchr.c (main): Likewise.
42626         * tests/test-readlink.c (main): Likewise.
42627         * tests/test-remove.c (main): Likewise.
42628         * tests/test-rename.c (main): Likewise.
42629         * tests/test-renameat.c (main): Likewise.
42630         * tests/test-rmdir.c (main): Likewise.
42631         * tests/test-sha1.c (main): Likewise.
42632         * tests/test-signal.c (main): Likewise.
42633         * tests/test-sigaction.c (main): Likewise.
42634         * tests/test-stat.c (main): Likewise.
42635         * tests/test-stat-time.c (main): Likewise.
42636         * tests/test-stddef.c (main): Likewise.
42637         * tests/test-stdint.c (main): Likewise.
42638         * tests/test-stdio.c (main): Likewise.
42639         * tests/test-stdlib.c (main): Likewise.
42640         * tests/test-strchrnul.c (main): Likewise.
42641         * tests/test-strerror.c (main): Likewise.
42642         * tests/test-string.c (main): Likewise.
42643         * tests/test-strtod.c (main): Likewise.
42644         * tests/test-strverscmp.c (main): Likewise.
42645         * tests/test-symlink.c (main): Likewise.
42646         * tests/test-symlinkat.c (main): Likewise.
42647         * tests/test-sys_stat.c (main): Likewise.
42648         * tests/test-sys_time.c (main): Likewise.
42649         * tests/test-time.c (main): Likewise.
42650         * tests/test-unistd.c (main): Likewise.
42651         * tests/test-unlink.c (main): Likewise.
42652         * tests/test-unlinkat.c (main): Likewise.
42653         * tests/test-utimens.c (main): Likewise.
42654         * tests/test-utimensat.c (main): Likewise.
42655         * tests/test-version-etc.c (main): Likewise.
42656         * tests/test-wchar.c (main): Likewise.
42657         * tests/test-wctype.c (main): Likewise.
42658         * tests/test-xprintf-posix.c (main): Likewise.
42659         * tests/test-posixtm.c (main): Likewise.
42660         (STREQ): Delete unused macro.
42661         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42662         shadowed variables.
42663         * tests/test-memchr.c (main): Likewise.
42664
42665 2009-10-21  Eric Blake  <ebb9@byu.net>
42666
42667         areadlinkat: avoid failure on older glibc
42668         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42669         rather than mis-comparing 0 against FUNC_RESULT of char*.
42670
42671 2009-10-21  Bruno Haible  <bruno@clisp.org>
42672
42673         * modules/stpncpy (License): Relicense under LGPLv2+.
42674         Reported by David Lutterkort <lutter@redhat.com>.
42675
42676 2009-10-20  Eric Blake  <ebb9@byu.net>
42677
42678         utimensat: work around Solaris 9 bug
42679         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42680         has trailing slash bugs.
42681         * tests/test-lutimens.h (test_lutimens): Enhance test.
42682         * tests/test-utimens.h (test_utimens): Likewise.
42683         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42684         * doc/posix-functions/utimes.texi (utimes): Likewise.
42685         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42686         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42687         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42688         * doc/posix-functions/futimens.texi (futimens): Likewise.
42689
42690         fdutimensat: new module
42691         * modules/fdutimensat: New file.
42692         * lib/fdutimensat.c (fdutimensat): Likewise.
42693         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42694         * MODULES.html.sh (File system functions): Mention module.
42695         * modules/fdutimensat-tests: New test.
42696         * tests/test-fdutimensat.c: Likewise.
42697
42698         doc: regenerate INSTALL
42699         * doc/INSTALL: Reflect recent autoconf update.
42700         * doc/INSTALL.ISO: Likewise.
42701         * doc/INSTALL.UTF-8: Likewise.
42702
42703 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42704
42705         acl: warn if ACL support is not detected
42706         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42707
42708 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42709
42710         * lib/nproc.h: Add extern "C" block for C++.
42711
42712 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42713             Bruno Haible  <bruno@clisp.org>
42714
42715         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42716         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42717         * doc/posix-functions/isalpha.texi: Likewise.
42718         * doc/posix-functions/isblank.texi: Likewise.
42719         * doc/posix-functions/iscntrl.texi: Likewise.
42720         * doc/posix-functions/isdigit.texi: Likewise.
42721         * doc/posix-functions/isgraph.texi: Likewise.
42722         * doc/posix-functions/islower.texi: Likewise.
42723         * doc/posix-functions/isprint.texi: Likewise.
42724         * doc/posix-functions/ispunct.texi: Likewise.
42725         * doc/posix-functions/isspace.texi: Likewise.
42726         * doc/posix-functions/isupper.texi: Likewise.
42727         * doc/posix-functions/isxdigit.texi: Likewise.
42728
42729 2009-10-18  Bruno Haible  <bruno@clisp.org>
42730
42731         Tests for module 'isblank'.
42732         * modules/isblank-tests: New file.
42733         * tests/test-isblank.c: New file.
42734
42735         New module 'isblank'.
42736         * lib/isblank.c: New file.
42737         * m4/isblank.m4: New file.
42738         * modules/isblank: New file.
42739         * doc/posix-functions/isblank.texi: Mention the new module.
42740
42741 2009-10-18  Bruno Haible  <bruno@clisp.org>
42742
42743         New module 'ctype'.
42744         * lib/ctype.in.h: New file.
42745         * m4/ctype.m4: New file.
42746         * modules/ctype: New file.
42747         * doc/posix-headers/ctype.texi: Mention the new module.
42748
42749 2009-10-18  Jim Meyering  <meyering@redhat.com>
42750
42751         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42752         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42753         right after its initialization, rather than farther down.
42754         Keeping these in close proximity makes it easier to ensure
42755         that each such variable is initialized.  E.g.,
42756
42757             LIB_CLOCK_GETTIME=
42758             AC_SUBST([LIB_CLOCK_GETTIME])
42759
42760         This change also increments these serial numbers.
42761         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42762         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42764
42765 2009-10-18  Bruno Haible  <bruno@clisp.org>
42766
42767         Don't let environment variables perturb build.
42768         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42769         (gl_PREREQ_GETHRXTIME): ... not here.
42770
42771 2009-10-18  Bruno Haible  <bruno@clisp.org>
42772
42773         Avoid symlink attack in localcharset module.
42774         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42775         (O_NOFOLLOW): Define fallback.
42776         (get_charset_aliases): Don't open the file if it is a symbolic link.
42777         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42778         gl_FCNTL_H.
42779         (gl_FCNTL_H): Require it.
42780         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42781         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42782         Reported by Fergal Glynn <fglynn@veracode.com>.
42783
42784 2009-10-18  Bruno Haible  <bruno@clisp.org>
42785
42786         Implement nproc for mingw.
42787         * lib/nproc.c: Include <windows.h>
42788         (num_processors): On native Windows platforms, try GetSystemInfo.
42789
42790 2009-10-18  Bruno Haible  <bruno@clisp.org>
42791
42792         Implement nproc for IRIX.
42793         * lib/nproc.c: Include <sys/sysmp.h>.
42794         (num_processors): On IRIX systems, try sysmp.
42795         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42796
42797 2009-10-18  Bruno Haible  <bruno@clisp.org>
42798
42799         Implement nproc for HP-UX.
42800         * lib/nproc.c: Include <sys/pstat.h>
42801         (num_processors): On HP-UX systems, try pstat_getdynamic.
42802         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42803         pstat_getdynamic.
42804
42805 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42806             Bruno Haible  <bruno@clisp.org>
42807
42808         Implement nproc for NetBSD, OpenBSD.
42809         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42810         (ARRAY_SIZE): New macro.
42811         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42812         * m4/nproc.m4: New file.
42813         * modules/nproc (Files): Add m4/nproc.m4.
42814         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42815         (Makefile.am): Instead, augment lib_SOURCES.
42816
42817 2009-10-18  Bruno Haible  <bruno@clisp.org>
42818
42819         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42820         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42821         sys/param.h.
42822
42823 2009-10-16  Eric Blake  <ebb9@byu.net>
42824
42825         utimensat: new module
42826         * modules/utimensat: New file.
42827         * lib/utimensat.c (utimensat): Likewise.
42828         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42829         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42830         so we can work around Linux bugs.
42831         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42832         * modules/sys_stat (Makefile.am): Substitute them.
42833         * lib/sys_stat.in.h (utimensat): Declare it.
42834         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42835         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42836         * modules/utimensat-tests: New test.
42837         * tests/test-utimensat.c: Likewise.
42838
42839         utimens: let lutimens work on non-symlinks
42840         * lib/utimens.c (lutimens): Fall back to utimens rather than
42841         failing with ENOSYS, when file is not a symlink.
42842         (utimens): Reduce redirection.
42843         * tests/test-lutimens.h (test_lutimens): Update test to cover
42844         non-symlinks.
42845         * tests/test-utimens.h (test_utimens): Update test to cover
42846         symlinks.
42847         * tests/test-utimens.c (main): Update caller.
42848
42849         utimens: cache whether utimensat syscall works
42850         * lib/utimens.c (utimensat_works_really): New cache variable.
42851         (fdutimens, lutimens): Use it to avoid failing syscall.
42852
42853         test-stat-time, test-utimens: improve portability
42854         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42855         ext4 on alpha, and for cygwin.
42856         * tests/test-utimens-common.h: New file.
42857         (nap): Factor delays into single function.
42858         * tests/test-lutimens.h (test_lutimens): Use new header.
42859         * tests/test-futimens.h (test_futimens): Likewise.
42860         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42861         timestamps to occur from same machine, as was done previously for
42862         test_utimens.
42863         * modules/utimens-tests (Files): Ship new file.
42864         * modules/futimens-tests (Files): Likewise.
42865         Reported in part by Jim Meyering.
42866
42867         sys_stat: sort replacement declarations
42868         * lib/sys_stat.in.h: Sort declarations.
42869         * lib/futimens.c (futimens): Fix typo.
42870
42871 2009-10-15  Jim Meyering  <meyering@redhat.com>
42872
42873         don't let environment settings perturb build
42874         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42875         could cause a configure-time and/or build-time malfunction.
42876         Typically, a configure-time function-in-library test is performed
42877         via code like this:
42878
42879           LIB_VAR=
42880           AC_SUBST([LIB_VAR])
42881           prefix_saved_LIBS=$LIBS
42882             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42883                        [test "$ac_cv_search_FUNC" = "none required" ||
42884                         LIB_VAR=$ac_cv_search_FUNC])
42885           LIBS=$prefix_saved_LIBS
42886
42887         However, in each of the files affected by this change, the LIB_VAR=
42888         initialization was omitted.  Thus, when set in the environment, its
42889         value would propagate into generated Makefiles when FUNC is not found
42890         in LIB_NAME.
42891         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42892         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42894
42895 2009-10-14  Eric Blake  <ebb9@byu.net>
42896
42897         fchdir: avoid infinite recursion in mingw
42898         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42899         recursing.
42900
42901         test-stat-time: port to mingw
42902         * tests/test-stat-time.c (force_unlink): Return a value.
42903         (test_ctime) [W32]: Fix compilation error.
42904         (nap): Don't call usleep with too large an argument.  Use
42905         force_unlink.
42906         * doc/pastposix-functions/usleep.texi (usleep): Document the
42907         portability issue.
42908
42909 2009-10-13  Jim Meyering  <meyering@redhat.com>
42910
42911         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42912         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42913         * modules/pipe-filter-ii: Likewise.
42914         * modules/sys_socket-tests: Likewise.
42915         * modules/tsearch-tests: Likewise.
42916         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42917         (check): Depend on it.
42918
42919 2009-10-12  Eric Blake  <ebb9@byu.net>
42920
42921         utimens-tests: port to NFS file systems
42922         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42923         comparisons to avoid spurious failures from timestamp drift
42924         between NFS machines.
42925
42926 2009-10-12  Eric Blake  <ebb9@byu.net>
42927
42928         stat-time-tests: minor cleanups
42929         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42930         * tests/test-stat-time.c (nap): Separate assignment from call.
42931         Suggested by Paolo Bonzini and Bruno Haible.
42932
42933         sys_stat: guarantee struct timespec
42934         * lib/sys_stat.in.h (includes): Always include <time.h>
42935         * modules/sys_stat (Depends-on): Add time.
42936         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42937         mode_t permission values.
42938         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42939         get at subsecond timestamps.
42940
42941 2009-10-10  Eric Blake  <ebb9@byu.net>
42942
42943         futimens: new module
42944         * modules/futimens: New file.
42945         * lib/futimens.c (futimens): Likewise.
42946         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42947         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42948         we can work around Linux bugs.
42949         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42950         * modules/sys_stat (Makefile.am): Substitute them.
42951         * lib/sys_stat.in.h (futimens): Declare it.
42952         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42953         * doc/posix-functions/futimens.texi (futimens): Likewise.
42954         * modules/futimens-tests: New test.
42955         * tests/test-futimens.c: Likewise.
42956
42957         utimens: introduce fdutimens
42958         * lib/utimens.h (fdutimens): New prototype.
42959         * lib/utimens.c (gl_futimens): Move guts...
42960         (fdutimens): ...to new interface.
42961         * tests/test-utimens.c (do_fdutimens): Use it.
42962
42963         utimens: add UTIME_NOW and UTIME_OMIT support
42964         * lib/utimens.c (validate_timespec, update_timespec): New helper
42965         functions.
42966         (gl_futimens, lutimens): Use them.
42967         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42968         stdbool, sys_stat.
42969         (Link): Mention resulting library dependency.
42970         * modules/utimecmp (Link): Likewise.
42971         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42972         (Makefile.am): Pick up library dependency.
42973         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42974         definition.
42975         * tests/test-sys_stat.c: Test the definitions.
42976         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42977         * NEWS: Document library dependency.
42978
42979         utimecmp: support symlink timestamps
42980         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42981         hashing when possible.  Use pathconf when available.
42982         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42983         * modules/utimecmp (Depends-on): Add lstat.
42984
42985         utimens: add lutimens interface
42986         * lib/utimens.c (lutimens): New function.
42987         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42988         * lib/utimens.h (lutimens): Declare new interface.
42989         * tests/test-utimens.c (main): Enhance test.
42990         * tests/test-lutimens.h (test_lutimens): New file.
42991         * modules/utimens-tests (Files): Distribute it.
42992         (Depends-on): Add symlink.
42993         (configure.ac): Check for usleep.
42994
42995         utimens: validate futimens usage
42996         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42997         fewer syscalls on failure later on.  Avoid compiler warning on
42998         mingw.
42999         * modules/utimens (Depends-on): Add dup2.
43000
43001         utimens: add test
43002         * modules/utimens-tests: New test.
43003         * tests/test-utimens.h: New file.
43004         * tests/test-futimens.h: Likewise.
43005         * tests/test-utimens.c: Likewise.
43006
43007         doc: mention timestamp portability issues
43008         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43009         instead.
43010         * doc/posix-functions/utime.texi (utime): Likewise.
43011         * doc/posix-functions/utimes.texi (utimes): Likewise.
43012         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43013         instead.
43014         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43015         module.
43016         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43017         Mention weakness with symlink timestamps.
43018         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43019         to utimensat/futimens instead.
43020         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43021
43022         test-dup2: enhance test
43023         * tests/test-dup2.c (main): Also check AT_FDCWD.
43024
43025         test-stat-time: avoid more spurious failures
43026         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43027         xfs; and avoid race if the two timestamps cross quantization edge.
43028
43029         relocatable: prefer 'file system' over 'filesystem'
43030         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43031         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43032         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43033         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43034         * lib/relocatable.c (compute_curr_prefix): Likewise.
43035
43036 2009-10-10  Jim Meyering  <meyering@redhat.com>
43037
43038         stat-time-tests: check for the usleep function
43039         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43040
43041 2009-10-10  Bruno Haible  <bruno@clisp.org>
43042
43043         * modules/xnanosleep: Put the Link section after the Include section.
43044
43045 2009-10-09  Eric Blake  <ebb9@byu.net>
43046
43047         dup2: work around FreeBSD 6.1 bug
43048         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43049         * doc/posix-functions/dup2.texi (dup2): Document it.
43050         Reported by Nelson H. F. Beebe and Jim Meyering.
43051
43052         test-stat-time: port to buggy NFS clients
43053         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43054         (test_ctime): Also skip test if mtime and ctime are skewed.
43055
43056         maint: prefer 'file system' over 'filesystem'
43057         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43058         * doc/posix-functions/lstat.texi (lstat): Likewise.
43059         * lib/file-has-acl.c (file_has_acl): Likewise.
43060         * lib/fwriteerror.c [TEST]: Likewise.
43061         * tests/test-areadlink.h (test_areadlink): Likewise.
43062         * tests/test-areadlinkat-with-size.c (main): Likewise.
43063         * tests/test-areadlinkat.c (main): Likewise.
43064         * tests/test-canonicalize-lgpl.c (main): Likewise.
43065         * tests/test-canonicalize.c (main): Likewise.
43066         * tests/test-fstatat.c (main): Likewise.
43067         * tests/test-linkat.c (main): Likewise.
43068         * tests/test-lstat.h (test_lstat_func): Likewise.
43069         * tests/test-mkdir.h (test_mkdir): Likewise.
43070         * tests/test-readlink.h (test_readlink): Likewise.
43071         * tests/test-remove.c (main): Likewise.
43072         * tests/test-rename.h (test_rename): Likewise.
43073         * tests/test-renameat.c (main): Likewise.
43074         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43075         * tests/test-symlink.h (test_symlink): Likewise.
43076         * tests/test-symlinkat.c (main): Likewise.
43077         * tests/test-unlink.h (test_unlink_func): Likewise.
43078         * tests/test-unlinkat.c (main): Likewise.
43079
43080         maint: make realtime library usage explicit
43081         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43082         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43083         * modules/settime (Link): Likewise.
43084         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43085
43086         test-stat-time: speed up execution
43087         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43088         warning on mingw.
43089         (nap): New helper function.
43090         (prepare_test): Use it to reduce sleep time.
43091         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43092         execution.
43093         * modules/stat-time-tests (configure.ac): Check for usleep.
43094
43095 2009-10-09  Jim Meyering  <meyering@redhat.com>
43096
43097         selinux-h: always use getfilecon wrappers
43098         * lib/getfilecon.c: New file.
43099         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43100         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43101         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43102         (fgetfilecon): Provide a stub.
43103         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43104         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43105         file unconditionally.
43106         When <selinux/selinux.h> is found, arrange to use wrappers.
43107         * modules/selinux-h (Files): Add getfilecon.c.
43108         (Makefile.am): Substitute include-next-related bits
43109         into the now-always-generated selinux/selinux.h file.
43110         * doc/glibc-functions/lgetfilecon.texi: New file.
43111         * doc/glibc-functions/fgetfilecon.texi: New file.
43112         * doc/glibc-functions/getfilecon.texi: New file.
43113         * doc/glibc-functions/getfilecon-desc.texi: New file.
43114         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43115         which to pull in the new files.
43116         * MODULES.html.sh (Misc): Add selinux-h.
43117
43118 2009-10-08  Jim Meyering  <meyering@redhat.com>
43119
43120         unistd: fix comment typo
43121         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43122
43123 2009-10-08  Eric Blake  <ebb9@byu.net>
43124
43125         areadlink: use SIZE_MAX consistently
43126         * modules/areadlink (Depends-on): Add stdint.
43127         * modules/areadlink-with-size (Depends-on): Likewise.
43128         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43129         gives NULL; drop sys/types, since unistd gives size_t; and add
43130         stdint for SIZE_MAX.
43131         (SIZE_MAX): Rely on headers.
43132         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43133         and add stdint.
43134         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43135         (SIZE_MAX): Likewise.
43136         (INITIAL_BUF_SIZE): Turn into enum.
43137         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43138
43139 2009-10-08  Jim Meyering  <meyering@redhat.com>
43140
43141         areadlinkat: avoid compilation failure
43142         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43143         Fix typo in comment.
43144
43145 2009-10-07  Eric Blake  <ebb9@byu.net>
43146
43147         areadlinkat-with-size: new module
43148         * modules/areadlinkat-with-size: New module.
43149         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43150         * lib/areadlink.h (areadlinkat): Declare it.
43151         * MODULES.html.sh (File system functions): Mention it.
43152         * modules/areadlinkat-with-size-tests: New test.
43153         * tests/test-areadlinkat-with-size.c: New file.
43154
43155         xreadlinkat: new module
43156         * modules/xreadlinkat: New module.
43157         * lib/xreadlinkat.c (xreadlinkat): New file.
43158         * lib/xreadlink.h (xreadlinkat): Declare it.
43159         * MODULES.html.sh (File system functions): Mention it.
43160
43161         areadlinkat: new module
43162         * lib/at-func.c (FUNC_FAIL): New define.
43163         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43164         * modules/areadlinkat: New module.
43165         * lib/linkat.c (areadlinkat): Move...
43166         * lib/areadlinkat.c (areadlinkat): ...to new file.
43167         * lib/areadlink.h (areadlinkat): Declare it.
43168         * modules/linkat (Depends-on): Add areadlinkat.
43169         * MODULES.html.sh (File system functions): Mention it.
43170         * modules/areadlinkat-tests: New test.
43171         * tests/test-areadlinkat.c: New file.
43172
43173         areadlink, areadlink-with-size: add tests
43174         * modules/areadlink-tests: New test.
43175         * modules/areadlink-with-size-tests: Likewise.
43176         * tests/test-areadlink.h: New file.
43177         * tests/test-areadlink.c: Likewise.
43178         * tests/test-areadlink-with-size.c: Likewise.
43179
43180         maint: minor cleanups
43181         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43182         _UNUSED_PARAMETER_ instead.
43183         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43184         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43185         * modules/linkat-tests (Files): Distribute test-link.h.
43186
43187         openat, utimens: whitespace cleanup
43188         * lib/openat.c: Prefer space throughout, rather than mix of 8
43189         spaces vs. tabs.
43190         * lib/at-func.c: Likewise.
43191         * lib/utimens.c: Likewise.
43192
43193         openat: avoid using wrong fd
43194         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43195         working directory chooses same fd.
43196         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43197
43198         mkdir, mkdirat: fix cygwin 1.5.x bug
43199         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43200         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43201         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43202         bug.
43203         (gl_PREREQ_MKDIR): Delete unused macro.
43204         * modules/mkdir (Files): Track file rename.
43205         (configure.ac): Update macro name.
43206         * modules/openat (Depends-on): Add mkdir.
43207         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43208
43209         mkdir, mkdirat: add tests
43210         * modules/mkdir-tests: New test.
43211         * tests/test-mkdir.h: New file.
43212         * tests/test-mkdir.c: Likewise.
43213         * tests/test-mkdirat.c: Likewise.
43214         * modules/openat-tests (Files): Add new files.
43215         (Makefile.am): Run new test.
43216
43217 2009-10-06  Eric Blake  <ebb9@byu.net>
43218
43219         doc: tweak *at function documentation
43220         * doc/posix-functions/faccessat.texi (faccessat): Mention
43221         known issue with replacement.
43222         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43223         * doc/posix-functions/linkat.texi (linkat): Likewise.
43224         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43225         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43226         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43227         * doc/posix-functions/renameat.texi (renameat): Likewise.
43228         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43229
43230         openat: fix GNU/Hurd bug in unlinkat
43231         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43232         broken.
43233         * doc/posix-functions/unlink.texi (unlink): Document this.
43234         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43235
43236         fdopendir: fix GNU/Hurd bug
43237         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43238         allowing non-directory fds.
43239         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43240         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43241         * modules/dirent (Makefile.am): Substitute it.
43242         * lib/dirent.in.h (fdopendir): Declare replacement.
43243         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43244         * tests/test-fdopendir.c (main): Test something other than
43245         /dev/null, since on Hurd that behaves like a directory.
43246
43247         test-symlink: port to GNU/Hurd
43248         * tests/test-symlink.h (test_symlink): Relax expected errno.
43249
43250         doc: tweak more cygwin information
43251         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43252         now compatible with glibc.
43253         * doc/posix-functions/getopt.texi (getopt): Likewise.
43254
43255         getopt-gnu: add another test
43256         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43257         guarantee behavior relied on by m4.
43258         * tests/test-getopt.c (main): Use it.
43259         * modules/getopt-posix-tests (Depends-on): Add setenv.
43260         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43261
43262         getopt: fix compilation on darwin
43263         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43264         include.
43265         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43266         Reported by Ludovic Courtès.
43267
43268 2009-10-06  Bruno Haible  <bruno@clisp.org>
43269
43270         * modules/size_max (Description): Discourage its use.
43271         Reported by Simon Josefsson.
43272
43273 2009-10-06  Jim Meyering  <meyering@redhat.com>
43274
43275         linkat: avoid compilation failure
43276         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43277
43278 2009-10-05  Eric Blake  <ebb9@byu.net>
43279
43280         linkat: support Linux 2.6.17
43281         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43282         linkat on Linux, but allow cache variable override.
43283         * lib/linkat.c (rpl_linkat): Define override.
43284         * modules/linkat (Depends-on): Add symlinkat.
43285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43286         * modules/unistd (Makefile.am): Substitute it.
43287         * lib/unistd.in.h (linkat): Declare replacement.
43288         Reported by Pádraig Brady.
43289
43290         quotearg: port test to systems with C.UTF-8 locale
43291         * tests/test-quotearg.c (struct result_strings): Add another
43292         member, differentiating between C.ASCII and C.UTF-8 handling.
43293         (compare_strings): Add parameter.
43294         (main): Adjust all callers.
43295
43296         getopt: avoid clash with FreeBSD _getopt_internal
43297         * lib/getopt.in.h (_getopt_internal): Override the name.
43298         * lib/getopt_int.h (includes): Pick up any overrides.
43299         Reported by Reuben Thomas.
43300
43301         hash: allow C89 compilation
43302         * lib/hash.c (check_tuning): Move declaration before statement.
43303         Reported by Reuben Thomas.
43304
43305 2009-10-05  Karl Berry  <karl@gnu.org>
43306
43307         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43308
43309 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43310             Bruno Haible  <bruno@clisp.org>
43311
43312         * lib/uname.c (uname): Use a table-driven algorithm to compute
43313         Windows NT versions.
43314
43315 2009-10-04  Bruno Haible  <bruno@clisp.org>
43316
43317         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43318         program_invocation_short_name.
43319         * modules/progname (configure.ac): Test for presence of
43320         program_invocation_short_name.
43321         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43322
43323 2009-10-04  Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/progname.c (set_program_name): Fix comment.
43326         Reported by Jim Meyering.
43327
43328 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43329             Bruno Haible  <bruno@clisp.org>
43330
43331         * lib/uname.c: Include <string.h>.
43332         (uname): Do only one call to GetVersionEx in the common case.
43333
43334 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43335             Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43338         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43339         (uname): Add support for Windows CE and various non-x86 CPU types.
43340
43341 2009-10-03  Bruno Haible  <bruno@clisp.org>
43342
43343         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43344         invocation to tests/configure.ac.
43345         Reported by Ian Beckwith <ianb@erislabs.net>.
43346
43347 2009-10-02  Eric Blake  <ebb9@byu.net>
43348
43349         fchdir: avoid compiler warning
43350         * lib/fchdir.c (canonicalize_file_name)
43351         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43352
43353         test-open: support mingw errno values
43354         * tests/test-open.h (test_open): Relax test.
43355         * tests/test-fopen.h (test_fopen): Likewise.
43356         * tests/test-openat-safer.c (main): Likewise.
43357
43358         open: fix opening directory on mingw
43359         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43360
43361         test-open: on GNU/Hurd, /dev/null is a directory
43362         * tests/test-fopen.h (main): Rename...
43363         (test_fopen): ...to this.  Use a guaranteed non-directory when
43364         confirming open behavior on trailing slash.
43365         * tests/test-openat-safer.c (main): Likewise.
43366         * tests/test-open.h (main): Likewise....
43367         (test_open): ...to this.
43368         * tests/test-fopen.c (main): Adjust caller.
43369         * tests/test-fopen-safer.c (main): Likewise.
43370         * tests/test-open.c (main): Likewise.
43371         * tests/test-fcntl-safer.c (main): Likewise.
43372         Reported by Samuel Thibault.
43373
43374         rename, fchdir: don't ignore chdir failure
43375         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43376         * lib/rename.c (rpl_rename) [W32]: Likewise.
43377         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43378         an empty destination directory if source cannot be renamed,
43379         although there is still possibility for failure.
43380         * doc/posix-functions/rename.texi (rename): Document the race.
43381         Reported by Jim Meyering.
43382
43383         maint: cleanup whitespace in recent commits
43384         * lib/rename.c (rpl_rename): Remove tabs.
43385         * tests/test-link.h (test_link): Likewise.
43386         * lib/fchdir.c (get_name): Likewise.
43387         Reported by Jim Meyering.
43388
43389 2009-10-02  Ben Pfaff  <blp@gnu.org>
43390
43391         relocatable-prog-wrapper: Add missing dependency on
43392         double-slash-root.
43393         * modules/relocatable-prog-wrapper: Add dependency.
43394         Reported by Ian Beckwith <ianb@erislabs.net>.
43395
43396 2009-10-02  Eric Blake  <ebb9@byu.net>
43397
43398         renameat: fix Solaris bugs
43399         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43400         needed fixing.
43401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43402         * modules/stdio (Makefile.am): Substitute it.
43403         * lib/stdio.in.h (renameat): Declare replacement.
43404         * lib/renameat.c (rpl_renameat): Implement fix.
43405
43406         renameat: new module
43407         * modules/renameat: New file.
43408         * lib/renameat.c (renameat): Likewise.
43409         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43411         * modules/stdio (Makefile.am): Substitute them.
43412         * lib/stdio.in.h (renameat): Declare it.
43413         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43414         * doc/posix-functions/renameat.texi (renameat): Likewise.
43415         * modules/renameat-tests: New test.
43416         * tests/test-renameat.c: Likewise.
43417
43418         rename: fix mingw bugs
43419         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43420         directory overwrite bugs.
43421
43422         rename: fix another cygwin 1.5 bug
43423         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43424         checks.
43425         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43426         unnecessary cygwin workarounds.  Also work around bug with moving
43427         full directory onto an empty one.
43428         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43429
43430         rename-dest-slash: merge into rename module
43431         * modules/rename-dest-slash (Status): Mark obsolete.
43432         (Depends-on): Add rename.
43433         (Files): Let rename do it all.
43434         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43435         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43436         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43437         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43438         * lib/rename.c (rpl_rename): Update comments.
43439
43440         rename: fix cygwin 1.5.x bugs
43441         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43442         * lib/rename.c (rpl_rename): Work around them.
43443         * modules/rename (Depends-on): Add same-inode.
43444
43445         rename: fix Solaris 10 bug
43446         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43447         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43448         was the only bug.
43449
43450         rename: fix Solaris 9 bug
43451         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43452         on non-directory.  Avoid calling exit.
43453         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43454         strdup.
43455         * modules/rename-tests (Depends-on): Drop lstat.
43456         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43457         (gl_PREREQ_RENAME): Delete unused macro.
43458
43459         rename-dest-slash: fix NetBSD bug
43460         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43461         links.
43462         * modules/rename-dest-slash (Depends-on): Add same-inode.
43463
43464         rename-tests: new test, exposes several platform bugs
43465         * modules/rename-tests: New file.
43466         * tests/test-rename.h: Likewise.
43467         * tests/test-rename.c: Likewise.
43468         * doc/posix-functions/rename.texi (rename): Improve documentation,
43469         including bugs that will eventually be fixed in gnulib.
43470
43471 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43472
43473         * lib/uname.c: Include <stdlib.h>
43474         (uname): Assume version info is available.
43475
43476 2009-10-02  Jim Meyering  <meyering@redhat.com>
43477
43478         gnu-web-doc-update: correct --help output
43479         * build-aux/gnu-web-doc-update: Make --help output relevant.
43480
43481         gnu-web-doc-update: add standard options
43482         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43483
43484         gnu-web-doc-update: New module.
43485         Use this script to automatically update the on-line web documentation
43486         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43487         * modules/gnu-web-doc-update: New file, from coreutils.
43488         * build-aux/gnu-web-doc-update: New script.
43489
43490 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43491
43492         link: LoadLibrary is not needed.
43493         * lib/link.c: Use GetModuleHandle.
43494
43495 2009-10-01  Eric Blake  <ebb9@byu.net>
43496
43497         getopt: bump serial number
43498         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43499         change.
43500
43501         tests: tighten link, rmdir, and remove tests
43502         * tests/test-link.h (includes): No need to use <config.h> here.
43503         Clean up if directory hard link was created, otherwise test for
43504         trailing '.'.
43505         * tests/test-linkat.c (main): Simplify.
43506         * tests/test-remove.c (main): Enhance test for trailing '.'.
43507         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43508
43509 2009-10-01  Jim Meyering  <meyering@redhat.com>
43510
43511         maint.mk: requiring "make major" was annoying, for a "minor" release.
43512         What is intended is "stable", to contrast with alpha and beta,
43513         so require "make stable", not "make major".
43514         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43515         (get_tool_versions): Likewise.
43516         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43517
43518 2009-09-30  Ben Pfaff  <blp@gnu.org>
43519
43520         Fix broken build of replacement for Windows tmpfile().
43521         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43522         flags argument added along with the 'mkostemp' module.
43523
43524 2009-09-28  Bruno Haible  <bruno@clisp.org>
43525
43526         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43527         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43528         to 'remove_elt'.
43529         (gl_list_remove): Update.
43530         * lib/gl_list.c (gl_list_remove): Update.
43531         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43532         to 'remove_elt'.
43533         (gl_oset_remove): Update.
43534         * lib/gl_list.c (gl_oset_remove): Update.
43535         Reported by Eric Blake.
43536
43537 2009-09-28  Eric Blake  <ebb9@byu.net>
43538
43539         doc: mention yet more cygwin 1.7 status
43540         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43541         cygwin.
43542         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43543         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43544
43545         argp: fix test failure
43546         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43547         that are not upper-case.  Pass correct range to tolower.
43548
43549 2009-09-27  Jim Meyering  <meyering@redhat.com>
43550
43551         test-yesno: work around sparc-dash here-document infelicity
43552         Without this change, the literal \177 byte in a here document
43553         would make dash 0.5.5.1-3 access uninitialized memory.
43554         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43555         Instead, use a marker, "@", and filter through tr to create the desired
43556         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43557
43558 2009-09-27  Bruno Haible  <bruno@clisp.org>
43559
43560         Disable untested support for new flavours of ACLs on AIX.
43561         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43562         progress.
43563         * lib/set-mode-acl.c (qset_acl): Likewise.
43564
43565 2008-12-07  Bruno Haible  <bruno@clisp.org>
43566
43567         Add support for new flavours of ACLs on AIX. (Untested.)
43568         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43569         (file_has_acl): Add support for newer AIX.
43570         * lib/set-mode-acl.c (qset_acl): Likewise.
43571         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43572         Rainer Tammer <tammer@tammer.net>.
43573
43574 2009-09-26  Eric Blake  <ebb9@byu.net>
43575
43576         argp: fix compilation of getopt
43577         * lib/getopt.in.h (includes): Use different guard than glibc.
43578         Reported by Sergey Poznyakoff.
43579
43580         doc: mention more cygwin 1.7 status
43581         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43582         bug.
43583         * doc/posix-functions/execl.texi (execl): Likewise.
43584         * doc/posix-functions/execle.texi (execle): Likewise.
43585         * doc/posix-functions/execlp.texi (execlp): Likewise.
43586         * doc/posix-functions/execv.texi (execv): Likewise.
43587         * doc/posix-functions/execve.texi (execve): Likewise.
43588         * doc/posix-functions/execvp.texi (execvp): Likewise.
43589         * doc/glibc-functions/canonicalize_file_name.texi
43590         (canonicalize_file_name): Cygwin 1.7 now provides this.
43591         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43592         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43593         on AT_SYMLINK_NOFOLLOW.
43594
43595 2009-09-24  Eric Blake  <ebb9@byu.net>
43596
43597         test-linkat: make test more robust
43598         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43599
43600         getopt: fix inclusion guards for cygwin
43601         * modules/getopt-posix (Depends-on): Add include-next.
43602         (Makefile.am): Substitute more items in replacement header.
43603         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43604         <getopt.h>.
43605         * lib/getopt.in.h (includes): Use split inclusion guard, and
43606         prefer <getopt.h> over include <unistd.h> when one is present.
43607         (option): Also override name of 'struct option'.
43608
43609         same-inode: revert prior change; it is not yet ready
43610         * NEWS: Undo mention of this change.
43611         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43612         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43613         * lib/cycle-check.c (cycle_check): Likewise.
43614         * lib/same.c (same_name): Likewise.
43615         * lib/at-func2.c (at_func2): Likewise.
43616
43617 2009-09-23  Eric Blake  <ebb9@byu.net>
43618
43619         linkat: new module
43620         * modules/linkat: New file.
43621         * lib/at-func2.c (at_func2): Likewise.
43622         * lib/linkat.c (linkat): Likewise.
43623         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43624         * lib/openat-priv.h (at_func2): Add declaration.
43625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43626         * modules/unistd (Makefile.am): Substitute them.
43627         * lib/unistd.in.h (linkat): Declare it.
43628         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43629         * doc/posix-functions/linkat.texi (linkat): Likewise.
43630         * doc/posix-functions/link.texi (link): Tweak wording.
43631         * tests/test-link.c (main): Move guts...
43632         * tests/test-link.h (test_link): ...into new file.
43633         * modules/linkat-tests: New test.
43634         * tests/test-linkat.c: Likewise.
43635         * modules/link-tests (Files): Ship new file.
43636         (Depends-on): Add stdbool.
43637
43638         dirname: add library-safe mdir_name
43639         * lib/dirname.h (mdir_name): New prototype.
43640         * lib/dirname.c (dir_name): Move guts...
43641         (mdir_name): ...to new function that avoids xalloc_die.
43642
43643         fchdir: another mingw fix
43644         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43645         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43646         on mingw (where it has not yet been ported), and make it optional
43647         elsewhere.
43648         (_gl_register_fd): Use it.
43649
43650         same-inode: make SAME_INODE tri-state, to port to mingw
43651         * NEWS: Mention this change.
43652         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43653         st_ino always being 0.
43654         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43655         * lib/cycle-check.c (cycle_check): Likewise.
43656         * lib/same.c (same_name): Likewise.
43657
43658         lstat: avoid mingw compilation error
43659         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43660         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43661         lstat ourselves.
43662         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43663         was adequate.
43664         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43665         the checks for lstat.
43666         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43667
43668         link: fix test failure on Solaris 9
43669         * lib/link.c (rpl_link): Don't assume link will catch bogus
43670         trailing slash on source.
43671
43672         test-symlinkat: enhance test
43673         * tests/test-readlink.c (main): Move guts...
43674         * tests/test-readlink.h (test_readlink): ...into new file.
43675         * tests/test-symlink.c (main): Move guts...
43676         * tests/test-symlink.h (test_symlink): ...into new file.
43677         * tests/test-symlinkat.c (main): Use new files for further
43678         coverage.
43679         (do_symlink, do_readlink): New helper functions.
43680         * modules/symlink-tests (Files): Ship new file.
43681         (Depends-on): Add stdbool.
43682         * modules/readlink-tests (Files): Ship new file.
43683         (Depends-on): Add stdbool.
43684         * modules/symlinkat-tests (Files): Use new files.
43685
43686 2009-09-23  Eric Blake  <ebb9@byu.net>
43687
43688         readlink: document portability issue with symlink length
43689         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43690         systems have bogus st_size on symlinks, and mention the
43691         areadlink-with-size module.
43692         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43693         * doc/posix-functions/readlink.texi (readlink): Mention the
43694         areadlink module, and ERANGE failure.
43695         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43696         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43697
43698         readlink: fix Solaris 9 bug with trailing slash
43699         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43700         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43701         * doc/posix-functions/readlink.texi (readlink): Document this.
43702         * modules/readlink-tests: New test.
43703         * tests/test-readlink.c: Likewise.
43704
43705         readlink: fix cygwin 1.5.x bug with return type
43706         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43707         * lib/unistd.in.h (readlink): Use ssize_t.
43708         * lib/readlink.c (readlink): Likewise.
43709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43710         * modules/unistd (Makefile.am): Substitute it.
43711         * lib/unistd.in.h (readlink): Declare replacement.
43712         * doc/posix-functions/readlink.texi (readlink): Document this.
43713
43714         symlink: use throughout gnulib
43715         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43716         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43717         symlink is not used.
43718         * modules/symlinkat (Depends-on): Add symlink.
43719         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43720         * modules/canonicalize-tests (Depends-on): Likewise.
43721         * modules/lstat-tests (Depends-on): Likewise.
43722         * modules/openat-tests (Depends-on): Likewise.
43723         * modules/remove-tests (Depends-on): Likewise.
43724         * modules/rmdir-tests (Depends-on): Likewise.
43725         * modules/unlink-tests (Depends-on): Likewise.
43726         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43727         * tests/test-canonicalize.c (symlink): Likewise.
43728         * tests/test-fstatat.c (symlink): Likewise.
43729         * tests/test-lstat.c (symlink): Likewise.
43730         * tests/test-remove.c (symlink): Likewise.
43731         * tests/test-rmdir.c (symlink): Likewise.
43732         * tests/test-unlink.c (symlink): Likewise.
43733         * tests/test-unlinkat.c (symlink): Likewise.
43734
43735         symlink: new module, for Solaris 9 bug
43736         * modules/symlink: New file.
43737         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43738         * lib/symlink.c: Likewise.
43739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43740         * modules/unistd (Makefile.am): Substitute them.
43741         * lib/unistd.in.h (symlink): Declare replacement.
43742         * MODULES.html.sh (File system functions): Mention it.
43743         * doc/posix-functions/symlink.texi (symlink): Likewise.
43744         * modules/symlink-tests: New test.
43745         * tests/test-symlink.c: Likewise.
43746
43747 2009-09-23  Bruno Haible  <bruno@clisp.org>
43748
43749         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43750         when needed.
43751         Test case: gnulib-tool --import --with-tests atexit inttypes.
43752         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43753
43754 2009-09-23  Bruno Haible  <bruno@clisp.org>
43755
43756         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43757         subcommand, not in a subshell.
43758
43759 2009-09-22  Eric Blake  <ebb9@byu.net>
43760
43761         unistd: sort replacement declarations
43762         * lib/unistd.in.h: Sort declarations.
43763
43764         open, openat: minor optimization
43765         * lib/open.c (open): If open succeeded, len is non-zero.
43766         * lib/openat.c (rpl_openat): Likewise.
43767
43768         link-follow: ensure correct result
43769         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43770         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43771         distinguish between possible failures.
43772
43773 2009-09-21  Eric Blake  <ebb9@byu.net>
43774
43775         fts: avoid compiler warning
43776         * lib/fts.c (dirent_inode_sort_may_be_useful)
43777         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43778
43779 2009-09-19  Bruno Haible  <bruno@clisp.org>
43780
43781         * lib/progreloc.c (canonicalize_file_name): New declaration.
43782
43783 2009-09-19  Eric Blake  <ebb9@byu.net>
43784
43785         link: fix quoting
43786         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43787
43788         openat: fix openat bugs on Solaris 9
43789         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43790         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43791         * modules/openat (Depends-on): Add open.
43792         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43793         * modules/fcntl-h (Makefile.am): Substitute it.
43794         * lib/fcntl.in.h (openat): Declare replacement.
43795         * doc/posix-functions/openat.texi (openat): Document this.
43796
43797         openat: move fstatat and unlinkat into correct files
43798         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43799         compiled.
43800         * lib/openat.c (fstatat, unlinkat): Move...
43801         * lib/fstatat.c (fstatat): ...into correct files.
43802         * lib/unlinkat.c (unlinkat): Likewise.
43803
43804         openat: fix unlinkat bugs on Solaris 9
43805         * lib/unlinkat.c (unlinkat): New file.
43806         * modules/openat (Depends-on): Add unlink.
43807         (Files): Distribute it.
43808         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43809         trailing slash behavior is broken.
43810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43811         * modules/unistd (Makefile.am): Substitute it.
43812         * lib/unistd.in.h (unlinkat): Declare replacement.
43813         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43814
43815         openat: fix fstatat bugs on Solaris 9
43816         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43817         stat.
43818         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43819
43820         test-unlinkat: enhance test, to expose Solaris 9 bug
43821         * tests/test-unlink.c (main): Factor guts...
43822         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43823         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43824         * tests/test-rmdir.c (main): Adjust caller.
43825         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43826         (unlinker): New helper function.
43827         (rmdirat): Enhance check.
43828         * modules/rmdir-tests (Depends-on): Add stdbool.
43829         * modules/unlink-tests (Depends-on): Likewise.
43830         (Files): Add test-unlink.h.
43831         * modules/openat-tests (Files): Likewise.
43832         (Depends-on): Add unlinkdir.
43833
43834         test-fstatat: new test, to expose Solaris 9 bugs
43835         * tests/test-stat.c (main): Factor guts...
43836         * tests/test-stat.h (test_stat_func): ...into new file.
43837         * tests/test-lstat.c (main): Factor guts...
43838         * tests/test-lstat.h (test_lstat_func): ...into new file.
43839         * tests/test-fstatat.c: New file.
43840         * modules/stat-tests (Files): Add test-stat.h.
43841         * modules/lstat-tests (Files): Add test-lstat.h.
43842         (Depends-on): Add stdbool.
43843         * modules/openat-tests (Depends-on): Add pathmax.
43844         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43845         (Makefile.am): Run new test.
43846
43847         remove: new module, for mingw and Solaris 9 bugs
43848         * modules/remove: New file.
43849         * lib/remove.c: Likewise.
43850         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43852         * modules/stdio (Makefile.am): Use them.
43853         * lib/stdio.in.h (remove): Declare replacement.
43854         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43855         * doc/posix-functions/remove.texi (remove): Likewise.
43856         * modules/remove-tests: New test.
43857         * tests/test-remove.c: Likewise.
43858
43859         unlink: new module, for Solaris 9 bug
43860         * modules/unlink: New file.
43861         * lib/unlink.c: Likewise.
43862         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43864         * modules/unistd (Makefile.am): Use them.
43865         * lib/unistd.in.h (stat): Declare replacement.
43866         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43867         * doc/posix-functions/unlink.texi (unlink): Likewise.
43868         * modules/unlink-tests: New test.
43869         * tests/test-unlink.c: Likewise.
43870
43871         lstat: fix Solaris 9 bug
43872         * lib/lstat.c (lstat): Also check for trailing slash on
43873         non-symlink, non-directories.  Use stat module to simplify logic.
43874         * doc/posix-functions/lstat.texi (lstat): Document it.
43875         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43876         (configure.ac): Check for symlink.
43877         * tests/test-lstat.c (main): Add more tests.
43878
43879         stat: add as dependency to other modules
43880         * modules/chown (Depends-on): Add stat.
43881         * modules/euidaccess (Depends-on): Likewise.
43882         * modules/fchdir (Depends-on): Likewise.
43883         * modules/isdir (Depends-on): Likewise.
43884         * modules/link (Depends-on): Likewise.
43885         * modules/lstat (Depends-on): Likewise.
43886         * modules/mkdir-p (Depends-on): Likewise.
43887         * modules/modechange (Depends-on): Likewise.
43888         * modules/open (Depends-on): Likewise.
43889         * modules/readlink (Depends-on): Likewise.
43890         * modules/same (Depends-on): Likewise.
43891
43892         stat: fix Solaris 9 bug
43893         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43894         slash.
43895         * lib/stat.c (rpl_stat): Work around it.
43896         * doc/posix-functions/stat.texi (stat): Update documentation.
43897
43898         stat: new module, for mingw bug
43899         * modules/stat: New file.
43900         * lib/stat.c: Likewise.
43901         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43902         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43903         * modules/sys_stat (Makefile.am): Use them.
43904         * lib/sys_stat.in.h (stat): Declare replacement.
43905         * lib/openat.c (fstatat): Deal with lstat and stat being function
43906         macros.
43907         * modules/openat (Depends-on): Add inline.
43908         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43909         * doc/posix-functions/stat.texi (stat): Likewise.
43910         * modules/stat-tests: New test.
43911         * tests/test-stat.c: Likewise.
43912
43913 2009-09-19  Jim Meyering  <meyering@redhat.com>
43914
43915         syntax-check: detect unnecessary inclusion of canonicalize.h
43916         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43917
43918 2009-09-19  Eric Blake  <ebb9@byu.net>
43919
43920         canonicalize-lgpl: adjust clients to use correct header
43921         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43922         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43923         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43924         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43925         * lib/progreloc.c (includes): Likewise.
43926
43927 2009-09-19  Jim Meyering  <meyering@redhat.com>
43928
43929         test-posixtm.c: correct a comment
43930         * tests/test-posixtm.c: Correct first-line comment.
43931         Spotted by Eric Blake.
43932
43933 2009-09-16  Jim Meyering  <meyering@redhat.com>
43934
43935         posixtm-tests: make T const-correct; add a test case
43936         * tests/test-posixtm.c (T): Declare const.
43937         Add a test for -(2^31+1).
43938         Remove useless can-succeed-only-in-2002 test.
43939
43940         posixtm-tests: adjust the sole failing test
43941         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43942         expected output matches what mktime now produces.  Cross-checked via
43943         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43944
43945         posixtm: move #ifdef'd tests into a new module
43946         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43947         * tests/test-posixtm.c: ... this new file.
43948         * modules/posixtm-tests: New module.
43949
43950 2009-09-19  Eric Blake  <ebb9@byu.net>
43951
43952         openat: simplify use of at-func.c
43953         * lib/at-func.c (includes): Include prerequisites here, to
43954         simplify requirements on client files.
43955         * lib/openat-priv.h: Add double-inclusion guard.
43956         * lib/faccessat.c (includes): Simplify.
43957         * lib/fchmodat.c (includes): Likewise.
43958         * lib/fchownat.c (includes): Likewise.
43959         * lib/mkdirat.c (includes): Likewise.
43960         * lib/mkfifoat.c (includes): Likewise.
43961         * lib/symlinkat.c (includes): Likewise.
43962
43963         openat: allow return of fd 0
43964         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43965         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43966         unistd-safer.
43967         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43968         <fcntl.h>; this module does not leak fds.
43969         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43970         must be allowed to return 0, leaving openat_safer to add the
43971         safety.
43972         (openat_permissive): Avoid writing to just-opened fd 2 if
43973         restoring the current directory fails.
43974         * lib/openat-die.c (openat_restore_fail): Add comment.
43975         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43976         (save_cwd): Guarantee safe fd, but without use of open_safer.
43977         * tests/test-openat.c: New test.
43978         * modules/openat-tests (Files, Makefile.am): Distribute and build
43979         new file.
43980
43981         relocatable-prog-wrapper: fix build
43982         * modules/relocatable-prog-wrapper (Files): Update name of
43983         canonicalize m4 file, broken on 2009-09-17.
43984         Reported by emad hajjar <aleppos@hotmail.com>.
43985
43986 2009-09-19  Bruno Haible  <bruno@clisp.org>
43987
43988         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43989         * lib/safe-alloc.c: Likewise.
43990         Reported by Ian Beckwith <ianb@erislabs.net>.
43991
43992 2009-09-18  Bruno Haible  <bruno@clisp.org>
43993
43994         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43995         Reported by <erobles@sensacd.com.mx>.
43996
43997 2009-09-17  Eric Blake  <ebb9@byu.net>
43998
43999         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44000         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44001         slashes when checking if last component is missing.
44002         * tests/test-canonicalize.c (main): Test this.
44003
44004         canonicalize, canonicalize-lgpl: honor // if distinct from /
44005         * modules/canonicalize (Files): Add double-slash-root.m4.
44006         * modules/canonicalize-lgpl (Files): Likewise.
44007         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44008         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44009         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44010         fallback definition.
44011         (canonicalize_filename_mode): Use it to protect //.
44012         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44013         (__realpath): Likewise.
44014         * tests/test-canonicalize.c (main): Test this.
44015         * tests/test-canonicalize-lgpl.c (main): Likewise.
44016         * modules/canonicalize-tests (Depends-on): Add same-inode.
44017         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44018
44019         canonicalize-lgpl: fix glibc bug with trailing slash
44020         * m4/canonicalize-lgpl.m4: Move contents...
44021         * m4/canonicalize.m4: ...here.
44022         (gl_CANONICALIZE_LGPL): Factor realpath check...
44023         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44024         glibc 2.3.5 bug, fixed 2005-04-27.
44025         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44026         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44027         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44028         * modules/canonicalize-lgpl (Files): Manage file rename.
44029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44030         * modules/stdlib (Makefile.am): Substitute witness.
44031         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44032         is needed.
44033         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44034         replacement is required.
44035         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44036         * doc/glibc-functions/canonicalize_file_name.texi
44037         (canonicalize_file_name): Document this.
44038         * doc/posix-functions/realpath.texi (realpath): Likewise.
44039
44040         canonicalize-lgpl: reject non-directory with trailing slash
44041         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44042         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44043         catches failures in glibc 2.3.5.
44044         * tests/test-canonicalize.c (main): Likewise.
44045
44046         canonicalize-lgpl: use native realpath if it works
44047         * lib/canonicalize-lgpl.c (realpath): Guard with
44048         FUNC_REALPATH_WORKS.
44049         * lib/stdlib.in.h (realpath): Make declaration optional based on
44050         HAVE_REALPATH.
44051         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44052         native realpath works.
44053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44054         * modules/stdlib (Makefile.am): Substitute witness.
44055
44056         canonicalize, canonicalize-lgpl: use <stdlib.h>
44057         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44058         (Include): Mention <stdlib.h>.
44059         (configure.ac): Mention functions we provide.
44060         * modules/canonicalize (configure.ac): Likewise.
44061         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44062         realpath if canonicalize_file_name is missing.
44063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44064         * modules/stdlib (Makefile.am): Substitute witnesses.
44065         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44066         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44067         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44068         * NEWS: Document this.
44069         * doc/glibc-functions/canonicalize_file_name.texi
44070         (canonicalize_file_name): Likewise.
44071         * doc/posix-functions/realpath.texi (realpath): Likewise.
44072         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44073
44074         test-canonicalize: consolidate into single C program
44075         * tests/test-canonicalize.sh: Delete; move setup into...
44076         * tests/test-canonicalize.c (main): ...the program, making it
44077         easier to run in debugger.  Add some tests.
44078         * modules/canonicalize-tests (Files): Remove unused file.
44079         (Depends-on): Add progname.
44080         (configure.ac, Makefile.am): Simplify.
44081
44082         test-canonicalize-lgpl: consolidate into single C program
44083         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44084         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44085         easier to run in debugger.  Add some tests.
44086         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44087         (configure.ac, Makefile.am): Simplify.
44088
44089         canonicalize: avoid resolvepath
44090         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44091         unnecessary checks.
44092         * lib/canonicalize.c (includes): Simplify.
44093         (canonicalize_file_name): Drop resolvepath implementation.
44094         * modules/canonicalize (Depends-on): Drop filenamecat.
44095
44096         canonicalize: don't lose errno
44097         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44098         over calls to free.
44099
44100         canonicalize: simplify errno handling
44101         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44102         assignment.
44103
44104         canonicalize, canonicalize-lgpl: update module dependencies
44105         * modules/canonicalize (Depends-on): Add extensions, lstat,
44106         pathmax, stdlib.
44107         (Files): Drop pathmax.h.
44108         (configure.ac): Adjust macro name.
44109         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44110         lstat, stdlib, sys_stat.
44111         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44112         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44113         extensions.
44114         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44115         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44116         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44117         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44118         declaration, if available.
44119         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44120         we can rely on the readlink module.
44121         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44122         (includes): Use <unistd.h> unconditionally.
44123
44124 2009-09-17  Eric Blake  <ebb9@byu.net>
44125
44126         maint: make Include sections of modules consistent
44127         * modules/alloca: Use only header name; no need to list #include.
44128         * modules/alloca-opt: Likewise.
44129         * modules/arpa_inet: Likewise.
44130         * modules/canon-host: Likewise.
44131         * modules/configmake: Likewise.
44132         * modules/dirent: Likewise.
44133         * modules/eealloc: Likewise.
44134         * modules/environ: Likewise.
44135         * modules/fchdir: Likewise.
44136         * modules/fcntl: Likewise.
44137         * modules/fcntl-h: Likewise.
44138         * modules/gethrxtime: Likewise.
44139         * modules/gettime: Likewise.
44140         * modules/ignore-value: Likewise.
44141         * modules/inet_ntop: Likewise.
44142         * modules/inet_pton: Likewise.
44143         * modules/inttypes: Likewise.
44144         * modules/isnand-nolibm: Likewise.
44145         * modules/isnanf-nolibm: Likewise.
44146         * modules/mbchar: Likewise.
44147         * modules/mbfile: Likewise.
44148         * modules/mbiter: Likewise.
44149         * modules/mbuiter: Likewise.
44150         * modules/netdb: Likewise.
44151         * modules/netinet_in: Likewise.
44152         * modules/nproc: Likewise.
44153         * modules/pagealign_alloc: Likewise.
44154         * modules/poll: Likewise.
44155         * modules/printf-frexp: Likewise.
44156         * modules/pthread: Likewise.
44157         * modules/putenv: Likewise.
44158         * modules/random_r: Likewise.
44159         * modules/relocatable-prog: Likewise.
44160         * modules/search: Likewise.
44161         * modules/select: Likewise.
44162         * modules/selinux-h: Likewise.
44163         * modules/settime: Likewise.
44164         * modules/signal: Likewise.
44165         * modules/size_max: Likewise.
44166         * modules/socklen: Likewise.
44167         * modules/ssize_t: Likewise.
44168         * modules/stdarg: Likewise.
44169         * modules/stdbool: Likewise.
44170         * modules/stddef: Likewise.
44171         * modules/stdint: Likewise.
44172         * modules/stdio: Likewise.
44173         * modules/stdlib: Likewise.
44174         * modules/string: Likewise.
44175         * modules/strings: Likewise.
44176         * modules/sys_file: Likewise.
44177         * modules/sys_ioctl: Likewise.
44178         * modules/sys_select: Likewise.
44179         * modules/sys_socket: Likewise.
44180         * modules/sys_stat: Likewise.
44181         * modules/sys_time: Likewise.
44182         * modules/sys_times: Likewise.
44183         * modules/sys_utsname: Likewise.
44184         * modules/sys_wait: Likewise.
44185         * modules/sysexits: Likewise.
44186         * modules/time: Likewise.
44187         * modules/times: Likewise.
44188         * modules/tmpfile: Likewise.
44189         * modules/trim: Likewise.
44190         * modules/unistd: Likewise.
44191         * modules/wchar: Likewise.
44192         * modules/wctype: Likewise.
44193
44194 2009-09-17  Bruno Haible  <bruno@clisp.org>
44195
44196         Make getdate.y compile on QNX and NetBSD 5 / i386.
44197         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44198         TIME_T_FITS_IN_LONG_INT.
44199         * lib/getdate.y (long_time_t): New type.
44200         (relative_time): Change type of 'seconds' field to long_time_t.
44201         (get_date): Update types of local variables. Check against overflow
44202         during conversion from long_time_t to time_t.
44203         Reported by Matt Kraai <kraai@ftbfs.org>
44204         and Hasso Tepper <hasso@netbsd.org>.
44205
44206 2009-09-17  Bruno Haible  <bruno@clisp.org>
44207
44208         * modules/COPYING: Update copyright years.
44209         * modules/README: Likeiwse.
44210         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44211         Reported by Ian Beckwith <ianb@erislabs.net>.
44212
44213 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44214
44215         * users.txt: Update references for gnuit package.
44216
44217 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44218
44219         * m4/getdelim.m4: Fix typo in copyright line.
44220
44221 2009-09-17  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/atoll.c: Use the standard header with GPL copyright.
44224         * lib/argz.in.h: Likewise.
44225         * lib/glob.c: Likewise.
44226         * lib/glob-libc.h: Likewise.
44227         * lib/random_r.c: Likewise.
44228         * lib/siglist.h: Likewise.
44229         * lib/strsignal.c: Likewise.
44230         Reported by Ian Beckwith <ianb@erislabs.net>.
44231
44232 2009-09-17  Eric Blake  <ebb9@byu.net>
44233
44234         rmdir: ensure correct dependency order
44235         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44236
44237 2009-09-17  Bruno Haible  <bruno@clisp.org>
44238
44239         Disable assertion that fails on NetBSD 5 / i386.
44240         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44241         Reported by Sam Steingold <sds@gnu.org>
44242         and Hasso Tepper <hasso@netbsd.org>.
44243
44244 2009-09-16  Eric Blake  <ebb9@byu.net>
44245
44246         unlinkdir: port to mingw
44247         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44248         on which no one can unlink a directory.
44249
44250         stdlib: sort witness names
44251         * modules/stdlib (Makefile.am): Sort replacements.
44252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44253         * lib/stdlib.in.h: Likewise.
44254
44255         parse-duration-tests: avoid link failure
44256         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44257         LIBINTL.
44258         Reported by Tom G. Christensen.
44259
44260         openat-tests: ensure unlinkat behaves like rmdir
44261         * tests/test-rmdir.c (main): Factor guts...
44262         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44263         * modules/rmdir-tests (Files): Ship new file.
44264         * modules/openat-tests: New test.
44265         * tests/test-unlinkat.c: Likewise.
44266
44267         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44268         * modules/rmdir-errno (Status, Notice): Now obsolete.
44269
44270         rmdir: work around cygwin 1.5.x and mingw bugs
44271         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44272         * lib/rmdir.c (rmdir): Work around it.
44273         * modules/rmdir (Status, Notice): No longer obsolete.
44274         (Files): Add dos.m4.
44275         (Depends-on): Add unistd.
44276         (configure.ac): Set witnesses.
44277         (License): Relax to LGPLv2+.
44278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44279         * modules/unistd (Makefile.am): Substitute witnesses.
44280         * lib/unistd.in.h (rmdir): Declare replacement.
44281         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44282         * modules/rmdir-tests: New tests.
44283         * tests/test-rmdir.c: Likewise.
44284
44285 2009-09-15  Eric Blake  <ebb9@byu.net>
44286
44287         fchdir: improve use of replacement functions
44288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44289         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44290         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44291         REPLACE_CLOSEDIR.
44292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44293         * modules/sys_stat (Makefile.am): Substitute correct witness.
44294         * modules/dirent (Makefile.am): Likewise.
44295         * modules/unistd (Makefile.am): Likewise.
44296         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44297         * lib/unistd.in.h (dup): Likewise.
44298         * lib/sys_stat.in.h (fstat): Likewise.
44299
44300         maint: ignore gnulib-tool temp files
44301         * .gitignore: Ignore files created during gnulib-tool --test.
44302
44303 2009-09-13  Jim Meyering  <meyering@redhat.com>
44304
44305         posixtm: don't reject a time that specify "60" as the number of seconds
44306         * lib/posixtm.c (posixtime): The code to reject invalid dates
44307         would also reject a time specified with the .60 suffix.
44308         But POSIX allows that, in order to accommodate leap seconds.
44309         So don't reject it.
44310         (main): Adjust tests accordingly.
44311         * modules/posixtm (Depends-on): Add stpcpy.
44312
44313 2009-09-11  Jim Meyering  <meyering@redhat.com>
44314
44315         announce-gen: include [$release_type] in emitted Subject:
44316         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44317         e.g., [stable] in the emitted Subject: line.
44318
44319 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44320
44321         Remove obsolete macros from several modules.
44322         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44323         obsolete Autoconf macros with their modern counterparts.
44324         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44325         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44326         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44327         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44328         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44329         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44331         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44332         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44333         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44334         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44336         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44337         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44338         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44339         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44340         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44341         * m4/time_r.m4 (gl_TIME_R): Likewise.
44342         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44343         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44344         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44345
44346         Fix copyright header in build-aux scripts.
44347         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44348         recommendation.
44349         * build-aux/ncftpput-ftp: Likewise.
44350         * build-aux/update-copyright: Likewise.
44351
44352 2009-09-09  Eric Blake  <ebb9@byu.net>
44353
44354         test-link: allow Linux choice of errno
44355         * tests/test-link.c (main): Relax test for alternate error.
44356
44357         strndup: fix improper m4 caching
44358         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44359         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44360         (gl_PREREQ_STRNDUP): Delete.
44361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44362         * modules/string (Makefile.am): Substitute it.
44363         * lib/string.in.h (strndup): Modernize prototype.
44364
44365         getcwd: port to mingw
44366         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44367         different from the POSIX assumptions made throughout the getcwd
44368         module; fortunately, the mingw getcwd does not need replacement.
44369         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44370         * modules/getcwd-tests: New test.
44371         * tests/test-getcwd.c: Likewise.
44372
44373         link: fix platform bugs
44374         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44375         * lib/link.c (link): Work around them.  Fix related mingw bug.
44376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44377         * modules/unistd (Makefile.am): Substitute it.
44378         * lib/unistd.in.h (link): Declare replacement.
44379         * doc/posix-functions/link.texi (link): Document this.
44380         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44381
44382         test-link: consolidate into single C program, test more cases
44383         * tests/test-link.sh: Delete.
44384         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44385         at least Cygwin and Solaris.
44386         * modules/link-tests (Files): Remove unused file.
44387         (Depends-on): Add errno, sys_stat.
44388         (Makefile.am): Simplify.
44389
44390 2009-09-08  Bruno Haible  <bruno@clisp.org>
44391
44392         Work around towlower, towupper bug on mingw.
44393         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44394         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44395         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44396         * doc/posix-functions/towupper.texi: Likewise.
44397         Reported by Eric Blake.
44398
44399 2009-09-08  Jim Meyering  <meyering@redhat.com>
44400
44401         build: don't try to run autoheader if we don't use it
44402         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44403         is not used in configure.ac.
44404
44405 2009-09-08  Eric Blake  <ebb9@byu.net>
44406
44407         euidaccess: fix compilation error
44408         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44409
44410         rawmemchr: relax license
44411         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44412         okay.
44413         Reported by Jim Meyering.
44414
44415         mkfifoat: new module
44416         * modules/mkfifoat: New file.
44417         * lib/mkfifoat.c: Likewise.
44418         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44419         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44420         * modules/sys_stat (Makefile.am): Use them.
44421         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44422         * MODULES.html.sh (File system functions): Mention module.
44423         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44424         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44425         * modules/mkfifoat-tests: New test.
44426         * tests/test-mkfifoat.c: Likewise.
44427
44428         strchrnul: relax license
44429         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44430         okay.
44431         Reported by Jim Meyering.
44432
44433 2009-09-08  Eric Blake  <ebb9@byu.net>
44434
44435         fstatat: fix compilation on Solaris
44436         * lib/fstatat.c (includes): Add fcntl.h.
44437         Reported by Pádraig Brady.
44438
44439 2009-09-07  Eric Blake  <ebb9@byu.net>
44440
44441         rename: modernize replacement
44442         * modules/rename (Depends-on): Add stdio.
44443         (configure.ac): Declare witness.
44444         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44445         stdio take care of replacement.
44446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44447         * modules/stdio (Makefile.am): Substitute them.
44448         * lib/stdio.in.h (rename): Declare replacement.
44449         * lib/rename.c (includes): Allow cross-compilation to non-windows
44450         machines.
44451         * doc/posix-functions/rename.texi (rename): Improve
44452         documentation.
44453
44454         stdio: sort witness names
44455         * modules/stdio (Makefile.am): Sort replacements.
44456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44457         * lib/stdio.in.h: Likewise.
44458
44459         getcwd: minor cleanups
44460         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44461         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44462
44463         openat: provide more convenience names
44464         * modules/faccessat (configure.ac): Add C witness.
44465         * lib/unistd.in.h (readlinkat): Fix typo.
44466         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44467         convenience wrappers.
44468         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44469         wrappers in syntax checks.
44470
44471 2009-09-06  Eric Blake  <ebb9@byu.net>
44472
44473         doc: fix comments in recent patches
44474         * lib/faccessat.c: Mention correct function.
44475         * lib/fchmodat.c: Likewise.
44476         * lib/fchownat.c: Likewise.
44477         * lib/symlinkat.c: Likewise.
44478         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44479         constants.
44480
44481         faccessat, symlinkat: continue cleanup of previous patch
44482         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44483         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44484         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44486         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44487         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44488         set.
44489
44490 2009-09-06  Bruno Haible  <bruno@clisp.org>
44491
44492         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44493         (fstatat): Declare if GNULIB_FSTATAT is set.
44494         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44495         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44496         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44497         * modules/fcntl-h (Files): Remove m4/openat.m4.
44498         * modules/sys_stat (Files): Remove m4/openat.m4.
44499         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44500         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44501         * modules/unistd (Files): Remove m4/openat.m4.
44502         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44503         GNULIB_OPENAT.
44504         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44505         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44506         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44507         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44508         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44509         gl_OPENAT_DEFAULTS.
44510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44511         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44512         Don't require gl_OPENAT_DEFAULTS.
44513         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44514         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44515         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44516         (gl_OPENAT_DEFAULTS): Remove macro.
44517
44518 2009-09-06  Bruno Haible  <bruno@clisp.org>
44519
44520         * modules/openat (configure.ac): Remove unneeded witness.
44521
44522 2009-09-06  Bruno Haible  <bruno@clisp.org>
44523
44524         Set errno to ENOSYS when a function is entirely unsupported.
44525         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44526         EOPNOTSUPP.
44527         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44528         * modules/chown (Depends-on): Remove errno.
44529
44530 2009-09-06  Bruno Haible  <bruno@clisp.org>
44531
44532         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44533
44534 2009-09-06  Bruno Haible  <bruno@clisp.org>
44535
44536         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44537
44538 2009-09-06  Ben Pfaff  <blp@gnu.org>
44539             Bruno Haible  <bruno@clisp.org>
44540
44541         Work around a glibc bug in strtok_r.
44542         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44543         Undefine if UNDEFINE_STRTOK_R is set.
44544         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44546         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44547         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44548         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44549         UNDEFINE_STRTOK_R.
44550         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44551
44552 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44553
44554         exclude: minor fix
44555         * lib/exclude.c: Include wctype.h
44556
44557 2009-09-06  Akim Demaille  <demaille@gostai.com>
44558
44559         bootstrap: improve error message
44560         * build-aux/bootstrap (find_tool): Upon failure, report the list
44561         of candidates.
44562         Honor the initial value of the envvar.
44563
44564 2009-09-05  Eric Blake  <ebb9@byu.net>
44565
44566         symlinkat: new module
44567         * modules/symlinkat: New file.
44568         * lib/symlinkat.c: Likewise.
44569         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44571         * modules/unistd (Makefile.am): Use them.
44572         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44573         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44574         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44575         * MODULES.html.sh (File system functions): Mention module.
44576         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44577         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44578         * modules/symlinkat-tests: New test.
44579         * tests/test-symlinkat.c: Likewise.
44580
44581         test-openat-safer: add more checks
44582         * tests/test-openat-safer.c (main): Check more code paths.
44583
44584 2009-09-05  Jim Meyering  <meyering@redhat.com>
44585
44586         syntax-check: detect unnecessary inclusion of openat.h
44587         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44588
44589 2009-09-05  Bruno Haible  <bruno@clisp.org>
44590
44591         Support towlower, towupper.
44592         * doc/posix-functions/towlower.texi: Mention module wctype.
44593         * doc/posix-functions/towupper.texi: Likewise.
44594         * lib/wctype.in.h (towlower, towupper): New functions.
44595         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44596         (ASSERT): New macro.
44597         (e): New variable.
44598         (main): Test also towlower, towupper. Test WEOF argument.
44599         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44600
44601 2009-09-05  Bruno Haible  <bruno@clisp.org>
44602
44603         Fix conversion behaviour when the input is invalid.
44604         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44605         mark occurring in first pass of indirect conversion.
44606         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44607         input.
44608         Found by clang's static analyzer.
44609
44610 2009-09-05  Bruno Haible  <bruno@clisp.org>
44611
44612         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44613         where direct conversion is possible.
44614
44615 2009-09-04  Eric Blake  <ebb9@byu.net>
44616
44617         openat: fail with ENOENT on empty name
44618         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44619         buffer.
44620
44621         link-follow: fix logic bug in prior patch
44622         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44623         reversed sense of yes and no in prior patch.  Avoid confusing
44624         compilation failure with desired semantics.
44625
44626         link-follow: accommodate mingw and cross-compilation
44627         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44628         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44629         cross-compilation results to -1, to make linkat easier to
44630         implement when cross-compiling.  Trivially support mingw.
44631         * modules/link-follow (configure.ac): Call new name.
44632         * NEWS: Mention this.
44633
44634 2009-09-03  Eric Blake  <ebb9@byu.net>
44635
44636         faccessat: compile replacement
44637         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44638         needed.
44639
44640         fts: fix compilation error
44641         * lib/fts.c (includes): Re-add "openat.h", for
44642         openat_needs_fchdir.
44643
44644         faccessat: new module
44645         * modules/faccessat: New file.
44646         * lib/faccessat.c: Likewise.
44647         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44649         * modules/unistd (Makefile.am): Use it.
44650         * lib/unistd.in.h (faccessat): Declare it.
44651         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44652         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44653         * MODULES.html.sh (File system functions): Mention it.
44654         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44655         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44656
44657         euidaccess: prefer POSIX over non-standard implementation
44658         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44659         * lib/euidaccess.c (euidaccess): Use it if available.
44660
44661         openat: make template easier to use
44662         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44663         AT_FUNC_F2 to be undefined.
44664         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44665         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44666         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44667         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44668         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44669         Likewise.
44670         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44671         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44672         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44673         Likewise.
44674
44675         openat: declare in POSIX headers
44676         * NEWS: Mention this.
44677         * modules/openat (configure.ac): Declare witnesses.
44678         (Depends-on): Add fcntl-h, sys_stat, unistd.
44679         (Include): Mention correct headers.
44680         * modules/fcntl-h (Depends-on): Add link-warning.
44681         (Files): Add openat.m4.
44682         (Makefile.am): Substitute witnesses.
44683         * modules/sys_stat (Files, Makefile.am): Likewise.
44684         * modules/unistd (Files, Makefile.am): Likewise.
44685         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44686         (gl_OPENAT_DEFAULTS): New macro.
44687         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44690         (SYS_STAT_H): Remove unused variable.
44691         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44692         * lib/fcntl--.h (includes): Remove unneeded header.
44693         * lib/openat-safer.c (includes): Likewise.
44694         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44695         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44696         appropriate headers.
44697         (__OPENAT_PREFIX): Delete.
44698         * lib/fcntl.in.h (openat): Provide declaration.
44699         (AT_FDCWD): Fix Solaris bug.
44700         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44701         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44702         * lib/fchmodat.c (includes):  Adjust to find declaration.
44703         * lib/fchownat.c (includes): Likewise.
44704         * lib/mkdirat.c (includes): Likewise.
44705         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44706         still visible.
44707
44708 2009-09-02  Eric Blake  <ebb9@byu.net>
44709
44710         errno: use consistently
44711         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44712         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44713         * lib/canonicalize.c (ELOOP): Likewise.
44714         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44715         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44716         * lib/lchown.c (EOPNOTSUPP): Likewise.
44717         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44718         * lib/savewd.c (ESTALE): Likewise.
44719         * lib/settime.c (ENOSYS): Likewise.
44720         * lib/utimens.c (ENOSYS): Likewise.
44721         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44722         * lib/chdir-safer.c (ELOOP): Likewise.
44723         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44724         * modules/c-stack (Depends-on): Add errno.
44725         * modules/canonicalize (Depends-on): Likewise.
44726         * modules/chdir-safer (Depends-on): Likewise.
44727         * modules/fdopendir (Depends-on): Likewise.
44728         * modules/inet_ntop (Depends-on): Likewise.
44729         * modules/inet_pton (Depends-on): Likewise.
44730         * modules/lchown (Depends-on): Likewise.
44731         * modules/openat (Depends-on): Likewise.
44732         * modules/savewd (Depends-on): Likewise.
44733         * modules/settime (Depends-on): Likewise.
44734         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44735
44736         fts: avoid leaking fds
44737         * modules/fts (Depends-on): Add cloexec.
44738         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44739         flag.
44740
44741         fts: make directory fds more robust
44742         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44743         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44744
44745         backupfile, chdir-long, fts, savedir: make safer
44746         * lib/backupfile.c (includes): Use "dirent--.h", since
44747         numbered_backup can write to stderr during readdir.
44748         * lib/savedir.c (includes): Likewise.
44749         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44750         emulation can write to stderr on failure.
44751         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44752         * lib/getcwd.c: Document why opendir_safer is unused.
44753         * lib/glob.c: Likewise.
44754         * lib/scandir.c: Likewise.
44755         * lib/openat-proc.c: Likewise, for open_safer.
44756         * modules/backupfile (Depends-on): Add dirent-safer.
44757         * modules/savedir (Depends-on): Likewise.
44758         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44759         * modules/chdir-long (Depends-on): Add openat-safer.
44760
44761         openat-safer: new module
44762         * modules/openat-safer: New file.
44763         * lib/openat-safer.c: Likewise.
44764         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44765         * lib/fcntl-safer.h (openat_safer): Declare.
44766         * lib/fcntl--.h (openat): Override.
44767         * MODULES.html.sh (File descriptor based I/O): Mention it.
44768         * lib/openat.h: Add double-inclusion guards.
44769         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44770         "fcntl--.h", so we can implement openat.
44771         * modules/openat-safer-tests: New test.
44772         * tests/test-openat-safer.c: New file.
44773
44774         dirent-safer: new module
44775         * modules/dirent-safer: New file.
44776         * lib/dirent--.h: Likewise.
44777         * lib/dirent-safer.h: Likewise.
44778         * lib/opendir-safer.c: Likewise.
44779         * m4/dirent-safer.m4: Likewise.
44780         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44781         * modules/dirent-safer-tests: New test.
44782         * tests/test-dirent-safer.c: New file.
44783         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44784
44785         fdopendir: optimize on mingw
44786         * lib/unistd.in.h (_gl_directory_name): New prototype.
44787         * lib/fchdir.c (_gl_directory_name): Implement it.
44788         (fchdir): Use it to simplify implementation.
44789         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44790         fchdir, when available, to avoid calling [f]chdir().
44791
44792         fdopendir: split into its own module
44793         * lib/openat.c (fdopendir): Move...
44794         * lib/fdopendir.c: ...into new file.
44795         * modules/fdopendir: New module.
44796         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44797         * modules/openat (Depends-on): Add fdopendir.
44798         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44799         fdopendir here.
44800         * modules/savedir (Depends-on): Only need fdopendir, not full
44801         openat.
44802         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44803         * lib/openat.h (fdopendir): Drop prototype.
44804         * lib/dirent.in.h (fdopendir): Provide prototype.
44805         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44806         * modules/dirent (Makefile.am): Substitute them.
44807         * MODULES.html.sh (File system functions): Mention it.
44808         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44809         * modules/fdopendir-tests: New file.
44810         * tests/test-fdopendir.c: Likewise.
44811
44812         fchdir: use more consistent macro convention
44813         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44814         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44815         REPLACE_FCHDIR, rather than relying on config.h macros.
44816         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44817         inside a single make-time REPLACE_FCHDIR block, rather than using
44818         the config.h FCHDIR_REPLACEMENT.
44819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44820         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44821         Manage fstat replacement.
44822         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44823         REPLACE_FCHDIR.
44824         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44825         (Makefile.am): Substitute REPLACE_FCHDIR.
44826         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44827         FCHDIR_REPLACEMENT.
44828         * lib/dup-safer.c (dup_safer): Likewise.
44829         * lib/dup2.c (rpl_dup2): Likewise.
44830         * lib/dup3.c (rpl_dup3): Likewise.
44831         * lib/open.c (rpl_open): Likewise.
44832
44833         fchdir: simplify error handling, and support dup3
44834         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44835         stdbool, malloc-posix, realloc-posix.
44836         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44837         (ensure_dirs_slot): Return false on allocation failure.
44838         (rpl_dup2): Delete.
44839         (_gl_register_dup): New function.
44840         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44841         (_gl_register_fd): Close fd on allocation failure.
44842         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44843         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44844         prototype.
44845         (rpl_dup2_fchdir): Delete prototype.
44846         * lib/open.c (open): Update caller.
44847         * lib/dup2.c (dup2): Track fchdir metadata.
44848         * lib/dup3.c (dup3): Likewise.
44849         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44850         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44851
44852 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44853
44854         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44855         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44856         don't pass arguments to AC_OUTPUT.
44857
44858 2009-09-02  Bruno Haible  <bruno@clisp.org>
44859
44860         * modules/mkdtemp (License): Relicense under LGPLv2+.
44861         Reported by Paolo Bonzini.
44862
44863 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44864
44865         Replace uses of obsolete autoconf macros in Jim's modules.
44866         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44867         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44868         can evoke a warning from autoconf when run with -Wobsolete
44869         enabled.  They were declared obsolete for good reasons (see
44870         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44871         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44872         should not continue using the deprecated macros.
44873         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44874         obsolete Autoconf macros with modern counterparts.
44875         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44876         * m4/dos.m4 (gl_AC_DOS): Likewise.
44877         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44878         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44879         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44880         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44881         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44882         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44883         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44884         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44885         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44886         Likewise.
44887         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44888         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44889         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44890         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44891         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44892         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44893
44894 2009-09-01  Eric Blake  <ebb9@byu.net>
44895
44896         fchdir: fix off-by-one bug in previous patch
44897         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44898         (_gl_unregister_fd): Delete useless if.
44899
44900 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44901
44902         maint.mk: sort the list of syntax-check rules
44903         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44904         easier to get a sense of progress when the rules are run sequentially
44905         and take a long time.
44906
44907 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44908
44909         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44910         * modules/netinet_in: Likewise.
44911         * modules/sys_file: Likewise.
44912         * modules/sys_ioctl: Likewise.
44913         * modules/sys_select: Likewise.
44914         * modules/sys_socket: Likewise.
44915         * modules/sys_stat: Likewise.
44916         * modules/sys_time: Likewise.
44917         * modules/sys_times: Likewise.
44918         * modules/sys_utsname: Likewise.
44919         * modules/sys_wait: Likewise.
44920
44921 2009-09-01  Jim Meyering  <meyering@redhat.com>
44922
44923         fts: help ensure that return values are not ignored
44924         * lib/fts_.h (__GNUC_PREREQ): Define.
44925         (__attribute_warn_unused_result__): Define.
44926         (fts_children, fts_close, fts_open, fts_read): Declare with
44927         __attribute_warn_unused_result__.
44928
44929         fts: fts_close now fails also when closing a dir file descriptor fails
44930         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44931         and propagate to caller, along with errno.
44932
44933         announce-gen: correct formatting in --help output
44934         * build-aux/announce-gen (usage): Move the one-line description in
44935         --help output "up", to where it belongs, just after Usage:.
44936
44937 2009-08-31  Eric Blake  <ebb9@byu.net>
44938
44939         fchdir: port to mingw
44940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44941         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44942         opened, then use a substitute.
44943         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44944         replacement.
44945         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44946         (_gl_register_fd): No need to check stat if open already filters
44947         all directories.
44948         (fchdir): Fix error condition to match POSIX.
44949         * modules/fchdir (Depends-on): Add sys_stat.
44950         * doc/posix-functions/open.texi (open): Document the limitation.
44951         * modules/fchdir-tests: New file.
44952         * tests/test-fchdir.c: Likewise.
44953
44954         canonicalize: allow cross-testing from cygwin to mingw
44955         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44956         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44957         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44958         Likewise.
44959         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44960         target does not support symlinks.
44961         * tests/test-canonicalize-lgpl.sh: Likewise.
44962
44963         chown: avoid compilation warning on mingw
44964         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44965         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44966         mingw.
44967         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44968         * modules/chown (Depends-on): Add errno.
44969
44970 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44971
44972         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44973         command.
44974
44975 2009-08-31  Jim Meyering  <meyering@redhat.com>
44976
44977         canonicalize: remove useless initialization
44978         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44979         initialization of local, "end".
44980
44981 2009-08-30  Bruno Haible  <bruno@clisp.org>
44982
44983         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44984         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44985         ENOSYS.
44986
44987 2009-08-30  Bruno Haible  <bruno@clisp.org>
44988
44989         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44990         /usr/xpg4/bin/tr when it exists.
44991         * tests/test-pipe-filter-gi1.sh: Likewise.
44992
44993 2009-08-30  Bruno Haible  <bruno@clisp.org>
44994
44995         Work around deficient /usr/bin/id program on Solaris.
44996         * tests/test-file-has-acl.sh (ID): New variable.
44997         * tests/test-set-mode-acl.sh (ID): Likewise.
44998         * tests/test-copy-acl.sh (ID): Likewise.
44999         * tests/test-copy-file.sh (ID): Likewise.
45000
45001 2009-08-30  Bruno Haible  <bruno@clisp.org>
45002
45003         New module 'xstriconveh'.
45004         * lib/xstriconveh.h: New file.
45005         * lib/xstriconveh.c: New file.
45006         * modules/xstriconveh: New file.
45007
45008 2009-08-30  Bruno Haible  <bruno@clisp.org>
45009
45010         Make it easier to use mem_cd_iconveh.
45011         * lib/striconveh.h (iconveh_t): New type.
45012         (iconveh_open, iconveh_close): New declarations.
45013         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45014         with a single 'const iconveh_t *' argument.
45015         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45016         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45017         with a single 'const iconveh_t *' argument.
45018         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45019         * tests/test-striconveh.c (main): Update.
45020         * NEWS: Mention the change.
45021
45022 2009-08-30  Bruno Haible  <bruno@clisp.org>
45023
45024         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45025         problem.
45026
45027 2009-08-30  Bruno Haible  <bruno@clisp.org>
45028
45029         Work around iconv_open problem on Solaris.
45030         * lib/iconv_open-solaris.gperf: New file.
45031         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45032         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45033         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45034         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45035         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45036         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45037
45038 2009-08-29  Jim Meyering  <meyering@redhat.com>
45039
45040         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45041         * top/maint.mk (cvs-check): Remove target; it was just an alias
45042         to the better-named vc-diff-check.
45043         (maintainer-distcheck): Remove rule.  It was used only from
45044         the (alpha/beta/major) target, and all of its commands but one
45045         were coreutils-specific.
45046         (vc-dist): Remove rule.
45047         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45048         Run vc-diff-check, not vc-dist.
45049         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45050
45051 2009-08-27  Bruno Haible  <bruno@clisp.org>
45052
45053         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45054         of 0.
45055
45056 2009-08-27  Bruno Haible  <bruno@clisp.org>
45057
45058         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45059         compilers.
45060         * doc/func.texi: Document the SunPRO C bug.
45061
45062 2009-08-27  Bruno Haible  <bruno@clisp.org>
45063
45064         Fix link error on Solaris.
45065         * tests/test-parse-duration.c (xstrdup): Remove function.
45066
45067 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45068
45069         ignore-value: handle pointer types, too
45070         * lib/ignore-value.h (__attribute__): Remove definition.
45071         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45072         of a more concise and more-often effective "(void) i" statement.
45073         (ignore_ptr): New function to suppress warnings from functions that
45074         return pointers, and to make it explicit that one function doesn't
45075         handle all cases.
45076
45077 2009-08-25  Bruno Haible  <bruno@clisp.org>
45078
45079         dup2: work around a Linux bug.
45080         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45081         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45082         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45083         Reported by Simon Josefsson.
45084
45085 2009-08-25  Jim Meyering  <meyering@redhat.com>
45086
45087         libguestfs uses gnulib
45088         * users.txt: Add libguestfs.
45089
45090 2009-08-24  Eric Blake  <ebb9@byu.net>
45091
45092         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45093         * lib/pipe2.c (includes): Add binary-io.h.
45094         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45095
45096 2009-08-24  Bruno Haible  <bruno@clisp.org>
45097
45098         Tolerate declared but missing accept4 syscall.
45099         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45100         available.
45101         * lib/sys_socket.in.h (accept4): If the function is already present,
45102         override it.
45103         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45104         * modules/accept4 (Makefile.am): Compile accept4.c always.
45105         Reported by Paolo Bonzini and Eric Blake.
45106
45107 2009-08-23  Bruno Haible  <bruno@clisp.org>
45108
45109         New module 'accept4'.
45110         * lib/sys_socket.in.h (accept4): New declaration.
45111         * lib/accept4.c: New file.
45112         * m4/accept4.m4: New file.
45113         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45114         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45115         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45116         HAVE_ACCEPT4.
45117         * modules/accept4: New file.
45118         * doc/glibc-functions/accept4.texi: Mention the new module.
45119
45120 2009-08-24  Jim Meyering  <meyering@redhat.com>
45121
45122         progname: also set global program_invocation_name, when possible
45123         Before this change, a libtool-enabled program that calls glibc's
45124         error function would report the program name as
45125         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45126         * modules/progname (configure.ac): Check for a declaration of
45127         program_invocation_name.
45128         * lib/progname.c:  Include <errno.h>.
45129         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45130         Set program_invocation_name.
45131
45132 2009-08-23  Bruno Haible  <bruno@clisp.org>
45133
45134         * lib/dup3.c: Include <string.h>.
45135
45136 2009-08-23  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45139         * lib/pipe2.c (pipe2): Likewise.
45140         Suggested by Eric Blake.
45141
45142 2009-08-23  Bruno Haible  <bruno@clisp.org>
45143
45144         Tolerate declared but missing dup3 syscall.
45145         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45146         * lib/unistd.in.h (dup3): If the function is already present,
45147         override it.
45148         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45149         * modules/dup3 (Makefile.am): Compile dup3.c always.
45150         Reported by Paolo Bonzini.
45151
45152 2009-08-23  Bruno Haible  <bruno@clisp.org>
45153
45154         Tolerate declared but missing pipe2 syscall.
45155         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45156         available.
45157         * lib/unistd.in.h (pipe2): If the function is already present,
45158         override it.
45159         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45160         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45161         Reported by Paolo Bonzini.
45162
45163 2009-08-23  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/pipe2.c (pipe2): Move #ifs inside function.
45166
45167 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45168
45169         quotearg: document limitations of quote_these_too
45170         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45171         those limitations are created.
45172         * lib/quotearg.h (set_char_quoting): Document that digits and
45173         letters that are special after backslash are not permitted.
45174         (quotearg_char): Cross-reference set_char_quoting documentation.
45175
45176 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45177
45178         quotearg: implement custom_quoting_style
45179         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45180         right_quote fields.
45181         (set_custom_quoting): New public function.
45182         (quotearg_buffer_restyled): Add left_quote and right_quote
45183         arguments, handle them very much like locale quoting, and update
45184         all uses.
45185         (quotearg_n_custom): New public function.
45186         (quotearg_n_custom_mem): New public function.
45187         (quotearg_custom): New public function.
45188         (quotearg_custom_mem): New public function.
45189         * lib/quotearg.h: Prototype and document new public functions.
45190         (enum quoting_style): For escape_quoting_style and
45191         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45192         ignored even though they're otherwise like c_quoting_style.
45193         Add custom_quoting_style member and document with comparison to
45194         clocale_quoting_style.
45195         * tests/test-quotearg.c (custom_quotes): New array.
45196         (custom_results): New array.
45197         (main): Extend to test custom quoting.
45198
45199 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45200
45201         quotearg: fix right quote escaping when it's in quote_these_too
45202         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45203         quote, be sure to prepend only one backslash.
45204         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45205         (main): Test it.
45206
45207 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45208
45209         quotearg-tests: test escaping of embedded locale quotes
45210         * tests/test-quotearg.c (struct result_strings): Add member for
45211         new input.
45212         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45213         (inputs): Add new input.
45214         (results_g): Add expected results.
45215         (flag_results): Likewise.
45216         (locale_results): Likewise.
45217         (compare_strings): Check those.
45218
45219 2009-08-23  Bruno Haible  <bruno@clisp.org>
45220
45221         Tests for module 'dup3'.
45222         * modules/dup3-tests: New file.
45223         * tests/test-dup3.c: New file.
45224
45225         New module 'dup3'.
45226         * lib/unistd.in.h (dup3): New declaration.
45227         * lib/dup3.c: New file.
45228         * m4/dup3.m4: New file.
45229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45230         HAVE_DUP3.
45231         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45232         * modules/dup3: New file.
45233         * doc/glibc-functions/dup3.texi: Mention the new module.
45234
45235 2009-08-23  Bruno Haible  <bruno@clisp.org>
45236
45237         Tweak the dup2 test.
45238         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45239         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45240         the test file is still empty. Fix argument order of lseek.
45241
45242 2009-08-23  Bruno Haible  <bruno@clisp.org>
45243
45244         Avoid test link errors when the modules getopt-gnu, gettext are used.
45245         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45247
45248 2009-08-23  Bruno Haible  <bruno@clisp.org>
45249
45250         Fix getdtablesize() on mingw.
45251         * lib/getdtablesize.c (getdtablesize): Implement differently.
45252         * lib/unistd.in.h (getdtablesize): Improve comment.
45253
45254 2009-08-23  Bruno Haible  <bruno@clisp.org>
45255
45256         New module 'mkostemp'.
45257         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45258         * lib/stdlib.in.h (mksotemp): New declaration.
45259         * lib/mkostemp.c: New file, from glibc with modifications.
45260         * lib/tempname.h (GT_FILE): Remove outdated comment.
45261         (gen_tempname): Add flags argument.
45262         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45263         (__GT_FILE): Map to 1.
45264         (small_open, large_open): Remove macros.
45265         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45266         * lib/mkstemp.c (mkstemp): Update.
45267         * lib/mkdtemp.c (mkdtemp): Likewise.
45268         * m4/mkostemp.m4: New file.
45269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45270         HAVE_MKOSTEMP.
45271         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45272         HAVE_MKOSTEMP.
45273         * modules/mkostemp: New file, based on modules/mkstemp.
45274         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45275         * NEWS: Mention the change.
45276
45277 2009-08-23  Bruno Haible  <bruno@clisp.org>
45278
45279         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45280         Reported by Eric Blake.
45281
45282 2009-08-23  Bruno Haible  <bruno@clisp.org>
45283
45284         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45285         Reported by Eric Blake.
45286
45287 2009-08-23  Bruno Haible  <bruno@clisp.org>
45288
45289         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45290         * modules/pipe2 (Depends-on): Likewise.
45291
45292 2009-08-23  Eric Blake  <ebb9@byu.net>
45293
45294         fcntl-h: add O_TTY_INIT support
45295         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45296         * tests/test-fcntl-h.c (o): Test it.
45297         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45298
45299         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45300         * modules/fcntl: Move <fcntl.h> header replacement...
45301         * modules/fcntl-h: ...to new name, so as not to collide with
45302         like-named function.
45303         * tests/test-fcntl.c: Rename...
45304         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45305         * modules/fcntl-tests: Rename...
45306         * modules/fcntl-h-tests: ...to this.  Update test file name.
45307         * modules/chdir-long (Depends-on): Update clients.
45308         * modules/chdir-safer (Depends-on): Likewise.
45309         * modules/fcntl-safer (Depends-on): Likewise.
45310         * modules/fts (Depends-on): Likewise.
45311         * modules/mkancesdirs (Depends-on): Likewise.
45312         * modules/mkdir-p (Depends-on): Likewise.
45313         * modules/open (Depends-on): Likewise.
45314         * modules/savewd (Depends-on): Likewise.
45315         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45316         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45317
45318 2009-08-22  Bruno Haible  <bruno@clisp.org>
45319
45320         * modules/binary-io (License): Relicense under LGPL.
45321         * modules/pipe2 (License): Likewise.
45322
45323 2009-08-22  Bruno Haible  <bruno@clisp.org>
45324
45325         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45326         return value.
45327         * lib/pipe-filter-gi.c (filter_init): Likewise.
45328         Reported by Eric Blake.
45329
45330 2009-08-22  Bruno Haible  <bruno@clisp.org>
45331
45332         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45333         * modules/pipe (Depends-on): Add pipe2.
45334
45335 2009-08-22  Bruno Haible  <bruno@clisp.org>
45336
45337         Tests for module 'pipe2'.
45338         * modules/pipe2-tests: New file.
45339         * tests/test-pipe2.c: New file.
45340
45341         New module 'pipe2'.
45342         * lib/unistd.in.h (pipe2): New declaration.
45343         * lib/pipe2.c: New file.
45344         * m4/pipe2.m4: New file.
45345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45346         HAVE_PIPE2.
45347         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45348         * modules/pipe2: New file.
45349         * doc/glibc-functions/pipe2.texi: Mention the new module.
45350
45351 2009-08-22  Bruno Haible  <bruno@clisp.org>
45352
45353         Reference some new glibc functions.
45354         * doc/glibc-functions/accept4.texi: New file.
45355         * doc/glibc-functions/dup3.texi: New file.
45356         * doc/glibc-functions/mkostemp.texi: New file.
45357         * doc/glibc-functions/pipe2.texi: New file.
45358         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45359         (Glibc sys/socket.h): Refer to accept4.
45360         (Glibc unistd.h): Refer to dup3, pipe2.
45361         Reported by Eric Blake.
45362
45363 2009-08-22  Jim Meyering  <meyering@redhat.com>
45364             Bruno Haible  <bruno@clisp.org>
45365
45366         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45367         This makes it so packages using automake-1.11's silent-rules option
45368         can print e.g., a single "GEN    configmake.h" line, rather than
45369         the 30+ statements that perform the job.  If you want to see the
45370         actual commands, you can still run "make V=1".
45371         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45372         so that make output is abbreviated when those variables are defined
45373         appropriately.
45374         * modules/argz: Likewise.
45375         * modules/arpa_inet: Likewise.
45376         * modules/byteswap: Likewise.
45377         * modules/configmake: Likewise.
45378         * modules/dirent: Likewise.
45379         * modules/errno: Likewise.
45380         * modules/fcntl: Likewise.
45381         * modules/float: Likewise.
45382         * modules/fnmatch: Likewise.
45383         * modules/getopt-posix: Likewise.
45384         * modules/glob: Likewise.
45385         * modules/iconv_open: Likewise.
45386         * modules/inttypes: Likewise.
45387         * modules/localcharset: Likewise.
45388         * modules/locale: Likewise.
45389         * modules/math: Likewise.
45390         * modules/netdb: Likewise.
45391         * modules/netinet_in: Likewise.
45392         * modules/poll: Likewise.
45393         * modules/posix_spawnp-tests: Likewise.
45394         * modules/sched: Likewise.
45395         * modules/search: Likewise.
45396         * modules/selinux-h: Likewise.
45397         * modules/signal: Likewise.
45398         * modules/spawn: Likewise.
45399         * modules/stdarg: Likewise.
45400         * modules/stdbool: Likewise.
45401         * modules/stddef: Likewise.
45402         * modules/stdint: Likewise.
45403         * modules/stdio: Likewise.
45404         * modules/stdlib: Likewise.
45405         * modules/string: Likewise.
45406         * modules/strings: Likewise.
45407         * modules/sys_file: Likewise.
45408         * modules/sys_ioctl: Likewise.
45409         * modules/sys_select: Likewise.
45410         * modules/sys_socket: Likewise.
45411         * modules/sys_stat: Likewise.
45412         * modules/sys_time: Likewise.
45413         * modules/sys_times: Likewise.
45414         * modules/sys_utsname: Likewise.
45415         * modules/sys_wait: Likewise.
45416         * modules/sysexits: Likewise.
45417         * modules/time: Likewise.
45418         * modules/unistd: Likewise.
45419         * modules/wchar: Likewise.
45420         * modules/wctype: Likewise.
45421
45422 2009-08-22  Jim Meyering  <meyering@redhat.com>
45423
45424         announce-gen: detect write failure
45425         * build-aux/announce-gen: Add Coda at end.
45426         Remove equivalent-but-more-verbose block at top.
45427
45428 2009-08-19  Akim Demaille  <demaille@gostai.com>
45429
45430         bootstrap: --help to stdout.
45431         * bootstrap (usage): Don't send --help to stderr.
45432         Use a here doc instead of a long string.
45433
45434 2009-08-21  Eric Blake  <ebb9@byu.net>
45435
45436         test-popen-safer: split from test-popen
45437         * tests/test-popen.c (main): Move...
45438         * tests/test-popen.h: ...into new file.
45439         * tests/test-popen-safer2.c: New file.
45440         * modules/popen-tests (Files): Add test-popen.h.
45441         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45442         Suggested by Bruno Haible.
45443
45444         test-fcntl-safer: split from test-open
45445         * tests/test-open.c (main): Move...
45446         * tests/test-open.h: ...into new file.
45447         * tests/test-fcntl-safer.c: New file.
45448         * modules/open-tests (Files): Add test-open.h.
45449         * modules/fcntl-safer-tests: New file.
45450         Suggested by Bruno Haible.
45451
45452         test-fopen-safer: split from test-fopen
45453         * tests/test-fopen.c (main): Move...
45454         * tests/test-fopen.h: ...into new file.
45455         * tests/test-fopen-safer.c: New file.
45456         * modules/fopen-tests (Files): Add test-fopen.h.
45457         * modules/fopen-safer-tests: New file.
45458         Suggested by Bruno Haible.
45459
45460 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45461
45462         popen-safer: test O_CLOEXEC at run-time.
45463         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45464
45465 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45466
45467         fcntl: move more flags to the header
45468         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45469         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45470         * lib/fcntl.in.h: Do both things here.
45471
45472 2009-08-21  Jim Meyering  <meyering@redhat.com>
45473
45474         consistently remove $@-t before redirecting to it
45475         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45476         * modules/alloca-opt: Likewise.
45477         * modules/byteswap: Likewise.
45478         * modules/fnmatch: Likewise.
45479         * modules/getopt-posix: Likewise.
45480         * modules/glob: Likewise.
45481         * modules/poll: Likewise.
45482         * modules/posix_spawnp-tests: Likewise.
45483         * modules/sys_socket: Likewise.
45484         * modules/sysexits: Likewise.
45485
45486 2009-08-21  Eric Blake  <ebb9@byu.net>
45487
45488         popen: simplify access to original popen
45489         * lib/popen.c (rpl_popen): No need to worry about popen being a
45490         macro.
45491         Reported by Bruno Haible.
45492
45493 2009-08-20  Eric Blake  <ebb9@byu.net>
45494
45495         build: avoid some compiler warnings
45496         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45497         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45498         type.
45499         (new_exclude_segment, excluded_file_pattern_p)
45500         (excluded_file_name_p): Reduce scope.
45501         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45502         old-style declaration.
45503
45504 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45505
45506         * tests/test-exclude1.sh: Handle Windows EOL.
45507         * tests/test-exclude2.sh: Likewise.
45508         * tests/test-exclude3.sh: Likewise.
45509         * tests/test-exclude4.sh: Likewise.
45510         * tests/test-exclude5.sh: Likewise.
45511         * tests/test-exclude6.sh: Likewise.
45512         * tests/test-exclude7.sh: Likewise.
45513
45514 2009-08-19  Akim Demaille  <demaille@gostai.com>
45515
45516         bootstrap: find sha1sum when named gsha1sum.
45517         * bootstrap (find_tool): New.
45518         ($SHA1SUM): New.
45519         Use it.
45520
45521 2009-08-20  Jim Meyering  <meyering@redhat.com>
45522
45523         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45524         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45525         expression that converts "." in a file name to "\." in the resulting
45526         regexp.  Start with a dummy statement, so that prior shell variable
45527         definitions are expanded portably.  Reported by Simon Josefsson.
45528
45529 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45530
45531         Fix polling for writeability of a screen buffer.
45532         * lib/poll.c: Distinguish input and screen buffers for the
45533         Win32 implementation.
45534         * lib/select.c: Likewise.
45535
45536 2009-08-19  Eric Blake  <ebb9@byu.net>
45537
45538         popen-safer: prevent popen from clobbering std descriptors
45539         * modules/popen-safer: New file.
45540         * lib/popen-safer.c: Likewise.
45541         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45542         * lib/stdio--.h (popen): Provide override.
45543         * lib/stdio-safer.h (popen_safer): Provide declaration.
45544         * tests/test-popen.c (includes): Partially test this.
45545         * modules/popen-safer-tests: New file, for more tests.
45546         * tests/test-popen-safer.c: Likewise.
45547         * MODULES.html.sh (file stream based Input/Output): Mention it.
45548
45549         tests: test some of the *-safer modules
45550         * modules/fopen-safer (Depends-on): Add fopen.
45551         * modules/fcntl-safer (Depends-on): Add fcntl.
45552         * modules/stdlib-safer (Depends-on): Add stdlib.
45553         (configure.ac): Set indicator.
45554         * modules/unistd-safer (configure.ac): Likewise.
45555         * modules/tmpfile-safer (configure.ac): Likewise.
45556         (Depends-on): Add tmpfile.
45557         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45558         active.
45559         * tests/test-fopen.c (includes): Test safer versions when they are
45560         in use.
45561         * tests/test-open.c (includes): Likewise.
45562
45563         popen: fix cygwin 1.5 bug when stdin closed
45564         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45565         * modules/popen: New file.
45566         * modules/popen-tests: Likewise.
45567         * tests/test-popen.c: Likewise.
45568         * m4/popen.m4: Likewise.
45569         * lib/popen.c: Likewise.
45570         * lib/stdio.in.h (popen): New declaration.
45571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45572         * modules/stdio (Makefile.am): Likewise.
45573         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45574
45575 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45576
45577         maint.mk: give full control over update-copyright exclusions
45578         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45579         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45580         (update-copyright): Don't force inclusion of top-level
45581         ChangeLog.  Don't force exclusion of all COPYING files, but make
45582         them the default exclusion instead.
45583
45584 2009-08-16  Bruno Haible  <bruno@clisp.org>
45585
45586         Fix test failures on Solaris 10.
45587         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45588         tests when Solaris iconv() is used.
45589         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45590         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45591         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45592         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45593         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45594
45595 2009-08-16  Bruno Haible  <bruno@clisp.org>
45596
45597         Fix test failures on Solaris 10.
45598         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45599         'tr' program and pass it as first argument.
45600         * tests/test-pipe-filter-gi1.sh: Likewise.
45601         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45602         program as first argument.
45603         * tests/test-pipe-filter-gi1.c (main): Likewise.
45604
45605 2009-08-16  Eric Blake  <ebb9@byu.net>
45606
45607         fpurge: fix previous commits
45608         * modules/fpurge (Makefile.am): Make replacement conditional,
45609         partially reverting 2007-04-29 change; missed in previous
45610         attempt.
45611         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45612         is missing.
45613
45614 2009-08-16  Bruno Haible  <bruno@clisp.org>
45615
45616         Clarify fpurge's effect on the file position.
45617         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45618         * tests/test-fpurge.c (main): Make a second pass for checking the file
45619         position.
45620
45621 2009-08-16  Bruno Haible  <bruno@clisp.org>
45622
45623         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45624         declaration of fpurge is missing.
45625         * tests/test-fpurge.c (main): Check that the file has not more contents
45626         than expected. Close the file before removing it.
45627
45628 2009-08-15  Eric Blake  <ebb9@byu.net>
45629
45630         fpurge: don't wrap working cygwin implementation
45631         * lib/fpurge.c (fpurge): Fix comment typo.
45632         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45633         1.7 to avoid replacement.
45634         * tests/test-fpurge.c (main): Enhance test.
45635
45636 2009-08-15  Eric Blake  <ebb9@byu.net>
45637         and Jim Meyering  <meyering@redhat.com>
45638
45639         test-update-copyright: skip if perl is insufficient
45640         * tests/test-update-copyright.sh: Failure to run maintainer tool
45641         should not cause testsuite failure on cygwin 1.5.
45642
45643 2009-08-14  Eric Blake  <ebb9@byu.net>
45644
45645         doc: mention more functions added in cygwin 1.7.0
45646         * doc/posix-headers/limits.texi (limits.h): Update for recent
45647         cygwin additions.
45648         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45649         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45650         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45651         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45652         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45653
45654 2009-08-14  Eric Blake  <ebb9@byu.net>
45655
45656         maint.mk: simplify update-copyright rule
45657         * top/maint.mk (update-copyright-local): Delete, and document how
45658         to do it in cfg.mk instead.
45659         (update-copyright-exclude-regexp): Delete, and document how to do
45660         it in .x-update-copyright instead.
45661         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45662         exclude ChangeLog.
45663
45664 2009-08-14  Bruno Haible  <bruno@clisp.org>
45665
45666         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45667
45668 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45669
45670         maint.mk: support update-copyright-env
45671         * top/maint.mk (update-copyright-env): Define place-holder.
45672         (update-copyright): Expand $(update-copyright-env) before
45673         invoking update-copyright.
45674
45675 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45676
45677         update-copyright: implement forced reformatting
45678         * build-aux/update-copyright: Implement and document
45679         UPDATE_COPYRIGHT_FORCE.
45680         * tests/test-update-copyright.sh: Test it.
45681
45682 2009-08-14  Eric Blake  <ebb9@byu.net>
45683         and Bruno Haible  <bruno@clisp.org>
45684
45685         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45686         * tests/test-locale.c: Revert previous patch related to NULL.
45687         * tests/test-stdio.c: Likewise.
45688         * tests/test-stdlib.c: Likewise.
45689         * tests/test-string.c: Likewise.
45690         * tests/test-unistd.c: Likewise.
45691         * modules/time-tests (Depends-on): Add verify.
45692         * modules/wchar-tests (Depends-on): Likewise.
45693         * tests/test-time.c: Test for NULL compliance.
45694         * tests/test-wchar.c: Likewise.
45695         * modules/locale (Depends-on): Add stddef.
45696         * modules/stdio (Depends-on): Likewise.
45697         * modules/stdlib (Depends-on): Likewise.
45698         * modules/string (Depends-on): Likewise.
45699         * modules/time (Depends-on): Likewise.
45700         * modules/unistd (Depends-on): Likewise.
45701         * modules/wchar (Depends-on): Likewise.
45702         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45703         * lib/stdlib.in.h (includes): Likewise.
45704         * lib/string.in.h (includes): Likewise.
45705         * lib/time.in.h (includes): Likewise.
45706         * lib/unistd.in.h (includes): Likewise.
45707         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45708         replaced.
45709         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45710         * m4/stddef_h.m4: New file.
45711         * modules/stddef: Likewise.
45712         * lib/stddef.in.h: Likewise.
45713         * modules/stddef-tests: Likewise.
45714         * tests/test-stddef.c: Likewise.
45715         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45716         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45717         * doc/posix-headers/locale.texi (locale.h): Likewise.
45718         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45719         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45720         * doc/posix-headers/string.texi (string.h): Likewise.
45721         * doc/posix-headers/time.texi (time.h): Likewise.
45722         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45723         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45724
45725 2009-08-14  Eric Blake  <ebb9@byu.net>
45726
45727         doc: improve git diff of texinfo files
45728         * .gitattributes: Add rule for *.texi files, with hint on how to
45729         use it.
45730         Copied from m4, and based on a report by Bruno Haible.
45731
45732 2009-08-14  Bruno Haible  <bruno@clisp.org>
45733
45734         Disable multithread support by default on Cygwin 1.5.x for real.
45735         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45736
45737 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45738
45739         update-copyright: much ado about intervals
45740         * build-aux/update-copyright: Implement and document
45741         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45742         of copyright year intervals.
45743         Also, document UPDATE_COPYRIGHT_YEAR.
45744         * tests/test-update-copyright.sh: Test it.
45745
45746         update-copyright: convert 2-digit to 4-digit years
45747         * build-aux/update-copyright: Implement and document.
45748         * tests/test-update-copyright.sh: Update.
45749
45750 2009-08-14  Jim Meyering  <meyering@redhat.com>
45751
45752         test-exclude: avoid coreutils "make check" failure
45753         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45754         just as in test-argmatch.c.
45755
45756 2009-08-13  Eric Blake  <ebb9@byu.net>
45757
45758         test-dup2: fix bad assumption
45759         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45760         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45761
45762         test-version-etc: fix CRLF portability issue
45763         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45764         recognize \r.
45765         * tests/test-argp-version-etc-1.sh: Likewise.
45766
45767         getopt: update client modules
45768         * modules/argp (Depends-on): Use getopt-gnu.
45769         * modules/git-merge-changelog (Depends-on): Likewise.
45770         * modules/long-options (Depends-on): Likewise.
45771         * modules/xstrtol (Depends-on): Likewise.
45772
45773 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45774
45775         * tests/test-version-etc.sh: Don't fail on different
45776         project/version.  Don't fail on CRLF differences.  Rewrite to use
45777         multiple -e instead of multiple sed forks, suggested by Eric Blake
45778         <ebb9@byu.net>.
45779         * tests/test-argp-version-etc-1.sh: Likewise.
45780
45781 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45782
45783         * tests/test-version-etc.sh: Don't fail on different
45784         project/version.
45785
45786 2009-08-12  Bruno Haible  <bruno@clisp.org>
45787
45788         Tests for modules 'getopt-posix', 'getopt-gnu'.
45789         * modules/getopt-posix-tests: New file.
45790         * tests/test-getopt.c: New file.
45791         * tests/test-getopt.h: New file.
45792         * tests/test-getopt_long.h: New file.
45793
45794         New modules 'getopt-posix', 'getopt-gnu'.
45795         * modules/getopt-gnu: New file, renamed from modules/getopt.
45796         * modules/getopt-posix: New file.
45797         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45798         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45799         (gl_GETOPT): Remove macro.
45800         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45801         Disable the test against BSD systems that declare optreset. Test
45802         against mingw bug. Test against lack of support of optional arguments
45803         on many platforms.
45804         * doc/glibc-headers/getopt.texi: Update module name and list of
45805         relevant platforms.
45806         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45807         'getopt-gnu' and more portability problems.
45808         * NEWS: Mention the changes.
45809
45810 2009-08-12  Bruno Haible  <bruno@clisp.org>
45811
45812         Ensure that optarg etc. get declared by <unistd.h>.
45813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45814         AC_USE_SYSTEM_EXTENSIONS.
45815         * modules/getopt (Depends-on): Add 'extensions'.
45816
45817 2009-08-12  Bruno Haible  <bruno@clisp.org>
45818
45819         Avoid test link errors.
45820         * modules/pipe-filter-ii-tests (Makefile.am): Define
45821         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45822         * modules/pipe-filter-gi-tests (Makefile.am): Define
45823         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45825
45826 2009-08-12  Bruno Haible  <bruno@clisp.org>
45827
45828         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45829         gl_GETOPT_SUBSTITUTE before.
45830         (gl_GETOPT): Use it.
45831         * m4/argp.m4 (gl_ARGP): Update.
45832         Reported by Sergey Poznyakoff.
45833
45834         * m4/getopt.m4: Reorder macros.
45835         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45836         (gl_GETOPT_SUBSTITUTE): Remove macro.
45837
45838 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45839
45840         Minor improvement in gitlog-to-changelog
45841
45842         * build-aux/gitlog-to-changelog: New option `--format' makes
45843         output format string configurable.
45844
45845 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45846
45847         Optimize exclude: use hash tables for non-wildcard patterns.
45848
45849         * lib/exclude.c: Include hash.h and mbuiter.h
45850         (struct exclude_pattern, exclude_segment): New data types.
45851         (struct exclude): Rewrite.
45852         (fnmatch_pattern_has_wildcards): New function.
45853         (new_exclude_segment, free_exclude_segment): New functions.
45854         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45855         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45856         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45857         * modules/exclude: Depend on hash and mbuiter.
45858
45859         * modules/exclude-tests: New file.
45860         * tests/test-exclude.c: New file.
45861         * tests/test-exclude1.sh: New file.
45862         * tests/test-exclude2.sh: New file.
45863         * tests/test-exclude3.sh: New file.
45864         * tests/test-exclude4.sh: New file.
45865         * tests/test-exclude5.sh: New file.
45866         * tests/test-exclude6.sh: New file.
45867         * tests/test-exclude7.sh: New file.
45868
45869 2009-08-12  Bruno Haible  <bruno@clisp.org>
45870
45871         Ensure that getopt() gets declared by <unistd.h>.
45872         * lib/unistd.in.h: Conditionally include getopt.h.
45873         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45874         Set GNULIB_UNISTD_H_GETOPT.
45875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45876         GNULIB_UNISTD_H_GETOPT.
45877         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45878
45879 2009-08-12  Bruno Haible  <bruno@clisp.org>
45880
45881         Clarify logic.
45882         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45883         gl_replace_getopt instead of GETOPT_H.
45884
45885 2009-08-12  Bruno Haible  <bruno@clisp.org>
45886
45887         * m4/getopt.m4: Add comments.
45888
45889 2009-08-12  Bruno Haible  <bruno@clisp.org>
45890
45891         Disable multithread support by default on Cygwin 1.5.x.
45892         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45893         set gl_use_threads=no if not specified otherwise.
45894
45895 2009-08-11  Bruno Haible  <bruno@clisp.org>
45896
45897         Avoid compilation error on NetBSD 5.0.
45898         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45899         * tests/test-stdio.c: Likewise.
45900         * tests/test-stdlib.c: Likewise.
45901         * tests/test-string.c: Likewise.
45902         * tests/test-unistd.c: Likewise.
45903         Reported by Greg Troxel <gdt@ir.bbn.com>
45904         at <https://savannah.gnu.org/support/?106973>.
45905
45906 2009-08-11  Bruno Haible  <bruno@clisp.org>
45907
45908         * modules/dup2-tests (Depends-on): Remove close.
45909
45910         Undo 2009-07-19 commit.
45911         * modules/acl-tests (Depends-on): Remove close.
45912         * modules/binary-io-tests (Depends-on): Likewise.
45913         * modules/closein-tests (Depends-on): Likewise.
45914         * modules/flock-tests (Depends-on): Likewise.
45915         * modules/fsync-tests (Depends-on): Likewise.
45916         * modules/lseek-tests (Depends-on): Likewise.
45917         * modules/pipe-tests (Depends-on): Likewise.
45918         * modules/posix_spawn-tests (Depends-on): Likewise.
45919         * modules/posix_spawnp-tests (Depends-on): Likewise.
45920         * modules/stat-time-tests (Depends-on): Likewise.
45921         * modules/yesno-tests (Depends-on): Likewise.
45922
45923 2009-08-10  Bruno Haible  <bruno@clisp.org>
45924
45925         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45926
45927 2009-08-10  Bruno Haible  <bruno@clisp.org>
45928
45929         Fix a gcc warning.
45930         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45931
45932 2009-08-10  Bruno Haible  <bruno@clisp.org>
45933
45934         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45935         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45936         not only the first time.
45937         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45938         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45939         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45940         is 1, not only the the first time.
45941
45942 2009-08-10  Bruno Haible  <bruno@clisp.org>
45943
45944         Make it possible to use module 'gethostname' without module 'close'.
45945         * lib/unistd.in.h (close): Evoke a link error only if
45946         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45948         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45949         * modules/unistd (Makefile.am): Substitute
45950         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45951         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45952         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45953         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45954         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45955         * modules/sys_ioctl (Makefile.am): Substitute
45956         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45957         * modules/socket (configure.ac): On native Windows, set
45958         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45959         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45960         Reported by Sam Steingold <sds@gnu.org>.
45961
45962 2009-08-10  Bruno Haible  <bruno@clisp.org>
45963
45964         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45965         * modules/ioctl (configure.ac): Likewise.
45966
45967 2009-08-10  Bruno Haible  <bruno@clisp.org>
45968
45969         Avoid collision between gnulib wrapper and libintl wrapper.
45970         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45971         already defined in intl/printf.c.
45972         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45973         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45974
45975 2009-08-09  Bruno Haible  <bruno@clisp.org>
45976
45977         Make <sys/select.h> really self-contained, also on Solaris 10.
45978         * lib/sys_select.in.h: Include <string.h>.
45979         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45980         Solaris 10 problem.
45981         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45982         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45983         Reported by Jim Meyering.
45984
45985 2009-08-09  Bruno Haible  <bruno@clisp.org>
45986
45987         Avoid warnings from 'aclocal' that are due to a use of macro name
45988         AM_XGETTEXT_OPTION that is not defined in automake.
45989         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45990         automake.
45991         * modules/error (configure.ac): Likewise.
45992         * modules/propername (configure.ac): Likewise.
45993         * modules/vasprintf (configure.ac): Likewise.
45994         * modules/verror (configure.ac): Likewise.
45995         * modules/xprintf (configure.ac): Likewise.
45996         * modules/xvasprintf (configure.ac): Likewise.
45997
45998 2009-08-08  Bruno Haible  <bruno@clisp.org>
45999
46000         Avoid compilation error in C++ mode.
46001         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46002         Reported by Sam Steingold <sds@gnu.org>.
46003
46004 2009-08-08  Bruno Haible  <bruno@clisp.org>
46005
46006         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46007         for the various Unix platforms.
46008         * doc/posix-headers/limits.texi: Update platforms list regarding
46009         HOST_NAME_MAX.
46010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46011
46012 2009-08-07  Jim Meyering  <meyering@redhat.com>
46013
46014         selinux-at: fix typo in a comment
46015         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46016         Spotted by Paolo Bonzini.
46017
46018         selinux-at: remove redundant m4 code, add documentation
46019         * modules/selinux-at (configure.ac): Remove redundant code.
46020         LIB_SELINUX is already set via the dependent module, selinux-h.
46021         (Include): Add quotes around selinux-at.h.
46022         * lib/selinux-at.h: Add documentation.
46023         Reported by Bruno Haible in
46024         http://marc.info/?l=gnulib-bug&m=124958988300749
46025
46026 2009-08-07  Bruno Haible  <bruno@clisp.org>
46027
46028         Avoid link error on MacOS X 10.3 and 10.4.
46029         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46030         on non-ELF systems.
46031         * lib/argp-pv.c (argp_program_version): Likewise.
46032         Reported by Simon Josefsson.
46033
46034 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46035
46036         * tests/test-version-etc.sh: Use $EXEEXT.
46037
46038 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46039
46040         update-copyright: update documentation to point to maint.mk
46041         * build-aux/update-copyright: Here.
46042
46043 2009-08-06  Jim Meyering  <meyering@redhat.com>
46044
46045         maint.mk: support update-copyright-local
46046         * top/maint.mk (update-copyright-local): Define place-holder.
46047         (update-copyright): Depend on $(update-copyright-local).
46048
46049 2009-08-06  Jim Meyering  <meyering@redhat.com>
46050
46051         selinux-at: new module
46052         Initially written for coreutils, this module will soon be
46053         used by findutils, too.
46054         * MODULES.html.sh [Misc]: Add selinux-at.
46055         * lib/selinux-at.h: New file, from coreutils.
46056         * lib/selinux-at.c: Likewise.
46057         * modules/selinux-at: Likewise.
46058         (License): Change from LGPL to GPL, since it depends
46059         on the GPL'd openat module.
46060
46061         doc: update README
46062         * README: Remove references to cogito.
46063         Remove cvs-repo-updating instructions from 2007.
46064         Don't imply that CVS is better if you have limited disk space.
46065
46066 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46067
46068         update-copyright: support C-style comments
46069         * build-aux/update-copyright: Implement and document.
46070         * tests/test-update-copyright.sh: Test.
46071
46072 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46073
46074         update-copyright: support omitted "(C)"
46075         * build-aux/update-copyright: Implement and document.  Also,
46076         allow variable whitespace before "(C)".
46077         * tests/test-update-copyright.sh: Test.
46078
46079 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46080
46081         update-copyright: don't trip on non-FSF copyright statements
46082         * build-aux/update-copyright: Fix so that the first correctly
46083         formatted FSF copyright statement is recognized no matter what
46084         appears before it.  Update documentation.
46085         * tests/test-update-copyright.sh: Test that.
46086
46087 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46088
46089         update-copyright: clean up code a little
46090         * build-aux/update-copyright: Append "_re" to the name of any
46091         variable holding a regular expression.
46092         Replace "old" and "new" with "stmt" in variable names.
46093         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46094         handled correctly.
46095         Format code more consistently.
46096
46097 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46098
46099         update-copyright-tests: improve portability
46100         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46101         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46102
46103 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46104
46105         update-copyright: support @copyright{} and &copy;
46106         * build-aux/update-copyright: Implement and document.
46107         * tests/test-update-copyright.sh: Test.
46108
46109 2009-08-04  Jim Meyering  <meyering@redhat.com>
46110
46111         update-copyright-tests: correctly test EOL=\r\n handling
46112         * tests/test-update-copyright.sh: Put \r at the end of some lines
46113         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46114
46115         maint.mk: make update-copyright exclusion list more configurable
46116         * top/maint.mk (update-copyright): Default to excluding COPYING,
46117         but allow an override, in case someone does want to update that file.
46118
46119         maint.mk: don't update copyright date in COPYING
46120         * top/maint.mk (update-copyright): Exclude COPYING.
46121
46122         maint.mk: add a copyright-updating rule
46123         * top/maint.mk (update-copyright): New rule.
46124         Derived from coreutils/Makefile.am.
46125
46126         update-copyright: rename some variables
46127         * build-aux/update-copyright: Rename a few variables for clarity.
46128         Tweak syntax.  List Joel E. Denny as coauthor.
46129
46130 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46131
46132         update-copyright: fix bug for 2-digit last year and add tests
46133         * build-aux/update-copyright: Fix bug.
46134         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46135         specified.
46136         * modules/update-copyright-tests: New
46137         * tests/test-update-copyright.sh: New.
46138
46139 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46140
46141         update-copyright: handle leading tabs in line prefix
46142         * build-aux/update-copyright: Count leading tabs as 8 spaces
46143         when computing margin.  This helps with the formatting of
46144         ChangeLogs, for example.
46145         Fix documentation a little.
46146
46147 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46148
46149         update-copyright: support EOL=\r\n
46150         * build-aux/update-copyright: Implement that.
46151
46152 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46153
46154         update-copyright: automatically format copyright statements
46155         * build-aux/update-copyright: Implement that.
46156         Also, be a little more predictable and safer by always failing
46157         when the full copyright format is not perfectly recognized as an
46158         unbroken whole.  Discussed at
46159         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46160         Rewrite documentation.
46161
46162 2009-08-03  Bruno Haible  <bruno@clisp.org>
46163
46164         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46165
46166 2009-08-02  Bruno Haible  <bruno@clisp.org>
46167
46168         Tests for module 'uname'.
46169         * modules/uname-tests: New file.
46170         * tests/test-uname.c: New file.
46171
46172         New module 'uname'.
46173         * lib/uname.c: New file.
46174         * m4/uname.m4: New file.
46175         * modules/uname: New file.
46176         * doc/posix-functions/uname.texi: Mention the new module.
46177
46178 2009-08-02  Bruno Haible  <bruno@clisp.org>
46179
46180         Tests for module 'sys_utsname'.
46181         * modules/sys_utsname-tests: New file.
46182         * tests/test-sys_utsname.c: New file.
46183
46184         New module 'sys_utsname'.
46185         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46186         * m4/sys_utsname_h.m4: New file.
46187         * modules/sys_utsname: New file.
46188         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46189
46190 2009-08-02  Bruno Haible  <bruno@clisp.org>
46191
46192         Implicitly initialize the sockets library.
46193         * lib/gethostname.c: Include sockets.h.
46194         (rpl_gethostname): Invoke gl_sockets_startup.
46195         * lib/socket.c: Include sockets.h.
46196         (rpl_socket): Invoke gl_sockets_startup.
46197         * modules/gethostname (Depends-on): Add sockets.
46198         * modules/socket (Depends-on): Likewise.
46199         * tests/test-poll.c: Don't include sockets.h.
46200         (main): Don't invoke gl_sockets_startup.
46201         * tests/test-select.c: Don't include sockets.h.
46202         (main): Don't invoke gl_sockets_startup.
46203
46204 2009-08-02  Bruno Haible  <bruno@clisp.org>
46205
46206         Allow multiple calls to gl_sockets_startup.
46207         * lib/sockets.c (initialized_sockets_version): New variable.
46208         (gl_sockets_startup): Do nothing if already called for this or a higher
46209         version.
46210         (gl_sockets_cleanup): Reset initialized_sockets_version.
46211
46212 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46213
46214         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46215         different project/version.
46216
46217 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46218             Bruno Haible  <bruno@clisp.org>
46219
46220         Tests for module 'pipe-filter-gi'.
46221         * modules/pipe-filter-gi-tests: New file.
46222         * tests/test-pipe-filter-gi1.sh: New file.
46223         * tests/test-pipe-filter-gi1.c: New file.
46224         * tests/test-pipe-filter-gi2.sh: New file.
46225         * tests/test-pipe-filter-gi2-main.c: New file.
46226         * tests/test-pipe-filter-gi2-child.c: New file.
46227
46228         New module 'pipe-filter-gi'.
46229         * lib/pipe-filter-gi.c: New file.
46230         * modules/pipe-filter-gi: New file.
46231
46232 2009-08-02  Bruno Haible  <bruno@clisp.org>
46233             Paolo Bonzini  <bonzini@gnu.org>
46234
46235         Tests for module 'pipe-filter-ii'.
46236         * modules/pipe-filter-ii-tests: New file.
46237         * tests/test-pipe-filter-ii1.sh: New file.
46238         * tests/test-pipe-filter-ii1.c: New file.
46239         * tests/test-pipe-filter-ii2.sh: New file.
46240         * tests/test-pipe-filter-ii2-main.c: New file.
46241         * tests/test-pipe-filter-ii2-child.c: New file.
46242
46243         New module 'pipe-filter-ii'.
46244         * lib/pipe-filter.h: New file.
46245         * lib/pipe-filter-ii.c: New file.
46246         * lib/pipe-filter-aux.h: New file.
46247         * modules/pipe-filter-ii: New file.
46248
46249 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46250
46251         * lib/gc-libgcrypt.c: Change copyright to FSF.
46252         * lib/gc-gnulib.c: Likewise.
46253
46254 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46255
46256         * lib/gethostname.c: Include limits.h.
46257
46258 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46259             Bruno Haible  <bruno@clisp.org>
46260
46261         Ensure HOST_NAME_MAX as part of the gethostname module.
46262         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46263         define also HOST_NAME_MAX.
46264         * tests/test-gethostname.c: Include <limits.h>.
46265         (main): Check also HOST_NAME_MAX.
46266         * doc/posix-headers/limits.texi: Document the mingw problem.
46267
46268 2009-08-02  Bruno Haible  <bruno@clisp.org>
46269
46270         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46271         Add comments.
46272
46273 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46274
46275         * lib/gethostname.c: Add Windows wrapper.
46276         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46277         * modules/gethostname: Depend on sys_socket & errno, for also
46278         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46279         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46280
46281 2009-07-31  Jim Meyering  <meyering@redhat.com>
46282
46283         getloadavg: fix symbol name in comment
46284         * lib/getloadavg.c: Correct a typo I introduced when adding
46285         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46286         Matt Kraai spotted the problem.
46287
46288 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46289
46290         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46291         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46292         code also if ! defined N_NAME_POINTER.
46293         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46294         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46295         but the n_name member is a 12-byte array.
46296
46297 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46298
46299         update-copyright: generalize comment handling
46300         * build-aux/update-copyright: Handle copyright statements
46301         within more comment styles.
46302         Document usage.
46303         Report any file with an external copyright holder or parse failure.
46304
46305 2009-07-29  Jim Meyering  <meyering@redhat.com>
46306
46307         mktime: correct setting of REPLACE_MKTIME
46308         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46309
46310         update-copyright: new module
46311         * modules/update-copyright: New file.
46312         * build-aux/update-copyright: New file.
46313         * MODULES.html.sh (maint+release support): Add update-copyright.
46314
46315 2009-07-27  Bruno Haible  <bruno@clisp.org>
46316
46317         Fix compilation error when <ctime> is used and mktime is replaced.
46318         * lib/time.in.h (mktime): New declaration.
46319         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46320         REPLACE_MKTIME instead of defining mktime in config.h.
46321         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46322         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46323         Reported by Ross McFarland <rwmcfa1@neces.com>.
46324
46325 2009-07-27  Bruno Haible  <bruno@clisp.org>
46326
46327         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46328         Reported by Matt Kraai <mkraai@beckman.com>.
46329
46330 2009-07-25  Jim Meyering  <meyering@redhat.com>
46331
46332         maint.mk: avoid warnings about missing files
46333         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46334         diagnostic when .prev-version does not exist.
46335         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46336         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46337         nonexistent cfg.mk.
46338         Suggestions from Simon Josefsson.
46339
46340 2009-07-25  Bruno Haible  <bruno@clisp.org>
46341
46342         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46343         defined as macros. Needed on QNX 6.4.1.
46344         Reported by Matt Kraai <mkraai@beckman.com>.
46345
46346 2009-07-23  Jim Meyering  <meyering@redhat.com>
46347
46348         maint.mk: invoke "make dist" with a working value of XZ_OPT
46349         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46350
46351 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46352
46353         Make fseeko.c compile on QNX.
46354         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46355
46356 2009-07-22  Peter Simons  <simons@cryp.to>
46357
46358         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46359         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46360         * lib/md4.h: Likewise.
46361         * lib/md5.h: Likewise.
46362         * lib/sha1.h: Likewise.
46363         * lib/sha256.h: Likewise.
46364         * lib/sha512.h: Likewise.
46365
46366         tests-sha1: don't assign literal string to 'char *' variable
46367         * tests/test-sha1.c (main): Declare locals with "const" to match
46368         attributes of the right hand side.
46369
46370 2009-07-21  Eric Blake  <ebb9@byu.net>
46371
46372         dup2: fix more mingw problems
46373         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46374         fd to itself.
46375         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46376         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46377         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46378         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46379         care of mingw bugs.
46380
46381 2009-07-21  Jim Meyering  <meyering@redhat.com>
46382
46383         vc-list-files: avoid failure when /bin/sh is dash
46384         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46385         On some Debian based systems, /bin/sh is a symlink to dash, and running
46386         this command would omit the "/" following each 'tests' prefix:
46387           dash -x build-aux/vc-list-files -C . tests
46388         That is because bash and dash work differently:
46389           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46390           bash ok
46391           dash odd
46392
46393 2009-07-21  Eric Blake  <ebb9@byu.net>
46394
46395         dup2-tests: test previous patch
46396         * modules/dup2-tests: New file.
46397         * tests/test-dup2.c: Likewise.
46398         * tests/test-open.c (main): Avoid unspecified behavior.
46399         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46400         test.
46401
46402         dup2: work around mingw and cygwin 1.5 bug
46403         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46405         * modules/unistd (Makefile.am): Substitute it.
46406         * lib/unistd.in.h (dup2): Declare the replacement.
46407         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46408         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46409         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46410         * modules/execute (Depends-on): Add dup2.
46411         * modules/fseterr (Depends-on): Likewise.
46412         * modules/pipe (Depends-on): Likewise.
46413         * modules/posix_spawn-internal (Depends-on): Likewise.
46414
46415 2009-07-21  Bruno Haible  <bruno@clisp.org>
46416
46417         * modules/.gitattributes: New file.
46418
46419 2009-07-20  Bruno Haible  <bruno@clisp.org>
46420
46421         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46422         (main): Use it.
46423
46424 2009-07-20  Eric Blake  <ebb9@byu.net>
46425
46426         test-pipe: make a bit more robust.
46427         * tests/test-pipe.c (myerr): Allow error messages regardless of
46428         what we do to stderr.
46429         (test_pipe): Rearrange to avoid deadlock.
46430         (child_main): Try a larger read, to ensure we avoided deadlock.
46431         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46432         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46433         if misused.
46434
46435 2009-07-19  Jim Meyering  <meyering@redhat.com>
46436
46437         fts: avoid false-positive cycle-detection
46438         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46439         for each new command line argument.
46440
46441 2009-07-19  Bruno Haible  <bruno@clisp.org>
46442
46443         Fix build error on mingw with the modules sys_select and unistd.
46444         * modules/acl-tests (Depends-on): Add close.
46445         * modules/binary-io-tests (Depends-on): Likewise.
46446         * modules/closein-tests (Depends-on): Likewise.
46447         * modules/flock-tests (Depends-on): Likewise.
46448         * modules/fsync-tests (Depends-on): Likewise.
46449         * modules/lseek-tests (Depends-on): Likewise.
46450         * modules/pipe-tests (Depends-on): Likewise.
46451         * modules/posix_spawn-tests (Depends-on): Likewise.
46452         * modules/posix_spawnp-tests (Depends-on): Likewise.
46453         * modules/stat-time-tests (Depends-on): Likewise.
46454         * modules/yesno-tests (Depends-on): Likewise.
46455
46456 2009-07-19  Bruno Haible  <bruno@clisp.org>
46457
46458         Unify conditionals.
46459         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46460         macros, not at the compiler macros.
46461         * lib/pipe.c: Likewise.
46462         * lib/execute.c: Likewise.
46463         * lib/spawni.c: Likewise.
46464
46465 2009-07-19  Bruno Haible  <bruno@clisp.org>
46466
46467         Fix handling of closed stdin/stdout/stderr on mingw.
46468         * lib/w32spawn.h: Include unistd.h.
46469         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46470         file descriptor with O_NOINHERIT flag.
46471         (fd_safer_noinherit): New function, based on fd-safer.c.
46472         (dup_safer_noinherit): New function, based on dup-safer.c.
46473         (undup_safer_noinherit): New function.
46474         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46475         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46476         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46477         instead of fd_safer.
46478         * tests/test-pipe.c: Include <windows.h>.
46479         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46480         result.
46481
46482         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46483         from main.
46484         (test_pipe): Pass an extra argument for disambiguation.
46485         (main): Invoke parent_main or child_main.
46486
46487         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46488         consistently.
46489
46490 2009-07-18  Eric Blake  <ebb9@byu.net>
46491
46492         test-pipe: fix mingw build
46493         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46494
46495 2009-07-18  Bruno Haible  <bruno@clisp.org>
46496
46497         * modules/pipe-tests (Makefile.am): Fix typo.
46498
46499 2009-07-18  Eric Blake  <ebb9@byu.net>
46500
46501         error: fix mingw build
46502         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46503         Reported by Bruno Haible.
46504
46505         error: avoid undefined use of stdout
46506         * lib/error.c (error, error_at_line): Check that fd 1 is open
46507         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46508         is handling faults and the close_stdout module wants to report the
46509         detection of closed stdout as an error.
46510
46511 2009-07-17  Eric Blake  <ebb9@byu.net>
46512
46513         pipe: be robust in face of closed fds
46514         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46515         should cause child to misbehave.
46516         * modules/pipe-tests: New module.
46517         * tests/test-pipe.c: New file.
46518         * tests/test-pipe.sh: New file.
46519         Reported by Akim Demaille.
46520
46521 2009-07-14  Bruno Haible  <bruno@clisp.org>
46522
46523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46524         Reported by anonymous kc.
46525
46526 2009-07-07  Jim Meyering  <meyering@redhat.com>
46527
46528         maint.mk: don't look for translatable strings in *.m4 or *.mk
46529         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46530         when searching for translatable strings.
46531
46532 2009-07-05  Jim Meyering  <meyering@redhat.com>
46533
46534         remove superfluous parentheses in STREQ definition
46535         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46536         * lib/getugroups.c (STREQ): Likewise.
46537         * lib/fnmatch.c (STREQ): Likewise.
46538         Spotted by Bruno Haible.
46539
46540 2009-07-04  Jim Meyering  <meyering@redhat.com>
46541
46542         argv-iter: new module
46543         * MODULES.html.sh: Add argv-iter.
46544         * lib/argv-iter.c, lib/argv-iter.h: New files.
46545         * modules/argv-iter: New file.
46546         * modules/argv-iter-tests: New file.
46547         * tests/test-argv-iter.c: Test it.
46548
46549 2009-07-04  Bruno Haible  <bruno@clisp.org>
46550
46551         Fix assertion.
46552         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46553         contains more exact copies of a given entry than file2, leave the extra
46554         copies unpaired rather than aborting.
46555         Reported by Eric Blake.
46556
46557 2009-07-02  Bruno Haible  <bruno@clisp.org>
46558
46559         Speedup git-merge-changelog for git cherry-pick.
46560         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46561         (entries_mapping_get): New function, extracted from compute_mapping.
46562         (entries_mapping_reverse_get): New function.
46563         (compute_mapping): Add a 'full' argument. Return the result in a
46564         'struct entries_mapping'.
46565         (main): Update. Access the mappings through entries_mapping_get.
46566         Reported by Eric Blake.
46567
46568 2009-07-02  Bruno Haible  <bruno@clisp.org>
46569
46570         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46571         best_i.
46572
46573 2009-07-02  Bruno Haible  <bruno@clisp.org>
46574
46575         Speed up approximate search for matching ChangeLog entries.
46576         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46577         argument. Call fstrcmp_bounded instead of fstrcmp.
46578         (compute_mapping, try_split_merged_entry, main): Update callers.
46579
46580 2009-07-02  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46583
46584 2009-06-30  Bruno Haible  <bruno@clisp.org>
46585
46586         Reduce the number of uc_is_cased calls.
46587         * lib/unicase.h (casing_suffix_context_t): Add
46588         'first_char_except_ignorable' field.
46589         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46590         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46591         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46592         Update initializer.
46593         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46594         case-ignorable characters.
46595         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46596         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46597         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46598         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46599         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46600
46601 2009-06-30  Bruno Haible  <bruno@clisp.org>
46602
46603         Tests for module 'unicase/ignorable'.
46604         * modules/unicase/ignorable-tests: New file.
46605         * tests/unicase/test-ignorable.c: New file, generated by
46606         gen-uni-tables.
46607
46608         Tests for module 'unicase/cased'.
46609         * modules/unicase/cased-tests: New file.
46610         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46611         * tests/unicase/test-predicate-part1.h: New file, derived from
46612         tests/unictype/test-predicate-part1.h.
46613         * tests/unicase/test-predicate-part2.h: New file, same as
46614         tests/unictype/test-predicate-part2.h.
46615
46616         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46617         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46618         (output_casing_properties): New function.
46619         (main): Call it.
46620         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46621         * lib/unicase/cased.c: Include unictype/bitmap.h.
46622         (uc_is_cased): Define through a bitmap lookup.
46623         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46624         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46625         (uc_is_case_ignorable): Define through a bitmap lookup.
46626         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46627         lib/unictype/bitmap.h.
46628         (Depends-on): Add inline. Clean up.
46629         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46630         lib/unictype/bitmap.h.
46631         (Depends-on): Add inline. Clean up.
46632         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46633         recognition.
46634         * tests/unicase/test-u16-tolower.c (main): Likewise.
46635         * tests/unicase/test-u32-tolower.c (main): Likewise.
46636
46637 2009-06-30  Bruno Haible  <bruno@clisp.org>
46638
46639         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46640         * lib/unicase/u16-casemap.c: Likewise.
46641         * lib/unicase/u32-casemap.c: Likewise.
46642
46643 2009-06-29  Bruno Haible  <bruno@clisp.org>
46644
46645         Define u32_casefold as a wrapper around u32_ct_casefold.
46646         * lib/unicase/u32-casefold.c: Update.
46647         * modules/unicase/u32-casefold (Depends-on): Add
46648         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46649         unicase/empty-suffix-context. Clean up.
46650
46651         Define u16_casefold as a wrapper around u16_ct_casefold.
46652         * lib/unicase/u16-casefold.c: Update.
46653         * modules/unicase/u16-casefold (Depends-on): Add
46654         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46655         unicase/empty-suffix-context. Clean up.
46656
46657         Define u8_casefold as a wrapper around u8_ct_casefold.
46658         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46659         * lib/unicase/u8-casefold.c: Update.
46660         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46661         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46662
46663         Define u32_totitle as a wrapper around u32_ct_totitle.
46664         * lib/unicase/u32-totitle.c: Update.
46665         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46666         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46667
46668         Define u16_totitle as a wrapper around u16_ct_totitle.
46669         * lib/unicase/u16-totitle.c: Update.
46670         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46671         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46672
46673         Define u8_totitle as a wrapper around u8_ct_totitle.
46674         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46675         functions.
46676         (FUNC): Delegate to U_CT_TOTITLE.
46677         * lib/unicase/u8-totitle.c: Update.
46678         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46679         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46680
46681         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46682         invocation.
46683         * modules/unicase/u32-tolower (Depends-on): Add
46684         unicase/empty-prefix-context, unicase/empty-suffix-context.
46685
46686         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46687         invocation.
46688         * modules/unicase/u16-tolower (Depends-on): Add
46689         unicase/empty-prefix-context, unicase/empty-suffix-context.
46690
46691         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46692         * modules/unicase/u8-tolower (Depends-on): Add
46693         unicase/empty-prefix-context, unicase/empty-suffix-context.
46694
46695         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46696         invocation.
46697         * modules/unicase/u32-toupper (Depends-on): Add
46698         unicase/empty-prefix-context, unicase/empty-suffix-context.
46699
46700         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46701         invocation.
46702         * modules/unicase/u16-toupper (Depends-on): Add
46703         unicase/empty-prefix-context, unicase/empty-suffix-context.
46704
46705         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46706         * modules/unicase/u8-toupper (Depends-on): Add
46707         unicase/empty-prefix-context, unicase/empty-suffix-context.
46708
46709         New module 'unicase/u32-ct-casefold'.
46710         * lib/unicase/u32-ct-casefold.c: New file.
46711         * modules/unicase/u32-ct-casefold: New file.
46712
46713         New module 'unicase/u16-ct-casefold'.
46714         * lib/unicase/u16-ct-casefold.c: New file.
46715         * modules/unicase/u16-ct-casefold: New file.
46716
46717         New module 'unicase/u8-ct-casefold'.
46718         * lib/unicase/u8-ct-casefold.c: New file.
46719         * lib/unicase/u-ct-casefold.h: New file, derived from
46720         lib/unicase/u-casefold.h.
46721         * modules/unicase/u8-ct-casefold: New file.
46722
46723         New module 'unicase/u32-ct-totitle'.
46724         * lib/unicase/u32-ct-totitle.c: New file.
46725         * modules/unicase/u32-ct-totitle: New file.
46726
46727         New module 'unicase/u16-ct-totitle'.
46728         * lib/unicase/u16-ct-totitle.c: New file.
46729         * modules/unicase/u16-ct-totitle: New file.
46730
46731         New module 'unicase/u8-ct-totitle'.
46732         * lib/unicase/u8-ct-totitle.c: New file.
46733         * lib/unicase/u-ct-totitle.h: New file, derived from
46734         lib/unicase/u-totitle.h.
46735         * modules/unicase/u8-ct-totitle: New file.
46736
46737         New module 'unicase/u32-ct-tolower'.
46738         * lib/unicase/u32-ct-tolower.c: New file.
46739         * modules/unicase/u32-ct-tolower: New file.
46740
46741         New module 'unicase/u16-ct-tolower'.
46742         * lib/unicase/u16-ct-tolower.c: New file.
46743         * modules/unicase/u16-ct-tolower: New file.
46744
46745         New module 'unicase/u8-ct-tolower'.
46746         * lib/unicase/u8-ct-tolower.c: New file.
46747         * modules/unicase/u8-ct-tolower: New file.
46748
46749         New module 'unicase/u32-ct-toupper'.
46750         * lib/unicase/u32-ct-toupper.c: New file.
46751         * modules/unicase/u32-ct-toupper: New file.
46752
46753         New module 'unicase/u16-ct-toupper'.
46754         * lib/unicase/u16-ct-toupper.c: New file.
46755         * modules/unicase/u16-ct-toupper: New file.
46756
46757         New module 'unicase/u8-ct-toupper'.
46758         * lib/unicase/u8-ct-toupper.c: New file.
46759         * modules/unicase/u8-ct-toupper: New file.
46760
46761         Add context arguments to u*_casemap functions.
46762         * lib/unicase/unicasemap.h: Include unicase.h.
46763         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46764         suffix_context arguments.
46765         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46766         functions.
46767         (FUNC): Add prefix_context and suffix_context arguments. Use
46768         uc_is_cased and uc_is_case_ignorable.
46769         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46770         * lib/unicase/u16-casemap.c: Likewise.
46771         * lib/unicase/u32-casemap.c: Likewise.
46772         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46773         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46774         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46775         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46776         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46777         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46778
46779         New module 'unicase/u32-suffix-context'.
46780         * lib/unicase/u32-suffix-context.c: New file.
46781         * modules/unicase/u32-suffix-context: New file.
46782
46783         New module 'unicase/u16-suffix-context'.
46784         * lib/unicase/u16-suffix-context.c: New file.
46785         * modules/unicase/u16-suffix-context: New file.
46786
46787         New module 'unicase/u8-suffix-context'.
46788         * lib/unicase/u8-suffix-context.c: New file.
46789         * lib/unicase/u-suffix-context.h: New file.
46790         * modules/unicase/u8-suffix-context: New file.
46791
46792         New module 'unicase/empty-suffix-context'.
46793         * lib/unicase/empty-suffix-context.c: New file.
46794         * modules/unicase/empty-suffix-context: New file.
46795
46796         New module 'unicase/u32-prefix-context'.
46797         * lib/unicase/u32-prefix-context.c: New file.
46798         * modules/unicase/u32-prefix-context: New file.
46799
46800         New module 'unicase/u16-prefix-context'.
46801         * lib/unicase/u16-prefix-context.c: New file.
46802         * modules/unicase/u16-prefix-context: New file.
46803
46804         New module 'unicase/u8-prefix-context'.
46805         * lib/unicase/u8-prefix-context.c: New file.
46806         * lib/unicase/u-prefix-context.h: New file.
46807         * lib/unicase/context.h: New file.
46808         * modules/unicase/u8-prefix-context: New file.
46809
46810         New module 'unicase/empty-prefix-context'.
46811         * lib/unicase/empty-prefix-context.c: New file.
46812         * modules/unicase/empty-prefix-context: New file.
46813
46814         New module 'unicase/ignorable'.
46815         * lib/unicase/ignorable.c: New file.
46816         * modules/unicase/ignorable: New file.
46817
46818         New module 'unicase/cased'.
46819         * lib/unicase/caseprop.h: New file.
46820         * lib/unicase/cased.c: New file.
46821         * modules/unicase/cased: New file.
46822
46823         New functions for case mapping of substrings.
46824         * lib/unicase.h (casing_prefix_context_t): New type.
46825         (unicase_empty_prefix_context): New variable.
46826         (u8_casing_prefix_context, u16_casing_prefix_context,
46827         u32_casing_prefix_context, u8_casing_prefixes_context,
46828         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46829         declarations.
46830         (casing_suffix_context_t): New type.
46831         (unicase_empty_suffix_context): New variable.
46832         (u8_casing_suffix_context, u16_casing_suffix_context,
46833         u32_casing_suffix_context, u8_casing_suffixes_context,
46834         u16_casing_suffixes_context, u32_casing_suffixes_context,
46835         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46836         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46837         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46838         declarations.
46839
46840 2009-06-28  Jim Meyering  <meyering@redhat.com>
46841
46842         boostrap: indent only with spaces
46843         * build-aux/bootstrap: Indent only with spaces, never TABs.
46844
46845         bootstrap: split long lines
46846         * build-aux/bootstrap: Keep line length < 80.
46847
46848         bootstrap: sync from coreutils
46849         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46850         just as autoreconf does.  Verify a list of prerequisite
46851         package-name,version-number pairs if defined in bootstrap.conf.
46852         Refer to README-prereq, if prerequisites are not satisfied.
46853
46854 2009-06-27  Eric Blake  <ebb9@byu.net>
46855
46856         tests: add test for bogus NULL definition
46857         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46858         * tests/test-stdlib.c: Likewise.
46859         * tests/test-string.c: Likewise.
46860         * tests/test-locale.c: Likewise.
46861         * tests/test-unistd.c: Likewise.
46862         * modules/stdio-tests (Depends-on): Add verify.
46863         * modules/stdlib-tests (Depends-on): Likewise.
46864         * modules/string-tests (Depends-on): Likewise.
46865         * modules/locale-tests (Depends-on): Likewise.
46866         * modules/unistd-tests (Depends-on): Likewise.
46867
46868 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46869
46870         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46871         self-explaining comment.
46872         * m4/selinux-selinux-h: Update serial.
46873         (gl_LIBSELINUX): New macro, adding a warning for missing development
46874         packages to code extracted from...
46875         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46876         Add warning for missing development packages here, too.
46877
46878 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46879
46880         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46881
46882 2009-06-25  Eric Blake  <ebb9@byu.net>
46883
46884         version-etc: fix regression
46885         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46886         gcc.
46887         (version_etc): Use it, to catch bugs with trailing NULL.
46888         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46889         (version_etc_va): Fix logic bug.
46890         * modules/version-etc-tests: Add test.
46891         * tests/test-version-etc.c: New file.
46892         * tests/test-version-etc.sh: Likewise.
46893
46894 2009-06-25  Sam Steingold  <sds@gnu.org>
46895
46896         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46897         mbtowc declaration.
46898
46899 2009-06-25  Eric Blake  <ebb9@byu.net>
46900
46901         fpurge: migrate into <stdio.h>
46902         * lib/fpurge.h: Delete...
46903         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46904         * lib/fpurge.c (fpurge): Change declaring header.
46905         * modules/fpurge (Files): Drop deleted file.
46906         (Depends-on): Add stdio.
46907         (configure.ac): Set witness.
46908         * modules/stdio (Makefile.am): Support fpurge macros.
46909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46911         * lib/fflush.c: Update client.
46912         * tests/test-fpurge.c: Likewise.
46913         * NEWS: Mention the change.
46914
46915 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46916
46917         * lib/argp-version-etc.c (program_authors): Add const
46918         qualifier.
46919         * lib/version-etc.c: Fix typos in the comments.
46920         * modules/argp-version-etc: Depends on version-etc.
46921
46922 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46923
46924         argp-version-etc: new module.
46925
46926         * lib/argp-version-etc.c: New file.
46927         * lib/argp-version-etc.h: New file.
46928         * modules/argp-version-etc: New file.
46929         * modules/argp-version-etc-tests: New file.
46930         * tests/test-argp-version-etc.c: New test.
46931         * tests/test-argp-version-etc-1.sh: New test.
46932
46933 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46934
46935         Provide additional interfaces and documentation for version-etc
46936         module.
46937
46938         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46939         interfaces.
46940         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46941         prototypes.
46942
46943 2009-06-24  Bruno Haible  <bruno@clisp.org>
46944
46945         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46946         HAVE_LIB${NAME} macro.
46947         Reported by Sam Steingold <sds@gnu.org>.
46948
46949 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46950
46951         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46952         needed.
46953
46954 2009-06-21  Bruno Haible  <bruno@clisp.org>
46955
46956         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46957         work.
46958         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46959         together with LIB${NAME}, LTLIB${NAME}.
46960         Reported by Sam Steingold <sds@gnu.org>.
46961
46962 2009-06-20  Jim Meyering  <meyering@redhat.com>
46963
46964         tests: make sc_require_test_exit_idiom more generic
46965         * top/maint.mk (Exit_witness_file): New overridable variable.
46966         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46967         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46968
46969 2009-06-19  Jim Meyering  <meyering@redhat.com>
46970
46971         hash: reverse order of src/dst parameters in an internal interface
46972         * lib/hash.c (transfer_entries): Reverse order of parameters to
46973         put DST before SRC.  Adjust callers.
46974
46975         tests: test-hash: avoid wholesale duplication
46976         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46977         Instead, use a loop and add a single conditional.
46978
46979         tests: test-hash: allow seed selection via a command line argument
46980         * tests/test-hash.c (get_seed): New function.
46981         (main): Use it.
46982
46983 2009-06-19  Eric Blake  <ebb9@byu.net>
46984
46985         hash: avoid memory leak on allocation failure
46986         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46987         failure.  Factor repeated algorithm...
46988         (transfer_entries): ...into new helper routine.
46989         (hash_delete): React to hash_rehash return value.
46990
46991         hash: reduce memory pressure in hash_rehash no-op case
46992         * lib/hash.c (next_prime): Avoid overflow.
46993         (hash_initialize): Factor bucket size computation...
46994         (compute_bucket_size): ...into new helper function.
46995         (hash_rehash): Use new function and open coding to reduce memory
46996         pressure, and avoid a memory leak in USE_OBSTACK code.
46997         Reported by Jim Meyering.
46998
46999 2009-06-18  Eric Blake  <ebb9@byu.net>
47000
47001         hash: make rotation more obvious
47002         * modules/hash (Depends-on): Add bitrotate and stdint.
47003         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47004         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47005         (SIZE_MAX): Rely on headers for definition.
47006         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47007         (raw_hasher): Use rotr_sz.
47008         Suggested by Jim Meyering.
47009
47010         hash: fix memory leak in last patch
47011         * lib/hash.c (hash_rehash): Avoid memory leak.
47012
47013         hash: avoid no-op rehashing
47014         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47015
47016         hash: provide default callback functions
47017         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47018         (hash_initialize): Use them as defaults.
47019         * tests/test-hash.c (main): Test this.
47020
47021         hash: minor optimization
47022         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47023         when possible.
47024         (hash_initialize): Document this promise.
47025         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47026         * tests/test-hash.c (hash_compare_strings): Test this.
47027
47028 2009-06-18  Bruno Haible  <bruno@clisp.org>
47029
47030         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47031         going to be replaced anyway.
47032
47033 2009-06-18  Bruno Haible  <bruno@clisp.org>
47034
47035         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47036         in one place.
47037         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47038         be replaced anyway.
47039
47040 2009-06-18  Eric Blake  <ebb9@byu.net>
47041
47042         hash: check for resize before insertion
47043         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47044         threshold before insertion, so that a pathological hash_rehash
47045         that fills every bucket can still trigger another rehash.
47046
47047 2009-06-18  Jim Meyering  <meyering@redhat.com>
47048
47049         hash-tests: add a loop around the small tests
47050         * tests/test-hash.c (main): Repeat small tests with selected
47051         small initial table sizes.
47052
47053 2009-06-17  Eric Blake  <ebb9@byu.net>
47054
47055         hash: minor cleanups
47056         * lib/hash.h (hash_entry): Make opaque, by moving...
47057         * lib/hash.c (hash_entry): ...here.
47058         (hash_insert): Clarify restrictions on what can be inserted.
47059         (hash_get_next): Clarify when it is safe to remove an element
47060         during traversal.
47061         (check_tuning): Skip verification when tuning is known safe.
47062         (hash_initialize): Clarify restrictions on tuning.
47063
47064 2009-06-17  Jim Meyering  <jim@meyering.net>
47065         and Eric Blake  <ebb9@byu.net>
47066
47067         hash-tests: new module
47068         * modules/hash-tests: New file.
47069         * tests/test-hash.c: New file.
47070
47071 2009-06-17  Eric Blake  <ebb9@byu.net>
47072
47073         strstr-simple: document new module
47074         * MODULES.html.sh: Document new module.
47075
47076         strstr, strcasestr: replace on platforms with broken memchr
47077         * modules/strstr: Split into...
47078         * modules/strstr-simple: ...new module that does not care about
47079         performance, but does care about glibc bug.
47080         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47081         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47082         if platform memchr is broken, per Debian bug 521737.
47083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47084         memchr.
47085         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47086         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47087         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47088         * modules/mountlist (Depends-on): Add strstr-simple.
47089         * modules/gen-uni-tables (Depends-on): Likewise.
47090         * modules/argz (Depends-on): Add strstr.
47091
47092 2009-06-17  Bruno Haible  <bruno@clisp.org>
47093
47094         * modules/posix_spawn-internal (Depends-on): Add errno.
47095
47096 2009-06-17  Bruno Haible  <bruno@clisp.org>
47097
47098         Define missing ESTALE on Interix 3.5.
47099         * lib/errno.in.h (ESTALE): Assign a value if missing.
47100         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47102         missing.
47103         * doc/posix-headers/errno.texi: Mention the Interix bug.
47104         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47105
47106 2009-06-15  Eric Blake  <ebb9@byu.net>
47107
47108         memchr, memchr2: add valgrind exception
47109         * lib/memchr.valgrind: New file.
47110         * lib/memchr2.valgrind: New file.
47111         * modules/memchr (Files): Distribute valgrind file.
47112         * modules/memchr2 (Files): Likewise.
47113
47114         docs: memchr is no longer obsolete
47115         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47116         * lib/string.in.h (memchr): Simplify logic.
47117
47118 2009-06-14  Jim Meyering  <meyering@redhat.com>
47119
47120         link-follow: fix the "checking..." message to not mention trailing slash
47121         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47122         never considered trailing slashes.
47123
47124 2009-06-14  Bruno Haible  <bruno@clisp.org>
47125
47126         * m4/memchr.m4: Mention also the bug on IA-64.
47127         * doc/posix-functions/memchr.texi: Likewise.
47128
47129 2009-06-12  Eric Blake  <ebb9@byu.net>
47130
47131         memchr: detect broken x86_64 and alpha implementations
47132         * modules/memchr-tests (Depends-on): Move mmap detection...
47133         * modules/memchr (Depends-on): ...here.
47134         (configure.ac): Set indicator.
47135         * lib/string.in.h (memchr): Declare replacement.
47136         * modules/string (Makefile.am): Trigger replacement.
47137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47138         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47139         bugs.
47140         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47141         * modules/getpagesize (License): Relax license.
47142
47143 2009-06-11  Bruno Haible  <bruno@clisp.org>
47144
47145         * lib/idpriv.h: Add more references.
47146
47147 2009-06-08  Bruno Haible  <bruno@clisp.org>
47148
47149         Tests for module 'idpriv-droptemp'.
47150         * modules/idpriv-droptemp-tests: New file.
47151         * tests/test-idpriv-droptemp.sh: New file.
47152         * tests/test-idpriv-droptemp.su.sh: New file.
47153         * tests/test-idpriv-droptemp.c: New file.
47154
47155         New module 'idpriv-droptemp'.
47156         * lib/idpriv-droptemp.c: New file.
47157         * modules/idpriv-droptemp: New file.
47158
47159 2009-06-08  Bruno Haible  <bruno@clisp.org>
47160
47161         Tests for module 'idpriv-drop'.
47162         * modules/idpriv-drop-tests: New file.
47163         * tests/test-idpriv-drop.sh: New file.
47164         * tests/test-idpriv-drop.su.sh: New file.
47165         * tests/test-idpriv-drop.c: New file.
47166
47167         New module 'idpriv-drop'.
47168         * lib/idpriv.h: New file.
47169         * lib-idpriv-drop.c: New file.
47170         * m4/idpriv.m4: New file.
47171         * modules/idpriv-drop: New file.
47172
47173 2009-06-08  Bruno Haible  <bruno@clisp.org>
47174
47175         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47176         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47177         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47178         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47179         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47180         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47181         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47182
47183 2009-06-08  Eric Blake  <ebb9@byu.net>
47184
47185         test-strstr: use memory fence, when possible
47186         * tests/test-strstr.c (main): Use memory fence, in order to be
47187         more likely to trigger Debian bug 521737.
47188         * modules/strstr-tests (Files): Pull in additional files.
47189
47190         memchr: no longer obsolete, for wider field testing
47191         * modules/memchr (Status, Notice): Delete, this module is no
47192         longer obsolete.
47193         * modules/vasnprintf (Depends-on): Add memchr.
47194
47195 2009-06-07  Jim Meyering  <meyering@redhat.com>
47196
47197         hash: declare some functions with the warn_unused_result attribute
47198         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47199
47200 2009-06-07  Bruno Haible  <bruno@clisp.org>
47201
47202         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47203         Reported by Eric Blake.
47204
47205 2009-06-06  Eric Blake  <ebb9@byu.net>
47206
47207         test-alignof: fix typo with long double
47208         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47209         compiler error.
47210
47211 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47212
47213         Escape non-texinfo { and }s.
47214         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47215         markup error.
47216
47217 2009-06-04  Jim Meyering  <meyering@redhat.com>
47218
47219         gitlog-to-changelog: don't infloop on an empty commit log
47220         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47221         Reported by Boris Petersen <transacid@centerim.org>.
47222
47223 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47224
47225         version-etc: extend for packagers
47226         Add three new configure options, intended for packagers:
47227           --with-packager="packager name"
47228           --with-packager-version="packager-specific version"
47229           --with-packager-bug-reports="packager bug reporting"
47230         An example with coreutils:
47231           $ ./configure \
47232             --with-packager=Gentoo \
47233             --with-packager-bug-report=http://bugs.gentoo.org/ \
47234             --with-packager-version="patchset 1.6"
47235           $ ./src/ls --version | head -n2
47236           ls (GNU coreutils) 7.1-dirty
47237           Packaged by Gentoo (patchset 1.6)
47238         Note that the bug reporting info via --help doesn't show up because
47239         coreutils uses its own custom emit_bug_reporting_address() implementation
47240         in src/system.h.  If it didn't, it'd look like:
47241           $ ./src/ls --help | tail -n4
47242           Report bugs to <bug-coreutils@gnu.org>.
47243           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47244           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47245           General help using GNU software: <http://www.gnu.org/gethelp/>.
47246         * lib/version-etc.c: Print new information, if provided.
47247         * m4/version-etc.m4: New file.
47248         * modules/version-etc (Files): Add m4/version-etc.m4.
47249         (configure.ac): Add gl_VERSION_ETC.
47250
47251 2009-05-31  Bruno Haible  <bruno@clisp.org>
47252
47253         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47254         and 'int64_t'.
47255         * modules/alignof-tests (Dependencies): Add stdint.
47256         Reported by Eric Blake.
47257
47258 2009-05-31  Bruno Haible  <bruno@clisp.org>
47259
47260         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47261         restriction due to compiler bugs.
47262         Reported by Eric Blake.
47263
47264 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47265             Bruno Haible  <bruno@clisp.org>
47266
47267         Fix test-alignof failure.
47268         * lib/alignof.h (alignof_slot): New macro.
47269         (alignof_type): New macro, with the same semantics as the previous
47270         'alignof'.
47271         (alignof): Alias to alignof_slot.
47272         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47273         check that the results are usable as constant expressions.
47274
47275 2009-05-31  Bruno Haible  <bruno@clisp.org>
47276
47277         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47278         * tests/test-memchr.c (main): Check that memchr does not read past the
47279         first occurrence of the byte.
47280         * tests/test-strstr.c (main): Update comment.
47281         Suggested by Eric Blake.
47282
47283 2009-05-30  Bruno Haible  <bruno@clisp.org>
47284
47285         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47286         detail how to use dumpbin.
47287         Reported by David Byron <dbyron@dbyron.com>.
47288
47289 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47290
47291         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47292
47293 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47294
47295         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47296
47297 2009-05-28  Bruno Haible  <bruno@clisp.org>
47298
47299         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47300         build-aux/ files.
47301
47302 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47303
47304         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47305
47306 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47307
47308         * gnulib-tool (sed_transform_main_lib_file)
47309         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47310         regexps.
47311
47312 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47313
47314         * tests/test-strstr.c: Add another self-test.
47315         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47316         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47317
47318 2009-05-23  Bruno Haible  <bruno@clisp.org>
47319
47320         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47321         change.
47322
47323 2009-05-21  Bruno Haible  <bruno@clisp.org>
47324
47325         Simplify use of mode_t varargs.
47326         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47327         uses 'mode_t' or 'int'.
47328         * lib/openat.c (openat): Likewise.
47329         * lib/open-safer.c (open_safer): Likewise.
47330         * m4/mode_t.m4: New file.
47331         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47332         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47333         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47334         * modules/open (Files): Add m4/mode_t.m4.
47335         * modules/openat (Files): Likewise.
47336         * modules/fcntl-safer (Files): Likewise.
47337         Suggested by Eric Blake.
47338
47339 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47340
47341         * doc/glibc-functions/fallocate.texi: New file.
47342         * doc/gnulib.texi: Include it.
47343
47344 2009-05-21  Eric Blake  <ebb9@byu.net>
47345             Bruno Haible  <bruno@clisp.org>
47346
47347         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47348         invocations.
47349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47350
47351 2009-05-21  Eric Blake  <ebb9@byu.net>
47352             Bruno Haible  <bruno@clisp.org>
47353
47354         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47355         include_next. Fix of 2008-11-20 commit.
47356         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47357         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47358         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47359         NEXT_MATH_H.
47360         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47361         instead of NEXT_MATH_H.
47362
47363 2009-05-21  Bruno Haible  <bruno@clisp.org>
47364
47365         Avoid redefinition warnings for SIZE_MAX.
47366         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47367         Reported by Simon Josefsson.
47368
47369 2009-05-21  Bruno Haible  <bruno@clisp.org>
47370
47371         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47372         AC_CACHE_VAL.
47373
47374 2009-05-20  Bruno Haible  <bruno@clisp.org>
47375
47376         Make zeroptr.h work on mingw.
47377         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47378         mprotect.
47379         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47380         * modules/memchr2-tests (configure.ac): Likewise.
47381         * modules/memcmp-tests (configure.ac): Likewise.
47382         * modules/memmem-tests (configure.ac): Likewise.
47383         * modules/memrchr-tests (configure.ac): Likewise.
47384         Reported by Simon Josefsson.
47385
47386 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47387
47388         * tests/test-glob.c: Include string.h for strcmp prototype.
47389
47390 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47391
47392         * modules/getdelim (Depends-on): Add explicit stdint, although it
47393         was implicitly already pulled in via realloc-posix.
47394         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47395
47396 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47397
47398         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47399         G. Christensen" <tgc@jupiterrise.com>.
47400         * m4/sys_socket_h.m4: Check for sa_family_t.
47401         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47402         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47403         * tests/test-sys_socket.c: Check that sa_family_t works.
47404
47405 2009-05-18  Eric Blake  <ebb9@byu.net>
47406
47407         maint.mk: allow gnulib_dir in VPATH build
47408         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47409
47410 2009-05-15  Jim Meyering  <meyering@redhat.com>
47411
47412         maint.mk: Give gnulib_dir a default definition.
47413         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47414         Thus, most packages no longer need to specify this variable in cfg.mk
47415
47416 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47417
47418         rename.m4: fix typos that would make non-mingw cross-configure fail
47419         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47420
47421 2009-05-13  Eric Blake  <ebb9@byu.net>
47422
47423         mmap-anon: avoid out-of-order autoconf expansion
47424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47425         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47426         * modules/memchr-tests (Depends-on): Add extensions.
47427         * modules/memchr2-tests (Depends-on): Add extensions.
47428         * modules/memcmp-tests (Depends-on): Add extensions.
47429         * modules/memmem-tests (Depends-on): Add extensions.
47430         * modules/memrchr-tests (Depends-on): Add extensions.
47431
47432 2009-05-13  Bruno Haible  <bruno@clisp.org>
47433
47434         Make some tests ISO C 99 compliant.
47435         * tests/zerosize-ptr.h: New file.
47436         * tests/test-memchr.c: Include zerosize-ptr.h.
47437         (main): Use a zero-size object pointer instead of NULL.
47438         * tests/test-memchr2.c: Include zerosize-ptr.h.
47439         (main): Use a zero-size object pointer instead of NULL.
47440         * tests/test-memcmp.c: Include zerosize-ptr.h.
47441         (main): Use a zero-size object pointer instead of NULL.
47442         * tests/test-memmem.c: Include zerosize-ptr.h.
47443         (main): Use a zero-size object pointer instead of NULL.
47444         * tests/test-memrchr.c: Include zerosize-ptr.h.
47445         (main): Use a zero-size object pointer instead of NULL.
47446         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47447         m4/mmap-anon.m4.
47448         (Depends-on): Add getpagesize.
47449         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47450         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47451         m4/mmap-anon.m4.
47452         (Depends-on): Add getpagesize.
47453         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47454         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47455         m4/mmap-anon.m4.
47456         (Depends-on): Add getpagesize.
47457         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47458         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47459         m4/mmap-anon.m4.
47460         (Depends-on): Add getpagesize.
47461         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47462         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47463         m4/mmap-anon.m4.
47464         (Depends-on): Add getpagesize.
47465         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47466
47467 2009-05-12  Bruno Haible  <bruno@clisp.org>
47468
47469         Tests for module 'alignof'.
47470         * modules/alignof-tests: New file.
47471         * tests/test-alignof.c: New file.
47472
47473 2009-05-12  Bruno Haible  <bruno@clisp.org>
47474
47475         Fix alignof macro.
47476         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47477         vendor compilers that are always correct.
47478
47479 2009-05-12  Bruno Haible  <bruno@clisp.org>
47480
47481         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47482         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47483         not whether its fully works.
47484
47485 2009-05-12  Bruno Haible  <bruno@clisp.org>
47486
47487         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47488
47489 2009-05-12  Jim Meyering  <meyering@redhat.com>
47490
47491         * top/maint.mk: Adjust backslash alignment.
47492
47493 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47494
47495         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47496
47497 2009-05-11  Eric Blake  <ebb9@byu.net>
47498
47499         argp: avoid undefined behavior
47500         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47501         macros.
47502
47503 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47504
47505         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47506         user.name to prevent git commit from complaining.
47507
47508 2009-05-10  Bruno Haible  <bruno@clisp.org>
47509
47510         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47511         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47512         it rewrites every file name only once.
47513         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47514
47515 2009-05-08  Bruno Haible  <bruno@clisp.org>
47516
47517         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47518         instead of 'max'.
47519
47520 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47521
47522         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47523         sockaddr_storage test.
47524
47525 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47526
47527         * modules/sys_socket (Makefile.am): Substitute
47528         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47529         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47530         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47531         * tests/test-sys_socket.c: Check sockaddr_storage.
47532
47533 2009-05-08  Bruno Haible  <bruno@clisp.org>
47534
47535         New module 'alignof'.
47536         * lib/alignof.h: New file.
47537         * modules/alignof: New file.
47538
47539 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47540             Bruno Haible  <bruno@clisp.org>
47541
47542         Fix test-file-has-acl on FreeBSD.
47543         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47544         mask is implicitly added.
47545         * tests/test-file-has-acl.c: Include <signal.h>.
47546         (main): Terminate the test after 5 seconds.
47547         * modules/acl-tests (configure.ac): Check for alarm function.
47548
47549 2009-05-04  Bruno Haible  <bruno@clisp.org>
47550
47551         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47552         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47553         * modules/errno (configure.ac): Drop AC_REQUIRE.
47554         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47555         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47556
47557 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47558
47559         * modules/glob-tests: New module.
47560         * tests/test-glob.c: Add.
47561
47562 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47563
47564         * modules/fnmatch-tests: New module.
47565         * tests/test-fnmatch.c: Add.
47566
47567 2009-05-04  Eric Blake  <ebb9@byu.net>
47568
47569         maint: make the new no-submodule-changes rule VPATH-safe
47570         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47571
47572 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47573             Bruno Haible  <bruno@clisp.org>
47574
47575         acl: Fix infinite loop on FreeBSD.
47576         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47577         of return value from acl_get_entry.
47578         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47579         Likewise.
47580
47581 2009-05-03  Bruno Haible  <bruno@clisp.org>
47582
47583         * lib/acl-internal.h (acl_entries): Clarify return value.
47584         * lib/acl_entries.c (acl_entries): Likewise.
47585
47586 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47587
47588         Bug fix in acl module.
47589         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47590
47591 2009-05-03  Bruno Haible  <bruno@clisp.org>
47592
47593         Create gperf-generated file in the source dir, not in the build dir.
47594         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47595         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47596         * modules/unicase/locale-language (unicase/locale-languages.h):
47597         Likewise.
47598         * modules/unicase/special-casing (unicase/special-casing-table.h):
47599         Likewise.
47600         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47601         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47602         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47603         Reported by Ralf Wildenhues.
47604
47605 2009-05-03  Bruno Haible  <bruno@clisp.org>
47606
47607         * modules/fnmatch (Description, configure.ac): Taken from
47608         fnmatch-posix.
47609         * modules/fnmatch-posix: Turn into a symbolic reference to the
47610         'fnmatch' module, and deprecate.
47611         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47612
47613 2009-05-03  Bruno Haible  <bruno@clisp.org>
47614
47615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47616         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47617         Reported by Ralf Wildenhues.
47618
47619 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47620
47621         * m4/fnmatch.m4: Fix fnmatch re-define.
47622
47623 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47624
47625         priv-set: new module and tests; adapt write-any-file
47626         * lib/priv-set.c: New file.
47627         * lib/priv-set.h: New file.
47628         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47629         * lib/write-any-file.c: Simplify by using priv-set module.
47630         * m4/priv-set.m4: New file.
47631         * modules/priv-set: New file.
47632         * modules/unlinkdir: Add dependency on priv-set module.
47633         * modules/write-any-file: Likewise.
47634
47635         Tests for module 'priv-set'.
47636         * modules/priv-set-tests: New file.
47637         * tests/test-priv-set.c: New file.
47638
47639 2009-05-03  Jim Meyering  <meyering@redhat.com>
47640             Bruno Haible  <bruno@clisp.org>
47641
47642         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47643         use the converted UTF-8 variant of the name instead.
47644
47645 2009-05-03  Jim Meyering  <meyering@redhat.com>
47646
47647         tests: tighten some getdate tests
47648         * tests/test-getdate.c (main): Tighten tests: require equality,
47649         not just greater than.  Set TZ envvar to UTC0.
47650
47651 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47652
47653         getdate: correctly interpret "next monday" when run on a Monday
47654         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47655         that e.g., "next tues" (when run on a tuesday) results in a date
47656         that is one week in the future, and not today's date.
47657         I.e., add a week when the wday is the same as the current one.
47658         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47659         and earlier by Martin Bernreuther and Jan Minář.
47660         * tests/test-getdate.c (main): Check that "next DAY" is always in
47661         the future and that "last DAY" is always in the past.
47662
47663 2009-05-02  Jim Meyering  <meyering@redhat.com>
47664
47665         build: ensure that a release build fails when a submodule is unclean
47666         * top/maint.mk (no-submodule-changes): New rule.
47667         (alpha beta major): Depend on it.
47668
47669 2009-05-02  Bruno Haible  <bruno@clisp.org>
47670
47671         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47672         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47673         shell variable gl_fnmatch_required to detect which variant is
47674         requested.
47675         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47676         gl_FUNC_FNMATCH_POSIX.
47677         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47678         exclude fnmatch-posix.
47679
47680 2009-05-02  Bruno Haible  <bruno@clisp.org>
47681
47682         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47683         * modules/mbsrtowcs (License): Change to LGPLv2+.
47684         * modules/strnlen1 (License): Likewise.
47685         Reported by Simon Josefsson.
47686
47687 2009-05-02  Bruno Haible  <bruno@clisp.org>
47688
47689         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47690         "cross".
47691         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47692         gnulib-tool was called with option --source-base=lib.
47693
47694 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47695
47696         Use automake *-local hooks without commands, for extensibility.
47697         * modules/localcharset (Makefile.am): Rename install-exec-local
47698         rule to install-exec-localcharset, and make it a prerequisite of
47699         install-exec-local.  Likewise, rename the uninstall-local rule to
47700         uninstall-localcharset, and make it a prerequisite of the former.
47701
47702 2009-05-01  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47706         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47708         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47709         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47710         m4/locale-zh.m4, m4/codeset.m4.
47711
47712         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47713         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47714         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47715         m4/locale-zh.m4.
47716
47717         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47718         REPLACE_WCRTOMB if mbstate_t must be replaced.
47719         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47720         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47721
47722 2009-05-01  Bruno Haible  <bruno@clisp.org>
47723
47724         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47725         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47726         dngettext, dcngettext, textdomain, bindtextdomain,
47727         bind_textdomain_codeset): Undefine before redefining.
47728
47729 2009-04-30  Bruno Haible  <bruno@clisp.org>
47730
47731         Fix bug introduced on 2009-04-25.
47732         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47733         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47734         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47735         is defined.
47736         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47737         is defined.
47738         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47739         is defined.
47740         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47741
47742 2009-04-28  Bruno Haible  <bruno@clisp.org>
47743
47744         Comment tweaks.
47745         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47746         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47747         * lib/unicase.h (u*_casexfrm): Likewise.
47748         Reported by Paolo Bonzini.
47749
47750 2009-04-28  Bruno Haible  <bruno@clisp.org>
47751
47752         Fix a compilation error.
47753         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47754         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47755         Reported by Jim Meyering.
47756
47757 2009-04-27  Bruno Haible  <bruno@clisp.org>
47758
47759         New module 'libunistring'.
47760         * modules/libunistring: New file.
47761         * m4/libunistring.m4: New file.
47762         * MODULES.html.sh (Unicode string functions): Add it.
47763
47764 2009-04-27  Eric Blake  <ebb9@byu.net>
47765
47766         maint.mk: allow package-specific header to provide <config.h>
47767         * top/maint.mk (sc_require_config_h): New variable.
47768         (sc_require_config_h, sc_require_config_h_first): Use it.
47769
47770 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47771
47772         * top/maint.mk (sc_avoid_if_before_free): Except
47773         useless-if-before-free script.
47774
47775 2009-04-27  Eric Blake  <ebb9@byu.net>
47776
47777         maintainer-makefile: depend on all required helper scripts
47778         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47779         useless-if-before-free.
47780         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47781         version, rather than assuming gnulib checkout is available.
47782         Reported by Simen Josefsson.
47783
47784 2009-04-26  Bruno Haible  <bruno@clisp.org>
47785
47786         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47787         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47788         "../" or "..".
47789
47790 2009-04-26  Bruno Haible  <bruno@clisp.org>
47791
47792         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47793         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47794         AC_LIB_HAVE_LINKFLAGS.
47795
47796 2009-04-26  Bruno Haible  <bruno@clisp.org>
47797
47798         Simplify calling convention of u*_conv_from_encoding.
47799         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47800         u32_conv_from_encoding): Expect a resultbuf argument and return the
47801         result directly as a pointer.
47802         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47803         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47804         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47805         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47806         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47807         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47808         Update.
47809         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47810         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47811         * lib/vasnprintf.c (VASNPRINTF): Update.
47812         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47813         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47814         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47815         * NEWS: Mention the change.
47816
47817 2009-04-26  Bruno Haible  <bruno@clisp.org>
47818
47819         Simplify calling convention of u*_conv_to_encoding.
47820         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47821         u32_conv_to_encoding): Expect a resultbuf argument and return the
47822         result directly as a pointer.
47823         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47824         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47825         freeing scaled_offsets if mem_iconveha failed.
47826         * lib/unicase/u-casexfrm.h (FUNC): Update.
47827         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47828         * lib/vasnprintf.c (VASNPRINTF): Update.
47829         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47830         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47831         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47832         * NEWS: Mention the change.
47833
47834 2009-04-26  Bruno Haible  <bruno@clisp.org>
47835
47836         Avoid test failures on AIX and OSF/1.
47837         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47838         malloc(0).
47839         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47840         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47841         Likewise.
47842         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47843         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47844         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47845         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47846         * doc/posix-functions/malloc.texi: Document the portability problem
47847         related to malloc(0).
47848
47849 2009-04-26  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47852         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47853         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47854
47855 2009-04-25  Bruno Haible  <bruno@clisp.org>
47856
47857         Avoid link error when creating a namespace clean library.
47858         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47859         as macro with arguments if already defined as an alias.
47860         * lib/signbitf.c (gl_signbitf): Don't undefine.
47861         * lib/signbitd.c (gl_signbitd): Don't undefine.
47862         * lib/signbitl.c (gl_signbitl): Don't undefine.
47863
47864 2009-04-25  Jim Meyering  <meyering@redhat.com>
47865
47866         vc-list-files: fix another quoting bug
47867         * build-aux/vc-list-files: Avoid sed backslash expansion
47868         of pathological directory names.
47869
47870 2009-04-25  Eric Blake  <ebb9@byu.net>
47871
47872         vc-list-files: fix shell quoting error
47873         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47874         timestamp.
47875
47876 2009-04-25  Jim Meyering  <meyering@redhat.com>
47877
47878         vc-list-files: restore lost functionality with subdir argument
47879         * build-aux/vc-list-files: When given a non-"." sub-directory
47880         argument, substitute the $dir/ prefix back onto each resulting name.
47881         Otherwise, coreutils' root_tests check would fail.
47882
47883 2009-04-24  Eric Blake  <ebb9@byu.net>
47884
47885         vc-list-files: ignore git symlinks
47886         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47887         than ls-files, to ignore git symlinks.
47888
47889         maint.mk: import improvements from m4
47890         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47891         (move_if_change): Delete unused macro.
47892         (news-date-check, vc-diff-check): Support VPATH builds.
47893         (announcement): Likewise.  Split --bootstrap-tools list...
47894         (boostrap-tools): ...into separate list, which can be overridden
47895         in cfg.mk.
47896         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47897         requiring dependency on useless-if-before-free module.
47898         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47899         Support VPATH builds.
47900
47901 2009-04-24  Jim Meyering  <meyering@redhat.com>
47902
47903         maint.mk: remove coreutils-specific rules and variables
47904         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47905         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47906         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47907
47908         maint.mk: remove obsolete rule
47909         * top/maint.mk (rel-check): Remove rule.
47910         (WGET, WGETFLAGS): Remove now-unused variables.
47911
47912 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47913
47914         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47915         consistency.
47916
47917         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47918         '$(PATH_SEPARATOR)' instead of ':'.
47919
47920 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47921
47922         * lib/getopt1.c (main): Use 'const' for static array.
47923
47924 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47925
47926         * top/maint.mk: Sync with coreutils.
47927         * NEWS: Explain incompatibilities.
47928
47929 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47930             Bruno Haible  <bruno@clisp.org>
47931
47932         Fix cross-compilation results.
47933         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47934         statement, as third argument of AC_TRY_RUN.
47935         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47936         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47937         Likewise.
47938         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47939         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47940         Likewise.
47941         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47943         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47944
47945 2009-04-20  Bruno Haible  <bruno@clisp.org>
47946
47947         Avoid test failure on mingw.
47948         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47949
47950 2009-04-20  Bruno Haible  <bruno@clisp.org>
47951
47952         Avoid compilation error on mingw.
47953         * modules/localename-tests (Depends-on): Add locale.
47954
47955 2009-04-19  Bruno Haible  <bruno@clisp.org>
47956
47957         Support for building a shared library on Windows platforms.
47958         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47959         (main): Test the presence of UNINORM_NFC here.
47960         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47961         (main): Test the presence of UNINORM_NFD here.
47962         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47963         (main): Test the presence of UNINORM_NFKC here.
47964         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47965         (main): Test the presence of UNINORM_NFKD here.
47966
47967 2009-04-19  Bruno Haible  <bruno@clisp.org>
47968
47969         Avoid a compiler warning.
47970         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47971         Change type of variable 'sequence'.
47972
47973 2009-04-19  Bruno Haible  <bruno@clisp.org>
47974
47975         * modules/configmake (Makefile.am): When the contents of configmake.h
47976         does not change, arrange to preserve its modification time.
47977
47978 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47979
47980         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47981         gettext domain.
47982
47983 2009-04-16  Jim Meyering  <meyering@redhat.com>
47984
47985         useless-if-before-free: improve conversion code
47986         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47987         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47988
47989 2009-04-14  Bruno Haible  <bruno@clisp.org>
47990
47991         * modules/fcntl (Depends-on): Add extensions.
47992         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47993
47994 2009-04-12  Ben Pfaff  <blp@gnu.org>
47995
47996         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47997         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47998
47999 2009-03-20  Ben Pfaff  <blp@gnu.org>
48000
48001         Make rename replace existing destinations on Windows.
48002         * m4/rename.m4: Add test for Mingw.
48003         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48004         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48005         * doc/posix-functions/rename.texi: Document.
48006
48007 2009-04-10  Bruno Haible  <bruno@clisp.org>
48008
48009         New include file "iconveh.h".
48010         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48011         * lib/striconveh.h: Include it.
48012         (enum iconv_ilseq_handler): Remove definition.
48013         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48014         striconveh.h.
48015         * lib/striconveha.c: Include striconveh.h.
48016         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48017         * modules/striconveh (Files): Add lib/iconveh.h.
48018         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48019         lib/striconveh.h.
48020
48021 2009-04-10  Bruno Haible  <bruno@clisp.org>
48022
48023         * lib/uniconv.h: Update comment.
48024
48025 2009-04-10  Bruno Haible  <bruno@clisp.org>
48026
48027         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48028         always.
48029         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48030         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48031         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48032         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48033         "unistring-notinline.h", so that the function gets defined always.
48034         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48035         * lib/unistr/u8-uctomb.c: Likewise.
48036         * lib/unistr/u16-mbtouc.c: Likewise.
48037         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48038         * lib/unistr/u16-uctomb.c: Likewise.
48039         * lib/unistr/u32-mbtouc.c: Likewise.
48040         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48041         * lib/unistr/u32-uctomb.c: Likewise.
48042
48043 2009-04-10  Bruno Haible  <bruno@clisp.org>
48044
48045         Mark 'utime' obsolete.
48046         * modules/utime (Status, Notice): New sections.
48047         Suggested by Jim Meyering.
48048
48049         Fix cross-compile guess for utime test.
48050         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48051         autoconf.
48052         * doc/posix-functions/utime.texi: Give more precisions.
48053         Reported by Jan <ipif@ymail.com>.
48054
48055 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48056
48057         filevercmp: correct today's change
48058         * lib/filevercmp.c: Also handle coreutils' test inputs.
48059         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48060
48061         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48062         for reporting it.
48063         * lib/filevercmp.c: Special handle for "", "." and "..".
48064         * tests/test-filevercmp.c: Enlarge the set suite.
48065
48066 2009-04-07  Jim Meyering  <meyering@redhat.com>
48067
48068         useless-if-before-free: show how to remove braced useless free, too
48069         * build-aux/useless-if-before-free: still only in a comment, though.
48070
48071 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48072
48073         maint.mk: import changes to syntax-check macros from coreutils
48074         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48075         Use them in the relevant macros.
48076
48077 2009-04-06  Bruno Haible  <bruno@clisp.org>
48078
48079         Fix unportable use of bit-fields.
48080         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48081         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48082         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48083
48084 2009-04-06  Bruno Haible  <bruno@clisp.org>
48085
48086         Avoid test failures on AIX and OSF/1.
48087         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48088         that malloc(0) = NULL.
48089         * tests/unicase/test-u8-tolower.c (check): Likewise.
48090         * tests/unicase/test-u8-totitle.c (check): Likewise.
48091         * tests/unicase/test-u8-toupper.c (check): Likewise.
48092         * tests/unicase/test-u16-casefold.c (check): Likewise.
48093         * tests/unicase/test-u16-tolower.c (check): Likewise.
48094         * tests/unicase/test-u16-totitle.c (check): Likewise.
48095         * tests/unicase/test-u16-toupper.c (check): Likewise.
48096         * tests/unicase/test-u32-casefold.c (check): Likewise.
48097         * tests/unicase/test-u32-tolower.c (check): Likewise.
48098         * tests/unicase/test-u32-totitle.c (check): Likewise.
48099         * tests/unicase/test-u32-toupper.c (check): Likewise.
48100         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48101         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48102         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48103         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48104         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48105         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48106         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48107         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48108         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48109         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48110         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48111         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48112
48113 2009-04-05  Bruno Haible  <bruno@clisp.org>
48114
48115         Work around an autoconf limitation.
48116         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48117         comment line if it would be longer than 3 KB.
48118
48119 2009-04-05  Bruno Haible  <bruno@clisp.org>
48120
48121         Avoid test failure with libiconv-1.13.
48122         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48123         of the expected test results.
48124
48125 2009-04-05  Bruno Haible  <bruno@clisp.org>
48126
48127         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48128         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48129         that it should be installed.
48130
48131 2009-04-05  Bruno Haible  <bruno@clisp.org>
48132
48133         * gnulib-tool: New option --copy-file.
48134         (func_usage): Document it.
48135         (func_dest_tmpfilename): Moved out of func_import.
48136         (func_add_file, func_update_file): New functions, extracted from
48137         func_import.
48138         (func_import): Update.
48139
48140 2009-04-05  Karl Berry  <karl@gnu.org>
48141
48142         * README: prominently mention gnulib-tool.
48143         Rearrange sections so getting the code is near the top.
48144
48145 2009-04-05  Bruno Haible  <bruno@clisp.org>
48146
48147         * lib/unicase.h: Mention u*_cmp2.
48148         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48149         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48150         * lib/unicase/ulc-casecmp.c: Likewise.
48151         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48152         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48153         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48154         unistr/u8-cmp.
48155         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48156         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48157         unistr/u16-cmp.
48158         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48159         unistr/u32-cmp.
48160
48161         * lib/uninorm.h: Mention u*_cmp2.
48162         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48163         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48164         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48165         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48166         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48167         unistr/u8-cmp.
48168         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48169         unistr/u16-cmp.
48170         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48171         unistr/u32-cmp.
48172
48173         New module 'unistr/u32-cmp2'.
48174         * lib/unistr/u32-cmp2.c: New file.
48175         * modules/unistr/u32-cmp2: New file.
48176
48177         New module 'unistr/u16-cmp2'.
48178         * lib/unistr/u16-cmp2.c: New file.
48179         * modules/unistr/u16-cmp2: New file.
48180
48181         New module 'unistr/u8-cmp2'.
48182         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48183         * lib/unistr/u8-cmp2.c: New file.
48184         * lib/unistr/u-cmp2.h: New file.
48185         * modules/unistr/u8-cmp2: New file.
48186
48187 2009-04-05  Bruno Haible  <bruno@clisp.org>
48188
48189         * lib/unictype.h (uc_property_is_valid): New macro.
48190         * tests/unictype/test-pr_byname.c (main): Use it.
48191
48192         * lib/unistr.h: Doc fixes.
48193         * lib/uniconv.h: Doc fixes.
48194         * lib/unictype.h: Doc fixes.
48195
48196 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48197
48198         Port coreutils 7.2 to Solaris 8.
48199
48200         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48201         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48202         for Solaris 8.  This is a bit of a hack, as it means it's the
48203         caller's responsibility to add -lnsl if needed, but most likely it
48204         won't be needed since only getaddrinfo uses this and getaddrinfo
48205         isn't needed on Solaris 8.
48206
48207         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48208         problem to Solaris 8 encountered with coreutils 7.2, which
48209         resulted in a message "fnmatch.c:292: warning: passing argument 4
48210         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48211         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48212
48213 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48214
48215         * m4/ld-version-script.m4: Add FIXME comment.
48216
48217 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48218
48219         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48220         SOVERSION variable.
48221
48222 2009-04-02  Bruno Haible  <bruno@clisp.org>
48223
48224         * Makefile (info, html, dvi, pdf): Combine the rules.
48225         Suggested by Jim Meyering.
48226
48227 2009-04-01  Bruno Haible  <bruno@clisp.org>
48228
48229         * Makefile (info, html, dvi, pdf): New targets.
48230         Reported by Reuben Thomas <rrt@sc3d.org>.
48231
48232 2009-04-01  Bruno Haible  <bruno@clisp.org>
48233
48234         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48235         can be put into PATH.
48236         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48237
48238 2009-04-01  Bruno Haible  <bruno@clisp.org>
48239
48240         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48241
48242 2009-04-01  Bruno Haible  <bruno@clisp.org>
48243
48244         Rename module 'visibility'.
48245         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48246         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48247         * doc/gnulib.texi: Update.
48248         * MODULES.html.sh (Misc): Update.
48249         * NEWS: Mention the change.
48250
48251 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48252
48253         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48254         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48255         Eric Blake <ebb9@byu.net> for review.
48256         * MODULES.html.sh: Add lib-msvc-compat.
48257         * doc/gnulib.texi: Link to new section.
48258         * m4/ld-output-def.m4: New file.
48259         * doc/ld-output-def.texi: New file.
48260
48261 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48262
48263         Rename ld-version-script to lib-symbol-versions.  Suggested by
48264         Bruno Haible <bruno@clisp.org>.
48265         * modules/ld-version-script: Renamed to lib-symbol-versions.
48266         * doc/ld-version-script.texi: Fix module name.
48267         * MODULES.html.sh: Add lib-symbol-versions.
48268
48269 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48270
48271         * modules/u64-tests: New file.
48272         * tests/test-u64.c: New file.
48273
48274 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48275
48276         * MODULES.html.sh: Mention u64.
48277         * modules/u64: New module.
48278         * modules/crypto/sha512: Depend on u64 module instead of providing
48279         u64.h.
48280
48281 2009-03-27  Eric Blake  <ebb9@byu.net>
48282
48283         test-strerror: make debugging EAI_SYSTEM easier
48284         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48285         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48286         failure was EAI_SYSTEM.
48287
48288 2009-03-25  Bruno Haible  <bruno@clisp.org>
48289
48290         Fix a problem with --enable-relocatable on Solaris 7.
48291         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48292         since 2008-02-24.
48293
48294 2009-03-25  Eric Blake  <ebb9@byu.net>
48295
48296         test-sockets: avoid gcc warning
48297         * tests/test-sockets.c (main): Silence compiler warning.
48298
48299 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         New modules nproc, pthread, contributed by Glen Lenker.
48302
48303         * MODULES.html.sh: Add pthread, nproc.
48304         * lib/nproc.c: New file.
48305         * lib/nproc.h: New file.
48306         * lib/pthread.in.h: New file.
48307         * m4/pthread.m4: New file.
48308         * modules/nproc: New file.
48309         * modules/pthread: New file.
48310
48311 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48312
48313         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48314         New variable.
48315
48316 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48317
48318         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48319         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48320         * tests/test-filevercmp.c: Add tests for backup suffixes.
48321
48322 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48323
48324         * modules/stdlib (Depends-on): Add stdint, needed when defining
48325         struct random_data on, for example, HP-UX 10.20.  Reported by
48326         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48327
48328 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48329
48330         * lib/readline.c (readline): Call fflush on stdout after printing
48331         prompt.
48332
48333 2009-03-20  Bruno Haible  <bruno@clisp.org>
48334
48335         Remove dependency from 'close' module to -lws2_32 on native Windows.
48336         * lib/close-hook.h: New file.
48337         * lib/close-hook.c: New file.
48338         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48339         w32sock.h.
48340         (_gl_close_fd_maybe_socket): Remove function.
48341         (rpl_close): Invoke execute_all_close_hooks instead of
48342         _gl_close_fd_maybe_socket.
48343         * lib/sockets.c: Include close-hook.h, w32sock.h.
48344         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48345         (close_sockets_hook): New variable.
48346         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48347         (gl_sockets_cleanup): Unregister it.
48348         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48349         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48350         * modules/close-hook: New file.
48351         * modules/close (Files): Remove lib/w32sock.h.
48352         (Depends-on): Add close-hook.
48353         (Link): Remove section.
48354         * modules/sockets (Files): Add lib/w32sock.h.
48355         (Depends-on): Add close-hook.
48356         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48357         invocation.
48358         * NEWS: Mention that LIB_CLOSE is gone.
48359
48360 2009-03-23  Eric Blake  <ebb9@byu.net>
48361
48362         signal-tests: test previous patch
48363         * tests/test-signal.c: New file.
48364         * modules/signal-tests: Likewise.
48365
48366         signal.h: always support 'volatile sig_atomic_t'
48367         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48368         (gl_SIGNAL_H_DEFAULTS): Add a default.
48369         * modules/signal (Makefile.am): Substitute if needed.
48370         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48371         users can blindly add volatile.
48372         * doc/posix-headers/signal.texi (signal.h): Document it.
48373         Reported by Matthew Woehlke.
48374
48375 2009-03-23  Jim Meyering  <meyering@redhat.com>
48376
48377         pathmax: PATH_MAX: use pathconf only when available
48378         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48379         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48380         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48381         This avoids a link failure in a PSP cross-compilation environment
48382         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48383
48384         * lib/vasnprintf.c (divide): Fix typo in comment.
48385
48386 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48387
48388         * gnulib-tool (func_filter_filelist): Fix comment.
48389
48390 2009-03-20  Bruno Haible  <bruno@clisp.org>
48391
48392         Make sockets.h self-contained.
48393         * lib/sockets.c: Include sockets.h first.
48394         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48395
48396 2009-03-19  Eric Blake  <ebb9@byu.net>
48397
48398         doc: mention more functions added in cygwin 1.7.0
48399         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48400         addition.
48401         * doc/posix-functions/log2f.texi: Likewise.
48402
48403 2009-03-19  Jim Meyering  <meyering@redhat.com>
48404
48405         fsusage: avoid syntax error due to statement-before-declaration
48406         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48407         after all declarations.  Reported by Matthew Woehlke in
48408         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48409
48410 2009-03-18  Eric Blake  <ebb9@byu.net>
48411
48412         build-aux/compile: sync from automake
48413         * build-aux/compile: New file, from automake.
48414         * config/srclist.txt: Mention build-aux/compile.
48415
48416 2009-03-17  Bruno Haible  <bruno@clisp.org>
48417
48418         * lib/git-merge-changelog.c: Fix typo in comment.
48419         Reported by Reuben Thomas <rrt@sc3d.org>.
48420
48421 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48422
48423         * m4/regex.m4: update and improve help for
48424         --without-included-regex.
48425
48426 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48427
48428         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48429         failure on missing include files.
48430
48431 2009-03-17  Eric Blake  <ebb9@byu.net>
48432
48433         doc: mention more functions added in cygwin 1.7.0
48434         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48435         addition.
48436         * doc/posix-functions/fwscanf.texi: Likewise.
48437         * doc/posix-functions/swprintf.texi: Likewise.
48438         * doc/posix-functions/swscanf.texi: Likewise.
48439         * doc/posix-functions/vfwprintf.texi: Likewise.
48440         * doc/posix-functions/vfwscanf.texi: Likewise.
48441         * doc/posix-functions/vswprintf.texi: Likewise.
48442         * doc/posix-functions/vswscanf.texi: Likewise.
48443         * doc/posix-functions/vwprintf.texi: Likewise.
48444         * doc/posix-functions/vwscanf.texi: Likewise.
48445         * doc/posix-functions/wcscasecmp.texi: Likewise.
48446         * doc/posix-functions/wcsdup.texi: Likewise.
48447         * doc/posix-functions/wcsftime.texi: Likewise.
48448         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48449         * doc/posix-functions/wprintf.texi: Likewise.
48450         * doc/posix-functions/wscanf.texi: Likewise.
48451         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48452
48453 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48454
48455         maint.mk: really add $(AM_MAKEFLAGS)
48456         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48457         was inadvertently omitted in the last commit.
48458         Spotted by Bruno Haible.
48459
48460         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48461         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48462         $(AM_MAKEFLAGS)' rather than plain `make'.
48463
48464         gnulib-tool: execute $MAKE not make
48465         * gnulib-tool: Default $MAKE to 'make'.
48466         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48467         than make.  Initialize $MAKE in the do-autobuild script.
48468
48469         gnulib-tool: use $MAKE not make in generated files
48470         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48471         make, in generated files.  Initialize $MAKE in the do-autobuild
48472         script.
48473
48474         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48475
48476         GNUmakefile: disable parallelism only for multiple, recursive targets
48477         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48478         additions in the Makefile.
48479         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48480         by Automake.
48481         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48482         are listed on the command line and at least one of them is
48483         listed in $(ALL_RECURSIVE_TARGETS).
48484
48485 2009-03-14  Bruno Haible  <bruno@clisp.org>
48486
48487         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48488         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48489         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48490         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48491         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48492         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48493         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48494         unistr/u8-uctomb.
48495         * modules/unistr/u8-strchr (Depends-on): Likewise.
48496         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48497         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48498         unistr/u16-uctomb.
48499         * modules/unistr/u16-strchr (Depends-on): Likewise.
48500         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48501
48502 2009-03-12  Bruno Haible  <bruno@clisp.org>
48503
48504         Work around select() bug on Interix 3.5.
48505         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48506         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48507         * m4/select.m4: New file.
48508         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48509         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48510         * modules/select (Files): Add m4/select.m4.
48511         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48512         * modules/nanosleep (Depends-on): Add select.
48513         * modules/poll (Depends-on): Likewise.
48514         * doc/posix-functions/select.texi: Mention the Interix bug.
48515         Reported by Markus Duft <mduft@gentoo.org>.
48516
48517         * lib/select.c: Renamed from lib/winsock-select.c.
48518         * modules/select (Files): Add lib/select.c, remove
48519         lib/winsock-select.c.
48520         (configure.ac): Update.
48521
48522 2009-03-12  Jim Meyering  <meyering@redhat.com>
48523
48524         avoid gcc warnings about unused macro definitions
48525         * lib/readtokens.c (STREQ): Remove unused definition.
48526         * lib/xmalloc.c (SIZE_MAX): Likewise.
48527         * lib/openat-die.c (N_): Likewise.
48528         * lib/mountlist.c (SIZE_MAX): Remove definition.
48529         Instead, include <stdint.h>.
48530         * lib/readutmp.c: Likewise.
48531         * modules/readutmp (Depends-on): Add stdint.
48532         * modules/mountlist (Depends-on): Add stdint.
48533         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48534
48535 2009-03-10  Bruno Haible  <bruno@clisp.org>
48536
48537         Tests for module 'mbmemcasecoll'.
48538         * modules/mbmemcasecoll-tests: New file.
48539         * tests/test-mbmemcasecoll1.sh: New file.
48540         * tests/test-mbmemcasecoll2.sh: New file.
48541         * tests/test-mbmemcasecoll3.sh: New file.
48542         * tests/test-mbmemcasecoll.c: New file.
48543
48544         New module 'mbmemcasecoll'.
48545         * lib/mbmemcasecoll.h: New file.
48546         * lib/mbmemcasecoll.c: New file.
48547         * modules/mbmemcasecoll: New file.
48548
48549         * tests/test-mbmemcasecmp.h: New file, extracted from
48550         tests/test-mbmemcasecmp.c.
48551         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48552         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48553         (main): Update.
48554         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48555
48556 2009-03-09  Bruno Haible  <bruno@clisp.org>
48557
48558         Tests for module 'mbmemcasecmp'.
48559         * modules/mbmemcasecmp-tests: New file.
48560         * tests/test-mbmemcasecmp1.sh: New file.
48561         * tests/test-mbmemcasecmp2.sh: New file.
48562         * tests/test-mbmemcasecmp3.sh: New file.
48563         * tests/test-mbmemcasecmp.c: New file.
48564
48565         New module 'mbmemcasecmp'.
48566         * lib/mbmemcasecmp.h: New file.
48567         * lib/mbmemcasecmp.c: New file.
48568         * modules/mbmemcasecmp: New file.
48569
48570 2009-03-09  Bruno Haible  <bruno@clisp.org>
48571
48572         Tests for module 'unicase/ulc-casecoll'.
48573         * modules/unicase/ulc-casecoll-tests: New file.
48574         * tests/unicase/test-ulc-casecoll1.sh: New file.
48575         * tests/unicase/test-ulc-casecoll2.sh: New file.
48576         * tests/unicase/test-ulc-casecoll.c: New file.
48577
48578         New module 'unicase/ulc-casecoll'.
48579         * lib/unicase.h (ulc_casecoll): New declaration.
48580         * lib/unicase/ulc-casecoll.c: New file.
48581         * modules/unicase/ulc-casecoll: New file.
48582
48583         New module 'unicase/ulc-casexfrm'.
48584         * lib/unicase.h (ulc_casexfrm): New declaration.
48585         * lib/unicase/ulc-casexfrm.c: New file.
48586         * modules/unicase/ulc-casexfrm: New file.
48587
48588 2009-03-09  Bruno Haible  <bruno@clisp.org>
48589
48590         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48591         invocations.
48592
48593         * m4/mbscasecmp.m4: Remove file.
48594         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48595         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48596
48597         * m4/mbscasestr.m4: Remove file.
48598         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48599         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48600
48601         * m4/mbschr.m4: Remove file.
48602         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48603         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48604
48605         * m4/mbscspn.m4: Remove file.
48606         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48607         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48608
48609         * m4/mbslen.m4: Remove file.
48610         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48611         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48612
48613         * m4/mbsncasecmp.m4: Remove file.
48614         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48615         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48616
48617         * m4/mbsnlen.m4: Remove file.
48618         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48619         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48620
48621         * m4/mbspbrk.m4: Remove file.
48622         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48623         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48624
48625         * m4/mbspcasecmp.m4: Remove file.
48626         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48627         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48628
48629         * m4/mbsrchr.m4: Remove file.
48630         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48631         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48632
48633         * m4/mbssep.m4: Remove file.
48634         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48635         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48636
48637         * m4/mbsspn.m4: Remove file.
48638         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48639         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48640
48641         * m4/mbsstr.m4: Remove file.
48642         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48643         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48644
48645         * m4/mbstok_r.m4: Remove file.
48646         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48647         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48648
48649         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48650
48651         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48652         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48653
48654         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48655
48656 2009-03-08  Bruno Haible  <bruno@clisp.org>
48657
48658         Tests for module 'unicase/ulc-casecmp'.
48659         * modules/unicase/ulc-casecmp-tests: New file.
48660         * tests/unicase/test-ulc-casecmp1.sh: New file.
48661         * tests/unicase/test-ulc-casecmp2.sh: New file.
48662         * tests/unicase/test-ulc-casecmp.c: New file.
48663
48664         New module 'unicase/ulc-casecmp'.
48665         * lib/unicase.h (ulc_casecmp): New declaration.
48666         * lib/unicase/ulc-casecmp.c: New file.
48667         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48668         'const SRC_UNIT *'.
48669         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48670         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48671         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48672         * modules/unicase/ulc-casecmp: New file.
48673
48674         Tests for module 'unicase/u32-is-cased'.
48675         * modules/unicase/u32-is-cased-tests: New file.
48676         * tests/unicase/test-u32-is-cased.c: New file.
48677
48678         Tests for module 'unicase/u16-is-cased'.
48679         * modules/unicase/u16-is-cased-tests: New file.
48680         * tests/unicase/test-u16-is-cased.c: New file.
48681
48682         Tests for module 'unicase/u8-is-cased'.
48683         * modules/unicase/u8-is-cased-tests: New file.
48684         * tests/unicase/test-u8-is-cased.c: New file.
48685         * tests/unicase/test-is-cased.h: New file.
48686
48687         New module 'unicase/u32-is-cased'.
48688         * lib/unicase/u32-is-cased.c: New file.
48689         * modules/unicase/u32-is-cased: New file.
48690
48691         New module 'unicase/u16-is-cased'.
48692         * lib/unicase/u16-is-cased.c: New file.
48693         * modules/unicase/u16-is-cased: New file.
48694
48695         New module 'unicase/u8-is-cased'.
48696         * lib/unicase/u8-is-cased.c: New file.
48697         * lib/unicase/u-is-cased.h: New file.
48698         * modules/unicase/u8-is-cased: New file.
48699
48700         Tests for module 'unicase/u32-is-casefolded'.
48701         * modules/unicase/u32-is-casefolded-tests: New file.
48702         * tests/unicase/test-u32-is-casefolded.c: New file.
48703
48704         Tests for module 'unicase/u16-is-casefolded'.
48705         * modules/unicase/u16-is-casefolded-tests: New file.
48706         * tests/unicase/test-u16-is-casefolded.c: New file.
48707
48708         Tests for module 'unicase/u8-is-casefolded'.
48709         * modules/unicase/u8-is-casefolded-tests: New file.
48710         * tests/unicase/test-u8-is-casefolded.c: New file.
48711         * tests/unicase/test-is-casefolded.h: New file.
48712
48713         New module 'unicase/u32-is-casefolded'.
48714         * lib/unicase/u32-is-casefolded.c: New file.
48715         * modules/unicase/u32-is-casefolded: New file.
48716
48717         New module 'unicase/u16-is-casefolded'.
48718         * lib/unicase/u16-is-casefolded.c: New file.
48719         * modules/unicase/u16-is-casefolded: New file.
48720
48721         New module 'unicase/u8-is-casefolded'.
48722         * lib/unicase/u8-is-casefolded.c: New file.
48723         * modules/unicase/u8-is-casefolded: New file.
48724
48725         Tests for module 'unicase/u32-is-titlecase'.
48726         * modules/unicase/u32-is-titlecase-tests: New file.
48727         * tests/unicase/test-u32-is-titlecase.c: New file.
48728
48729         Tests for module 'unicase/u16-is-titlecase'.
48730         * modules/unicase/u16-is-titlecase-tests: New file.
48731         * tests/unicase/test-u16-is-titlecase.c: New file.
48732
48733         Tests for module 'unicase/u8-is-titlecase'.
48734         * modules/unicase/u8-is-titlecase-tests: New file.
48735         * tests/unicase/test-u8-is-titlecase.c: New file.
48736         * tests/unicase/test-is-titlecase.h: New file.
48737
48738         New module 'unicase/u32-is-titlecase'.
48739         * lib/unicase/u32-is-titlecase.c: New file.
48740         * modules/unicase/u32-is-titlecase: New file.
48741
48742         New module 'unicase/u16-is-titlecase'.
48743         * lib/unicase/u16-is-titlecase.c: New file.
48744         * modules/unicase/u16-is-titlecase: New file.
48745
48746         New module 'unicase/u8-is-titlecase'.
48747         * lib/unicase/u8-is-titlecase.c: New file.
48748         * modules/unicase/u8-is-titlecase: New file.
48749
48750         Tests for module 'unicase/u32-is-lowercase'.
48751         * modules/unicase/u32-is-lowercase-tests: New file.
48752         * tests/unicase/test-u32-is-lowercase.c: New file.
48753
48754         Tests for module 'unicase/u16-is-lowercase'.
48755         * modules/unicase/u16-is-lowercase-tests: New file.
48756         * tests/unicase/test-u16-is-lowercase.c: New file.
48757
48758         Tests for module 'unicase/u8-is-lowercase'.
48759         * modules/unicase/u8-is-lowercase-tests: New file.
48760         * tests/unicase/test-u8-is-lowercase.c: New file.
48761         * tests/unicase/test-is-lowercase.h: New file.
48762
48763         New module 'unicase/u32-is-lowercase'.
48764         * lib/unicase/u32-is-lowercase.c: New file.
48765         * modules/unicase/u32-is-lowercase: New file.
48766
48767         New module 'unicase/u16-is-lowercase'.
48768         * lib/unicase/u16-is-lowercase.c: New file.
48769         * modules/unicase/u16-is-lowercase: New file.
48770
48771         New module 'unicase/u8-is-lowercase'.
48772         * lib/unicase/u8-is-lowercase.c: New file.
48773         * modules/unicase/u8-is-lowercase: New file.
48774
48775         Tests for module 'unicase/u32-is-uppercase'.
48776         * modules/unicase/u32-is-uppercase-tests: New file.
48777         * tests/unicase/test-u32-is-uppercase.c: New file.
48778
48779         Tests for module 'unicase/u16-is-uppercase'.
48780         * modules/unicase/u16-is-uppercase-tests: New file.
48781         * tests/unicase/test-u16-is-uppercase.c: New file.
48782
48783         Tests for module 'unicase/u8-is-uppercase'.
48784         * modules/unicase/u8-is-uppercase-tests: New file.
48785         * tests/unicase/test-u8-is-uppercase.c: New file.
48786         * tests/unicase/test-is-uppercase.h: New file.
48787
48788         New module 'unicase/u32-is-uppercase'.
48789         * lib/unicase/u32-is-uppercase.c: New file.
48790         * modules/unicase/u32-is-uppercase: New file.
48791
48792         New module 'unicase/u16-is-uppercase'.
48793         * lib/unicase/u16-is-uppercase.c: New file.
48794         * modules/unicase/u16-is-uppercase: New file.
48795
48796         New module 'unicase/u8-is-uppercase'.
48797         * lib/unicase/u8-is-uppercase.c: New file.
48798         * modules/unicase/u8-is-uppercase: New file.
48799
48800         New module 'unicase/u32-is-invariant'.
48801         * lib/unicase/u32-is-invariant.c: New file.
48802         * modules/unicase/u32-is-invariant: New file.
48803
48804         New module 'unicase/u16-is-invariant'.
48805         * lib/unicase/u16-is-invariant.c: New file.
48806         * modules/unicase/u16-is-invariant: New file.
48807
48808         New module 'unicase/u8-is-invariant'.
48809         * lib/unicase/u8-is-invariant.c: New file.
48810         * lib/unicase/invariant.h: New file.
48811         * lib/unicase/u-is-invariant.h: New file.
48812         * modules/unicase/u8-is-invariant: New file.
48813
48814         Tests for module 'unicase/u32-casecoll'.
48815         * modules/unicase/u32-casecoll-tests: New file.
48816         * tests/unicase/test-u32-casecoll.c: New file.
48817
48818         Tests for module 'unicase/u16-casecoll'.
48819         * modules/unicase/u16-casecoll-tests: New file.
48820         * tests/unicase/test-u16-casecoll.c: New file.
48821
48822         Tests for module 'unicase/u8-casecoll'.
48823         * modules/unicase/u8-casecoll-tests: New file.
48824         * tests/unicase/test-u8-casecoll.c: New file.
48825
48826         New module 'unicase/u32-casecoll'.
48827         * lib/unicase/u32-casecoll.c: New file.
48828         * modules/unicase/u32-casecoll: New file.
48829
48830         New module 'unicase/u16-casecoll'.
48831         * lib/unicase/u16-casecoll.c: New file.
48832         * modules/unicase/u16-casecoll: New file.
48833
48834         New module 'unicase/u8-casecoll'.
48835         * lib/unicase/u8-casecoll.c: New file.
48836         * lib/unicase/u-casecoll.h: New file.
48837         * modules/unicase/u8-casecoll: New file.
48838
48839         New module 'unicase/u32-casexfrm'.
48840         * lib/unicase/u32-casexfrm.c: New file.
48841         * modules/unicase/u32-casexfrm: New file.
48842
48843         New module 'unicase/u16-casexfrm'.
48844         * lib/unicase/u16-casexfrm.c: New file.
48845         * modules/unicase/u16-casexfrm: New file.
48846
48847         New module 'unicase/u8-casexfrm'.
48848         * lib/unicase/u8-casexfrm.c: New file.
48849         * lib/unicase/u-casexfrm.h: New file.
48850         * modules/unicase/u8-casexfrm: New file.
48851
48852         Tests for module 'unicase/u32-casecmp'.
48853         * modules/unicase/u32-casecmp-tests: New file.
48854         * tests/unicase/test-u32-casecmp.c: New file.
48855
48856         Tests for module 'unicase/u16-casecmp'.
48857         * modules/unicase/u16-casecmp-tests: New file.
48858         * tests/unicase/test-u16-casecmp.c: New file.
48859
48860         Tests for module 'unicase/u8-casecmp'.
48861         * modules/unicase/u8-casecmp-tests: New file.
48862         * tests/unicase/test-u8-casecmp.c: New file.
48863         * tests/unicase/test-casecmp.h: New file.
48864
48865         New module 'unicase/u32-casecmp'.
48866         * lib/unicase/u32-casecmp.c: New file.
48867         * modules/unicase/u32-casecmp: New file.
48868
48869         New module 'unicase/u16-casecmp'.
48870         * lib/unicase/u16-casecmp.c: New file.
48871         * modules/unicase/u16-casecmp: New file.
48872
48873         New module 'unicase/u8-casecmp'.
48874         * lib/unicase/u8-casecmp.c: New file.
48875         * lib/unicase/u-casecmp.h: New file.
48876         * modules/unicase/u8-casecmp: New file.
48877
48878         Tests for module 'unicase/u32-casefold'.
48879         * modules/unicase/u32-casefold-tests: New file.
48880         * tests/unicase/test-u32-casefold.c: New file.
48881
48882         Tests for module 'unicase/u16-casefold'.
48883         * modules/unicase/u16-casefold-tests: New file.
48884         * tests/unicase/test-u16-casefold.c: New file.
48885
48886         Tests for module 'unicase/u8-casefold'.
48887         * modules/unicase/u8-casefold-tests: New file.
48888         * tests/unicase/test-u8-casefold.c: New file.
48889
48890         New module 'unicase/u32-casefold'.
48891         * lib/unicase/u32-casefold.c: New file.
48892         * modules/unicase/u32-casefold: New file.
48893
48894         New module 'unicase/u16-casefold'.
48895         * lib/unicase/u16-casefold.c: New file.
48896         * modules/unicase/u16-casefold: New file.
48897
48898         New module 'unicase/u8-casefold'.
48899         * lib/unicase/u8-casefold.c: New file.
48900         * lib/unicase/u-casefold.h: New file.
48901         * modules/unicase/u8-casefold: New file.
48902
48903         New module 'unicase/tocasefold'.
48904         * lib/unicase/casefold.h: New file.
48905         * lib/unicase/tocasefold.c: New file.
48906         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48907         * modules/unicase/tocasefold: New file.
48908
48909         Tests for module 'unicase/u32-totitle'.
48910         * modules/unicase/u32-totitle-tests: New file.
48911         * tests/unicase/test-u32-totitle.c: New file.
48912
48913         Tests for module 'unicase/u16-totitle'.
48914         * modules/unicase/u16-totitle-tests: New file.
48915         * tests/unicase/test-u16-totitle.c: New file.
48916
48917         Tests for module 'unicase/u8-totitle'.
48918         * modules/unicase/u8-totitle-tests: New file.
48919         * tests/unicase/test-u8-totitle.c: New file.
48920
48921         New module 'unicase/u32-totitle'.
48922         * lib/unicase/u32-totitle.c: New file.
48923         * modules/unicase/u32-totitle: New file.
48924
48925         New module 'unicase/u16-totitle'.
48926         * lib/unicase/u16-totitle.c: New file.
48927         * modules/unicase/u16-totitle: New file.
48928
48929         New module 'unicase/u8-totitle'.
48930         * lib/unicase/u8-totitle.c: New file.
48931         * lib/unicase/u-totitle.h: New file.
48932         * modules/unicase/u8-totitle: New file.
48933
48934         Tests for module 'unicase/u32-tolower'.
48935         * modules/unicase/u32-tolower-tests: New file.
48936         * tests/unicase/test-u32-tolower.c: New file.
48937
48938         Tests for module 'unicase/u16-tolower'.
48939         * modules/unicase/u16-tolower-tests: New file.
48940         * tests/unicase/test-u16-tolower.c: New file.
48941
48942         Tests for module 'unicase/u8-tolower'.
48943         * modules/unicase/u8-tolower-tests: New file.
48944         * tests/unicase/test-u8-tolower.c: New file.
48945
48946         New module 'unicase/u32-tolower'.
48947         * lib/unicase/u32-tolower.c: New file.
48948         * modules/unicase/u32-tolower: New file.
48949
48950         New module 'unicase/u16-tolower'.
48951         * lib/unicase/u16-tolower.c: New file.
48952         * modules/unicase/u16-tolower: New file.
48953
48954         New module 'unicase/u8-tolower'.
48955         * lib/unicase/u8-tolower.c: New file.
48956         * modules/unicase/u8-tolower: New file.
48957
48958         Tests for module 'unicase/u32-toupper'.
48959         * modules/unicase/u32-toupper-tests: New file.
48960         * tests/unicase/test-u32-toupper.c: New file.
48961
48962         Tests for module 'unicase/u16-toupper'.
48963         * modules/unicase/u16-toupper-tests: New file.
48964         * tests/unicase/test-u16-toupper.c: New file.
48965
48966         Tests for module 'unicase/u8-toupper'.
48967         * modules/unicase/u8-toupper-tests: New file.
48968         * tests/unicase/test-u8-toupper.c: New file.
48969
48970         New module 'unicase/u32-toupper'.
48971         * lib/unicase/u32-toupper.c: New file.
48972         * modules/unicase/u32-toupper: New file.
48973
48974         New module 'unicase/u16-toupper'.
48975         * lib/unicase/u16-toupper.c: New file.
48976         * modules/unicase/u16-toupper: New file.
48977
48978         New module 'unicase/u8-toupper'.
48979         * lib/unicase/u8-toupper.c: New file.
48980         * modules/unicase/u8-toupper: New file.
48981
48982         New module 'unicase/u32-casemap'.
48983         * lib/unicase/u32-casemap.c: New file.
48984         * modules/unicase/u32-casemap: New file.
48985
48986         New module 'unicase/u16-casemap'.
48987         * lib/unicase/u16-casemap.c: New file.
48988         * modules/unicase/u16-casemap: New file.
48989
48990         New module 'unicase/u8-casemap'.
48991         * lib/unicase/unicasemap.h: New file.
48992         * lib/unicase/u8-casemap.c: New file.
48993         * lib/unicase/u-casemap.h: New file.
48994         * modules/unicase/u8-casemap: New file.
48995
48996         New module 'unicase/special-casing'.
48997         * lib/unicase/special-casing.h: New file.
48998         * lib/unicase/special-casing.c: New file.
48999         * lib/unicase/special-casing-table.gperf: New file, generated by
49000         gen-uni-tables.c.
49001         * modules/unicase/special-casing: New file.
49002
49003         Tests for module 'unicase/locale-language'.
49004         * modules/unicase/locale-language-tests: New file.
49005         * tests/unicase/test-locale-language.sh: New file.
49006         * tests/unicase/test-locale-language.c: New file.
49007
49008         New module 'unicase/locale-language'.
49009         * lib/unicase/locale-language.c: New file.
49010         * lib/unicase/locale-languages.gperf: New file.
49011         * modules/unicase/locale-language: New file.
49012
49013         Generate more tables for case conversion and case folding.
49014         * lib/gen-uni-tables.c (SCC_*): New enum items.
49015         (struct special_casing_rule): New type.
49016         (casing_rules, num_casing_rules, allocated_casing_rules): New
49017         variables.
49018         (add_casing_rule, fill_casing_rules): New functions.
49019         (struct casefold_rule): New type.
49020         (casefolding_rules, num_casefolding_rules,
49021         allocated_casefolding_rules): New variables.
49022         (fill_casefolding_rules): New function.
49023         (unicode_casefold): New variable.
49024         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49025         sort_casing_rules, output_casing_rules): New functions.
49026         (main): Accept to more arguments: SpecialCasing.txt and
49027         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49028         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49029         Output mapping for casefolding.
49030
49031         * lib/unicase.h: Include stdbool.h, uninorm.h.
49032         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49033         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49034         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49035         arguments.
49036         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49037         resultp arguments.
49038         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49039         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49040         resultp arguments.
49041         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49042         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49043         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49044         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49045         declarations.
49046         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49047
49048 2009-03-08  Bruno Haible  <bruno@clisp.org>
49049
49050         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49051         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49052         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49053         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49054
49055 2009-03-07  Bruno Haible  <bruno@clisp.org>
49056
49057         Adjust u*_normcmp, u*_normcoll API.
49058         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49059         u16_normcoll, u32_normcoll): Change failure conventions.
49060         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49061         errno and return -1.
49062         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49063
49064 2009-03-07  Bruno Haible  <bruno@clisp.org>
49065
49066         Tests for module 'uninorm/u32-normcoll'.
49067         * modules/uninorm/u32-normcoll-tests: New file.
49068         * tests/uninorm/test-u32-normcoll.c: New file.
49069
49070         Tests for module 'uninorm/u16-normcoll'.
49071         * modules/uninorm/u16-normcoll-tests: New file.
49072         * tests/uninorm/test-u16-normcoll.c: New file.
49073
49074         Tests for module 'uninorm/u8-normcoll'.
49075         * modules/uninorm/u8-normcoll-tests: New file.
49076         * tests/uninorm/test-u8-normcoll.c: New file.
49077
49078 2009-03-07  Bruno Haible  <bruno@clisp.org>
49079
49080         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49081         tests/uninorm/test-u32-normcmp.c.
49082         * tests/uninorm/test-u32-normcmp.c: Include it.
49083         (test_nonascii): New function, extracted from main. Add some more
49084         tests.
49085         (main): Invoke test_ascii and test_nonascii.
49086         * modules/uninorm/u32-normcmp-tests (Files): Add
49087         tests/uninorm/test-u32-normcmp.h.
49088         (Depends-on): Remove uninorm/u32-normcmp.
49089
49090         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49091         tests/uninorm/test-u16-normcmp.c.
49092         * tests/uninorm/test-u16-normcmp.c: Include it.
49093         (test_nonascii): New function, extracted from main. Add some more
49094         tests.
49095         (main): Invoke test_ascii and test_nonascii.
49096         * modules/uninorm/u16-normcmp-tests (Files): Add
49097         tests/uninorm/test-u16-normcmp.h.
49098         (Depends-on): Remove uninorm/u16-normcmp.
49099
49100         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49101         tests/uninorm/test-u8-normcmp.c.
49102         * tests/uninorm/test-u8-normcmp.c: Include it.
49103         (test_nonascii): New function, extracted from main. Add some more
49104         tests.
49105         (main): Invoke test_ascii and test_nonascii.
49106         * modules/uninorm/u8-normcmp-tests (Files): Add
49107         tests/uninorm/test-u8-normcmp.h.
49108         (Depends-on): Remove uninorm/u8-normcmp.
49109
49110 2009-03-07  Bruno Haible  <bruno@clisp.org>
49111
49112         New module 'uninorm/u32-normcoll'.
49113         * lib/uninorm/u32-normcoll.c: New file.
49114         * modules/uninorm/u32-normcoll: New file.
49115
49116         New module 'uninorm/u16-normcoll'.
49117         * lib/uninorm/u16-normcoll.c: New file.
49118         * modules/uninorm/u16-normcoll: New file.
49119
49120         New module 'uninorm/u8-normcoll'.
49121         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49122         declarations.
49123         * lib/uninorm/u8-normcoll.c: New file.
49124         * lib/uninorm/u-normcoll.h: New file.
49125         * modules/uninorm/u8-normcoll: New file.
49126
49127         New module 'uninorm/u32-normxfrm'.
49128         * lib/uninorm/u32-normxfrm.c: New file.
49129         * modules/uninorm/u32-normxfrm: New file.
49130
49131         New module 'uninorm/u16-normxfrm'.
49132         * lib/uninorm/u16-normxfrm.c: New file.
49133         * modules/uninorm/u16-normxfrm: New file.
49134
49135         New module 'uninorm/u8-normxfrm'.
49136         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49137         declarations.
49138         * lib/uninorm/u8-normxfrm.c: New file.
49139         * lib/uninorm/u-normxfrm.h: New file.
49140         * modules/uninorm/u8-normxfrm: New file.
49141
49142 2009-03-07  Bruno Haible  <bruno@clisp.org>
49143
49144         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49145         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49146         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49147
49148 2009-03-07  Bruno Haible  <bruno@clisp.org>
49149
49150         New module 'memxfrm'.
49151         * lib/memxfrm.h: New file.
49152         * lib/memxfrm.c: New file.
49153         * modules/memxfrm: New file.
49154
49155 2009-03-07  Bruno Haible  <bruno@clisp.org>
49156
49157         New module 'memcmp2'.
49158         * lib/memcmp2.h: New file.
49159         * lib/memcmp2.c: New file.
49160         * modules/memcmp2: New file.
49161
49162 2009-03-07  Bruno Haible  <bruno@clisp.org>
49163
49164         Tests for module 'uninorm/decomposing-form'.
49165         * modules/uninorm/decomposing-form-tests: New file.
49166         * tests/uninorm/test-decomposing-form.c: New file.
49167
49168         New module 'uninorm/decomposing-form'.
49169         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49170         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49171         Add 'decomposing_variant' field.
49172         * lib/uninorm/decomposing-form.c: New file.
49173         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49174         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49175         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49176         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49177         * modules/uninorm/decomposing-form: New file.
49178         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49179         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49180
49181 2009-03-07  Bruno Haible  <bruno@clisp.org>
49182
49183         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49184         strings.
49185
49186 2009-03-06  Bruno Haible  <bruno@clisp.org>
49187
49188         Tests for module 'uninorm/u32-normcmp'.
49189         * tests/uninorm/test-u32-normcmp.c: New file.
49190         * modules/uninorm/u32-normcmp-tests: New file.
49191
49192         Tests for module 'uninorm/u16-normcmp'.
49193         * tests/uninorm/test-u16-normcmp.c: New file.
49194         * modules/uninorm/u16-normcmp-tests: New file.
49195
49196         Tests for module 'uninorm/u8-normcmp'.
49197         * tests/uninorm/test-u8-normcmp.c: New file.
49198         * modules/uninorm/u8-normcmp-tests: New file.
49199
49200         New module 'uninorm/u32-normcmp'.
49201         * lib/uninorm/u32-normcmp.c: New file.
49202         * modules/uninorm/u32-normcmp: New file.
49203
49204         New module 'uninorm/u16-normcmp'.
49205         * lib/uninorm/u16-normcmp.c: New file.
49206         * modules/uninorm/u16-normcmp: New file.
49207
49208         New module 'uninorm/u8-normcmp'.
49209         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49210         declarations.
49211         * lib/uninorm/u8-normcmp.c: New file.
49212         * lib/uninorm/u-normcmp.h: New file.
49213         * modules/uninorm/u8-normcmp: New file.
49214
49215 2009-03-06  Bruno Haible  <bruno@clisp.org>
49216
49217         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49218         Reported by Eric Blake.
49219
49220 2009-03-06  Eric Blake  <ebb9@byu.net>
49221             Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49224         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49225         condition.
49226         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49227         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49228         condition.
49229         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49230
49231 2009-03-06  Eric Blake  <ebb9@byu.net>
49232
49233         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49234         to avoid compiler warnings.
49235         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49236
49237 2009-03-05  Bruno Haible  <bruno@clisp.org>
49238
49239         * tests/test-ftell.c (main): Disable test beyond end of file on
49240         FreeMiNT.
49241         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49242
49243 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49244
49245         * lib/filevercmp.c: Move hidden files up in ordering.
49246         * tests/test-filevercmp.c: Add tests for hidden files.
49247
49248 2009-03-04  Bruno Haible  <bruno@clisp.org>
49249
49250         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49251         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49252         AM_CFLAGS.
49253         Reported by Simon Josefsson.
49254
49255 2009-03-03  Bruno Haible  <bruno@clisp.org>
49256
49257         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49258         Reported by Simon Josefsson.
49259
49260         * doc/ld-version-script.texi: Update node reference.
49261
49262 2009-03-03  Bruno Haible  <bruno@clisp.org>
49263
49264         * modules/visibility (License): Change to 'unlimited'.
49265         Suggested by Simon Josefsson.
49266
49267 2009-03-03  Jim Meyering  <meyering@redhat.com>
49268
49269         unlinkdir: cannot_unlink_dir may modify process state
49270         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49271         it's neither thread-safe nor appropriate for use in a library.
49272
49273 2009-03-03  Eric Blake  <ebb9@byu.net>
49274
49275         test-closein: silence test under Darwin
49276         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49277         care if it dies from EPIPE or EBADF.
49278
49279 2009-03-03  Bruno Haible  <bruno@clisp.org>
49280
49281         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49282         earlier.
49283         * doc/visibility.texi: Fix @node and @section.
49284
49285 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49286
49287         * doc/gnulib.texi: Link to sections for ld version script and
49288         visibility.
49289         * doc/visibility.texi: Add @node and @section.
49290         * modules/ld-version-script: New module.
49291         * m4/ld-version-script.m4: New file.
49292         * doc/ld-version-script.texi: New file.
49293
49294 2009-03-02  David Lutterkort  <lutter@redhat.com>
49295
49296         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49298
49299 2009-03-02  Bruno Haible  <bruno@clisp.org>
49300
49301         * doc/visibility.texi: Mention libtool's -export-symbols option.
49302
49303 2009-03-02  Jim Meyering  <meyering@redhat.com>
49304
49305         announce-gen: new option: --no-print-checksums
49306         * build-aux/announce-gen (usage): Describe it.
49307         (print_checksums): Print a newline here, not in the [*] footnote.
49308         (main): Honor it.
49309
49310 2009-03-01  Bruno Haible  <bruno@clisp.org>
49311
49312         Use socklen_t in the native Windows replacements prototypes.
49313         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49314         instead of 'int'.
49315         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49316         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49317         * modules/getsockopt (Depends-on): Add socklen.
49318         * modules/setsockopt (Depends-on): Add socklen.
49319
49320 2009-03-01  Bruno Haible  <bruno@clisp.org>
49321
49322         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49323         least 4.2.
49324
49325 2009-03-01  Eric Blake  <ebb9@byu.net>
49326             Bruno Haible  <bruno@clisp.org>
49327
49328         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49329         error messages.
49330         * lib/wait-process.c (wait_subprocess): Omit error message about
49331         deadly signal sent to the child of termsigp != NULL.
49332
49333 2009-03-01  Eric Blake  <ebb9@byu.net>
49334
49335         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49336
49337 2009-03-01  Bruno Haible  <bruno@clisp.org>
49338
49339         Avoid a gcc warning.
49340         * tests/test-sched.c (b): Make global.
49341         Reported by Eric Blake.
49342
49343 2009-01-19  Martin Lambers  <marlam@marlam.de>
49344
49345         Provide POSIX semantics for socket timeout options on W32.
49346         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49347         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49348         * modules/setsockopt: Depend on sys_time module for struct timeval.
49349         * modules/getsockopt: Depend on sys_time module for struct timeval.
49350
49351 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49352
49353         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49354         __USE_GNU, for consistency with netdb.in.h.
49355         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49356
49357 2009-03-01  Bruno Haible  <bruno@clisp.org>
49358
49359         More support for FreeMiNT.
49360         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49361         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49362
49363 2009-03-01  Bruno Haible  <bruno@clisp.org>
49364
49365         More support for FreeMiNT.
49366         * lib/fpurge.c (fpurge): Correct last commit.
49367         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49368
49369 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49370
49371         Fix unportable awk script in vc-list-files.
49372         * build-aux/vc-list-files: In the replacement awk script, use
49373         substr with a second argument of 1, not zero.
49374         Report by Simon Josefsson.
49375
49376 2009-02-28  Bruno Haible  <bruno@clisp.org>
49377
49378         More support for FreeMiNT.
49379         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49380         to FreeMiNT today.
49381         * lib/fwriting.c (fwriting): Likewise.
49382         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49383
49384 2009-02-28  Bruno Haible  <bruno@clisp.org>
49385
49386         * tests/test-freadseek.c (main): Disable test beyond end of file on
49387         FreeMiNT.
49388         * tests/test-ftello.c (main): Likewise.
49389         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49390
49391 2009-02-28  Bruno Haible  <bruno@clisp.org>
49392
49393         Add tentative support for FreeMiNT.
49394         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49395         * lib/fpurge.c (fpurge): Likewise.
49396         * lib/freadable.c (freadable): Likewise.
49397         * lib/freading.c (freading): Likewise.
49398         * lib/freadptr.c (freadptr): Likewise.
49399         * lib/freadseek.c (freadptrinc): Likewise.
49400         * lib/fseeko.c (rpl_fseeko): Likewise.
49401         * lib/fseterr.c (fseterr): Likewise.
49402         * lib/fwritable.c (fwritable): Likewise.
49403         * lib/fwriting.c (fwriting): Likewise.
49404         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49405         Hourihane.
49406         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49407
49408 2009-02-28  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49411         SIGCHLD.
49412         Reported by Jim Meyering.
49413
49414 2009-02-28  Bruno Haible  <bruno@clisp.org>
49415
49416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49417         Mention the results of these tests on various platforms.
49418         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49419         order.
49420         * doc/posix-functions/printf.texi: Likewise.
49421         * doc/posix-functions/snprintf.texi: Likewise.
49422         * doc/posix-functions/sprintf.texi: Likewise.
49423         * doc/posix-functions/vfprintf.texi: Likewise.
49424         * doc/posix-functions/vprintf.texi: Likewise.
49425         * doc/posix-functions/vsnprintf.texi: Likewise.
49426         * doc/posix-functions/vsprintf.texi: Likewise.
49427         * doc/glibc-functions/obstack_printf.texi: Likewise.
49428         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49429
49430 2009-02-28  Bruno Haible  <bruno@clisp.org>
49431
49432         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49433         Reported by Loïc Minier <lool@dooz.org>.
49434
49435 2009-02-27  Bruno Haible  <bruno@clisp.org>
49436
49437         * gnulib-tool (func_import): Make the sed expression used to create the
49438         sed script for updating the .gitignore file POSIX compliant.
49439         Reported by Eric Blake.
49440
49441 2009-02-27  Bruno Haible  <bruno@clisp.org>
49442
49443         * gnulib-tool (sed): Don't alias as "sed --posix".
49444         Reported by Eric Blake.
49445
49446 2009-02-27  Bruno Haible  <bruno@clisp.org>
49447
49448         Avoid test link errors.
49449         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49450         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49451         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49452         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49454
49455 2009-02-27  Bruno Haible  <bruno@clisp.org>
49456
49457         Avoid spurious "(cached)" in configure output.
49458         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49459         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49460         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49461         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49462         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49463         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49464         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49465         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49466         Reported by Eric Blake.
49467
49468 2009-02-27  Eric Blake  <ebb9@byu.net>
49469
49470         printf: fix regression in previous patch
49471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49472
49473 2009-02-27  Bruno Haible  <bruno@clisp.org>
49474
49475         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49476         value.
49477         * lib/stdint.in.h: Likewise.
49478         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49479
49480 2009-02-27  Eric Blake  <ebb9@byu.net>
49481
49482         doc: mention more functions added in cygwin 1.7.0
49483         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49484         addition.
49485         * doc/posix-functions/open_wmemstream.texi: Likewise.
49486         * doc/posix-functions/wcsnlen.texi: Likewise.
49487         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49488         * doc/posix-functions/wcstod.texi: Likewise.
49489         * doc/posix-functions/wcstof.texi: Likewise.
49490         * doc/posix-functions/wcstoimax.texi: Likewise.
49491         * doc/posix-functions/wcstok.texi: Likewise.
49492         * doc/posix-functions/wcstoumax.texi: Likewise.
49493
49494         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49496         * doc/posix-functions/fprintf.texi: Update.
49497         * doc/posix-functions/printf.texi: Update.
49498         * doc/posix-functions/snprintf.texi: Update.
49499         * doc/posix-functions/sprintf.texi: Update.
49500         * doc/posix-functions/vfprintf.texi: Update.
49501         * doc/posix-functions/vprintf.texi: Update.
49502         * doc/posix-functions/vsnprintf.texi: Update.
49503         * doc/posix-functions/vsprintf.texi: Update.
49504         * doc/glibc-functions/obstack_printf.texi: Update.
49505         * doc/glibc-functions/obstack_vprintf.texi: Update.
49506
49507 2009-02-26  Eric Blake  <ebb9@byu.net>
49508
49509         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49510         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49511         compilation bug by using runtime conversion.
49512         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49513         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49514         * modules/ceill-tests (Files): Use nan.h.
49515         * modules/floorl-tests (Files): Likewise.
49516         * modules/frexpl-tests (Files): Likewise.
49517         * modules/isnanl-tests (Files): Likewise.
49518         * modules/ldexpl-tests (Files): Likewise.
49519         * modules/roundl-tests (Files): Likewise.
49520         * modules/truncl-tests (Files): Likewise.
49521         * tests/test-ceill.c (main): Use a working NaN.
49522         * tests/test-floorl.c (main): Likewise.
49523         * tests/test-frexpl.c (main): Likewise.
49524         * tests/test-isnan.c (test_long_double): Likewise.
49525         * tests/test-isnanl.h (main): Likewise.
49526         * tests/test-ldexpl.h (main): Likewise.
49527         * tests/test-roundl.h (main): Likewise.
49528         * tests/test-truncl.h (main): Likewise.
49529         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49530
49531 2009-02-26  Eric Blake  <ebb9@byu.net>
49532             Bruno Haible  <bruno@clisp.org>
49533
49534         Work around a *printf bug with %ls on Solaris.
49535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49536         precision is specified, sprintf stops converting the wide string
49537         argument when the number of bytes that have been produced by this
49538         conversion equals or exceeds the precision.
49539         * doc/posix-functions/fprintf.texi: Update.
49540         * doc/posix-functions/printf.texi: Update.
49541         * doc/posix-functions/snprintf.texi: Update.
49542         * doc/posix-functions/sprintf.texi: Update.
49543         * doc/posix-functions/vfprintf.texi: Update.
49544         * doc/posix-functions/vprintf.texi: Update.
49545         * doc/posix-functions/vsnprintf.texi: Update.
49546         * doc/posix-functions/vsprintf.texi: Update.
49547         * doc/glibc-functions/obstack_printf.texi: Update.
49548         * doc/glibc-functions/obstack_vprintf.texi: Update.
49549
49550 2009-02-26  Eric Blake  <ebb9@byu.net>
49551
49552         stdlib: favor compiler check of random.h
49553         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49554         to avoid an ObjC random.h installed by Swarm.
49555
49556 2009-02-26  Bruno Haible  <bruno@clisp.org>
49557
49558         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49559         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49560         Reported by Gary V. Vaughan <gary@gnu.org>.
49561
49562 2009-02-26  Bruno Haible  <bruno@clisp.org>
49563
49564         Fix *printf behaviour regarding the %ls directive.
49565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49566         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49567         NEED_PRINTF_DIRECTIVE_LS.
49568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49569         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49571         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49572         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49573         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49574         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49579         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49583         * doc/posix-functions/fprintf.texi: Update.
49584         * doc/posix-functions/printf.texi: Update.
49585         * doc/posix-functions/snprintf.texi: Update.
49586         * doc/posix-functions/sprintf.texi: Update.
49587         * doc/posix-functions/vfprintf.texi: Update.
49588         * doc/posix-functions/vprintf.texi: Update.
49589         * doc/posix-functions/vsnprintf.texi: Update.
49590         * doc/posix-functions/vsprintf.texi: Update.
49591         * doc/glibc-functions/obstack_printf.texi: Update.
49592         * doc/glibc-functions/obstack_vprintf.texi: Update.
49593         Reported by Eric Blake.
49594
49595 2009-02-25  Bruno Haible  <bruno@clisp.org>
49596
49597         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49598         with known value.
49599         Reported by Gary V. Vaughan <gary@gnu.org>.
49600
49601 2009-02-25  Bruno Haible  <bruno@clisp.org>
49602
49603         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49604         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49605         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49606         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49607         Reported by Gary V. Vaughan <gary@gnu.org>.
49608
49609 2009-02-25  Bruno Haible  <bruno@clisp.org>
49610
49611         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49612         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49613         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49614         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49615         Reported by Gary V. Vaughan <gary@gnu.org>.
49616
49617 2009-02-25  Eric Blake  <ebb9@byu.net>
49618
49619         tests: skip fseek/ftell tests if ungetc is broken
49620         * m4/ungetc.m4: New file.
49621         * modules/fseek-tests: Split test, so ungetc dependency is
49622         separate from rest of test.
49623         * modules/fseeko-tests: Likewise.
49624         * modules/ftell-tests: Likewise.
49625         * modules/ftello-tests: Likewise.
49626         * tests/test-fseek.c (main): Isolate ungetc dependency.
49627         * tests/test-fseeko.c (main): Likewise.
49628         * tests/test-ftell.c (main): Likewise.
49629         * tests/test-ftello.c (main): Likewise.
49630         * tests/test-fseek2.sh: New file.
49631         * tests/test-fseeko2.sh: Likewise.
49632         * tests/test-ftell2.sh: Likewise.
49633         * tests/test-ftello2.sh: Likewise.
49634
49635 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49636
49637         test-getaddrinfo: fix usage of skip return code 77
49638         * tests/test-gettaddrinfo.c: Return skip code 77 only
49639         for first occurrence of skip (4x77 is not 77)
49640
49641 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49642
49643         strtod: avoid C99 decl-after-statement
49644         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49645
49646 2009-02-24  Eric Blake  <ebb9@byu.net>
49647
49648         strtod: detect HP-UX 11.31 bug
49649         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49650         Reported by Gary V. Vaughan.
49651
49652 2009-02-23  Bruno Haible  <bruno@clisp.org>
49653
49654         Fix invalid read past end of memory block.
49655         * lib/vasnprintf.c (DCHAR_SET): Define.
49656         (local_wcslen): Define only when needed.
49657         (local_strnlen, local_wcsnlen): New functions.
49658         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49659         directives that involve a conversion ourselves.
49660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49661         wcsnlen, mbrtowc, wcrtomb.
49662         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49663         * tests/test-vasprintf-posix.c (test_function): Likewise.
49664         * tests/test-snprintf-posix.h (test_function): Likewise.
49665         * tests/test-sprintf-posix.h (test_function): Likewise.
49666         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49667
49668 2009-02-22  Bruno Haible  <bruno@clisp.org>
49669
49670         Implement new clarified decomposition of Hangul syllables.
49671         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49672         of type LTV, return only a pairwise decomposition.
49673         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49674         Likewise.
49675         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49676         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49677         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49678
49679 2009-02-22  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49682         zero-length results and shrink excess allocated memory.
49683         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49684         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49685         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49686         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49687         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49688         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49689         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49690         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49691         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49692         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49693         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49694         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49695
49696 2009-02-21  Bruno Haible  <bruno@clisp.org>
49697
49698         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49699         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49700         spaces after a period. Put a space between a macro name and its
49701         argument list. Trivial rewordings.
49702         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49703         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49704         (main): Return 0 explicitly.
49705
49706 2009-02-21  Bruno Haible  <bruno@clisp.org>
49707
49708         Tests for module 'uninorm/filter'.
49709         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49710         * modules/uninorm/filter-tests: New file.
49711
49712         New module 'uninorm/filter'.
49713         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49714         uninorm_filter_flush, uninorm_filter_free): New declarations.
49715         * lib/uninorm/uninorm-filter.c: New file.
49716         * modules/uninorm/filter: New file.
49717
49718 2009-02-21  Bruno Haible  <bruno@clisp.org>
49719
49720         Tests for module 'uninorm/nfkc'.
49721         * tests/uninorm/test-nfkc.c: New file.
49722         * tests/uninorm/test-u8-nfkc.c: New file.
49723         * tests/uninorm/test-u16-nfkc.c: New file.
49724         * tests/uninorm/test-u32-nfkc.c: New file.
49725         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49726         * tests/uninorm/test-u32-nfkc-big.c: New file.
49727         * modules/uninorm/nfkc-tests: New file.
49728
49729         New module 'uninorm/nfkc'.
49730         * lib/uninorm/nfkc.c: New file.
49731         * modules/uninorm/nfkc: New file.
49732
49733         Tests for module 'uninorm/nfkd'.
49734         * tests/uninorm/test-nfkd.c: New file.
49735         * tests/uninorm/test-u8-nfkd.c: New file.
49736         * tests/uninorm/test-u16-nfkd.c: New file.
49737         * tests/uninorm/test-u32-nfkd.c: New file.
49738         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49739         * tests/uninorm/test-u32-nfkd-big.c: New file.
49740         * modules/uninorm/nfkd-tests: New file.
49741
49742         New module 'uninorm/nfkd'.
49743         * lib/uninorm/nfkd.c: New file.
49744         * modules/uninorm/nfkd: New file.
49745
49746         Tests for module 'uninorm/nfc'.
49747         * tests/uninorm/test-nfc.c: New file.
49748         * tests/uninorm/test-u8-nfc.c: New file.
49749         * tests/uninorm/test-u16-nfc.c: New file.
49750         * tests/uninorm/test-u32-nfc.c: New file.
49751         * tests/uninorm/test-u32-nfc-big.sh: New file.
49752         * tests/uninorm/test-u32-nfc-big.c: New file.
49753         * modules/uninorm/nfc-tests: New file.
49754
49755         New module 'uninorm/nfc'.
49756         * lib/uninorm/nfc.c: New file.
49757         * modules/uninorm/nfc: New file.
49758
49759         Tests for module 'uninorm/nfd'.
49760         * tests/uninorm/test-nfd.c: New file.
49761         * tests/uninorm/test-u8-nfd.c: New file.
49762         * tests/uninorm/test-u16-nfd.c: New file.
49763         * tests/uninorm/test-u32-nfd.c: New file.
49764         * tests/uninorm/test-u32-nfd-big.sh: New file.
49765         * tests/uninorm/test-u32-nfd-big.c: New file.
49766         * tests/uninorm/test-u32-normalize-big.h: New file.
49767         * tests/uninorm/test-u32-normalize-big.c: New file.
49768         * tests/uninorm/NormalizationTest.txt: New file, created from
49769         Unicode 5.1.0 NormalizationTest.txt.
49770         * modules/uninorm/nfd-tests: New file.
49771
49772         New module 'uninorm/nfd'.
49773         * lib/uninorm/nfd.c: New file.
49774         * modules/uninorm/nfd: New file.
49775
49776         New module 'uninorm/u32-normalize'.
49777         * lib/uninorm/u32-normalize.c: New file.
49778         * modules/uninorm/u32-normalize: New file.
49779
49780         New module 'uninorm/u16-normalize'.
49781         * lib/uninorm/u16-normalize.c: New file.
49782         * modules/uninorm/u16-normalize: New file.
49783
49784         New module 'uninorm/u8-normalize'.
49785         * lib/uninorm/u8-normalize.c: New file.
49786         * lib/uninorm/normalize-internal.h: New file.
49787         * lib/uninorm/u-normalize-internal.h: New file.
49788         * modules/uninorm/u8-normalize: New file.
49789
49790         New module 'uninorm/decompose-internal'.
49791         * lib/uninorm/decompose-internal.c: New file.
49792         * modules/uninorm/decompose-internal: New file.
49793
49794         Tests for module 'uninorm/composition'.
49795         * tests/uninorm/test-composition.c: New file.
49796         * modules/uninorm/composition-tests: New file.
49797
49798         New module 'uninorm/composition'.
49799         * lib/uninorm/composition.c: New file.
49800         * lib/uninorm/composition-table.gperf: New file, generated by
49801         gen-uni-tables.
49802         * modules/uninorm/composition: New file.
49803
49804         Tests for module 'uninorm/compat-decomposition'.
49805         * tests/uninorm/test-compat-decomposition.c: New file.
49806         * modules/uninorm/compat-decomposition-tests: New file.
49807
49808         New module 'uninorm/compat-decomposition'.
49809         * lib/uninorm/decompose-internal.h: New file.
49810         * lib/uninorm/compat-decomposition.c: New file.
49811         * modules/uninorm/compat-decomposition: New file.
49812
49813         Tests for module 'uninorm/canonical-decomposition'.
49814         * tests/uninorm/test-canonical-decomposition.c: New file.
49815         * modules/uninorm/canonical-decomposition-tests: New file.
49816
49817         New module 'uninorm/canonical-decomposition'.
49818         * lib/uninorm/canonical-decomposition.c: New file.
49819         * modules/uninorm/canonical-decomposition: New file.
49820
49821         Tests for module 'uninorm/decomposition'.
49822         * tests/uninorm/test-decomposition.c: New file.
49823         * modules/uninorm/decomposition-tests: New file.
49824
49825         New module 'uninorm/decomposition'.
49826         * lib/uninorm/decomposition.c: New file.
49827         * modules/uninorm/decomposition: New file.
49828
49829         New module 'uninorm/decomposition-table'.
49830         * lib/uninorm/decomposition-table.h: New file.
49831         * lib/uninorm/decomposition-table.c: New file.
49832         * lib/uninorm/decomposition-table1.h: New file, generated by
49833         gen-uni-tables.
49834         * lib/uninorm/decomposition-table2.h: New file, generated by
49835         gen-uni-tables.
49836         * modules/uninorm/decomposition-table: New file.
49837
49838         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49839         (UC_DECOMP_*): New enumeration items.
49840         (get_decomposition): New function.
49841         (struct decomp_table): New type.
49842         (output_decomposition, output_decomposition_tables): New functions.
49843         (unicode_composition_exclusions): New variable.
49844         (fill_composition_exclusions, debug_output_composition_tables): New
49845         functions.
49846         (main): Accept one more argument. Invoke fill_composition_exclusions.
49847         Output decomposition and composition tables.
49848
49849         New module 'uninorm/base'.
49850         * lib/uninorm.h: New file.
49851         * lib/unictype.h: Update comment.
49852         * modules/uninorm/base: New file.
49853
49854 2009-02-21  David Lutterkort  <lutter@redhat.com>
49855
49856         Tests for module 'safe-alloc'.
49857         * tests/test-safe-alloc.c: New file.
49858         * modules/safe-alloc-tests: New file.
49859
49860         New module 'safe-alloc'.
49861         * lib/safe-alloc.h: New file.
49862         * lib/safe-alloc.c: New file.
49863         * m4/safe-alloc.m4: New file.
49864         * modules/safe-alloc: New file.
49865         * doc/safe-alloc.texi: New file.
49866         * doc/gnulib.texi: Include it.
49867         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49868         safe-alloc.
49869
49870 2009-02-18  Bruno Haible  <bruno@clisp.org>
49871
49872         Fix link error on non-glibc systems.
49873         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49874         variable.
49875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49876
49877 2009-02-18  Jim Meyering  <meyering@redhat.com>
49878
49879         fts: avoid used-uninitialized error due to recent change
49880         * lib/fts.c (fts_read): Guard uses of the new member,
49881         parent->fts_n_dirs_remaining, since it's not relevant for
49882         the parent of a directory specified on the command-line.
49883
49884 2009-02-17  James Youngman  <jay@gnu.org>
49885             Bruno Haible  <bruno@clisp.org>
49886
49887         * m4/include_next.m4: Reformulate comment.
49888
49889 2009-02-16  Jim Meyering  <meyering@redhat.com>
49890
49891         fts: add #if guards so that the fts_lgpl module still builds
49892         * lib/fts.c: Guard just-added hash-table-using parts with
49893         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49894         Reported by Simon Josefsson.
49895
49896 2009-02-15  Bruno Haible  <bruno@clisp.org>
49897
49898         * modules/array-mergesort-tests: New file.
49899         * tests/test-array-mergesort.c: New file.
49900
49901         New module 'array-mergesort'.
49902         * modules/array-mergesort: New file.
49903         * lib/array-mergesort.h: New file.
49904
49905 2009-02-15  Bruno Haible  <bruno@clisp.org>
49906
49907         Fix 2009-02-07 commit.
49908         * lib/gen-uni-tables.c (output_predicate, output_category,
49909         output_combclass, output_bidi_category, output_decimal_digit,
49910         output_digit, output_numeric, output_mirror, output_scripts,
49911         output_ident_category, output_simple_mapping): Fix format directives.
49912         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49913
49914 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49915
49916         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49917         fixes are available from IBM.
49918
49919 2009-02-13  Jim Meyering  <meyering@redhat.com>
49920
49921         fts: arrange not to stat non-directories in more cases
49922         This makes GNU find (when it doesn't need to stat each file)
49923         *much* more efficient at traversing reiserfs file systems.
49924         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49925         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49926         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49927         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49928         (leaf_optimization_applies): New function.
49929         (LCO_hash, LCO_compare): New helper functions.
49930         (link_count_optimize_ok): New function.
49931         (fts_stat): Initialize new member (if dir).
49932         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49933         we've just stat'ed a directory.  Skip the stat call when possible.
49934         ---
49935         Note this AFS-related exchange:
49936         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49937         and note find's pioctl call in find/fstype.c.
49938         But that is necessary only if you want to enable the
49939         optimization for AFS, and for now, I don't.
49940
49941         fts: move a function definition "up" (no semantic change)
49942         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49943         "up" to precede upcoming use of a related function.
49944
49945 2009-02-11  Jim Meyering  <meyering@redhat.com>
49946
49947         fts: correct internal computation of nlinks (optimization-related)
49948         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49949         whether the current entry is a directory, so don't test it.
49950
49951 2009-02-10  Bruno Haible  <bruno@clisp.org>
49952
49953         Tests for module 'uniwbrk/ulc-wordbreaks'.
49954         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49955         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49956         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49957
49958         Tests for module 'uniwbrk/u32-wordbreaks'.
49959         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49960         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49961
49962         Tests for module 'uniwbrk/u16-wordbreaks'.
49963         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49964         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49965
49966         Tests for module 'uniwbrk/u8-wordbreaks'.
49967         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49968         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49969
49970 2009-02-10  Bruno Haible  <bruno@clisp.org>
49971
49972         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49973         property.
49974         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49975         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49976         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49977
49978 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49979
49980         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49981         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49982
49983 2009-02-10  Bruno Haible  <bruno@clisp.org>
49984
49985         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49986         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49987         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49988         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49989         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49990         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49991
49992 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49993
49994         * lib/sockets.h (gl_fd_to_handle): New function.
49995
49996         * tests/test-sockets.c: Call gl_fd_to_handle.
49997
49998 2009-02-09  Bruno Haible  <bruno@clisp.org>
49999
50000         * doc/havelib.texi: Document the conventions on bi-arch systems.
50001
50002 2009-02-08  Bruno Haible  <bruno@clisp.org>
50003
50004         Document the AC_LIB_LINKFLAGS macro.
50005         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50006         * doc/gnulib.texi: Include it.
50007
50008 2009-02-08  Bruno Haible  <bruno@clisp.org>
50009
50010         Fix wrong order of sections, compared to TOC.
50011         * doc/gnulib.texi: Include relocatable-maint.texi after the
50012         "Regular expressions" node, not before.
50013
50014 2009-02-08  Bruno Haible  <bruno@clisp.org>
50015
50016         Tests for module 'unicase/totitle'.
50017         * modules/unicase/totitle-tests: New file.
50018
50019         Tests for module 'unicase/tolower'.
50020         * modules/unicase/tolower-tests: New file.
50021
50022         Tests for module 'unicase/toupper'.
50023         * modules/unicase/toupper-tests: New file.
50024         * tests/unicase/test-mapping-part1.h: New file.
50025         * tests/unicase/test-mapping-part2.h: New file.
50026
50027         New module 'unicase/totitle'.
50028         * modules/unicase/totitle: New file.
50029         * lib/unicase/totitle.c: New file.
50030
50031         New module 'unicase/tolower'.
50032         * modules/unicase/tolower: New file.
50033         * lib/unicase/tolower.c: New file.
50034
50035         New module 'unicase/toupper'.
50036         * modules/unicase/toupper: New file.
50037         * lib/unicase/toupper.c: New file.
50038         * lib/unicase/simple-mapping.h: New file.
50039
50040         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50041         (mapping_table): New structure.
50042         (output_simple_mapping): New function.
50043         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50044         * modules/gen-uni-tables (Description): Update.
50045         * lib/unicase/toupper.h: New file, automatically generated by
50046         gen-uni-tables.
50047         * lib/unicase/tolower.h: New file, automatically generated by
50048         gen-uni-tables.
50049         * lib/unicase/totitle.h: New file, automatically generated by
50050         gen-uni-tables.
50051         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50052         gen-uni-tables.
50053         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50054         gen-uni-tables.
50055         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50056         gen-uni-tables.
50057
50058         New module 'unicase/base'.
50059         * modules/unicase/base: New file.
50060         * lib/unicase.h: New file.
50061
50062 2009-02-08  Bruno Haible  <bruno@clisp.org>
50063
50064         New module 'uniwbrk/ulc-wordbreaks'.
50065         * modules/uniwbrk/ulc-wordbreaks: New file.
50066         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50067
50068         New module 'uniwbrk/u32-wordbreaks'.
50069         * modules/uniwbrk/u32-wordbreaks: New file.
50070         * lib/uniwbrk/u32-wordbreaks.c: New file.
50071
50072         New module 'uniwbrk/u16-wordbreaks'.
50073         * modules/uniwbrk/u16-wordbreaks: New file.
50074         * lib/uniwbrk/u16-wordbreaks.c: New file.
50075
50076         New module 'uniwbrk/u8-wordbreaks'.
50077         * modules/uniwbrk/u8-wordbreaks: New file.
50078         * lib/uniwbrk/u8-wordbreaks.c: New file.
50079         * lib/uniwbrk/u-wordbreaks.h: New file.
50080
50081         New module 'uniwbrk/table'.
50082         * modules/uniwbrk/table: New file.
50083         * lib/uniwbrk/wbrktable.h: New file.
50084         * lib/uniwbrk/wbrktable.c: New file.
50085
50086         New module 'uniwbrk/wordbreak-property'.
50087         * modules/uniwbrk/wordbreak-property: New file.
50088         * lib/uniwbrk/wordbreak-property.c: New file.
50089
50090         * lib/gen-uni-tables.c (WBP_*): New enum items.
50091         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50092         (unicode_org_wbp): New variable.
50093         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50094         New functions.
50095         (wbp_table): New structure.
50096         (output_wbp, output_wbrk_tables): New functions.
50097         (main): Accept additional argument. Invoke fill_org_wbp,
50098         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50099         output_wbrk_tables.
50100         * modules/gen-uni-tables (Description): Update.
50101         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50102         gen-uni-tables.
50103
50104         New module 'uniwbrk/base'.
50105         * modules/uniwbrk/base: New file.
50106         * lib/uniwbrk.h: New file.
50107
50108 2009-02-08  Bruno Haible  <bruno@clisp.org>
50109
50110         Update to Unicode 5.1.0.
50111         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50112         U+2185..U+2188.
50113         (is_property_default_ignorable_code_point): Don't include characters
50114         of category Cc or Cs and not-a-characters.
50115         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50116         U+0D79, U+109E, U+109F, U+A60C.
50117         * lib/unictype/bidi_of.h: Regenerated.
50118         * lib/unictype/blocks.h: Regenerated.
50119         * lib/unictype/categ_C.h: Regenerated.
50120         * lib/unictype/categ_Cf.h: Regenerated.
50121         * lib/unictype/categ_Cn.h: Regenerated.
50122         * lib/unictype/categ_L.h: Regenerated.
50123         * lib/unictype/categ_Ll.h: Regenerated.
50124         * lib/unictype/categ_Lm.h: Regenerated.
50125         * lib/unictype/categ_Lo.h: Regenerated.
50126         * lib/unictype/categ_Lu.h: Regenerated.
50127         * lib/unictype/categ_M.h: Regenerated.
50128         * lib/unictype/categ_Mc.h: Regenerated.
50129         * lib/unictype/categ_Me.h: Regenerated.
50130         * lib/unictype/categ_Mn.h: Regenerated.
50131         * lib/unictype/categ_N.h: Regenerated.
50132         * lib/unictype/categ_Nd.h: Regenerated.
50133         * lib/unictype/categ_Nl.h: Regenerated.
50134         * lib/unictype/categ_No.h: Regenerated.
50135         * lib/unictype/categ_P.h: Regenerated.
50136         * lib/unictype/categ_Pd.h: Regenerated.
50137         * lib/unictype/categ_Pe.h: Regenerated.
50138         * lib/unictype/categ_Pf.h: Regenerated.
50139         * lib/unictype/categ_Pi.h: Regenerated.
50140         * lib/unictype/categ_Po.h: Regenerated.
50141         * lib/unictype/categ_Ps.h: Regenerated.
50142         * lib/unictype/categ_S.h: Regenerated.
50143         * lib/unictype/categ_Sk.h: Regenerated.
50144         * lib/unictype/categ_Sm.h: Regenerated.
50145         * lib/unictype/categ_So.h: Regenerated.
50146         * lib/unictype/categ_of.h: Regenerated.
50147         * lib/unictype/combining.h: Regenerated.
50148         * lib/unictype/ctype_alnum.h: Regenerated.
50149         * lib/unictype/ctype_alpha.h: Regenerated.
50150         * lib/unictype/ctype_graph.h: Regenerated.
50151         * lib/unictype/ctype_lower.h: Regenerated.
50152         * lib/unictype/ctype_print.h: Regenerated.
50153         * lib/unictype/ctype_punct.h: Regenerated.
50154         * lib/unictype/ctype_upper.h: Regenerated.
50155         * lib/unictype/decdigit.h: Regenerated.
50156         * lib/unictype/digit.h: Regenerated.
50157         * lib/unictype/mirror.h: Regenerated.
50158         * lib/unictype/numeric.h: Regenerated.
50159         * lib/unictype/pr_alphabetic.h: Regenerated.
50160         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50161         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50162         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50163         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50164         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50165         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50166         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50167         * lib/unictype/pr_combining.h: Regenerated.
50168         * lib/unictype/pr_dash.h: Regenerated.
50169         * lib/unictype/pr_decimal_digit.h: Regenerated.
50170         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50171         * lib/unictype/pr_deprecated.h: Regenerated.
50172         * lib/unictype/pr_diacritic.h: Regenerated.
50173         * lib/unictype/pr_extender.h: Regenerated.
50174         * lib/unictype/pr_format_control.h: Regenerated.
50175         * lib/unictype/pr_grapheme_base.h: Regenerated.
50176         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50177         * lib/unictype/pr_grapheme_link.h: Regenerated.
50178         * lib/unictype/pr_id_continue.h: Regenerated.
50179         * lib/unictype/pr_id_start.h: Regenerated.
50180         * lib/unictype/pr_ideographic.h: Regenerated.
50181         * lib/unictype/pr_ignorable_control.h: Regenerated.
50182         * lib/unictype/pr_lowercase.h: Regenerated.
50183         * lib/unictype/pr_math.h: Regenerated.
50184         * lib/unictype/pr_numeric.h: Regenerated.
50185         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50186         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50187         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50188         * lib/unictype/pr_other_id_continue.h: Regenerated.
50189         * lib/unictype/pr_other_lowercase.h: Regenerated.
50190         * lib/unictype/pr_other_math.h: Regenerated.
50191         * lib/unictype/pr_punctuation.h: Regenerated.
50192         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50193         * lib/unictype/pr_soft_dotted.h: Regenerated.
50194         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50195         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50196         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50197         * lib/unictype/pr_uppercase.h: Regenerated.
50198         * lib/unictype/pr_xid_continue.h: Regenerated.
50199         * lib/unictype/pr_xid_start.h: Regenerated.
50200         * lib/unictype/pr_zero_width.h: Regenerated.
50201         * lib/unictype/scripts.h: Regenerated.
50202         * lib/unictype/scripts_byname.gperf: Regenerated.
50203         * lib/unictype/sy_java_ident.h: Regenerated.
50204         * lib/unilbrk/lbrkprop1.h: Regenerated.
50205         * lib/unilbrk/lbrkprop2.h: Regenerated.
50206         * tests/unictype/test-categ_C.c: Regenerated.
50207         * tests/unictype/test-categ_Cf.c: Regenerated.
50208         * tests/unictype/test-categ_Cn.c: Regenerated.
50209         * tests/unictype/test-categ_L.c: Regenerated.
50210         * tests/unictype/test-categ_Ll.c: Regenerated.
50211         * tests/unictype/test-categ_Lm.c: Regenerated.
50212         * tests/unictype/test-categ_Lo.c: Regenerated.
50213         * tests/unictype/test-categ_Lu.c: Regenerated.
50214         * tests/unictype/test-categ_M.c: Regenerated.
50215         * tests/unictype/test-categ_Mc.c: Regenerated.
50216         * tests/unictype/test-categ_Me.c: Regenerated.
50217         * tests/unictype/test-categ_Mn.c: Regenerated.
50218         * tests/unictype/test-categ_N.c: Regenerated.
50219         * tests/unictype/test-categ_Nd.c: Regenerated.
50220         * tests/unictype/test-categ_Nl.c: Regenerated.
50221         * tests/unictype/test-categ_No.c: Regenerated.
50222         * tests/unictype/test-categ_P.c: Regenerated.
50223         * tests/unictype/test-categ_Pd.c: Regenerated.
50224         * tests/unictype/test-categ_Pe.c: Regenerated.
50225         * tests/unictype/test-categ_Pf.c: Regenerated.
50226         * tests/unictype/test-categ_Pi.c: Regenerated.
50227         * tests/unictype/test-categ_Po.c: Regenerated.
50228         * tests/unictype/test-categ_Ps.c: Regenerated.
50229         * tests/unictype/test-categ_S.c: Regenerated.
50230         * tests/unictype/test-categ_Sk.c: Regenerated.
50231         * tests/unictype/test-categ_Sm.c: Regenerated.
50232         * tests/unictype/test-categ_So.c: Regenerated.
50233         * tests/unictype/test-ctype_alnum.c: Regenerated.
50234         * tests/unictype/test-ctype_alpha.c: Regenerated.
50235         * tests/unictype/test-ctype_graph.c: Regenerated.
50236         * tests/unictype/test-ctype_lower.c: Regenerated.
50237         * tests/unictype/test-ctype_print.c: Regenerated.
50238         * tests/unictype/test-ctype_punct.c: Regenerated.
50239         * tests/unictype/test-ctype_upper.c: Regenerated.
50240         * tests/unictype/test-decdigit.h: Regenerated.
50241         * tests/unictype/test-digit.h: Regenerated.
50242         * tests/unictype/test-numeric.h: Regenerated.
50243         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50244         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50245         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50246         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50247         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50248         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50249         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50250         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50251         * tests/unictype/test-pr_combining.c: Regenerated.
50252         * tests/unictype/test-pr_dash.c: Regenerated.
50253         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50254         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50255         * tests/unictype/test-pr_deprecated.c: Regenerated.
50256         * tests/unictype/test-pr_diacritic.c: Regenerated.
50257         * tests/unictype/test-pr_extender.c: Regenerated.
50258         * tests/unictype/test-pr_format_control.c: Regenerated.
50259         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50260         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50261         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50262         * tests/unictype/test-pr_id_continue.c: Regenerated.
50263         * tests/unictype/test-pr_id_start.c: Regenerated.
50264         * tests/unictype/test-pr_ideographic.c: Regenerated.
50265         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50266         * tests/unictype/test-pr_lowercase.c: Regenerated.
50267         * tests/unictype/test-pr_math.c: Regenerated.
50268         * tests/unictype/test-pr_numeric.c: Regenerated.
50269         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50270         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50271         Regenerated.
50272         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50273         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50274         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50275         * tests/unictype/test-pr_other_math.c: Regenerated.
50276         * tests/unictype/test-pr_punctuation.c: Regenerated.
50277         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50278         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50279         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50280         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50281         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50282         * tests/unictype/test-pr_uppercase.c: Regenerated.
50283         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50284         * tests/unictype/test-pr_xid_start.c: Regenerated.
50285         * tests/unictype/test-pr_zero_width.c: Regenerated.
50286
50287         Update to Unicode 5.1.0.
50288         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50289         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50290         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50291         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50292         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50293         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50294         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50295         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50296         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50297         (nonspacing_table_ind): Update.
50298         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50299
50300         Update to Unicode 5.1.0.
50301         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50302         code transform.
50303         * lib/uniname/uniname.c (unicode_character_name,
50304         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50305         * lib/uniname/uninames.h: Regenerated.
50306         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50307
50308 2009-02-07  Bruno Haible  <bruno@clisp.org>
50309
50310         Merge gen-ctype and gen-lbrk into a single program.
50311         * lib/gen-uni-tables.c: New file, incorporating
50312         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50313         Add directory prefixes to the names of the generated files.
50314         * lib/unictype/gen-ctype.c: Remove file.
50315         * lib/unilbrk/gen-lbrk.c: Remove file.
50316         * modules/gen-uni-tables: New file.
50317         * modules/unictype/gen-ctype: Remove file.
50318         * modules/unilbrk/gen-lbrk: Remove file.
50319
50320 2009-02-07  Bruno Haible  <bruno@clisp.org>
50321
50322         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50323
50324         New module 'unistr/u32-strcoll'.
50325         * modules/unistr/u32-strcoll: New file.
50326         * lib/unistr/u32-strcoll.c: New file.
50327
50328         New module 'unistr/u16-strcoll'.
50329         * modules/unistr/u16-strcoll: New file.
50330         * lib/unistr/u16-strcoll.c: New file.
50331
50332         New module 'unistr/u8-strcoll'.
50333         * modules/unistr/u8-strcoll: New file.
50334         * lib/unistr/u8-strcoll.c: New file.
50335         * lib/unistr/u-strcoll.h: New file.
50336
50337 2009-02-07  Bruno Haible  <bruno@clisp.org>
50338
50339         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50340         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50341         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50342         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50343         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50344         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50345
50346 2009-02-07  Bruno Haible  <bruno@clisp.org>
50347
50348         Make 64-bit clean.
50349         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50350         output_combclass, output_bidi_category, output_decimal_digit,
50351         output_digit, output_numeric, output_mirror, output_scripts,
50352         output_ident_category): Use proper width specifier in format strings.
50353
50354 2009-02-07  Bruno Haible  <bruno@clisp.org>
50355
50356         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50357         failure behaviour.
50358
50359 2009-02-07  Jim Meyering  <meyering@redhat.com>
50360
50361         regex: avoid compilation failure with upcoming gcc-4.4
50362         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50363         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50364         "... error: integer overflow in preprocessor expression".
50365
50366 2009-02-05  Ben Pfaff  <blp@gnu.org>
50367
50368         Fix link errors on Windows when close module is used.
50369         * modules/close: Add $(LIB_CLOSE) to Link section.
50370         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50371         $(LIB_CLOSE) on Windows.
50372
50373 2009-02-05  Jim Meyering  <meyering@redhat.com>
50374
50375         still avoid unused-parameter warnings, but do it cleanly
50376         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50377         (get_fs_usage): Cast to void instead.
50378         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50379         (dev_from_mount_options, read_file_system_list): Cast to void.
50380         Prompted by Bruno Haible.
50381
50382 2009-02-04  Jim Meyering  <meyering@redhat.com>
50383
50384         fsusage.c: correct copyright year
50385         * lib/fsusage.c: Reflect year in which the change is pushed into
50386
50387         avoid misc. warnings
50388         * lib/fsusage.c (UNUSED_PARAM): Define.
50389         (get_fs_usage): Mark parameter "disk" as unused.
50390         * lib/getugroups.c (getgrent): Use "void" in prototype.
50391         * lib/mountlist.c: Mark unused parameters.
50392         (read_file_system_list): Declare a local with "const".
50393         * lib/nanosleep.c (getnow): Declare static.
50394         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50395
50396         dirfd: set errno upon failure
50397         * lib/dirfd.c: Include <errno.h>.
50398         Set errno to ENOTSUP when returning -1.
50399         * modules/dirfd (Depends-on): Add errno.
50400         Suggested by John Kodis <kodis@comcast.net>.
50401
50402 2009-02-01  Bruno Haible  <bruno@clisp.org>
50403
50404         Don't assume sizeof (long) >= sizeof (void *).
50405         * lib/memcmp.c: Include stdint.h.
50406         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50407         srcp2 to 'const byte *'.
50408         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50409         types to uintptr_t.
50410         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50411         * modules/memcmp (Depends-on): Add stdint.
50412         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50413
50414 2009-01-30  Eric Blake  <ebb9@byu.net>
50415
50416         fix more require-before-expand issues
50417         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50418         expand, AC_PROG_AWK.
50419         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50420
50421 2009-01-28  Eric Blake  <ebb9@byu.net>
50422
50423         version-etc: use consistent URL formatting
50424         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50425         Improve formatting.  Use fputs for string without %.
50426
50427 2009-01-28  Jim Meyering  <meyering@redhat.com>
50428
50429         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50430         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50431         "underquoted definition of NAME" from autoconf-2.59.
50432
50433 2009-01-28  Bruno Haible  <bruno@clisp.org>
50434
50435         * doc/gnulib.texi: Add "Obsolete modules" to index.
50436
50437 2009-01-28  Jim Meyering  <meyering@redhat.com>
50438
50439         useless-if-before-free: recognize more variants
50440         * build-aux/useless-if-before-free: Also recognize e.g.,
50441         if (NULL != p) free (p);
50442
50443 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50444
50445         test-getaddrinfo: skip (don't fail) this test when there's no network
50446         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50447         on the presumption that it means you lack network access.
50448
50449 2009-01-26  Jim Meyering  <meyering@redhat.com>
50450
50451         fflush: avoid warnings on modern systems
50452         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50453         pos and result, into scopes where they're used.
50454
50455 2009-01-26  Eric Blake  <ebb9@byu.net>
50456
50457         Silence warning reintroduced by recent extensions patch.
50458         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50459         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50460         autoconf.
50461
50462         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50463         * m4/00gnulib.m4: New file.
50464         * gnulib-tool (func_get_filelist): Always use it.
50465         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50466         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50467
50468 2009-01-25  Bruno Haible  <bruno@clisp.org>
50469
50470         Make test-quotearg work on MacOS X and AIX.
50471         * tests/test-quotearg.sh: New file.
50472         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50473         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50474         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50475         include <libintl.h>.
50476         (fake_locale): Remove variable.
50477         (gettext, dgettext, dcgettext): Remove functions.
50478         (main): Instead of setting a fake locale, set a real locale. Call
50479         textdomain and bindtextdomain.
50480         * modules/quotearg-tests (Files): Add the new files.
50481         (Depends-on): Add gettext, setenv, unsetenv.
50482         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50483         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50484         Augment TESTS_ENVIRONMENT.
50485
50486 2009-01-25  Bruno Haible  <bruno@clisp.org>
50487
50488         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50489         fr_FR.ISO8859-1 locale on MacOS X.
50490         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50491         ja_JP.eucJP locale on MacOS X.
50492         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50493         zh_CN.GB18030 locale on MacOS X.
50494
50495 2009-01-25  Bruno Haible  <bruno@clisp.org>
50496
50497         Avoid link errors on MacOS X 10.3.
50498         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50499         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50500
50501 2009-01-25  Bruno Haible  <bruno@clisp.org>
50502
50503         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50504         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50505         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50506         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50507         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50508         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50509         posix_spawnattr_init, posix_spawnattr_setsigmask,
50510         posix_spawnattr_setflags, posix_spawnattr_destroy.
50511
50512         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50513         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50514         * modules/execute (Files): Remove m4/posix_spawn.m4.
50515         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50516         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50517         posix_spawnattr_init, posix_spawnattr_setsigmask,
50518         posix_spawnattr_setflags, posix_spawnattr_destroy.
50519
50520 2009-01-25  Bruno Haible  <bruno@clisp.org>
50521
50522         * lib/glthread/threadlib.c: Include <stdlib.h>.
50523
50524 2009-01-25  Bruno Haible  <bruno@clisp.org>
50525
50526         * lib/glthread/threadlib.c (dummy): New declaration.
50527
50528 2009-01-25  Bruno Haible  <bruno@clisp.org>
50529
50530         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50531         multibyte characters also for the GB18030 encoding. Don't crash when
50532         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50533
50534 2009-01-25  Bruno Haible  <bruno@clisp.org>
50535
50536         Avoid redefining 'struct random_data' on OSF/1 5.1.
50537         * lib/stdlib.in.h: Include <random.h> if it exists.
50538         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50539         HAVE_RANDOM_H. Include <random.h> when testing whether
50540         'struct random_data' exists.
50541         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50542
50543 2009-01-25  Bruno Haible  <bruno@clisp.org>
50544
50545         Don't install charset.alias on MacOS X >= 10.3.
50546         * lib/localcharset.c (DARWIN7): New macro.
50547         (get_charset_aliases): Hardcode the result for Darwin7.
50548         * modules/localcharset (install-exec-local): Don't install
50549         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50550
50551 2009-01-25  Bruno Haible  <bruno@clisp.org>
50552
50553         Don't install charset.alias on mingw and Cygwin.
50554         * modules/localcharset (install-exec-local): Don't install
50555         charset.alias on mingw and Cygwin, if the file does not yet exist.
50556         The result for these platforms is hardcoded in localcharset.c.
50557
50558 2009-01-25  Bruno Haible  <bruno@clisp.org>
50559
50560         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50562         before requiring AC_USE_SYSTEM_EXTENSIONS.
50563
50564 2009-01-25  Jim Meyering  <meyering@redhat.com>
50565
50566         c-strtod: avoid warnings
50567         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50568         "assignment discards qualifiers from pointer target type" warnings.
50569
50570 2009-01-24  Bruno Haible  <bruno@clisp.org>
50571
50572         Add support for non-UTF-8 locales on MacOS X.
50573         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50574         canonical encodings. For Darwin 7 and newer, don't map traditional
50575         encodings to UTF-8.
50576         Reported by Vincent Lefevre <vincent@vinc17.org>
50577         at <http://savannah.gnu.org/bugs/?25235>.
50578
50579 2009-01-24  Bruno Haible  <bruno@clisp.org>
50580
50581         * doc/gnulib.texi (Obsolete modules): New section.
50582         Reported by Mike Frysinger <vapier@gentoo.org>.
50583
50584 2009-01-24  Bruno Haible  <bruno@clisp.org>
50585
50586         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50587         (%.dvi): New rule.
50588
50589 2009-01-24  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50592         Reported by Eric Blake.
50593
50594 2009-01-24  Bruno Haible  <bruno@clisp.org>
50595
50596         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50597         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50598         Reported by Gary V. Vaughan <gary@gnu.org>.
50599
50600 2009-01-24  Bruno Haible  <bruno@clisp.org>
50601
50602         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50603
50604 2009-01-23  Bruno Haible  <bruno@clisp.org>
50605
50606         Make c-strtod, c-strtold usable in libraries.
50607         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50608         (C_STRTOD): Call strdup instead of xstrdup.
50609         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50610         * modules/c-strtold (Depends-on): Likewise.
50611         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50612         * NEWS: Mention the change.
50613         Reported by Michael Gold <mgold@ncf.ca>.
50614
50615 2009-01-23  Jim Meyering  <meyering@redhat.com>
50616
50617         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50618         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50619         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50620
50621 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50622
50623         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50624         GNU CoreUtils.
50625         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50626         * modules/version-etc (Description): Update.
50627
50628 2009-01-22  Bruno Haible  <bruno@clisp.org>
50629
50630         Cache the C locale object.
50631         * lib/c-strtod.c (c_locale_cache): New variable.
50632         (c_locale): New function.
50633         (C_STRTOD): Use it, and don't call freelocale.
50634         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50635         Suggested by Paolo Bonzini.
50636
50637 2009-01-21  Bruno Haible  <bruno@clisp.org>
50638
50639         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50640         conditions other than overflow.
50641
50642 2009-01-21  Bruno Haible  <bruno@clisp.org>
50643
50644         * lib/c-strtod.c: Include errno.h.
50645         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50646         value from STRTOD_L and STRTOD.
50647
50648 2009-01-21  Bruno Haible  <bruno@clisp.org>
50649         and Jim Meyering  <meyering@redhat.com>
50650
50651         nanosleep: skip configure test (fail it) for apple universal builds
50652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50653         universal builds, assume that nanosleep does not work.
50654         * modules/nanosleep (Depends-on): Add multiarch.
50655
50656         mktime: skip configure test (fail it) for apple universal builds
50657         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50658         universal builds, assume that mktime does not work.
50659         * modules/mktime (Depends-on): Add multiarch.
50660
50661 2009-01-21  Eric Blake  <ebb9@byu.net>
50662
50663         multiarch: avoid expand-before-require warning
50664         * modules/multiarch (configure.ac): Require, rather than expand,
50665         gl_MULTIARCH.
50666         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50667         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50668         enforce that all clients require it.  Partial reversion of
50669         2008-12-29 patch.
50670
50671         error: avoid expand-before-require warning
50672         * modules/errno (configure.ac): Require, rather than expand,
50673         gl_HEADER_ERRNO_H.
50674         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50675         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50676         enforce that all clients require it.
50677
50678         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50679         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50680         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50681         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50682
50683 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50684
50685         Revert:
50686         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50687
50688         regex: do not depend on obsolete modules.
50689         * modules/regex: Remove memcmp and memmove.
50690
50691 2009-01-20  Bruno Haible  <bruno@clisp.org>
50692
50693         Make the 'link' module link on Windows NT 4.
50694         * lib/link.c (_WIN32_WINNT): Don't define.
50695         (CreateHardLinkFuncType): New type.
50696         (CreateHardLinkFunc, initialized): New variables.
50697         (initialize): New function.
50698         (link): Invoke CreateHardLink indirectly through the function pointer.
50699
50700 2009-01-20  Bruno Haible  <bruno@clisp.org>
50701
50702         Fix compilation failure on mingw.
50703         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50704
50705 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50706
50707         * doc/c-strtod.texi: Mention a couple of restrictions.
50708
50709 2009-01-20  Jim Meyering  <meyering@redhat.com>
50710
50711         gettimeofday: move more declarations out of functions
50712         * lib/gettimeofday.c: Move extern declarations of tzset and
50713         gmtime out of containing functions.  Prompted by Bruno Haible.
50714
50715 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50716
50717         regex: do not depend on obsolete modules.
50718         * modules/regex: Remove memcmp and memmove.
50719
50720 2009-01-19  Bruno Haible  <bruno@clisp.org>
50721
50722         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50723         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50724         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50725         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50726         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50727
50728 2009-01-19  Bruno Haible  <bruno@clisp.org>
50729
50730         * tests/test-link.c: Include <errno.h>.
50731         (main): Exit with code 77 when a hard link cannot be created due to
50732         the file system.
50733         * tests/test-link.sh: Skip test when a hard link cannot be created due
50734         to the file system.
50735         Suggested by Eric Blake.
50736
50737 2009-01-19  Martin Lambers  <marlam@marlam.de>
50738
50739         * modules/link-tests: New file.
50740         * tests/test-link.sh: New file.
50741         * tests/test-link.c: New file.
50742
50743 2009-01-19  Eric Blake  <ebb9@byu.net>
50744
50745         doc: mention another function added in cygwin 1.7.0
50746         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50747         Another new function in cygwin 1.7.
50748
50749 2009-01-19  Bruno Haible  <bruno@clisp.org>
50750
50751         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50752         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50753         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50754         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50755         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50756         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50757         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50758         * m4/md4.m4 (gl_MD4): Likewise.
50759         * m4/md5.m4 (gl_MD5): Likewise.
50760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50761         * m4/sha1.m4 (gl_SHA1): Likewise.
50762         * m4/sha256.m4 (gl_SHA256): Likewise.
50763         * m4/sha512.m4 (gl_SHA512): Likewise.
50764
50765 2009-01-19  Bruno Haible  <bruno@clisp.org>
50766
50767         * modules/uniname/uniname-tests (Depends-on): Add progname.
50768         * tests/uniname/test-uninames.c: Include progname.h.
50769         (main): Call set_program_name.
50770
50771         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50772         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50773         (main): Call set_program_name.
50774
50775         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50776         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50777         (main): Call set_program_name.
50778
50779         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50780         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50781         (main): Call set_program_name.
50782
50783         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50784         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50785         (main): Call set_program_name.
50786
50787         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50788         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50789         (main): Call set_program_name.
50790
50791         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50792         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50793         (main): Call set_program_name.
50794
50795         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50796         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50797         (main): Call set_program_name.
50798
50799         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50800         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50801         (main): Call set_program_name.
50802
50803 2009-01-19  Eric Blake  <ebb9@byu.net>
50804
50805         test-unistd: test previous patch
50806         * tests/test-unistd.c: Test *_FILENO macros.
50807
50808         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50809         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50810         Guarantee a definition.
50811         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50812         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50813         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50814         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50815         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50816         Likewise.
50817         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50818         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50819         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50820         Likewise.
50821         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50822         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50823         (STDERR_FILENO): Likewise.
50824         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50825         (STDERR_FILENO): Likewise.
50826         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50827         (STDERR_FILENO): Likewise.
50828         Reported by Elbert Pol.
50829
50830 2009-01-19  Eric Blake  <ebb9@byu.net>
50831
50832         doc: mention more functions added in cygwin 1.7.0
50833         * doc/posix-functions/abort.texi (abort): Update wording related
50834         to cygwin.
50835         * doc/posix-functions/daylight.texi (daylight): Likewise.
50836         * doc/posix-functions/optarg.texi (optarg): Likewise.
50837         * doc/posix-functions/optarg.texi (opterr): Likewise.
50838         * doc/posix-functions/optarg.texi (optind): Likewise.
50839         * doc/posix-functions/optarg.texi (optopt): Likewise.
50840         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50841         worked in 1.5.x, and was withdrawn in 1.7.
50842         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50843         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50844         cygwin versions.
50845         * doc/posix-functions/perror.texi (perror): Likewise.
50846         * doc/posix-functions/printf.texi (printf): Likewise.
50847         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50848         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50849         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50850         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50851         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50852         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50853         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50854         Likewise.
50855         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50856         Likewise.
50857         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50858         this function.
50859         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50860         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50861         Likewise.
50862         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50863         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50864         * doc/posix-functions/confstr.texi (confstr): Likewise.
50865         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50866         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50867         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50868         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50869         * doc/posix-functions/fputws.texi (fputws): Likewise.
50870         * doc/posix-functions/fwide.texi (fwide): Likewise.
50871         * doc/posix-functions/getwc.texi (getwc): Likewise.
50872         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50873         * doc/posix-functions/putwc.texi (putwc): Likewise.
50874         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50875         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50876         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50877         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50878         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50879         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50880         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50881         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50882         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50883         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50884         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50885
50886 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50887
50888         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50889         * lib/ioctl.c: Include <sys/ioctl.h>.
50890
50891 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50892
50893         * modules/getdate-tests (Depends-on): Add progname.
50894         * tests/test-getdate.c: Use progname module, to avoid link errors
50895         on non-glibc systems.
50896
50897 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50898
50899         * modules/filenamecat-tests (Depends-on): Add progname.
50900         * modules/fstrcmp-tests (Depends-on): Likewise.
50901
50902         * tests/test-filenamecat.c: Use progname module, to avoid link
50903         errors on non-glibc systems.
50904         * tests/test-fstrcmp.c: Likewise.
50905
50906 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50907
50908         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50909         * lib/gettimeofday.c: Move extern declaration out of function.
50910
50911 2009-01-18  Bruno Haible  <bruno@clisp.org>
50912
50913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50914         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50915         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50916
50917 2009-01-18  Bruno Haible  <bruno@clisp.org>
50918
50919         * lib/strftime.c (MEMPCPY): Remove unused macro.
50920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50921
50922 2009-01-18  Martin Lambers  <marlam@marlam.de>
50923
50924         New module 'link'.
50925         * lib/unistd.in.h (link): New declaration.
50926         * lib/link.c: New file.
50927         * m4/link.m4: New file.
50928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50929         HAVE_LINK.
50930         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50931         * modules/link: New file.
50932         * doc/posix-functions/link.texi: Mention the new module.
50933
50934 2009-01-18  Bruno Haible  <bruno@clisp.org>
50935
50936         * tests/test-avltree_list.c (main): Call set_program_name.
50937         * tests/test-avltree_oset.c (main): Likewise.
50938         * tests/test-obstack-printf.c: Include progname.h.
50939         (main): Call set_program_name.
50940         * tests/test-quotearg.c: Include progname.h.
50941         (main): Call set_program_name.
50942         * tests/test-xmemdup0.c: Include progname.h.
50943         (main): Call set_program_name.
50944
50945 2009-01-18  Bruno Haible  <bruno@clisp.org>
50946
50947         New module 'alphasort'.
50948         * lib/dirent.in.h (alphasort): New declaration.
50949         * lib/alphasort.c: New file, from glibc with modifications.
50950         * m4/alphasort.m4: New file.
50951         * modules/alphasort: New file.
50952         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50953         HAVE_ALPHASORT.
50954         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50955         HAVE_ALPHASORT.
50956         * doc/posix-functions/alphasort.texi: Mention the new module and the
50957         portability problems.
50958
50959 2009-01-18  Bruno Haible  <bruno@clisp.org>
50960
50961         New module 'scandir'.
50962         * lib/dirent.in.h (scandir): New declaration.
50963         * lib/scandir.c: New file, from glibc with modifications.
50964         * m4/scandir.m4: New file.
50965         * modules/scandir: New file.
50966         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50967         HAVE_SCANDIR.
50968         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50969         HAVE_SCANDIR.
50970         * doc/posix-functions/scandir.texi: Mention the new module and the
50971         portability problems.
50972
50973 2009-01-17  Bruno Haible  <bruno@clisp.org>
50974
50975         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50976         Update documentation.
50977         (func_remove_suffix): Escape all dots in the suffix. Update
50978         documentation.
50979         (func_filter_filelist): Update documentation.
50980         Reported by Ralf Wildenhues.
50981
50982 2009-01-17  Bruno Haible  <bruno@clisp.org>
50983
50984         * modules/dprintf-posix-tests: New file.
50985         * tests/test-dprintf-posix.sh: New file.
50986         * tests/test-dprintf-posix.c: New file.
50987
50988         New modules 'dprintf', 'dprintf-posix'.
50989         * lib/stdio.in.h (dprintf): New declaration.
50990         * lib/dprintf.c: New file.
50991         * m4/dprintf.m4: New file.
50992         * m4/dprintf-posix.m4: New file.
50993         * modules/dprintf: New file.
50994         * modules/dprintf-posix: New file.
50995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50996         HAVE_DPRINTF, REPLACE_DPRINTF.
50997         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50998         HAVE_DPRINTF, REPLACE_DPRINTF.
50999         * doc/posix-functions/dprintf.texi: Mention the new modules.
51000
51001 2009-01-17  Bruno Haible  <bruno@clisp.org>
51002
51003         * modules/vdprintf-posix-tests: New file.
51004         * tests/test-vdprintf-posix.sh: New file.
51005         * tests/test-vdprintf-posix.c: New file.
51006
51007         New modules 'vdprintf', 'vdprintf-posix'.
51008         * lib/stdio.in.h (vdprintf): New declaration.
51009         * lib/vdprintf.c: New file.
51010         * m4/vdprintf.m4: New file.
51011         * m4/vdprintf-posix.m4: New file.
51012         * modules/vdprintf: New file.
51013         * modules/vdprintf-posix: New file.
51014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51015         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51016         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51017         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51018         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51019
51020 2009-01-17  Bruno Haible  <bruno@clisp.org>
51021
51022         Fix replacement of fopen on mingw.
51023         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51024         mingw.
51025
51026 2009-01-17  Bruno Haible  <bruno@clisp.org>
51027
51028         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51029         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51030
51031 2009-01-17  Bruno Haible  <bruno@clisp.org>
51032
51033         Avoid test-fflush2.sh failure on mingw.
51034         * tests/test-fflush2.c: Include binary-io.h.
51035         (main): Put standard input into binary mode.
51036         * modules/fflush-tests (Depends-on): Add binary-io.
51037
51038 2009-01-17  Bruno Haible  <bruno@clisp.org>
51039
51040         * lib/wchar.in.h: In another particular situation, include only the
51041         system's <wchar.h> file.
51042         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51043         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51044         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51045
51046 2009-01-17  Bruno Haible  <bruno@clisp.org>
51047
51048         Support for stripping executables in --enable-relocatable.
51049         * build-aux/install-reloc: Expect one more argument, or an environment
51050         variable RELOC_STRIP_PROG. If set, strip the destination program and
51051         its wrapper.
51052         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51053         RELOC_STRIP_PROG.
51054         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51055         to set RELOCATABLE_STRIP.
51056         * NEWS: Mention the new Makefile requirement.
51057
51058 2009-01-17  Bruno Haible  <bruno@clisp.org>
51059
51060         * build-aux/install-reloc: Remove debugging information left over by
51061         C compiler on MacOS X.
51062
51063 2009-01-17  Bruno Haible  <bruno@clisp.org>
51064
51065         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51066         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51067         _NSGetExecutablePath.
51068
51069 2009-01-16  Jim Meyering  <meyering@redhat.com>
51070
51071         strerror: avoid warnings about discarding "const"
51072         * lib/strerror.c (rpl_strerror): Instead of returning a const
51073         string from each and every "case", use a variable, and add a single
51074         cast after the switch.
51075
51076 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51077
51078         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51079
51080 2009-01-16  Bruno Haible  <bruno@clisp.org>
51081
51082         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51083         array initializer syntax that also works in C++ mode.
51084         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51085
51086 2009-01-16  Jim Meyering  <meyering@redhat.com>
51087
51088         poll: suppress a warning
51089         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51090         to ignore "...unsigned expression < 0 is always false" warnings.
51091
51092 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51093
51094         poll: remove declarations of unused variables
51095         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51096         sockbuf and optlen.
51097
51098 2009-01-15  Bruno Haible  <bruno@clisp.org>
51099
51100         Make fflush-after-ungetc POSIX compliant on BSD systems.
51101         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51102         (clear_ungetc_buffer): Implement also for other systems.
51103         (rpl_fflush): On glibc systems, invoke
51104         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51105         clear_ungetc_buffer after fetching the stream's position, not before.
51106
51107 2009-01-15  Bruno Haible  <bruno@clisp.org>
51108
51109         Make fflush-after-ungetc POSIX compliant on glibc systems.
51110         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51111         after ungetc.
51112         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51113         (rpl_fflush): On glibc systems, simply call the system's fflush
51114         function after clearing the ungetc buffer.
51115         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51116         Instead, lseek only to the end of file, then use the system's fseeko
51117         for the rest. On glibc systems, reset the EOF indicator bit.
51118
51119 2009-01-15  Jim Meyering  <meyering@redhat.com>
51120
51121         openmp.m4: revert quote-adding change, for portability to older autoconf
51122         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51123         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51124         Simon Josefsson noticed the problem when using autoconf-2.61.
51125
51126 2009-01-15  Bruno Haible  <bruno@clisp.org>
51127
51128         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51129         * tests/test-fflush2.c (ASSERT): Always fail.
51130         (main): Add two tests for fflush() after ungetc(), taking into account
51131         the Austin Group's clarification.
51132         Suggested by Eric Blake.
51133
51134 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51135
51136         mktime.m4: remove K&R-style function prototypes
51137         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51138         for the Sun C++ compiler.
51139
51140 2009-01-14  Bruno Haible  <bruno@clisp.org>
51141
51142         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51143         while including <wchar.h>.
51144         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51145         the system's <wchar.h> file.
51146         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51147
51148 2009-01-14  Bruno Haible  <bruno@clisp.org>
51149
51150         * m4/csharp.m4: Don't mention gettext on the serial number line.
51151         * m4/csharpexec.m4: Likewise.
51152         * m4/eaccess.m4: Likewise.
51153         * m4/javaexec.m4: Likewise.
51154         * m4/sig_atomic_t.m4: Likewise.
51155         * m4/tmpdir.m4: Likewise.
51156         * m4/intldir.m4: Bump gettext version.
51157         * m4/lib-ld.m4: Likewise.
51158
51159 2009-01-14  Bruno Haible  <bruno@clisp.org>
51160
51161         * lib/progname.c (set_program_name): Add more comments.
51162         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51163
51164 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51165
51166         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51167         were sys/stat.h does not define it.
51168
51169 2009-01-14  Jim Meyering  <meyering@redhat.com>
51170
51171         many *.m4 files: improve m4 quoting
51172         99% of this change was performed by running the following commands:
51173         git ls-files | grep '\.m4$' | xargs perl -pi \
51174           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51175           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51176           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51177           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51178         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51179         The remainder were to add Copyright dates, increment serial numbers,
51180         undo some changes in comments, exclude m4/intl.m4, and add quotes
51181         around the "1" in ",1" where the unusual spacing prohibited the
51182         above regexps from doing the job.  For more details, see
51183         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51184         * m4/acl.m4: Modified.
51185         * m4/afs.m4: Likewise.
51186         * m4/alloca.m4: Likewise.
51187         * m4/argp.m4: Likewise.
51188         * m4/argz.m4: Likewise.
51189         * m4/atexit.m4: Likewise.
51190         * m4/bison-i18n.m4: Likewise.
51191         * m4/bison.m4: Likewise.
51192         * m4/byteswap.m4: Likewise.
51193         * m4/c-stack.m4: Likewise.
51194         * m4/c-strtod.m4: Likewise.
51195         * m4/calloc.m4: Likewise.
51196         * m4/canonicalize-lgpl.m4: Likewise.
51197         * m4/chown.m4: Likewise.
51198         * m4/clock_time.m4: Likewise.
51199         * m4/codeset.m4: Likewise.
51200         * m4/copy-file.m4: Likewise.
51201         * m4/csharp.m4: Likewise.
51202         * m4/csharpcomp.m4: Likewise.
51203         * m4/csharpexec.m4: Likewise.
51204         * m4/d-ino.m4: Likewise.
51205         * m4/d-type.m4: Likewise.
51206         * m4/dirfd.m4: Likewise.
51207         * m4/double-slash-root.m4: Likewise.
51208         * m4/eaccess.m4: Likewise.
51209         * m4/eealloc.m4: Likewise.
51210         * m4/environ.m4: Likewise.
51211         * m4/errno_h.m4: Likewise.
51212         * m4/euidaccess.m4: Likewise.
51213         * m4/execute.m4: Likewise.
51214         * m4/fatal-signal.m4: Likewise.
51215         * m4/fchdir.m4: Likewise.
51216         * m4/fcntl_h.m4: Likewise.
51217         * m4/fileblocks.m4: Likewise.
51218         * m4/filenamecat.m4: Likewise.
51219         * m4/findprog.m4: Likewise.
51220         * m4/flexmember.m4: Likewise.
51221         * m4/fnmatch.m4: Likewise.
51222         * m4/fopen.m4: Likewise.
51223         * m4/fpending.m4: Likewise.
51224         * m4/fprintf-posix.m4: Likewise.
51225         * m4/free.m4: Likewise.
51226         * m4/frexp.m4: Likewise.
51227         * m4/frexpl.m4: Likewise.
51228         * m4/fsusage.m4: Likewise.
51229         * m4/ftruncate.m4: Likewise.
51230         * m4/gc-camellia.m4: Likewise.
51231         * m4/gc-random.m4: Likewise.
51232         * m4/gc.m4: Likewise.
51233         * m4/getaddrinfo.m4: Likewise.
51234         * m4/getcwd-abort-bug.m4: Likewise.
51235         * m4/getcwd-path-max.m4: Likewise.
51236         * m4/getdate.m4: Likewise.
51237         * m4/getdomainname.m4: Likewise.
51238         * m4/getgroups.m4: Likewise.
51239         * m4/gethostname.m4: Likewise.
51240         * m4/gethrxtime.m4: Likewise.
51241         * m4/getline.m4: Likewise.
51242         * m4/getloadavg.m4: Likewise.
51243         * m4/getndelim2.m4: Likewise.
51244         * m4/getpass.m4: Likewise.
51245         * m4/gettext.m4: Likewise.
51246         * m4/gettime.m4: Likewise.
51247         * m4/gettimeofday.m4: Likewise.
51248         * m4/gnulib-common.m4: Likewise.
51249         * m4/group-member.m4: Likewise.
51250         * m4/host-os.m4: Likewise.
51251         * m4/iconv.m4: Likewise.
51252         * m4/iconv_open.m4: Likewise.
51253         * m4/inet_ntop.m4: Likewise.
51254         * m4/inet_pton.m4: Likewise.
51255         * m4/inline.m4: Likewise.
51256         * m4/intldir.m4: Likewise.
51257         * m4/intlmacosx.m4: Likewise.
51258         * m4/intmax.m4: Likewise.
51259         * m4/intmax_t.m4: Likewise.
51260         * m4/inttypes.m4: Likewise.
51261         * m4/inttypes_h.m4: Likewise.
51262         * m4/inttypes-pri.m4: Likewise.
51263         * m4/isapipe.m4: Likewise.
51264         * m4/isnand.m4: Likewise.
51265         * m4/isnanf.m4: Likewise.
51266         * m4/isnanl.m4: Likewise.
51267         * m4/javacomp.m4: Likewise.
51268         * m4/javaexec.m4: Likewise.
51269         * m4/jm-winsz1.m4: Likewise.
51270         * m4/jm-winsz2.m4: Likewise.
51271         * m4/lchown.m4: Likewise.
51272         * m4/lcmessage.m4: Likewise.
51273         * m4/ldexpl.m4: Likewise.
51274         * m4/lib-ld.m4: Likewise.
51275         * m4/lib-link.m4: Likewise.
51276         * m4/libsigsegv.m4: Likewise.
51277         * m4/link-follow.m4: Likewise.
51278         * m4/localcharset.m4: Likewise.
51279         * m4/locale-fr.m4: Likewise.
51280         * m4/locale-ja.m4: Likewise.
51281         * m4/locale-tr.m4: Likewise.
51282         * m4/locale-zh.m4: Likewise.
51283         * m4/lock.m4: Likewise.
51284         * m4/longlong.m4: Likewise.
51285         * m4/ls-mntd-fs.m4: Likewise.
51286         * m4/lstat.m4: Likewise.
51287         * m4/malloc.m4: Likewise.
51288         * m4/mathl.m4: Likewise.
51289         * m4/mbrtowc.m4: Likewise.
51290         * m4/mbstate_t.m4: Likewise.
51291         * m4/mbswidth.m4: Likewise.
51292         * m4/memchr.m4: Likewise.
51293         * m4/memcmp.m4: Likewise.
51294         * m4/memcpy.m4: Likewise.
51295         * m4/memmem.m4: Likewise.
51296         * m4/memmove.m4: Likewise.
51297         * m4/mempcpy.m4: Likewise.
51298         * m4/memrchr.m4: Likewise.
51299         * m4/memset.m4: Likewise.
51300         * m4/minmax.m4: Likewise.
51301         * m4/mkdir-slash.m4: Likewise.
51302         * m4/mkdtemp.m4: Likewise.
51303         * m4/mktime.m4: Likewise.
51304         * m4/mmap-anon.m4: Likewise.
51305         * m4/mountlist.m4: Likewise.
51306         * m4/nanosleep.m4: Likewise.
51307         * m4/nls.m4: Likewise.
51308         * m4/nocrash.m4: Likewise.
51309         * m4/open.m4: Likewise.
51310         * m4/openat.m4: Likewise.
51311         * m4/openmp.m4: Likewise.
51312         * m4/pathmax.m4: Likewise.
51313         * m4/perl.m4: Likewise.
51314         * m4/physmem.m4: Likewise.
51315         * m4/pipe.m4: Likewise.
51316         * m4/po.m4: Likewise.
51317         * m4/poll.m4: Likewise.
51318         * m4/posixtm.m4: Likewise.
51319         * m4/posixver.m4: Likewise.
51320         * m4/printf-frexp.m4: Likewise.
51321         * m4/printf-frexpl.m4: Likewise.
51322         * m4/printf-posix.m4: Likewise.
51323         * m4/printf-posix-rpl.m4: Likewise.
51324         * m4/printf.m4: Likewise.
51325         * m4/progtest.m4: Likewise.
51326         * m4/putenv.m4: Likewise.
51327         * m4/readline.m4: Likewise.
51328         * m4/readlink.m4: Likewise.
51329         * m4/readutmp.m4: Likewise.
51330         * m4/realloc.m4: Likewise.
51331         * m4/regex.m4: Likewise.
51332         * m4/relocatable.m4: Likewise.
51333         * m4/relocatable-lib.m4: Likewise.
51334         * m4/rename-dest-slash.m4: Likewise.
51335         * m4/rename.m4: Likewise.
51336         * m4/rmdir-errno.m4: Likewise.
51337         * m4/rmdir.m4: Likewise.
51338         * m4/roundf.m4: Likewise.
51339         * m4/roundl.m4: Likewise.
51340         * m4/rpmatch.m4: Likewise.
51341         * m4/save-cwd.m4: Likewise.
51342         * m4/selinux-selinux-h.m4: Likewise.
51343         * m4/setenv.m4: Likewise.
51344         * m4/settime.m4: Likewise.
51345         * m4/sig2str.m4: Likewise.
51346         * m4/sig_atomic_t.m4: Likewise.
51347         * m4/signalblocking.m4: Likewise.
51348         * m4/signbit.m4: Likewise.
51349         * m4/sigpipe.m4: Likewise.
51350         * m4/sockets.m4: Likewise.
51351         * m4/sockpfaf.m4: Likewise.
51352         * m4/st_dm_mode.m4: Likewise.
51353         * m4/stat-time.m4: Likewise.
51354         * m4/stdbool.m4: Likewise.
51355         * m4/stdint.m4: Likewise.
51356         * m4/stdint_h.m4: Likewise.
51357         * m4/stpcpy.m4: Likewise.
51358         * m4/stpncpy.m4: Likewise.
51359         * m4/strcase.m4: Likewise.
51360         * m4/strchrnul.m4: Likewise.
51361         * m4/strcspn.m4: Likewise.
51362         * m4/strdup.m4: Likewise.
51363         * m4/strftime.m4: Likewise.
51364         * m4/strndup.m4: Likewise.
51365         * m4/strnlen.m4: Likewise.
51366         * m4/strpbrk.m4: Likewise.
51367         * m4/strptime.m4: Likewise.
51368         * m4/strsep.m4: Likewise.
51369         * m4/strtod.m4: Likewise.
51370         * m4/strtoimax.m4: Likewise.
51371         * m4/strtok_r.m4: Likewise.
51372         * m4/strtol.m4: Likewise.
51373         * m4/strtoll.m4: Likewise.
51374         * m4/strtoul.m4: Likewise.
51375         * m4/strtoull.m4: Likewise.
51376         * m4/strtoumax.m4: Likewise.
51377         * m4/strverscmp.m4: Likewise.
51378         * m4/threadlib.m4: Likewise.
51379         * m4/timegm.m4: Likewise.
51380         * m4/tm_gmtoff.m4: Likewise.
51381         * m4/tmpdir.m4: Likewise.
51382         * m4/tmpfile.m4: Likewise.
51383         * m4/tzset.m4: Likewise.
51384         * m4/uintmax_t.m4: Likewise.
51385         * m4/unlinkdir.m4: Likewise.
51386         * m4/unlocked-io.m4: Likewise.
51387         * m4/uptime.m4: Likewise.
51388         * m4/userspec.m4: Likewise.
51389         * m4/utimbuf.m4: Likewise.
51390         * m4/utime.m4: Likewise.
51391         * m4/utimes-null.m4: Likewise.
51392         * m4/utimes.m4: Likewise.
51393         * m4/vararrays.m4: Likewise.
51394         * m4/vasnprintf.m4: Likewise.
51395         * m4/vfprintf-posix.m4: Likewise.
51396         * m4/vprintf-posix.m4: Likewise.
51397         * m4/wait-process.m4: Likewise.
51398         * m4/wchar_t.m4: Likewise.
51399         * m4/wint_t.m4: Likewise.
51400         * m4/write-any-file.m4: Likewise.
51401         * m4/yield.m4: Likewise.
51402
51403 2009-01-13  Bruno Haible  <bruno@clisp.org>
51404
51405         Avoid test-copy-file.sh failures when ACL support insufficient.
51406         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51407         TESTS_ENVIRONMENT.
51408         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51409         Reported by Jim Meyering.
51410
51411 2009-01-13  Bruno Haible  <bruno@clisp.org>
51412
51413         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51414         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51415         * modules/unistdio/u8-printf-parse (Files): Likewise.
51416         * modules/unistdio/u32-printf-parse (Files): Likewise.
51417         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51418
51419 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51420
51421         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51422         and m4/inttypes_h.m4 too.
51423
51424 2009-01-12  Eric Blake  <ebb9@byu.net>
51425
51426         tests: IRIX 6.2 cc can't compile -0.0 into .data
51427         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51428         rather than at compile-time.
51429         * tests/test-floorl.c (minus_zero): Likewise.
51430         * tests/test-frexpl.c (minus_zero): Likewise.
51431         * tests/test-isnan.c (minus_zerol): Likewise.
51432         * tests/test-isnanl.h (minus_zero): Likewise.
51433         * tests/test-ldexpl.c (minus_zero): Likewise.
51434         * tests/test-roundl.c (minus_zero): Likewise.
51435         * tests/test-signbit.c (minus_zerol): Likewise.
51436         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51437         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51438         * tests/test-truncl.c (minus_zero): Likewise.
51439         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51440         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51441         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51442
51443 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51444
51445         regex: fix glibc bug 9697
51446         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51447         handling.
51448
51449 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51450
51451         regex: fix glibc bug 697
51452         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51453         being NULL also if there are no backreferences.
51454
51455 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51456
51457         regex: merge glibc changes
51458         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51459         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51460         re_string_skip_chars, re_string_reconstruct): Likewise.
51461         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51462
51463 2009-01-07  Jim Meyering  <meyering@redhat.com>
51464
51465         poll: filter through cppi
51466         * lib/poll.c: Indent cpp directives to reflect nesting.
51467
51468 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51469
51470         poll: don't return uninitialized
51471         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51472
51473 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51474
51475         avoid compile failure on AIX 6.1
51476         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51477         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51478
51479 2009-01-04  Jim Meyering  <meyering@redhat.com>
51480
51481         remove duplicate inclusion of <stdio.h>
51482         * tests/test-fprintf-posix.c: Likewise.
51483         * tests/test-printf-posix.c: Likewise.
51484         * tests/test-snprintf-posix.c: Likewise.
51485         * tests/test-sprintf-posix.c: Likewise.
51486         * tests/test-vasprintf-posix.c: Likewise.
51487         * tests/test-vfprintf-posix.c: Likewise.
51488         * tests/test-vprintf-posix.c: Likewise.
51489         * tests/test-vsnprintf-posix.c: Likewise.
51490         * tests/test-vsprintf-posix.c: Likewise.
51491
51492 2009-01-03  Jim Meyering  <meyering@redhat.com>
51493
51494         gnulib-tool: fix sed-based filtering
51495         * gnulib-tool (func_filter_filelist): Remove extra backslash
51496         in sed_fff_filter definition.
51497
51498 2009-01-02  Jim Meyering  <meyering@redhat.com>
51499
51500         strftime: avoid compilation failure on Solaris 2.6
51501         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51502         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51503         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51504         be available.  Reported by Tom G. Christensen.  Details in
51505         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51506
51507 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51508             Bruno Haible  <bruno@clisp.org>
51509
51510         Speed up gnulib-tool by doing more string processing through shell
51511         built-ins.
51512         * gnulib-tool (fast_func_append): New variable.
51513         (func_remove_prefix, func_remove_suffix): New functions.
51514         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51515         (func_filter_filelist): New function.
51516         (func_get_dependencies): Use func_remove_suffix instead of sed.
51517         (func_get_automake_snippet): Use func_filter_filelist instead of a
51518         subshell and sed invocation.
51519
51520 2009-01-01  Bruno Haible  <bruno@clisp.org>
51521
51522         Fix a security bug.
51523         * gnulib-tool (func_import, import, update): Don't allow the characters
51524         '"', '$', '`', '\' in macro arguments that become part of commands that
51525         are evaluated.
51526
51527 2009-01-01  Bruno Haible  <bruno@clisp.org>
51528
51529         * gnulib-tool (func_reset_sigpipe): Add more comments.
51530
51531 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51532
51533         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51534         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51535         already know the answer.
51536
51537 2009-01-01  Jim Meyering  <meyering@redhat.com>
51538
51539         * lib/version-etc.c (version_etc_va): Update copyright year.
51540
51541 2008-12-30  Bruno Haible  <bruno@clisp.org>
51542
51543         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51544         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51545         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51546
51547 2008-12-29  Eric Blake  <ebb9@byu.net>
51548
51549         multiarch: avoid autoconf AC_REQUIRE bug
51550         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51551         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51552         2.63 and older.
51553         Reported by Bruno Haible, and analyzed in
51554         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51555
51556 2008-12-29  Bruno Haible  <bruno@clisp.org>
51557
51558         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51559         files in subdirectories correctly.
51560         Reported by Ralf Wildenhues.
51561
51562 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51563
51564         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51565         rather than 'join FILE -', for Solaris join.
51566
51567 2008-12-29  Bruno Haible  <bruno@clisp.org>
51568
51569         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51570         quoting.
51571         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51572         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51573         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51574         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51575         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51576         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51577         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51578         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51579         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51580         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51581         * m4/nls.m4 (AM_NLS): Likewise.
51582         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51583         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51584         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51585         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51586         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51587         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51588         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51589         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51590         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51591         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51592         * m4/xsize.m4 (gl_XSIZE): Likewise.
51593         Suggested by Jim Meyering.
51594
51595 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51596
51597         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51598         * lib/parse-duration.c: use a switch instead of cascading if's.
51599
51600 2008-12-29  Eric Blake  <ebb9@byu.net>
51601
51602         wchar.h: supply WEOF on Irix 5.3
51603         * lib/wchar.in.h (wint_t): Also supply WEOF.
51604         * lib/wctype.in.h (wint_t): Likewise.
51605         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51606         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51607         Reported by Tom G. Christensen.
51608
51609 2008-12-26  Bruno Haible  <bruno@clisp.org>
51610
51611         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51612         i486, i586, i686.
51613
51614 2008-12-26  Bruno Haible  <bruno@clisp.org>
51615
51616         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51617
51618 2008-12-26  Bruno Haible  <bruno@clisp.org>
51619
51620         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51621         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51622         not __STDC_CONSTANT_MACROS.
51623         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51624
51625 2008-12-25  Bruno Haible  <bruno@clisp.org>
51626
51627         Add support for universal builds to vasnprintf.
51628         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51629         universal builds, guess no.
51630         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51631         * modules/vasprintf-posix (Depends-on): Likewise.
51632         * modules/fprintf-posix (Depends-on): Likewise.
51633         * modules/vfprintf-posix (Depends-on): Likewise.
51634         * modules/snprintf-posix (Depends-on): Likewise.
51635         * modules/vsnprintf-posix (Depends-on): Likewise.
51636         * modules/sprintf-posix (Depends-on): Likewise.
51637         * modules/vsprintf-posix (Depends-on): Likewise.
51638         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51639         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51640         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51641         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51642         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51643         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51644         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51645
51646         Add support for universal builds to <inttypes.h>.
51647         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51648         _SCNu64_PREFIX): In Apple
51649         universal builds, define directly, using _LP64.
51650         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51651         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51652         * modules/inttypes (Depends-on): Add multiarch.
51653         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51654
51655         Add support for universal builds to <stdint.h>.
51656         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51657         universal builds, define directly, using _LP64.
51658         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51659         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51660         and size_t.
51661         * modules/stdint (Depends-on): Add multiarch.
51662         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51663
51664         New module 'multiarch'.
51665         * modules/multiarch: New file.
51666         * m4/multiarch.m4: New file.
51667
51668 2008-12-25  Bruno Haible  <bruno@clisp.org>
51669
51670         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51671
51672 2008-12-25  Bruno Haible  <bruno@clisp.org>
51673
51674         * modules/btowc (License): Relicense under LGPLv2+.
51675         * modules/mbsinit (License): Likewise.
51676         * modules/mbrtowc (License): Likewise.
51677         * modules/wcrtomb (License): Likewise.
51678         * modules/streq (License): Likewise.
51679         Reported by David Lutterkort <lutter@redhat.com>.
51680
51681 2008-12-23  Bruno Haible  <bruno@clisp.org>
51682
51683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51684
51685 2008-12-23  Bruno Haible  <bruno@clisp.org>
51686
51687         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51689         GETADDRINFO_LIB, not in LIBS.
51690         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51691         * modules/canon-host (Link): Likewise.
51692         * NEWS: Mention the change.
51693         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51694         GETADDRINFO_LIB.
51695
51696 2008-12-22  Bruno Haible  <bruno@clisp.org>
51697
51698         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51699         * doc/posix-functions/iswalpha_l.texi: Likewise.
51700         * doc/posix-functions/iswblank_l.texi: Likewise.
51701         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51702         * doc/posix-functions/iswctype_l.texi: Likewise.
51703         * doc/posix-functions/iswdigit_l.texi: Likewise.
51704         * doc/posix-functions/iswgraph_l.texi: Likewise.
51705         * doc/posix-functions/iswlower_l.texi: Likewise.
51706         * doc/posix-functions/iswprint_l.texi: Likewise.
51707         * doc/posix-functions/iswpunct_l.texi: Likewise.
51708         * doc/posix-functions/iswspace_l.texi: Likewise.
51709         * doc/posix-functions/iswupper_l.texi: Likewise.
51710         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51711         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51712         * doc/posix-functions/open_wmemstream.texi: Likewise.
51713         * doc/posix-functions/swscanf.texi: Likewise.
51714         * doc/posix-functions/towctrans_l.texi: Likewise.
51715         * doc/posix-functions/towlower.texi: Likewise.
51716         * doc/posix-functions/towlower_l.texi: Likewise.
51717         * doc/posix-functions/towupper.texi: Likewise.
51718         * doc/posix-functions/towupper_l.texi: Likewise.
51719         * doc/posix-functions/vfwprintf.texi: Likewise.
51720         * doc/posix-functions/vfwscanf.texi: Likewise.
51721         * doc/posix-functions/vswscanf.texi: Likewise.
51722         * doc/posix-functions/vwprintf.texi: Likewise.
51723         * doc/posix-functions/vwscanf.texi: Likewise.
51724         * doc/posix-functions/wcpcpy.texi: Likewise.
51725         * doc/posix-functions/wcpncpy.texi: Likewise.
51726         * doc/posix-functions/wcscasecmp.texi: Likewise.
51727         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51728         * doc/posix-functions/wcscoll_l.texi: Likewise.
51729         * doc/posix-functions/wcsdup.texi: Likewise.
51730         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51731         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51732         * doc/posix-functions/wcsnlen.texi: Likewise.
51733         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51734         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51735         * doc/posix-functions/wctrans_l.texi: Likewise.
51736         * doc/posix-functions/wctype_l.texi: Likewise.
51737         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51738         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51739         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51740         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51741         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51742         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51743         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51744         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51745         * doc/glibc-functions/wcschrnul.texi: Likewise.
51746         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51747         * doc/glibc-functions/wcstod_l.texi: Likewise.
51748         * doc/glibc-functions/wcstof_l.texi: Likewise.
51749         * doc/glibc-functions/wcstol_l.texi: Likewise.
51750         * doc/glibc-functions/wcstold_l.texi: Likewise.
51751         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51752         * doc/glibc-functions/wcstoq.texi: Likewise.
51753         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51754         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51755         * doc/glibc-functions/wcstouq.texi: Likewise.
51756         * doc/glibc-functions/wmempcpy.texi: Likewise.
51757
51758 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51759             Eric Blake  <ebb9@byu.net>
51760             Paolo Bonzini  <bonzini@gnu.org>
51761             Bruno Haible  <bruno@clisp.org>
51762
51763         Make c-stack work on Haiku.
51764         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51765         (c_stack_action): Use SA_ONSTACK flag.
51766
51767 2008-12-22  Bruno Haible  <bruno@clisp.org>
51768
51769         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51770
51771 2008-12-22  Bruno Haible  <bruno@clisp.org>
51772
51773         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51774         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51775         being overridden.
51776         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51777         New macros.
51778         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51780         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51781         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51782
51783 2008-12-22  Bruno Haible  <bruno@clisp.org>
51784
51785         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51786         from test code.
51787
51788 2008-12-22  Eric Blake  <ebb9@byu.net>
51789
51790         Avoid gcc warnings on cygwin.
51791         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51792         Avoid unused variable.
51793         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51794         Likewise.
51795
51796 2008-12-22  Bruno Haible  <bruno@clisp.org>
51797
51798         Remove HAVE_MBRTOWC conditionals.
51799         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51800         (mbscasecmp): Assume mbrtowc function.
51801         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51802         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51803         * lib/mbschr.c: Include mbuiter.h unconditionally.
51804         (mbschr): Assume mbrtowc function.
51805         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51806         (mbscspn): Assume mbrtowc function.
51807         * lib/mbslen.c: Include mbuiter.h unconditionally.
51808         (mbslen): Assume mbrtowc function.
51809         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51810         (mbsncasecmp): Assume mbrtowc function.
51811         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51812         (mbsnlen): Assume mbrtowc function.
51813         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51814         (mbspbrk): Assume mbrtowc function.
51815         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51816         (mbspcasecmp): Assume mbrtowc function.
51817         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51818         (mbsrchr): Assume mbrtowc function.
51819         * lib/mbssep.c: Include mbuiter.h unconditionally.
51820         (mbssep): Assume mbrtowc function.
51821         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51822         (mbsspn): Assume mbrtowc function.
51823         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51824         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51825         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51826         (mbstok_r): Assume mbrtowc function.
51827         * lib/propername.c: Include mbuiter.h unconditionally.
51828         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51829         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51830         (trim2): Assume mbrtowc function.
51831         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51832         (mbsnwidth): Assume mbrtowc function.
51833         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51834         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51835         fallback definitions.
51836         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51837
51838 2008-12-22  Bruno Haible  <bruno@clisp.org>
51839
51840         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51841
51842 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51843
51844         * modules/regex: Request emulations for the mb*/wc* functions we need.
51845         * m4/regex.m4: Don't look for those functions here.
51846         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51847
51848 2008-12-22  Bruno Haible  <bruno@clisp.org>
51849
51850         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51851
51852 2008-12-21  Bruno Haible  <bruno@clisp.org>
51853
51854         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51855         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51856         (Include): Remove conditionalization.
51857         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51858         (Include): Remove conditionalization.
51859         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51860         (Include): Remove conditionalization.
51861         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51862         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51863         * NEWS: Mention the change.
51864         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51865         via Sergey Poznyakoff <gray@gnu.org.ua>.
51866
51867 2008-12-21  Bruno Haible  <bruno@clisp.org>
51868
51869         * MODULES.html.sh (Extended multibyte and wide character utilities
51870         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51871         wcrtomb, wcsrtombs.
51872         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51873         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51874         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51875         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51876
51877 2008-12-21  Bruno Haible  <bruno@clisp.org>
51878
51879         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51880
51881 2008-12-21  Bruno Haible  <bruno@clisp.org>
51882
51883         * modules/wcsnrtombs-tests: New file.
51884         * tests/test-wcsnrtombs1.sh: New file.
51885         * tests/test-wcsnrtombs2.sh: New file.
51886         * tests/test-wcsnrtombs3.sh: New file.
51887         * tests/test-wcsnrtombs4.sh: New file.
51888         * tests/test-wcsnrtombs.c: New file.
51889
51890         New module 'wcsnrtombs'.
51891         * lib/wchar.in.h (wcsnrtombs): New declaration.
51892         * lib/wcsnrtombs.c: New file.
51893         * lib/wcsrtombs-state.c: New file.
51894         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51895         (internal_state): Remove variable.
51896         * m4/wcsnrtombs.m4: New file.
51897         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51898         compilation units.
51899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51900         HAVE_WCSNRTOMBS.
51901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51902         HAVE_WCSNRTOMBS.
51903         * modules/wcsnrtombs: New file.
51904         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51905         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51906
51907 2008-12-21  Bruno Haible  <bruno@clisp.org>
51908
51909         * modules/wcsrtombs-tests: New file.
51910         * tests/test-wcsrtombs1.sh: New file.
51911         * tests/test-wcsrtombs2.sh: New file.
51912         * tests/test-wcsrtombs3.sh: New file.
51913         * tests/test-wcsrtombs4.sh: New file.
51914         * tests/test-wcsrtombs.c: New file.
51915
51916         New module 'wcsrtombs'.
51917         * lib/wchar.in.h (wcsrtombs): New declaration.
51918         * lib/wcsrtombs.c: New file.
51919         * m4/wcsrtombs.m4: New file.
51920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51921         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51923         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51924         * modules/wcsrtombs: New file.
51925         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51926         bugs.
51927
51928 2008-12-21  Bruno Haible  <bruno@clisp.org>
51929
51930         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51931         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51932         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51933         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51934         if not correct.
51935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51936         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51937         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51938         m4/locale-zh.m4, m4/codeset.m4.
51939         * doc/posix-functions/wcrtomb.texi: Document the bug.
51940
51941 2008-12-21  Bruno Haible  <bruno@clisp.org>
51942
51943         Work around a btowc() bug on IRIX 6.5.
51944         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51945         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51946         REPLACE_WTOBC if not.
51947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51948         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51949         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51950
51951 2008-12-21  Bruno Haible  <bruno@clisp.org>
51952
51953         * modules/wcrtomb-tests: New file.
51954         * tests/test-wcrtomb.sh: New file.
51955         * tests/test-wcrtomb.c: New file.
51956
51957         New module 'wcrtomb'.
51958         * lib/wchar.in.h (wcrtomb): New declaration.
51959         * lib/wcrtomb.c: New file.
51960         * m4/wcrtomb.m4: New file.
51961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51962         HAVE_WCRTOMB.
51963         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51964         HAVE_WCRTOMB.
51965         * modules/wcrtomb: New file.
51966         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51967
51968 2008-12-21  Bruno Haible  <bruno@clisp.org>
51969
51970         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51971         * modules/mbsrtowcs (Files): Likewise.
51972         * modules/wctob (Files): Likewise.
51973         * modules/c-strcase-tests (Files): Likewise.
51974         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51975         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51976         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51977         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51978         * modules/vasnprintf-posix-tests (Files): Likewise.
51979
51980 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51981
51982         gitlog-to-changelog: pass all command-line arguments to git-log
51983         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51984         it is sometimes convenient to filter the commits in various ways.
51985         gitlog-to-changelog only allows --since to specify a start date,
51986         but git-log itself supports many other filtering mechanisms.
51987         At the moment, I want to filter by branch name.  Rather than
51988         adding a --branch option to gitlog-to-changelog, it seems more
51989         flexible to simply pass all options directly to git-log and let
51990         git do the work.  Notice that this effectively makes --since a
51991         redundant option for gitlog-to-changelog, but removing it would
51992         require current usage to change since calls would then require
51993         an additional '--'.
51994
51995 2008-12-21  Bruno Haible  <bruno@clisp.org>
51996
51997         * modules/mbsnrtowcs-tests: New file.
51998         * tests/test-mbsnrtowcs1.sh: New file.
51999         * tests/test-mbsnrtowcs2.sh: New file.
52000         * tests/test-mbsnrtowcs3.sh: New file.
52001         * tests/test-mbsnrtowcs4.sh: New file.
52002         * tests/test-mbsnrtowcs.c: New file.
52003
52004         New module 'mbsnrtowcs'.
52005         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52006         * lib/mbsnrtowcs.c: New file.
52007         * lib/mbsrtowcs-state.c: New file.
52008         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52009         (internal_state): Remove variable.
52010         * m4/mbsnrtowcs.m4: New file.
52011         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52012         compilation units.
52013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52014         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52015         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52016         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52017         * modules/mbsnrtowcs: New file.
52018         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52019         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52020         portability problem.
52021
52022 2008-12-21  Bruno Haible  <bruno@clisp.org>
52023
52024         Work around mbsrtowcs bug.
52025         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52026         (gl_FUNC_MBSRTOWCS): Invoke it.
52027         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52028         m4/locale-zh.m4.
52029         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52030
52031 2008-12-21  Bruno Haible  <bruno@clisp.org>
52032
52033         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52034
52035 2008-12-21  Bruno Haible  <bruno@clisp.org>
52036
52037         Update doc for AIX.
52038         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52039         16-bit wchar_t type.
52040         * doc/posix-functions/btowc.texi: Likewise.
52041         * doc/posix-functions/fgetwc.texi: Likewise.
52042         * doc/posix-functions/fgetws.texi: Likewise.
52043         * doc/posix-functions/fputwc.texi: Likewise.
52044         * doc/posix-functions/fputws.texi: Likewise.
52045         * doc/posix-functions/fwide.texi: Likewise.
52046         * doc/posix-functions/fwprintf.texi: Likewise.
52047         * doc/posix-functions/fwscanf.texi: Likewise.
52048         * doc/posix-functions/getwchar.texi: Likewise.
52049         * doc/posix-functions/getwc.texi: Likewise.
52050         * doc/posix-functions/iswalnum.texi: Likewise.
52051         * doc/posix-functions/iswalpha.texi: Likewise.
52052         * doc/posix-functions/iswblank.texi: Likewise.
52053         * doc/posix-functions/iswcntrl.texi: Likewise.
52054         * doc/posix-functions/iswctype.texi: Likewise.
52055         * doc/posix-functions/iswdigit.texi: Likewise.
52056         * doc/posix-functions/iswgraph.texi: Likewise.
52057         * doc/posix-functions/iswlower.texi: Likewise.
52058         * doc/posix-functions/iswprint.texi: Likewise.
52059         * doc/posix-functions/iswpunct.texi: Likewise.
52060         * doc/posix-functions/iswspace.texi: Likewise.
52061         * doc/posix-functions/iswupper.texi: Likewise.
52062         * doc/posix-functions/iswxdigit.texi: Likewise.
52063         * doc/posix-functions/mbrtowc.texi: Likewise.
52064         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52065         * doc/posix-functions/mbstowcs.texi: Likewise.
52066         * doc/posix-functions/mbtowc.texi: Likewise.
52067         * doc/posix-functions/putwchar.texi: Likewise.
52068         * doc/posix-functions/putwc.texi: Likewise.
52069         * doc/posix-functions/swprintf.texi: Likewise.
52070         * doc/posix-functions/tolower.texi: Likewise.
52071         * doc/posix-functions/toupper.texi: Likewise.
52072         * doc/posix-functions/towctrans.texi: Likewise.
52073         * doc/posix-functions/ungetwc.texi: Likewise.
52074         * doc/posix-functions/vswprintf.texi: Likewise.
52075         * doc/posix-functions/wcrtomb.texi: Likewise.
52076         * doc/posix-functions/wcscat.texi: Likewise.
52077         * doc/posix-functions/wcschr.texi: Likewise.
52078         * doc/posix-functions/wcscmp.texi: Likewise.
52079         * doc/posix-functions/wcscoll.texi: Likewise.
52080         * doc/posix-functions/wcscpy.texi: Likewise.
52081         * doc/posix-functions/wcscspn.texi: Likewise.
52082         * doc/posix-functions/wcsftime.texi: Likewise.
52083         * doc/posix-functions/wcslen.texi: Likewise.
52084         * doc/posix-functions/wcsncat.texi: Likewise.
52085         * doc/posix-functions/wcsncmp.texi: Likewise.
52086         * doc/posix-functions/wcsncpy.texi: Likewise.
52087         * doc/posix-functions/wcspbrk.texi: Likewise.
52088         * doc/posix-functions/wcsrchr.texi: Likewise.
52089         * doc/posix-functions/wcsrtombs.texi: Likewise.
52090         * doc/posix-functions/wcsspn.texi: Likewise.
52091         * doc/posix-functions/wcsstr.texi: Likewise.
52092         * doc/posix-functions/wcstod.texi: Likewise.
52093         * doc/posix-functions/wcstof.texi: Likewise.
52094         * doc/posix-functions/wcstoimax.texi: Likewise.
52095         * doc/posix-functions/wcstok.texi: Likewise.
52096         * doc/posix-functions/wcstold.texi: Likewise.
52097         * doc/posix-functions/wcstoll.texi: Likewise.
52098         * doc/posix-functions/wcstol.texi: Likewise.
52099         * doc/posix-functions/wcstombs.texi: Likewise.
52100         * doc/posix-functions/wcstoull.texi: Likewise.
52101         * doc/posix-functions/wcstoul.texi: Likewise.
52102         * doc/posix-functions/wcstoumax.texi: Likewise.
52103         * doc/posix-functions/wcswidth.texi: Likewise.
52104         * doc/posix-functions/wcsxfrm.texi: Likewise.
52105         * doc/posix-functions/wctob.texi: Likewise.
52106         * doc/posix-functions/wctomb.texi: Likewise.
52107         * doc/posix-functions/wctrans.texi: Likewise.
52108         * doc/posix-functions/wctype.texi: Likewise.
52109         * doc/posix-functions/wcwidth.texi: Likewise.
52110         * doc/posix-functions/wmemchr.texi: Likewise.
52111         * doc/posix-functions/wmemcmp.texi: Likewise.
52112         * doc/posix-functions/wmemcpy.texi: Likewise.
52113         * doc/posix-functions/wmemmove.texi: Likewise.
52114         * doc/posix-functions/wmemset.texi: Likewise.
52115         * doc/posix-functions/wprintf.texi: Likewise.
52116         * doc/posix-functions/wscanf.texi: Likewise.
52117
52118 2008-12-21  Bruno Haible  <bruno@clisp.org>
52119
52120         Update doc for HP-UX 11.11.
52121         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52122         in HP-UX version 11.00, not in all versions of HP-UX 11.
52123         * doc/posix-functions/fwide.texi: Likewise.
52124         * doc/posix-functions/fwprintf.texi: Likewise.
52125         * doc/posix-functions/fwscanf.texi: Likewise.
52126         * doc/posix-functions/inet_ntop.texi: Likewise.
52127         * doc/posix-functions/inet_pton.texi: Likewise.
52128         * doc/posix-functions/mbrlen.texi: Likewise.
52129         * doc/posix-functions/mbrtowc.texi: Likewise.
52130         * doc/posix-functions/mbsinit.texi: Likewise.
52131         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52132         * doc/posix-functions/swprintf.texi: Likewise.
52133         * doc/posix-functions/swscanf.texi: Likewise.
52134         * doc/posix-functions/towctrans.texi: Likewise.
52135         * doc/posix-functions/vfwprintf.texi: Likewise.
52136         * doc/posix-functions/vswprintf.texi: Likewise.
52137         * doc/posix-functions/vwprintf.texi: Likewise.
52138         * doc/posix-functions/wcrtomb.texi: Likewise.
52139         * doc/posix-functions/wcsrtombs.texi: Likewise.
52140         * doc/posix-functions/wcsstr.texi: Likewise.
52141         * doc/posix-functions/wctob.texi: Likewise.
52142         * doc/posix-functions/wctrans.texi: Likewise.
52143         * doc/posix-functions/wmemchr.texi: Likewise.
52144         * doc/posix-functions/wmemcmp.texi: Likewise.
52145         * doc/posix-functions/wmemcpy.texi: Likewise.
52146         * doc/posix-functions/wmemmove.texi: Likewise.
52147         * doc/posix-functions/wmemset.texi: Likewise.
52148         * doc/posix-functions/wprintf.texi: Likewise.
52149         * doc/posix-functions/wscanf.texi: Likewise.
52150
52151 2008-12-21  Bruno Haible  <bruno@clisp.org>
52152
52153         Work around a portability problem.
52154         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52155         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52156
52157 2008-12-20  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52160         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52161         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52163         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52164
52165         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52166         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52167         set.
52168         (GNULIB_defined_mbstate_t): New macro.
52169         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52170         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52171         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52172         reuses the system's mbrtowc function but works around the bugs.
52173         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52174         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52175         macros.
52176         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52177         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52178         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52179         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52180         REPLACE_MBSINIT if mbsinit needs to be overridden.
52181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52182         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52183         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52184         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52185         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52186         m4/locale-zh.m4.
52187         (Depends): Add mbsinit.
52188         * modules/mbsinit (Depends): Add mbrtowc.
52189         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52190
52191 2008-12-20  Bruno Haible  <bruno@clisp.org>
52192
52193         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52194         so that there are no conversion errors on AIX.
52195         * tests/test-mbsrtowcs.c (main): LIkewise.
52196
52197 2008-12-20  Bruno Haible  <bruno@clisp.org>
52198
52199         Work around wctob bug on Solaris <= 9.
52200         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52201         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52203         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52204         * modules/wctob (Files): Add m4/locale-fr.m4.
52205         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52206
52207 2008-12-20  Bruno Haible  <bruno@clisp.org>
52208
52209         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52210         /dev/null.
52211         * tests/test-select-in.sh: Likewise.
52212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52213
52214 2008-12-20  Bruno Haible  <bruno@clisp.org>
52215
52216         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52217         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52218         Cygwin 1.5.x.
52219
52220 2008-12-20  Bruno Haible  <bruno@clisp.org>
52221
52222         Ensure mbstate_t is defined on HP-UX 11.11.
52223         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52224         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52225         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52226         AC_USE_SYSTEM_EXTENSIONS.
52227         * modules/fnmatch (Depends-on): Add extensions.
52228         * modules/mbrlen (Depends-on): Likewise.
52229         * modules/mbrtowc (Depends-on): Likewise.
52230         * modules/mbsinit (Depends-on): Likewise.
52231         * modules/mbsrtowcs (Depends-on): Likewise.
52232         * modules/mbswidth (Depends-on): Likewise.
52233         * modules/quotearg (Depends-on): Likewise.
52234         * modules/strftime (Depends-on): Likewise.
52235
52236 2008-12-20  Bruno Haible  <bruno@clisp.org>
52237
52238         Ensure wctob is declared on IRIX 6.5.
52239         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52240         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52241         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52243         of HAVE_WCTOB.
52244         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52245         HAVE_WCTOB.
52246         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52247
52248 2008-12-19  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/mbsrtowcs-tests: New file.
52251         * tests/test-mbsrtowcs1.sh: New file.
52252         * tests/test-mbsrtowcs2.sh: New file.
52253         * tests/test-mbsrtowcs3.sh: New file.
52254         * tests/test-mbsrtowcs4.sh: New file.
52255         * tests/test-mbsrtowcs.c: New file.
52256
52257         New module 'mbsrtowcs'.
52258         * lib/wchar.in.h (mbsrtowcs): New declaration.
52259         * lib/mbsrtowcs.c: New file.
52260         * m4/mbsrtowcs.m4: New file.
52261         * modules/mbsrtowcs: New file.
52262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52263         HAVE_MBSRTOWCS.
52264         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52265         HAVE_MBSRTOWCS.
52266         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52267
52268 2008-12-19  Bruno Haible  <bruno@clisp.org>
52269
52270         New module 'mbrlen'.
52271         * lib/wchar.in.h (mbrlen): New declaration.
52272         * lib/mbrlen.c: New file.
52273         * m4/mbrlen.m4: New file.
52274         * modules/mbrlen: New file.
52275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52276         HAVE_MBRLEN.
52277         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52278         HAVE_MBRLEN.
52279         * doc/posix-functions/mbrlen.texi: Document the new module.
52280
52281 2008-12-19  Bruno Haible  <bruno@clisp.org>
52282
52283         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52284         * modules/mbrtowc (Depends-on): Add verify.
52285         Suggested by Paul Eggert.
52286
52287 2008-12-18  Bruno Haible  <bruno@clisp.org>
52288
52289         * modules/mbsinit-tests: New file.
52290         * tests/test-mbsinit.sh: New file.
52291         * tests/test-mbsinit.c: New file.
52292
52293 2008-12-18  Bruno Haible  <bruno@clisp.org>
52294
52295         * modules/mbrtowc-tests: New file.
52296         * tests/test-mbrtowc1.sh: New file.
52297         * tests/test-mbrtowc2.sh: New file.
52298         * tests/test-mbrtowc3.sh: New file.
52299         * tests/test-mbrtowc4.sh: New file.
52300         * tests/test-mbrtowc.c: New file.
52301
52302         New module 'mbrtowc'.
52303         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52304         mbsinit and mbrtowc.
52305         (mbrtowc): New declaration.
52306         * lib/mbrtowc.c: New file.
52307         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52308         * modules/mbrtowc: New file.
52309         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52310         HAVE_MBRTOWC.
52311         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52312         HAVE_MBRTOWC.
52313         * doc/posix-functions/mbrtowc.texi: Document the new module.
52314
52315 2008-12-18  Bruno Haible  <bruno@clisp.org>
52316
52317         New module 'wctob'.
52318         * lib/wchar.in.h (wctob): New declaration.
52319         * lib/wctob.c: New file.
52320         * m4/wctob.m4: New file.
52321         * modules/wctob: New file.
52322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52323         HAVE_WCTOB.
52324         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52325         * doc/posix-functions/wctob.texi: Document the new module.
52326
52327 2008-12-18  Bruno Haible  <bruno@clisp.org>
52328
52329         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52330         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52331
52332 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52333
52334         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52335         G. Christensen" <tgc@jupiterrise.com>.
52336
52337         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52338         G. Christensen" <tgc@jupiterrise.com>.
52339
52340         * lib/flock.c: Need to include string.h.  Reported by "Tom
52341         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52342         <ebb9@byu.net>.
52343
52344 2008-12-18  Bruno Haible  <bruno@clisp.org>
52345
52346         * m4/locale-ja.m4: New file, from GNU gettext.
52347
52348 2008-12-17  Bruno Haible  <bruno@clisp.org>
52349
52350         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52351         Suggested by Eric Blake.
52352
52353 2008-12-17  Bruno Haible  <bruno@clisp.org>
52354
52355         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52356
52357 2008-12-17  Bruno Haible  <bruno@clisp.org>
52358
52359         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52360         * modules/mbsinit (Depends-on): Add verify.
52361         Suggested by Paul Eggert.
52362
52363 2008-12-17  Bruno Haible  <bruno@clisp.org>
52364
52365         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52366         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52367         gl_FUNC_MBRTOWC.
52368         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52369         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52370         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52371         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52372         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52373         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52374         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52375         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52376         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52377         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52378         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52379         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52380         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52381         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52382         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52383         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52384         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52385         * modules/trim (configure.ac): Likewise.
52386
52387 2008-12-17  Bruno Haible  <bruno@clisp.org>
52388
52389         * modules/btowc-tests: New file.
52390         * tests/test-btowc1.sh: New file.
52391         * tests/test-btowc2.sh: New file.
52392         * tests/test-btowc.c: New file.
52393
52394         New module 'btowc'.
52395         * lib/wchar.in.h (btowc): New declaration.
52396         * lib/btowc.c: New file.
52397         * m4/btowc.m4: New file.
52398         * modules/btowc: New file.
52399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52400         HAVE_BTOWC.
52401         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52402         * doc/posix-functions/btowc.texi: Document the new module.
52403
52404 2008-12-17  Bruno Haible  <bruno@clisp.org>
52405
52406         New module 'mbsinit'.
52407         * lib/wchar.in.h (mbsinit): New declaration.
52408         * lib/mbsinit.c: New file.
52409         * m4/mbsinit.m4: New file.
52410         * modules/mbsinit: New file.
52411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52412         HAVE_MBSINIT.
52413         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52414         HAVE_MBSINIT.
52415         * doc/posix-functions/mbsinit.texi: Document the new module.
52416
52417 2008-12-16  Bruno Haible  <bruno@clisp.org>
52418
52419         * lib/unistd.in.h: Add comment.
52420         * tests/test-environ.c: Don't include <stdlib.h>.
52421
52422 2008-12-16  Bruno Haible  <bruno@clisp.org>
52423
52424         * lib/parse-duration.h (parse_duration): Document return value
52425         convention.
52426         * lib/parse-duration.c: Include specification header first. Add
52427         comments.
52428         (_): Remove macro.
52429         (parse_year_month_day, parse_hour_minute_second): Move side effects
52430         outside of strchr call.
52431         (parse_non_iso8601): Move side effects outside of isspace call.
52432         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52433         call.
52434
52435 2008-12-16  Bruno Haible  <bruno@clisp.org>
52436
52437         * tests/test-parse-duration.sh: Produce no output when the test
52438         succeeds.
52439
52440 2008-12-16  Bruno Haible  <bruno@clisp.org>
52441
52442         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52443         expressions.
52444
52445 2008-12-15  Bruno Haible  <bruno@clisp.org>
52446
52447         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52448         * doc/glibc-functions/flistxattr.texi: Likewise.
52449         * doc/glibc-functions/fopencookie.texi: Likewise.
52450         * doc/glibc-functions/fremovexattr.texi: Likewise.
52451         * doc/glibc-functions/fsetxattr.texi: Likewise.
52452         * doc/glibc-functions/getxattr.texi: Likewise.
52453         * doc/glibc-functions/lgetxattr.texi: Likewise.
52454         * doc/glibc-functions/listxattr.texi: Likewise.
52455         * doc/glibc-functions/llistxattr.texi: Likewise.
52456         * doc/glibc-functions/lremovexattr.texi: Likewise.
52457         * doc/glibc-functions/lsetxattr.texi: Likewise.
52458         * doc/glibc-functions/removexattr.texi: Likewise.
52459         * doc/glibc-functions/setxattr.texi: Likewise.
52460         * doc/posix-functions/open_memstream.texi: Likewise.
52461
52462 2008-12-15  Eric Blake  <ebb9@byu.net>
52463
52464         Update doc for cygwin 1.7.
52465         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52466         functions.
52467         * doc/posix-functions/fchmodat.texi: Likewise.
52468         * doc/posix-functions/fchownat.texi: Likewise.
52469         * doc/posix-functions/fdopendir.texi: Likewise.
52470         * doc/posix-functions/fmemopen.texi: Likewise.
52471         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52472         * doc/posix-functions/fstatat.texi: Likewise.
52473         * doc/posix-functions/futimens.texi: Likewise.
52474         * doc/posix-functions/gai_strerror.texi: Likewise.
52475         * doc/posix-functions/getaddrinfo.texi: Likewise.
52476         * doc/posix-functions/getnameinfo.texi: Likewise.
52477         * doc/posix-functions/if_freenameindex.texi: Likewise.
52478         * doc/posix-functions/if_indextoname.texi: Likewise.
52479         * doc/posix-functions/if_nameindex.texi: Likewise.
52480         * doc/posix-functions/if_nametoindex.texi: Likewise.
52481         * doc/posix-functions/insque.texi: Likewise.
52482         * doc/posix-functions/linkat.texi: Likewise.
52483         * doc/posix-functions/llrint.texi: Likewise.
52484         * doc/posix-functions/llrintf.texi: Likewise.
52485         * doc/posix-functions/llrintl.texi: Likewise.
52486         * doc/posix-functions/lockf.texi: Likewise.
52487         * doc/posix-functions/lrintl.texi: Likewise.
52488         * doc/posix-functions/mkdirat.texi: Likewise.
52489         * doc/posix-functions/mkfifoat.texi: Likewise.
52490         * doc/posix-functions/mknodat.texi: Likewise.
52491         * doc/posix-functions/mq_close.texi: Likewise.
52492         * doc/posix-functions/mq_getattr.texi: Likewise.
52493         * doc/posix-functions/mq_notify.texi: Likewise.
52494         * doc/posix-functions/mq_open.texi: Likewise.
52495         * doc/posix-functions/mq_receive.texi: Likewise.
52496         * doc/posix-functions/mq_send.texi: Likewise.
52497         * doc/posix-functions/mq_setattr.texi: Likewise.
52498         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52499         * doc/posix-functions/mq_timedsend.texi: Likewise.
52500         * doc/posix-functions/mq_unlink.texi: Likewise.
52501         * doc/posix-functions/open_memstream.texi: Likewise.
52502         * doc/posix-functions/openat.texi: Likewise.
52503         * doc/posix-functions/posix_fadvise.texi: Likewise.
52504         * doc/posix-functions/posix_fallocate.texi: Likewise.
52505         * doc/posix-functions/posix_madvise.texi: Likewise.
52506         * doc/posix-functions/posix_memalign.texi: Likewise.
52507         * doc/posix-functions/posix_openpt.texi: Likewise.
52508         * doc/posix-functions/readlinkat.texi: Likewise.
52509         * doc/posix-functions/remque.texi: Likewise.
52510         * doc/posix-functions/renameat.texi: Likewise.
52511         * doc/posix-functions/rintl.texi: Likewise.
52512         * doc/posix-functions/sem_unlink.texi: Likewise.
52513         * doc/posix-functions/shm_open.texi: Likewise.
52514         * doc/posix-functions/shm_unlink.texi: Likewise.
52515         * doc/posix-functions/signgam.texi: Likewise.
52516         * doc/posix-functions/sigset.texi: Likewise.
52517         * doc/posix-functions/stpcpy.texi: Likewise.
52518         * doc/posix-functions/stpncpy.texi: Likewise.
52519         * doc/posix-functions/strerror.texi: Likewise.
52520         * doc/posix-functions/strtod.texi: Likewise.
52521         * doc/posix-functions/symlinkat.texi: Likewise.
52522         * doc/posix-functions/unlinkat.texi: Likewise.
52523         * doc/posix-functions/utimensat.texi: Likewise.
52524         * doc/glibc-functions/bindresvport.texi: Likewise.
52525         * doc/glibc-functions/dn_expand.texi: Likewise.
52526         * doc/glibc-functions/exp10.texi: Likewise.
52527         * doc/glibc-functions/exp10f.texi: Likewise.
52528         * doc/glibc-functions/fgetxattr.texi: Likewise.
52529         * doc/glibc-functions/flistxattr.texi: Likewise.
52530         * doc/glibc-functions/fopencookie.texi: Likewise.
52531         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52532         * doc/glibc-functions/fremovexattr.texi: Likewise.
52533         * doc/glibc-functions/fsetxattr.texi: Likewise.
52534         * doc/glibc-functions/getifaddrs.texi: Likewise.
52535         * doc/glibc-functions/getxattr.texi: Likewise.
52536         * doc/glibc-functions/lgetxattr.texi: Likewise.
52537         * doc/glibc-functions/listxattr.texi: Likewise.
52538         * doc/glibc-functions/llistxattr.texi: Likewise.
52539         * doc/glibc-functions/lremovexattr.texi: Likewise.
52540         * doc/glibc-functions/lsetxattr.texi: Likewise.
52541         * doc/glibc-functions/pow10.texi: Likewise.
52542         * doc/glibc-functions/pow10f.texi: Likewise.
52543         * doc/glibc-functions/rcmd_af.texi: Likewise.
52544         * doc/glibc-functions/removexattr.texi: Likewise.
52545         * doc/glibc-functions/res_init.texi: Likewise.
52546         * doc/glibc-functions/res_mkquery.texi: Likewise.
52547         * doc/glibc-functions/res_query.texi: Likewise.
52548         * doc/glibc-functions/res_querydomain.texi: Likewise.
52549         * doc/glibc-functions/res_send.texi: Likewise.
52550         * doc/glibc-functions/rresvport_af.texi: Likewise.
52551         * doc/glibc-functions/setxattr.texi: Likewise.
52552         * doc/glibc-functions/strcasestr.texi: Likewise.
52553
52554 2008-12-15  Bruno Haible  <bruno@clisp.org>
52555
52556         Fix compilation error on OSF/1 4.0.
52557         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52558         <sys/time.h>, simply delegate to the system header.
52559         Reported by Daniel Richard G. <oss@teragram.com>.
52560
52561 2008-12-15  Bruno Haible  <bruno@clisp.org>
52562
52563         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52564         * doc/posix-functions/fchmodat.texi: Likewise.
52565         * doc/posix-functions/fchownat.texi: Likewise.
52566         * doc/posix-functions/fdopendir.texi: Likewise.
52567         * doc/posix-functions/fstatat.texi: Likewise.
52568         * doc/posix-functions/mkdirat.texi: Likewise.
52569         * doc/posix-functions/unlinkat.texi: Likewise.
52570
52571 2008-12-14  Bruno Haible  <bruno@clisp.org>
52572
52573         Update doc for POSIX:2008.
52574         * doc/posix-functions/faccessat.texi: New file.
52575         * doc/posix-functions/fchmodat.texi: New file.
52576         * doc/posix-functions/fchownat.texi: New file.
52577         * doc/posix-functions/fdopendir.texi: New file.
52578         * doc/posix-functions/fstatat.texi: New file.
52579         * doc/posix-functions/futimens.texi: New file.
52580         * doc/posix-functions/linkat.texi: New file.
52581         * doc/posix-functions/mkdirat.texi: New file.
52582         * doc/posix-functions/mkfifoat.texi: New file.
52583         * doc/posix-functions/mknodat.texi: New file.
52584         * doc/posix-functions/open_wmemstream.texi: New file.
52585         * doc/posix-functions/openat.texi: New file.
52586         * doc/posix-functions/psiginfo.texi: New file.
52587         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52588         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52589         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52590         * doc/posix-functions/readlinkat.texi: New file.
52591         * doc/posix-functions/renameat.texi: New file.
52592         * doc/posix-functions/strerror_l.texi: New file.
52593         * doc/posix-functions/symlinkat.texi: New file.
52594         * doc/posix-functions/unlinkat.texi: New file.
52595         * doc/posix-functions/utimensat.texi: New file.
52596         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52597
52598 2008-12-14  Bruno Haible  <bruno@clisp.org>
52599
52600         Update doc for POSIX:2008.
52601         * doc/posix-functions/alphasort.texi: Renamed from
52602         doc/glibc-functions/alphasort.texi.
52603         * doc/posix-functions/dirfd.texi: Renamed from
52604         doc/glibc-functions/dirfd.texi.
52605         * doc/posix-functions/dprintf.texi: Renamed from
52606         doc/glibc-functions/dprintf.texi.
52607         * doc/posix-functions/duplocale.texi: Renamed from
52608         doc/glibc-functions/duplocale.texi.
52609         * doc/posix-functions/fexecve.texi: Renamed from
52610         doc/glibc-functions/fexecve.texi.
52611         * doc/posix-functions/fmemopen.texi: Renamed from
52612         doc/glibc-functions/fmemopen.texi.
52613         * doc/posix-functions/freelocale.texi: Renamed from
52614         doc/glibc-functions/freelocale.texi.
52615         * doc/posix-functions/getdate_err.texi: Renamed from
52616         doc/glibc-functions/getdate_err.texi.
52617         * doc/posix-functions/isalnum_l.texi: Renamed from
52618         doc/glibc-functions/isalnum_l.texi.
52619         * doc/posix-functions/isalpha_l.texi: Renamed from
52620         doc/glibc-functions/isalpha_l.texi.
52621         * doc/posix-functions/isblank_l.texi: Renamed from
52622         doc/glibc-functions/isblank_l.texi.
52623         * doc/posix-functions/iscntrl_l.texi: Renamed from
52624         doc/glibc-functions/iscntrl_l.texi.
52625         * doc/posix-functions/isdigit_l.texi: Renamed from
52626         doc/glibc-functions/isdigit_l.texi.
52627         * doc/posix-functions/isgraph_l.texi: Renamed from
52628         doc/glibc-functions/isgraph_l.texi.
52629         * doc/posix-functions/islower_l.texi: Renamed from
52630         doc/glibc-functions/islower_l.texi.
52631         * doc/posix-functions/isprint_l.texi: Renamed from
52632         doc/glibc-functions/isprint_l.texi.
52633         * doc/posix-functions/ispunct_l.texi: Renamed from
52634         doc/glibc-functions/ispunct_l.texi.
52635         * doc/posix-functions/isspace_l.texi: Renamed from
52636         doc/glibc-functions/isspace_l.texi.
52637         * doc/posix-functions/isupper_l.texi: Renamed from
52638         doc/glibc-functions/isupper_l.texi.
52639         * doc/posix-functions/iswalnum_l.texi: Renamed from
52640         doc/glibc-functions/iswalnum_l.texi.
52641         * doc/posix-functions/iswalpha_l.texi: Renamed from
52642         doc/glibc-functions/iswalpha_l.texi.
52643         * doc/posix-functions/iswblank_l.texi: Renamed from
52644         doc/glibc-functions/iswblank_l.texi.
52645         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52646         doc/glibc-functions/iswcntrl_l.texi.
52647         * doc/posix-functions/iswctype_l.texi: Renamed from
52648         doc/glibc-functions/iswctype_l.texi.
52649         * doc/posix-functions/iswdigit_l.texi: Renamed from
52650         doc/glibc-functions/iswdigit_l.texi.
52651         * doc/posix-functions/iswgraph_l.texi: Renamed from
52652         doc/glibc-functions/iswgraph_l.texi.
52653         * doc/posix-functions/iswlower_l.texi: Renamed from
52654         doc/glibc-functions/iswlower_l.texi.
52655         * doc/posix-functions/iswprint_l.texi: Renamed from
52656         doc/glibc-functions/iswprint_l.texi.
52657         * doc/posix-functions/iswpunct_l.texi: Renamed from
52658         doc/glibc-functions/iswpunct_l.texi.
52659         * doc/posix-functions/iswspace_l.texi: Renamed from
52660         doc/glibc-functions/iswspace_l.texi.
52661         * doc/posix-functions/iswupper_l.texi: Renamed from
52662         doc/glibc-functions/iswupper_l.texi.
52663         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52664         doc/glibc-functions/iswxdigit_l.texi.
52665         * doc/posix-functions/isxdigit_l.texi: Renamed from
52666         doc/glibc-functions/isxdigit_l.texi.
52667         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52668         doc/glibc-functions/mbsnrtowcs.texi.
52669         * doc/posix-functions/mkdtemp.texi: Renamed from
52670         doc/glibc-functions/mkdtemp.texi.
52671         * doc/posix-functions/newlocale.texi: Renamed from
52672         doc/glibc-functions/newlocale.texi.
52673         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52674         doc/glibc-functions/nl_langinfo_l.texi.
52675         * doc/posix-functions/open_memstream.texi: Renamed from
52676         doc/glibc-functions/open_memstream.texi.
52677         * doc/posix-functions/opterr.texi: Renamed from
52678         doc/glibc-functions/opterr.texi.
52679         * doc/posix-functions/optind.texi: Renamed from
52680         doc/glibc-functions/optind.texi.
52681         * doc/posix-functions/optopt.texi: Renamed from
52682         doc/glibc-functions/optopt.texi.
52683         * doc/posix-functions/psignal.texi: Renamed from
52684         doc/glibc-functions/psignal.texi.
52685         * doc/posix-functions/scandir.texi: Renamed from
52686         doc/glibc-functions/scandir.texi.
52687         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52688         doc/glibc-functions/sched_get_priority_min.texi.
52689         * doc/posix-functions/signgam.texi: Renamed from
52690         doc/glibc-functions/signgam.texi.
52691         * doc/posix-functions/stpcpy.texi: Renamed from
52692         doc/glibc-functions/stpcpy.texi.
52693         * doc/posix-functions/stpncpy.texi: Renamed from
52694         doc/glibc-functions/stpncpy.texi.
52695         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52696         doc/glibc-functions/strcasecmp_l.texi.
52697         * doc/posix-functions/strcoll_l.texi: Renamed from
52698         doc/glibc-functions/strcoll_l.texi.
52699         * doc/posix-functions/strfmon_l.texi: Renamed from
52700         doc/glibc-functions/strfmon_l.texi.
52701         * doc/posix-functions/strftime_l.texi: Renamed from
52702         doc/glibc-functions/strftime_l.texi.
52703         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52704         doc/glibc-functions/strncasecmp_l.texi.
52705         * doc/posix-functions/strndup.texi: Renamed from
52706         doc/glibc-functions/strndup.texi.
52707         * doc/posix-functions/strnlen.texi: Renamed from
52708         doc/glibc-functions/strnlen.texi.
52709         * doc/posix-functions/strsignal.texi: Renamed from
52710         doc/glibc-functions/strsignal.texi.
52711         * doc/posix-functions/strxfrm_l.texi: Renamed from
52712         doc/glibc-functions/strxfrm_l.texi.
52713         * doc/posix-functions/timer_gettime.texi: Renamed from
52714         doc/glibc-functions/timer_gettime.texi.
52715         * doc/posix-functions/tolower_l.texi: Renamed from
52716         doc/glibc-functions/tolower_l.texi.
52717         * doc/posix-functions/toupper_l.texi: Renamed from
52718         doc/glibc-functions/toupper_l.texi.
52719         * doc/posix-functions/towctrans_l.texi: Renamed from
52720         doc/glibc-functions/towctrans_l.texi.
52721         * doc/posix-functions/towlower_l.texi: Renamed from
52722         doc/glibc-functions/towlower_l.texi.
52723         * doc/posix-functions/towupper_l.texi: Renamed from
52724         doc/glibc-functions/towupper_l.texi.
52725         * doc/posix-functions/uselocale.texi: Renamed from
52726         doc/glibc-functions/uselocale.texi.
52727         * doc/posix-functions/vdprintf.texi: Renamed from
52728         doc/glibc-functions/vdprintf.texi.
52729         * doc/posix-functions/wcpcpy.texi:
52730         Renamed from doc/glibc-functions/wcpcpy.texi.
52731         * doc/posix-functions/wcpncpy.texi: Renamed from
52732         doc/glibc-functions/wcpncpy.texi.
52733         * doc/posix-functions/wcscasecmp.texi: Renamed from
52734         doc/glibc-functions/wcscasecmp.texi.
52735         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52736         doc/glibc-functions/wcscasecmp_l.texi.
52737         * doc/posix-functions/wcscoll_l.texi: Renamed from
52738         doc/glibc-functions/wcscoll_l.texi.
52739         * doc/posix-functions/wcsdup.texi: Renamed from
52740         doc/glibc-functions/wcsdup.texi.
52741         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52742         doc/glibc-functions/wcsncasecmp.texi.
52743         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52744         doc/glibc-functions/wcsncasecmp_l.texi.
52745         * doc/posix-functions/wcsnlen.texi: Renamed from
52746         doc/glibc-functions/wcsnlen.texi.
52747         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52748         doc/glibc-functions/wcsnrtombs.texi.
52749         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52750         doc/glibc-functions/wcsxfrm_l.texi.
52751         * doc/posix-functions/wctrans_l.texi: Renamed from
52752         doc/glibc-functions/wctrans_l.texi.
52753         * doc/posix-functions/wctype_l.texi: Renamed from
52754         doc/glibc-functions/wctype_l.texi.
52755         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52756         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52757         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52758         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52759         these subsections.
52760         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52761         Remove sections.
52762
52763 2008-12-14  Bruno Haible  <bruno@clisp.org>
52764
52765         Update doc for POSIX:2008.
52766         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52767
52768 2008-12-14  Bruno Haible  <bruno@clisp.org>
52769
52770         Update doc for POSIX:2008.
52771         * doc/pastposix-functions/bcmp.texi: Renamed from
52772         doc/posix-functions/bcmp.texi.
52773         * doc/pastposix-functions/bcopy.texi: Renamed from
52774         doc/posix-functions/bcopy.texi.
52775         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52776         doc/posix-functions/bsd_signal.texi.
52777         * doc/pastposix-functions/bzero.texi: Renamed from
52778         doc/posix-functions/bzero.texi.
52779         * doc/pastposix-functions/ecvt.texi: Renamed from
52780         doc/posix-functions/ecvt.texi.
52781         * doc/pastposix-functions/fcvt.texi: Renamed from
52782         doc/posix-functions/fcvt.texi.
52783         * doc/pastposix-functions/ftime.texi: Renamed from
52784         doc/posix-functions/ftime.texi.
52785         * doc/pastposix-functions/gcvt.texi: Renamed from
52786         doc/posix-functions/gcvt.texi.
52787         * doc/pastposix-functions/getcontext.texi: Renamed from
52788         doc/posix-functions/getcontext.texi.
52789         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52790         doc/posix-functions/gethostbyaddr.texi.
52791         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52792         doc/posix-functions/gethostbyname.texi.
52793         * doc/pastposix-functions/getwd.texi: Renamed from
52794         doc/posix-functions/getwd.texi.
52795         * doc/pastposix-functions/h_errno.texi: Renamed from
52796         doc/posix-functions/h_errno.texi.
52797         * doc/pastposix-functions/index.texi: Renamed from
52798         doc/posix-functions/index.texi.
52799         * doc/pastposix-functions/makecontext.texi: Renamed from
52800         doc/posix-functions/makecontext.texi.
52801         * doc/pastposix-functions/mktemp.texi: Renamed from
52802         doc/posix-functions/mktemp.texi.
52803         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52804         doc/posix-functions/pthread_attr_getstackaddr.texi.
52805         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52806         doc/posix-functions/pthread_attr_setstackaddr.texi.
52807         * doc/pastposix-functions/rindex.texi: Renamed from
52808         doc/posix-functions/rindex.texi.
52809         * doc/pastposix-functions/scalb.texi: Renamed from
52810         doc/posix-functions/scalb.texi.
52811         * doc/pastposix-functions/setcontext.texi: Renamed from
52812         doc/posix-functions/setcontext.texi.
52813         * doc/pastposix-functions/swapcontext.texi: Renamed from
52814         doc/posix-functions/swapcontext.texi.
52815         * doc/pastposix-functions/ualarm.texi: Renamed from
52816         doc/posix-functions/ualarm.texi.
52817         * doc/pastposix-functions/usleep.texi: Renamed from
52818         doc/posix-functions/usleep.texi.
52819         * doc/pastposix-functions/vfork.texi: Renamed from
52820         doc/posix-functions/vfork.texi.
52821         * doc/pastposix-functions/wcswcs.texi: Renamed from
52822         doc/posix-functions/wcswcs.texi.
52823         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52824         (Function Substitutes): Update.
52825
52826 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52827
52828         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52829         m4/strerror.m4.
52830
52831 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52832             Bruno Haible  <bruno@clisp.org>
52833
52834         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52835
52836 2008-12-13  Bruno Haible  <bruno@clisp.org>
52837
52838         * modules/strtoull (Depends-on): Remove unistd.
52839
52840 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52841
52842         * modules/strtoull (Depends-on): Add stdlib.
52843
52844 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52845
52846         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52847
52848 2008-12-10  Jim Meyering  <meyering@redhat.com>
52849
52850         gl_ASSERT: don't say assertions are disabled when they're not
52851         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52852         "checking whether to enable assertions... no", when they are in
52853         fact enabled.  This is solely a bug in the output of configure.
52854         In spite of saying "no", NDEBUG was not defined in that case.
52855         Also, as noted by Eric Blake, leave assertions enabled upon
52856         --enable-assert=INVALID.
52857
52858 2008-12-10  Bruno Haible  <bruno@clisp.org>
52859
52860         Change MODULES.html to refer to POSIX:2008 where possible.
52861         * MODULES.html.sh (POSIX2008_URL): New variable.
52862         (posix_headers): Remove sys/timeb, ucontext.
52863         (posix2001_headers): New variable.
52864         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52865         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52866         index, makecontext, mktemp, pthread_attr_getstackaddr,
52867         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52868         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52869         (posix2001_functions): New variable.
52870         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52871         otherwise.
52872
52873 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52874
52875         add missing include to parse-duration.c
52876         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52877         * modules/parse-duration (Depends-on): Add xalloc.
52878
52879         fix sed script reading maint.mk
52880         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52881         (syntax-check-rules): Use it.
52882
52883 2008-12-09  Bruno Haible  <bruno@clisp.org>
52884
52885         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52886         MacOS X 10.4/PowerPC.
52887         Reported by Simon Josefsson.
52888
52889 2008-12-08  Jim Meyering  <meyering@redhat.com>
52890
52891         work around mingw's lack of some S_IF definitions
52892         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52893         Reported by Simon Josefsson.
52894
52895 2008-12-08  Bruno Haible  <bruno@clisp.org>
52896
52897         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52898         applied to variables. Needed on MacOS X 10.4/PowerPC.
52899         Reported by Simon Josefsson.
52900
52901 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52902         and Eric Blake  <ebb9@byu.net>
52903
52904         assert: honor --enable-assert
52905         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52906         order to honor --enable-assert, rather than treating it as a
52907         synonym for --disable-assert.
52908
52909 2008-12-08  Jim Meyering  <meyering@redhat.com>
52910
52911         * lib/posixtm.c: Remove now-useless declaration of mktime.
52912
52913         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52914
52915 2008-12-07  Bruno Haible  <bruno@clisp.org>
52916
52917         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52918         test_once): Mark functions as static.
52919         * tests/test-tls.c (test_tls): Likewise.
52920
52921 2008-12-07  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52924         iconv_register_autodetect.
52925
52926 2008-12-07  Jim Meyering  <meyering@redhat.com>
52927
52928         posixtm.c: avoid a warning
52929         * lib/posixtm.c (posixtime): Don't initialize tm0.
52930         It's no longer needed to placate gcc4's -Wuninitialized,
52931         and the attempt to placate would elicit a new warning.
52932
52933         unicodeio.c: mark unused parameters
52934         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52935         (fallback_failure_callback): Likewise.
52936
52937 2008-12-07  Bruno Haible  <bruno@clisp.org>
52938
52939         * gnulib-tool (func_create_testdir): When building the tests
52940         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52941         Reported by Simon Josefsson.
52942
52943 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52944
52945         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52946
52947 2008-12-06  Bruno Haible  <bruno@clisp.org>
52948
52949         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52950         Suggested by Eric Blake.
52951
52952 2008-12-06  Bruno Haible  <bruno@clisp.org>
52953
52954         Fix a c-stack test failure on MacOS X.
52955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52956         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52957         handler for SIGBUS as well.
52958         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52959         install a signal handler for SIGBUS as well.
52960         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52961
52962 2008-12-06  Bruno Haible  <bruno@clisp.org>
52963
52964         Advocacy documentation.
52965         * doc/gnulib-intro.texi (Benefits): New section.
52966         * doc/gnulib.texi: Update.
52967
52968 2008-12-06  Bruno Haible  <bruno@clisp.org>
52969
52970         Document the 'manywarnings' module.
52971         * doc/manywarnings.texi: New file.
52972         * doc/gnulib.texi: Include it.
52973
52974 2008-12-05  Eric Blake  <ebb9@byu.net>
52975
52976         tests: silence some gcc warnings
52977         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52978         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52979         type mismatches.
52980
52981 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52982             Bruno Haible  <bruno@clisp.org>
52983
52984         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52985
52986 2008-11-29  Jim Meyering  <meyering@redhat.com>
52987
52988         unicodeio.c: mark unused parameters
52989         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52990         (fallback_failure_callback): Likewise.
52991
52992         fts: fix a thinko
52993         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52994         (set_stat_type): Return S_IF*-valued "type" directly.
52995         Prompted by James Youngman's spotting a related bug.
52996         Confirmed by further testing through find.
52997
52998         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52999         * lib/fts.c (D_TYPE): Define.
53000         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53001         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53002         (s_ifmt_shift_bits): New function.
53003         (set_stat_type): New function.
53004         (fts_build): When not calling fts_stat, call set_stat_type
53005         to propagate dirent.d_type info to fts_read caller.
53006         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53007         fts_statp->st_mode type information may be valid.
53008
53009 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53010
53011         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53012         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53013         <sds@gnu.org>.
53014
53015 2008-11-20  Bruno Haible  <bruno@clisp.org>
53016
53017         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53018         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53019         INCLUDE_NEXT.
53020         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53021         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53022         * modules/math (Makefile.am): Substitute
53023         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53024         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53025
53026 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53027             Bruno Haible  <bruno@clisp.org>
53028
53029         * lib/stdint.in.h: Define all type macros so that their expansion is
53030         a single typedef'ed token. Fixes a compilation failure in Boost which
53031         does "using ::int8_t;".
53032
53033 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53034
53035         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53036         gl_MANYWARN_ALL_GCC.
53037         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53038         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53039         * modules/manywarnings: New file.
53040         * MODULES.html.sh: Mention manywarnings module.
53041
53042 2008-11-18  Bruno Haible  <bruno@clisp.org>
53043
53044         * doc/gnulib-tool.texi (Unit tests): New section.
53045
53046 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53047
53048         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53049         paths like 'lib/po/foo.po'.
53050
53051 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53052
53053         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53054         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53055
53056 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53057
53058         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53059         parameter works.
53060
53061 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53062
53063         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53064
53065 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53066
53067         * modules/parse-duration-tests: New file.
53068         * tests/test-parse-duration.sh: New file.
53069         * tests/test-parse-duration.c: New file.
53070
53071         New module 'parse-duration'.
53072         * lib/parse-duration.h: New file.
53073         * lib/parse-duration.c: New file.
53074         * modules/parse-duration: New file.
53075
53076 2008-11-17  Bruno Haible  <bruno@clisp.org>
53077
53078         * tests/test-select-out.sh: Comment out the first pipe test.
53079         Reported by Simon Josefsson.
53080
53081 2008-11-17  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53084         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53085         gl_HOSTENT.
53086
53087 2008-11-17  Bruno Haible  <bruno@clisp.org>
53088
53089         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53090         -lnetwork and -lnet. Needed for Haiku and BeOS.
53091
53092 2008-11-16  Bruno Haible  <bruno@clisp.org>
53093
53094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53095
53096 2008-11-16  Bruno Haible  <bruno@clisp.org>
53097
53098         Avoid test failure on Haiku.
53099         * tests/test-fsync.c: Include <errno.h>.
53100         (main): Don't require that fsync (0) fails.
53101
53102 2008-11-15  Bruno Haible  <bruno@clisp.org>
53103
53104         New module 'hostent'.
53105         * modules/hostent: New file.
53106         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53107
53108 2008-11-15  Bruno Haible  <bruno@clisp.org>
53109
53110         New module 'servent'.
53111         * modules/servent: New file.
53112         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53113
53114 2008-11-15  Bruno Haible  <bruno@clisp.org>
53115
53116         Avoid generating same test program with two different rules.
53117         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53118         test-frexp to test-frexp-nolibm.
53119         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53120         test-frexpl to test-frexpl-nolibm.
53121
53122 2008-11-15  Bruno Haible  <bruno@clisp.org>
53123
53124         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53125         $(FREXPL_LIBM).
53126
53127 2008-11-15  Bruno Haible  <bruno@clisp.org>
53128
53129         * lib/netdb.in.h: Activate the definitions also when the system's
53130         <netdb.h> has 'struct addrinfo'.
53131         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53132         EAI_OVERFLOW or AI_NUMERICSERV.
53133         * doc/posix-headers/netdb.texi: Document the problem.
53134
53135 2008-11-15  Bruno Haible  <bruno@clisp.org>
53136
53137         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53138
53139         Make the 'sched' module work on platforms where <sched.h> exists but
53140         is incomplete (such as Haiku).
53141         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53142         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53143         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53144         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53145         HAVE_STRUCT_SCHED_PARAM.
53146         * modules/sched (Depends-on): Add include_next.
53147         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53148         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53149         * doc/posix-headers/sched.texi: Document the issue.
53150
53151 2008-11-13  Jim Meyering  <meyering@redhat.com>
53152
53153         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53154         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53155         test would fail due to the difference in the Report bugs to ...
53156         line.  The expected address is empty, "<>", while the actual
53157         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53158
53159 2008-11-12  Bruno Haible  <bruno@clisp.org>
53160
53161         lstat: don't compile lstat.c on systems lacking lstat
53162         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53163         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53164         Reported by Daniel P. Berrange via Jim Meyering.
53165
53166 2008-11-12  Jim Meyering  <meyering@redhat.com>
53167
53168         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53169
53170 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53171
53172         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53173         instead.
53174
53175 2008-11-12  Bruno Haible  <bruno@clisp.org>
53176
53177         * lib/unicodeio.c: Include unistr.h.
53178         (utf8_wctomb): Remove function.
53179         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53180
53181 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53182
53183         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53184         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53185         <bruno@clisp.org>.
53186         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53187
53188 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53189
53190         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53191         * doc/gnulib.texi: Add section for warnings.
53192
53193 2008-11-11  Bruno Haible  <bruno@clisp.org>
53194
53195         * lib/sockets.h: Add a comment.
53196
53197 2008-11-11  Karl Berry  <karl@gnu.org>
53198
53199         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53200
53201 2008-11-11  Eric Blake  <ebb9@byu.net>
53202
53203         fdl.texi: avoid git symlinks
53204         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53205
53206 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53207
53208         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53209
53210 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53211
53212         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53213         (gl_WARN_ADD): Substitute $2 if literal.
53214
53215 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53216
53217         * m4/warning.m4: Remove.
53218
53219 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53220
53221         * m4/warnings.m4: Almost complete rewrite. :-)
53222
53223 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53224
53225         * modules/warnings: New module.
53226         * m4/warnings.m4: New file.
53227         * MODULES.html.sh: Mention warnings module.
53228         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53229         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53230
53231 2008-11-10  Eric Blake  <ebb9@byu.net>
53232
53233         fdl.texi: make a symlink to the latest version
53234         * doc/standards.texi: Revert today's earlier change.
53235         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53236         * doc/fdl.texi: ...and replace this with a symlink to the newer
53237         fdl-1.3.texi.
53238
53239 2008-11-10  Bruno Haible  <bruno@clisp.org>
53240
53241         * tests/test-select-fd.c (main): Accept the result file name as fourth
53242         argument.
53243         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53244         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53245
53246 2008-11-10  Bruno Haible  <bruno@clisp.org>
53247
53248         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53249         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53250         as autoconf-substituted macros.
53251         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53253         gl_NETDB_H_DEFAULTS. Set these variables.
53254         * modules/netdb (Makefile.am): Substitute these variables.
53255
53256 2008-11-10  Eric Blake  <ebb9@byu.net>
53257
53258         standards.texi: include correct file for FDL 1.3
53259         * doc/standards.texi (GNU Free Documentation License): Change
53260         include file to pull in FDL 1.3, not 1.2.
53261
53262         fdl.texi: revert accidental change to license
53263         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53264
53265 2008-11-10  Bruno Haible  <bruno@clisp.org>
53266
53267         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53268         cross-compiling guesses also when the native compile gives no result.
53269
53270 2008-11-10  Bruno Haible  <bruno@clisp.org>
53271
53272         * lib/spawni.c (__spawni): Force variable into the stack.
53273
53274 2008-11-10  Bruno Haible  <bruno@clisp.org>
53275
53276         Add support for Haiku.
53277         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53278         glibc and BeOS, but also on Haiku.
53279         * lib/fpurge.c (fpurge): Likewise.
53280         * lib/freadable.c (freadable): Likewise.
53281         * lib/freadahead.c (freadahead): Likewise.
53282         * lib/freading.c (freading): Likewise.
53283         * lib/freadptr.c (freadptr): Likewise.
53284         * lib/freadseek.c (freadptrinc): Likewise.
53285         * lib/fseeko.c (rpl_fseeko): Likewise.
53286         * lib/fseterr.c (fseterr): Likewise.
53287         * lib/fwritable.c (fwritable): Likewise.
53288         * lib/fwriting.c (fwriting): Likewise.
53289         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53290
53291 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53292
53293         * lib/config.charset: Treat Haiku like BeOS.
53294
53295 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53296
53297         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53298         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53299
53300 2008-11-08  Bruno Haible  <bruno@clisp.org>
53301
53302         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53303         AC_CACHE_CHECK.
53304
53305 2008-11-08  Bruno Haible  <bruno@clisp.org>
53306
53307         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53308
53309 2008-11-08  Bruno Haible  <bruno@clisp.org>
53310
53311         * tests/test-select-fd.c: New file.
53312         * tests/test-select-in.sh: New file.
53313         * tests/test-select-out.sh: New file.
53314         * tests/test-select-stdin.c: New file.
53315         * modules/select-tests (Files): Add the new files.
53316         (Depends-on): Add gettimeofday.
53317         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53318         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53319         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53320
53321 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53322             Bruno Haible  <bruno@clisp.org>
53323
53324         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53325
53326 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53327
53328         * build-aux/pmccabe2html: Added support for C++ source files.
53329
53330 2008-11-05  Ben Pfaff  <blp@gnu.org>
53331
53332         Fix lib/close.c build on Windows.
53333         * modules/close (Files): Add lib/w32sock.h.
53334
53335 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53336
53337         Accept Bison's NEWS format.
53338         * build-aux/announce-gen (print_news_deltas): Tweak
53339         $re_prefix.
53340
53341 2008-11-04  Bruno Haible  <bruno@clisp.org>
53342
53343         * modules/random_r (Maintainer): Add glibc.
53344
53345 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53346
53347         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53348         by karl@freefriends.org (Karl Berry).
53349         * doc/alloca.texi: Likewise.
53350         * doc/c-ctype.texi: Likewise.
53351         * doc/c-strcase.texi: Likewise.
53352         * doc/c-strcaseeq.texi: Likewise.
53353         * doc/c-strcasestr.texi: Likewise.
53354         * doc/c-strstr.texi: Likewise.
53355         * doc/c-strtod.texi: Likewise.
53356         * doc/c-strtold.texi: Likewise.
53357         * doc/ctime.texi: Likewise.
53358         * doc/error.texi: Likewise.
53359         * doc/fdl.texi: Likewise.
53360         * doc/gcd.texi: Likewise.
53361         * doc/getdate.texi: Likewise.
53362         * doc/gnulib-intro.texi: Likewise.
53363         * doc/gnulib-tool.texi: Likewise.
53364         * doc/gnulib.texi: Likewise.
53365         * doc/inet_ntoa.texi: Likewise.
53366         * doc/maintain.texi: Likewise.
53367         * doc/make-stds.texi: Likewise.
53368         * doc/quote.texi: Likewise.
53369         * doc/regexprops-generic.texi: Likewise.
53370         * doc/standards.texi: Likewise.
53371         * doc/verify.texi: Likewise.
53372         * doc/visibility.texi: Likewise.
53373         * doc/gnulib.texi (GNU Free Documentation License): Include
53374         fdl-1.3.texi instead of fdl.texi.
53375
53376 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53377
53378         * doc/fdl-1.3.texi: New file, from
53379         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53380         * modules/fdl-1.3: Add.
53381         * MODULES.html.sh: Add fdl-1.3.
53382
53383 2008-11-03  Bruno Haible  <bruno@clisp.org>
53384
53385         Make determination of absolute name of header file work with AIX xlc.
53386         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53387         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53388         preprocessing.
53389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53390         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53391
53392 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53393
53394         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53395         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53396         <ludo@gnu.org>.
53397
53398 2008-11-02  Bruno Haible  <bruno@clisp.org>
53399
53400         Mark 'strpbrk' obsolete.
53401         * modules/strpbrk (Status, Notice): New sections.
53402         * modules/strtok_r (Depends-on): Add strpbrk.
53403
53404 2008-11-02  Bruno Haible  <bruno@clisp.org>
53405
53406         Mark 'strdup' obsolete.
53407         * modules/strdup (Status, Notice): New sections.
53408         * modules/findprog (Depends-on): Add strdup.
53409         * modules/getaddrinfo (Depends-on): Likewise.
53410         * modules/localename (Depends-on): Likewise.
53411         * modules/relocatable-lib (Depends-on): Likewise.
53412         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53413         * modules/relocatable-prog (Depends-on): Likewise.
53414         * modules/trim (Depends-on): Likewise.
53415         * modules/unictype/gen-ctype (Depends-on): Likewise.
53416         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53417
53418 2008-11-02  Bruno Haible  <bruno@clisp.org>
53419
53420         Mark 'strcspn' obsolete.
53421         * modules/strcspn (Status, Notice): New sections.
53422
53423 2008-11-02  Bruno Haible  <bruno@clisp.org>
53424
53425         Mark 'rmdir' obsolete.
53426         * modules/rmdir (Status, Notice): New sections.
53427         * modules/clean-temp (Depends-on): Add rmdir.
53428         * modules/openat (Depends-on): Likewise.
53429
53430 2008-11-02  Bruno Haible  <bruno@clisp.org>
53431
53432         Mark 'raise' obsolete.
53433         * modules/raise (Status, Notice): New sections.
53434         (Include): Specify <signal.h>.
53435         * modules/stdio (Depends-on): Add raise.
53436         * modules/write (Depends-on): Likewise.
53437
53438 2008-11-02  Bruno Haible  <bruno@clisp.org>
53439
53440         Mark 'memset' obsolete.
53441         * modules/memset (Status, Notice): New sections.
53442
53443 2008-11-02  Bruno Haible  <bruno@clisp.org>
53444
53445         Mark 'memmove' obsolete.
53446         * modules/memmove (Status, Notice): New sections.
53447         * modules/argp (Depends-on): Add memmove.
53448         * modules/argz (Depends-on): Likewise.
53449         * modules/canonicalize (Depends-on): Likewise.
53450         * modules/canonicalize-lgpl (Depends-on): Likewise.
53451         * modules/fts (Depends-on): Likewise.
53452         * modules/getcwd (Depends-on): Likewise.
53453         * modules/human (Depends-on): Likewise.
53454         * modules/regex (Depends-on): Likewise.
53455         * modules/striconveh (Depends-on): Likewise.
53456         * modules/trim (Depends-on): Likewise.
53457         * modules/unistr/u8-move (Depends-on): Likewise.
53458         * modules/unistr/u16-move (Depends-on): Likewise.
53459         * modules/unistr/u32-move (Depends-on): Likewise.
53460
53461 2008-11-02  Bruno Haible  <bruno@clisp.org>
53462
53463         Mark 'memcpy' obsolete.
53464         * modules/memcpy (Status, Notice): New sections.
53465
53466 2008-11-02  Bruno Haible  <bruno@clisp.org>
53467
53468         Mark 'memcmp' obsolete.
53469         * modules/memcmp (Status, Notice): New sections.
53470         * modules/argmatch (Depends-on): Add memchr.
53471         * modules/backupfile (Depends-on): Likewise.
53472         * modules/c-strcasestr (Depends-on): Likewise.
53473         * modules/crypto/des (Depends-on): Likewise.
53474         * modules/csharpcomp (Depends-on): Likewise.
53475         * modules/fnmatch (Depends-on): Likewise.
53476         * modules/git-merge-changelog (Depends-on): Likewise.
53477         * modules/isnand (Depends-on): Likewise.
53478         * modules/isnand-nolibm (Depends-on): Likewise.
53479         * modules/isnanf (Depends-on): Likewise.
53480         * modules/isnanf-nolibm (Depends-on): Likewise.
53481         * modules/isnanl (Depends-on): Likewise.
53482         * modules/isnanl-nolibm (Depends-on): Likewise.
53483         * modules/mbchar (Depends-on): Likewise.
53484         * modules/memcoll (Depends-on): Likewise.
53485         * modules/quotearg (Depends-on): Likewise.
53486         * modules/regex (Depends-on): Likewise.
53487         * modules/relocatable-prog (Depends-on): Likewise.
53488         * modules/same (Depends-on): Likewise.
53489         * modules/signbit (Depends-on): Likewise.
53490         * modules/strcasestr-simple (Depends-on): Likewise.
53491         * modules/unictype/gen-ctype (Depends-on): Likewise.
53492         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53493         * modules/uniname/uniname (Depends-on): Likewise.
53494         * modules/unistr/u8-cmp (Depends-on): Likewise.
53495
53496 2008-11-02  Bruno Haible  <bruno@clisp.org>
53497
53498         Mark 'memchr' obsolete.
53499         * modules/memchr (Status, Notice): New sections.
53500         * modules/argp (Depends-on): Add memchr.
53501         * modules/base64 (Depends-on): Likewise.
53502         * modules/c-strcasestr (Depends-on): Likewise.
53503         * modules/chdir-long (Depends-on): Likewise.
53504         * modules/fnmatch (Depends-on): Likewise.
53505         * modules/getsubopt (Depends-on): Likewise.
53506         * modules/git-merge-changelog (Depends-on): Likewise.
53507         * modules/glob (Depends-on): Likewise.
53508         * modules/strcasestr-simple (Depends-on): Likewise.
53509         * modules/strnlen (Depends-on): Likewise.
53510
53511 2008-11-02  Bruno Haible  <bruno@clisp.org>
53512
53513         Mark 'atexit' obsolete.
53514         * modules/atexit (Status, Notice): New sections.
53515         * modules/chdir-long (Depends-on): Add atexit.
53516         * modules/wait-process (Depends-on): Likewise.
53517
53518 2008-11-02  Bruno Haible  <bruno@clisp.org>
53519
53520         * gnulib-tool: New option --with-obsolete.
53521         (func_usage): Document it.
53522         (func_modules_transitive_closure): Drop obsolete dependencies if
53523         incobsolete is not true.
53524         (func_import): Read and save the incobsolete variable to the cache.
53525
53526 2008-11-02  Bruno Haible  <bruno@clisp.org>
53527
53528         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53529         * gnulib-tool: New option --extract-status.
53530         (func_usage): Document it.
53531         (sed_extract_prog): Recognize it.
53532         (func_get_status): New function.
53533
53534 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53535
53536         * modules/sockets (License): Change from LGPL to LGPLv2+.
53537
53538 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53539
53540         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53541
53542 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53543
53544         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53545         Mention times and sys_times.
53546         * modules/sys_times, modules/sys_times-tests: New modules.
53547         * modules/times, modules/times-tests: Likewise
53548         * m4/sys_times_h.m4: New file.
53549         * lib/sys_times.in.h: Likewise
53550         * lib/times.c: Likewise.
53551         * tests/test-sys_times.c: Likewise.
53552         * tests/test-times.c: Likewise.
53553         * doc/posix-headers/sys_times.texi: Update.
53554         * doc/posix-functions/times.texi: Update.
53555
53556 2008-10-28  Jim Meyering  <meyering@redhat.com>
53557
53558         * modules/tempname (Depends-on): Add lstat.
53559
53560         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53561
53562 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53563
53564         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53565         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53566         using idiom used elsewhere in gnulib.
53567
53568 2008-10-27  Jim Meyering  <meyering@redhat.com>
53569
53570         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53571
53572 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53573
53574         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53575         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53576         programs.
53577         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53578
53579 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53580
53581         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53582
53583 2008-10-27  Bruno Haible  <bruno@clisp.org>
53584
53585         * tests/test-lstat.c: Include <stdio.h>.
53586
53587 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53588
53589         * modules/lstat-tests: New module.
53590         * tests/test-lstat.c: New file.
53591
53592 2008-10-26  Jim Meyering  <meyering@redhat.com>
53593
53594         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53595
53596 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53597             Bruno Haible  <bruno@clisp.org>
53598
53599         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53600         * modules/configmake (Include): Add a note that the include must come
53601         after all system headers.
53602         * lib/javaversion.c: Include configmake.h after all other includes.
53603
53604 2008-10-26  Bruno Haible  <bruno@clisp.org>
53605
53606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53607         HAVE_STRUCT_RANDOM_DATA to 1.
53608         (gl_STDLIB_H): Simplify.
53609
53610 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53611
53612         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53613         substitute HAVE_STRUCT_RANDOM_DATA.
53614         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53615         random_data.
53616         * modules/stdlib (Makefile.am): Substitute
53617         HAVE_STRUCT_RANDOM_DATA.
53618
53619 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53620
53621         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53622         * doc/gnulib-intro.texi (Copyright): Likewise.
53623
53624 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53625
53626         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53627         findings.
53628
53629 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53630             Bruno Haible  <bruno@clisp.org>
53631
53632         * lib/unistd.in.h: Include <winsock2.h>.
53633         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53634         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53635         Provide dummy declarations.
53636         (gethostname): Override.
53637         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53638         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53639         gl_PREREQ_SYS_H_WINSOCK2.
53640         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53641         * doc/posix-functions/gethostname.texi: More details.
53642
53643 2008-10-25  Bruno Haible  <bruno@clisp.org>
53644
53645         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53646         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53647         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53648
53649         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53650         here ...
53651         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53652         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53653         gl_UNISTD_H_DEFAULTS.
53654
53655 2008-10-25  Eric Blake  <ebb9@byu.net>
53656
53657         signbit: avoid spurious compiler failure
53658         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53659         declarations inside function.
53660
53661 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53662             Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53665         * modules/random_r (Depends-on): Add stdint.
53666
53667 2008-10-24  Bruno Haible  <bruno@clisp.org>
53668
53669         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53670         Eggert.
53671         * modules/strerror (License): Likewise.
53672
53673 2008-10-24  Jim Meyering  <meyering@redhat.com>
53674
53675         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53676         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53677
53678 2008-10-24  Eric Blake  <ebb9@byu.net>
53679
53680         getgroups: fix compilation when getgroups is available
53681         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53682         but with <config.h> override of getgroups disabled.
53683
53684 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53685
53686         * doc/gnulib.texi (Header files): Add note about C++ problems.
53687         Explained by Bruno Haible <bruno@clisp.org>.
53688
53689 2008-10-23  Bruno Haible  <bruno@clisp.org>
53690
53691         Define a dummy SA_NODEFER macro on Interix.
53692         * lib/signal.in.h (SA_NODEFER): Define fallback.
53693         Reported by Aleksey Cheusov <cheusov@tut.by> via
53694         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53695
53696 2008-10-23  Bruno Haible  <bruno@clisp.org>
53697
53698         * modules/freadahead (License): Change to LGPLv2+.
53699         Suggested by Simon Josefsson.
53700
53701 2008-10-23  Jim Meyering  <meyering@redhat.com>
53702
53703         random_r: new module
53704         * modules/random_r: New file.
53705         * m4/random_r.m4: New file.
53706         * lib/random_r.c: New file, from glibc.
53707         * modules/random_r-tests: New file.
53708         * tests/test-random_r.c: New file.
53709         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53710          Declare.
53711         (RAND_MAX): Define.
53712         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53713         * modules/stdlib: Substitute them, too.
53714         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53715         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53716         * doc/glibc-functions/random_r.texi: Likewise.
53717         * doc/glibc-functions/setstate_r.texi: Likewise.
53718         * doc/glibc-functions/srandom_r.texi: Likewise.
53719         * config/srclist.txt: Mention it.
53720
53721 2008-10-23  David Lutterkort  <lutter@redhat.com>
53722
53723         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53724         link requirement
53725
53726 2008-10-23  Jim Meyering  <meyering@redhat.com>
53727
53728         selinux-h: mark parameters of stub functions as intentionally unused
53729         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53730         * lib/se-context.in.h: Likewise.
53731
53732 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53733
53734         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53735
53736 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53737
53738         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53739
53740 2008-10-22  Eric Blake  <ebb9@byu.net>
53741
53742         glthread/thread: avoid compiler warning
53743         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53744         Add unreachable abort to silence compiler.
53745
53746 2008-10-22  Eric Blake  <ebb9@byu.net>
53747
53748         netdb: also supply struct addrinfo for cygwin 1.5.x
53749         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53750         older cygwin.
53751         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53752         cygwin.
53753         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53754
53755 2008-10-22  Bruno Haible  <bruno@clisp.org>
53756
53757         * users.txt: Update entry about pspp.
53758
53759 2008-10-21  Bruno Haible  <bruno@clisp.org>
53760
53761         Simplification.
53762         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53763         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53764
53765         Simplification.
53766         * lib/ioctl.c (ioctl): Don't undefine.
53767         * lib/socket.c (socket): Don't undefine.
53768
53769         Remove unused module indicator macros.
53770         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53771         GNULIB_$1 as a C macro.
53772
53773         * doc/posix-functions/close.texi: Undo last change.
53774         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53775         Windows platforms.
53776
53777 2008-10-21  Bruno Haible  <bruno@clisp.org>
53778
53779         Add gethostname() declaration to <unistd.h>.
53780         * lib/unistd.in.h (gethostname): New declaration.
53781         * lib/gethostname.c: Include <unistd.h>.
53782         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53783         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53785         and HAVE_GETHOSTNAME.
53786         * modules/gethostname (Depends-on): Add unistd.
53787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53788         (Include): Specify <unistd.h>.
53789         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53790         HAVE_GETHOSTNAME.
53791         * tests/test-gethostname.c: Include <unistd.h> first.
53792
53793 2008-10-21  Bruno Haible  <bruno@clisp.org>
53794
53795         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53796         * modules/select-tests (Depends-on): Likewise.
53797         Reported by Simon Josefsson.
53798
53799 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53800
53801         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53802         * lib/accept.c: New file, based on winsock.c.
53803         * lib/bind.c: New file, based on winsock.c.
53804         * lib/connect.c: New file, based on winsock.c.
53805         * lib/getpeername.c: New file, based on winsock.c.
53806         * lib/getsockname.c: New file, based on winsock.c.
53807         * lib/getsockopt.c: New file, based on winsock.c.
53808         * lib/ioctl.c: New file, based on winsock.c.
53809         * lib/listen.c: New file, based on winsock.c.
53810         * lib/recv.c: New file, based on winsock.c.
53811         * lib/recvfrom.c: New file, based on winsock.c.
53812         * lib/send.c: New file, based on winsock.c.
53813         * lib/sendto.c: New file, based on winsock.c.
53814         * lib/setsockopt.c: New file, based on winsock.c.
53815         * lib/shutdown.c: New file, based on winsock.c.
53816         * lib/socket.c: New file, based on winsock.c.
53817         * lib/w32sock.h: New file, based on winsock.c.
53818         * lib/winsock.c: Remove file.
53819         * modules/accept: Likewise.
53820         * modules/bind: Likewise.
53821         * modules/connect: Likewise.
53822         * modules/getpeername: Likewise.
53823         * modules/getsockname: Likewise.
53824         * modules/getsockopt: Likewise.
53825         * modules/ioctl: Likewise.
53826         * modules/listen: Likewise.
53827         * modules/recv: Likewise.
53828         * modules/recvfrom: Likewise.
53829         * modules/send: Likewise.
53830         * modules/sendto: Likewise.
53831         * modules/setsockopt: Likewise.
53832         * modules/shutdown: Likewise.
53833         * modules/socket: Use socket.c instead of winsock.c.
53834         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53835         * doc/posix-functions/accept.texi: Doc fix.
53836         * doc/posix-functions/bind.texi: Doc fix.
53837         * doc/posix-functions/close.texi: Doc fix.
53838         * doc/posix-functions/connect.texi: Doc fix.
53839         * doc/posix-functions/getpeername.texi: Doc fix.
53840         * doc/posix-functions/getsockname.texi: Doc fix.
53841         * doc/posix-functions/getsockopt.texi: Doc fix.
53842         * doc/posix-functions/ioctl.texi: Doc fix.
53843         * doc/posix-functions/listen.texi: Doc fix.
53844         * doc/posix-functions/recv.texi: Doc fix.
53845         * doc/posix-functions/recvfrom.texi: Doc fix.
53846         * doc/posix-functions/send.texi: Doc fix.
53847         * doc/posix-functions/sendto.texi: Doc fix.
53848         * doc/posix-functions/setsockopt.texi: Doc fix.
53849         * doc/posix-functions/shutdown.texi: Doc fix.
53850         * doc/posix-functions/socket.texi: Doc fix.
53851
53852 2008-10-20  Bruno Haible  <bruno@clisp.org>
53853
53854         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53855         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53856         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53857         as an alias for SIGABRT.
53858         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53859         (sigaction): Map it to SIGABRT.
53860         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53861
53862 2008-10-20  Bruno Haible  <bruno@clisp.org>
53863
53864         * lib/fts.c: Don't include lstat.h.
53865         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53866
53867         Move the lstat() declaration to <sys/stat.h>.
53868         * lib/lstat.h: Remove file.
53869         * lib/sys_stat.in.h: Add special invocation convention.
53870         (lstat): New declaration.
53871         * lib/lstat.c (orig_lstat): New function.
53872         (rpl_lstat): Use orig_lstat instead of lstat.
53873         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53874         AC_C_INLINE. Set REPLACE_LSTAT.
53875         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53876         and REPLACE_LSTAT.
53877         * modules/lstat (Files): Remove lib/lstat.h.
53878         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53879         (Include): Specify <sys/stat.h> instead of lstat.h.
53880         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53881         REPLACE_LSTAT.
53882         * NEWS: Mention the change.
53883
53884 2008-10-20  Bruno Haible  <bruno@clisp.org>
53885
53886         * modules/posix_spawn-tests: New file.
53887         * tests/test-posix_spawn3.c: New file.
53888
53889 2008-10-20  Bruno Haible  <bruno@clisp.org>
53890
53891         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53892         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53893         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53894         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53895         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53896
53897 2008-10-20  Bruno Haible  <bruno@clisp.org>
53898
53899         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53900         of posix_spawn on AIX 5.3.
53901
53902 2008-10-20  Bruno Haible  <bruno@clisp.org>
53903
53904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53905
53906 2008-10-20  Bruno Haible  <bruno@clisp.org>
53907
53908         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53909         of AC_LANG_PROGRAM.
53910
53911 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53912
53913         * lib/netdb.in.h: Don't define GNU specific constants until they
53914         are supported or needed.  Reported by Bruno Haible
53915         <bruno@clisp.org>.
53916
53917 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53918
53919         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53920
53921 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53922
53923         * lib/getaddrinfo.h: Remove file.
53924         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53925         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53926         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53927         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53928         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53929         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53930         * tests/test-getaddrinfo.c: Likewise.
53931         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53932         * NEWS: Mention change.
53933
53934 2008-10-19  Bruno Haible  <bruno@clisp.org>
53935
53936         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53937
53938 2008-10-19  Bruno Haible  <bruno@clisp.org>
53939
53940         * lib/wait-process.c: Include simply <sys/wait.h>.
53941         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53942         WIFSTOPPED): Remove fallback definitions.
53943         * modules/wait-process (Depends-on): Add sys_wait.
53944
53945         New module 'sys_wait'.
53946         * modules/sys_wait: New file.
53947         * lib/sys_wait.in.h: New file, partially copied from
53948         lib/wait-process.c.
53949         * m4/sys_wait_h.m4: New file.
53950         * doc/posix-headers/sys_wait.texi: Mention the new module.
53951
53952 2008-10-19  Bruno Haible  <bruno@clisp.org>
53953
53954         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53955
53956 2008-10-19  Bruno Haible  <bruno@clisp.org>
53957
53958         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53959         * lib/wait-process.c (WAIT_T): Remove type.
53960         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53961         (wait_subprocess): Update.
53962
53963 2008-10-19  Bruno Haible  <bruno@clisp.org>
53964
53965         New module 'atoll'.
53966         * modules/atoll: New file.
53967         * lib/stdlib.in.h (atoll): New declaration.
53968         * lib/atoll.c: New file, from glibc with modifications.
53969         * m4/atoll.m4: New file.
53970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53971         HAVE_ATOLL.
53972         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53973         * doc/posix-functions/atoll.texi: Mention the new module.
53974
53975 2008-10-19  Bruno Haible  <bruno@clisp.org>
53976
53977         Add strtoull() declaration to <stdlib.h>.
53978         * lib/stdlib.in.h (strtoull): New declaration.
53979         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53980         Set HAVE_STRTOULL.
53981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53982         HAVE_STRTOULL.
53983         * modules/strtoull (Depends-on): Add stdlib.
53984         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53985         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53986         HAVE_STRTOULL.
53987
53988 2008-10-19  Bruno Haible  <bruno@clisp.org>
53989
53990         Add strtoll() declaration to <stdlib.h>.
53991         * lib/stdlib.in.h (strtoll): New declaration.
53992         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53993         Set HAVE_STRTOLL.
53994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53995         HAVE_STRTOLL.
53996         * modules/strtoll (Depends-on): Add stdlib.
53997         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53998         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53999
54000 2008-10-19  Bruno Haible  <bruno@clisp.org>
54001
54002         * modules/bcopy (Depends-on): Add strings.
54003         (Include): Specify <strings.h>.
54004
54005 2008-10-19  Bruno Haible  <bruno@clisp.org>
54006
54007         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54008
54009 2008-10-19  Bruno Haible  <bruno@clisp.org>
54010
54011         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54012         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54013         mingw.
54014
54015 2008-10-19  Bruno Haible  <bruno@clisp.org>
54016
54017         * lib/atanl.c: Don't include isnanl.h.
54018         * lib/cosl.c: Likewise.
54019         * lib/ldexpl.c: Likewise.
54020         * lib/logl.c: Likewise.
54021         * lib/sinl.c: Likewise.
54022         * lib/sqrtl.c: Likewise.
54023         * lib/tanl.c: Likewise.
54024
54025         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54026         * lib/isnanf.h: Remove file.
54027         * lib/isnand.h: Remove file.
54028         * lib/isnanl.h: Remove file.
54029         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54030         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54031         macros.
54032         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54033         HAVE_ISNANF, don't define it as a C macro.
54034         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54035         HAVE_ISNAND, don't define it as a C macro.
54036         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54037         HAVE_ISNANL, don't define it as a C macro.
54038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54039         HAVE_ISNAN[FDL].
54040         * modules/isnanf (Files): Remove lib/isnanf.h.
54041         (Depends-on): Add math.
54042         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54043         (Include): Specify <math.h> instead of isnanf.h.
54044         * modules/isnand (Files): Remove lib/isnand.h.
54045         (Depends-on): Add math.
54046         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54047         (Include): Specify <math.h> instead of isnand.h.
54048         * modules/isnanl (Files): Remove lib/isnanl.h.
54049         (Depends-on): Add math.
54050         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54051         (Include): Specify <math.h> instead of isnanl.h.
54052         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54053         HAVE_ISNAN[FDL].
54054         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54055         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54056         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54057         * NEWS: Mention the change.
54058
54059 2008-10-18  Bruno Haible  <bruno@clisp.org>
54060
54061         Add getusershell(), setusershell(), endusershell() declarations to
54062         <unistd.h>.
54063         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54064         declarations.
54065         * lib/getusershell.c: Include unistd.h.
54066         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54067         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54068         HAVE_GETUSERSHELL.
54069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54070         and HAVE_GETUSERSHELL.
54071         * modules/getusershell (Depends-on): Add unistd, extensions.
54072         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54073         (Include): Specify <unistd.h>.
54074         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54075         HAVE_GETUSERSHELL.
54076
54077 2008-10-18  Bruno Haible  <bruno@clisp.org>
54078
54079         Add a getloadavg() declaration to <stdlib.h>.
54080         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54081         getloadavg declaration.
54082         (getloadavg): New declaration.
54083         * lib/getloadavg.c: Include <stdlib.h> first.
54084         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54085         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54086         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54088         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54089         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54090         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54091         (Include): Specify <stdlib.h>.
54092         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54093         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54094
54095 2008-10-18  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/dirchownmod.c: Don't include lchmod.h.
54098
54099         Move the lchmod() declaration to <sys/stat.h>.
54100         * lib/lchmod.h: Remove file.
54101         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54102         (lchmod): New declaration, moved here from lib/lchown.h.
54103         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54104         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54105         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54106         and HAVE_LCHMOD.
54107         * modules/lchmod (Files): Remove lib/lchmod.h.
54108         (Depends-on): Add sys_stat, extensions.
54109         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54110         (Include): Specify <sys/stat.h> instead of lchmod.h.
54111         * modules/sys_stat (Depends-on): Add link-warning.
54112         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54113         definition of GL_LINK_WARNING.
54114         * NEWS: Mention the change.
54115
54116 2008-10-18  Bruno Haible  <bruno@clisp.org>
54117
54118         * lib/fchdir.c: Don't include dirfd.h.
54119         * lib/fts.c: Likewise.
54120         * lib/getcwd.c: Likewise.
54121         * lib/glob.c: Likewise.
54122
54123         Move the dirfd() declaration to <dirent.h>.
54124         * lib/dirfd.h: Remove file.
54125         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54126         (dirfd): New declaration.
54127         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54128         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54129         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54130         HAVE_DECL_DIRFD.
54131         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54132         HAVE_DECL_DIRFD.
54133         * modules/dirfd (Files): Remove lib/dirfd.h.
54134         (Depends-on): Add dirent, extensions.
54135         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54136         (Include): Specify <dirent.h> instead of dirfd.h.
54137         * modules/dirent (Depends-on): Add link-warning.
54138         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54139         definition of GL_LINK_WARNING.
54140         * NEWS: Mention the change.
54141
54142 2008-10-18  Bruno Haible  <bruno@clisp.org>
54143
54144         Move the euidaccess() declaration to <unistd.h>.
54145         * lib/euidaccess.h: Remove file.
54146         * lib/unistd.in.h (euidaccess): New declaration.
54147         * lib/euidaccess.c: Don't include euidaccess.h.
54148         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54149         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54151         and HAVE_EUIDACCESS.
54152         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54153         (Depends-on): Add unistd.
54154         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54155         (Include): Specify <unistd.h> instead of euidaccess.h.
54156         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54157         HAVE_EUIDACCESS.
54158         * NEWS: Mention the change.
54159
54160 2008-10-18  Bruno Haible  <bruno@clisp.org>
54161
54162         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54163
54164         Move the getdomainname() declaration to <unistd.h>.
54165         * lib/getdomainname.h: Remove file.
54166         * lib/unistd.in.h (getdomainname): New declaration.
54167         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54168         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54169         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54170         HAVE_GETDOMAINNAME.
54171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54172         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54173         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54174         (Depends-on): Add unistd, extensions.
54175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54176         (Includes): Specify <unistd.h> instead of getdomainname.h.
54177         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54178         HAVE_GETDOMAINNAME.
54179         * NEWS: Mention the change.
54180
54181 2008-10-18  Bruno Haible  <bruno@clisp.org>
54182
54183         * modules/dirent: New file.
54184         * m4/dirent_h.m4: New file.
54185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54186         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54187         * modules/fchdir (Files): Remove lib/dirent.in.h.
54188         (Depends-on): Add dirent.
54189         (Makefile.am): Move rules to modules/dirent.
54190         * doc/posix-headers/dirent.texi: Mention the new module.
54191
54192 2008-10-18  Bruno Haible  <bruno@clisp.org>
54193
54194         Avoid -Wunused-parameter warnings in public gnulib header files.
54195         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54196         macro.
54197         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54198
54199 2008-10-18  Bruno Haible  <bruno@clisp.org>
54200
54201         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54202         * doc/glibc-functions/error.texi: Mention the module 'error'.
54203         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54204         * doc/glibc-functions/getdomainname.texi: Mention the module
54205         'getdomainname'.
54206         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54207         * doc/glibc-functions/getpagesize.texi: Mention the module
54208         'getpagesize'.
54209         * doc/glibc-functions/getusershell.texi: Mention the module
54210         'getusershell'.
54211         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54212         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54213         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54214         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54215         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54216         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54217         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54218         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54219         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54220         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54221         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54222         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54223         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54224         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54225
54226 2008-10-17  Bruno Haible  <bruno@clisp.org>
54227
54228         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54229         HP-UX and IRIX, use -0.0L.
54230         * tests/test-ceill.c (minus_zero): Likewise.
54231         * tests/test-floorl.c (minus_zero): Likewise.
54232         * tests/test-frexpl.c (minus_zero): Likewise.
54233         * tests/test-isnan.c (minus_zerol): Likewise.
54234         * tests/test-isnanl.h (minus_zero): Likewise.
54235         * tests/test-ldexpl.c (minus_zero): Likewise.
54236         * tests/test-roundl.c (minus_zero): Likewise.
54237         * tests/test-signbit.c (minus_zerol): Likewise.
54238         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54239         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54240         * tests/test-truncl.c (minus_zero): Likewise.
54241         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54242         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54243         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54244         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54245
54246 2008-10-17  Bruno Haible  <bruno@clisp.org>
54247
54248         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54249         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54250         that it gets activated only for gcc >= 3.0.
54251         * lib/dirent.in.h: Likewise.
54252         * lib/errno.in.h: Likewise.
54253         * lib/fcntl.in.h: Likewise.
54254         * lib/float.in.h: Likewise.
54255         * lib/iconv.in.h: Likewise.
54256         * lib/inttypes.in.h: Likewise.
54257         * lib/locale.in.h: Likewise.
54258         * lib/math.in.h: Likewise.
54259         * lib/netdb.in.h: Likewise.
54260         * lib/netinet_in.in.h: Likewise.
54261         * lib/search.in.h: Likewise.
54262         * lib/signal.in.h: Likewise.
54263         * lib/spawn.in.h: Likewise.
54264         * lib/stdarg.in.h: Likewise.
54265         * lib/stdint.in.h: Likewise.
54266         * lib/stdio.in.h: Likewise.
54267         * lib/stdlib.in.h: Likewise.
54268         * lib/string.in.h: Likewise.
54269         * lib/strings.in.h: Likewise.
54270         * lib/sys_file.in.h: Likewise.
54271         * lib/sys_ioctl.in.h: Likewise.
54272         * lib/sys_select.in.h: Likewise.
54273         * lib/sys_socket.in.h: Likewise.
54274         * lib/sys_stat.in.h: Likewise.
54275         * lib/sys_time.in.h: Likewise.
54276         * lib/sysexits.in.h: Likewise.
54277         * lib/time.in.h: Likewise.
54278         * lib/unistd.in.h: Likewise.
54279         * lib/wchar.in.h: Likewise.
54280         * lib/wctype.in.h: Likewise.
54281         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54282
54283 2008-10-17  Jim Meyering  <meyering@redhat.com>
54284
54285         ignore-value: don't depend on inline module
54286         * modules/ignore-value (Depends-on): Remove 'inline'.
54287         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54288         Suggestion from Bruno Haible.
54289
54290 2008-10-17  Bruno Haible  <bruno@clisp.org>
54291
54292         New implementation of condition variables for Win32.
54293         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54294         (gl_linked_waitqueue_t): New type.
54295         (gl_cond_t): Use it.
54296         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54297         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54298         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54299         (glthread_cond_init_func, glthread_cond_wait_func,
54300         glthread_cond_timedwait_func, glthread_cond_signal_func,
54301         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54302         Reimplemented on the basis of gl_linked_waitqueue_t.
54303         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54304         gl_waitqueue_t.
54305         (gl_rwlock_t): Update.
54306         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54307
54308 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54309
54310         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54311         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54312
54313 2008-10-17  Jim Meyering  <meyering@redhat.com>
54314
54315         ignore-value: new module
54316         * modules/ignore-value: New file.
54317         * lib/ignore-value.h: New file.
54318         * MODULES.html.sh (Compiler warning management): New section,
54319         just for this module.  More to come.
54320
54321 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54322
54323         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54324         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54325         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54326
54327 2008-10-16  Jim Meyering  <meyering@redhat.com>
54328
54329         openat-die.c: avoid 'no previous prototype' warning
54330         * lib/openat-die.c: Include "openat.h".
54331         Reported by Reuben Thomas <rrt@sc3d.org>.
54332
54333 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54334
54335         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54336         * lib/netdb.in.h: Fix typo.
54337         Reported by Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/netdb.in.h: Include sys/socket.h for platforms without
54340         netdb.h, to get structures like hostent on MinGW.
54341         * modules/netdb (Depends-on): Add sys_socket.
54342
54343 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54344
54345         * modules/netdb, modules/netdb-tests: New file.
54346         * m4/netdb_h.m4: New file.
54347         * lib/netdb.in.h: Add, currently just an empty file pending
54348         definitions.
54349         * tests/test-netdb.c: New file.
54350         * doc/posix-headers/netdb.texi: Mention that we replace it if
54351         needed.
54352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54353         netdb.
54354
54355 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54356
54357         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54358         with code.
54359
54360 2008-10-13  Bruno Haible  <bruno@clisp.org>
54361
54362         * lib/glthread/cond.c (glthread_cond_wait_func,
54363         glthread_cond_timedwait_func): Add a comment.
54364
54365 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54366
54367         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54368         * tests/test-select.c: Likewise,
54369
54370 2008-10-13  Bruno Haible  <bruno@clisp.org>
54371
54372         * lib/glthread/cond.c (glthread_cond_wait_func,
54373         glthread_cond_timedwait_func): Fix variable name.
54374         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54375
54376 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54377
54378         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54379         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54380         struct sockaddr.sa_len.
54381         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54382
54383 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54384
54385         * build-aux/pmccabe2html: Add css and css_url parameters.
54386
54387 2008-10-12  Bruno Haible  <bruno@clisp.org>
54388
54389         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54390         calling aclx_get.
54391         Reported by Rainer Tammer <tammer@tammer.net>.
54392
54393 2008-10-12  Bruno Haible  <bruno@clisp.org>
54394
54395         Use msvcrt aware primitives for creation/termination of Win32 threads.
54396         * lib/glthread/thread.c: Include <process.h>.
54397         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54398         (wrapper_func): Update signature.
54399         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54400
54401 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54402             Bruno Haible  <bruno@clisp.org>
54403
54404         Provide a Win32 implementation of the 'cond' module.
54405         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54406         * lib/glthread/cond.c (glthread_cond_init_func,
54407         glthread_cond_wait_func, glthread_cond_timedwait_func,
54408         glthread_cond_signal_func, glthread_cond_broadcast_func,
54409         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54410         * modules/cond (Dependencies): Add gettimeofday.
54411
54412 2008-10-11  Bruno Haible  <bruno@clisp.org>
54413
54414         Make sleep work on older versions of mingw.
54415         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54416         only whether it exists.
54417         * doc/posix-functions/sleep.texi: Mention the problem with older
54418         versions of mingw.
54419
54420 2008-10-11  Bruno Haible  <bruno@clisp.org>
54421
54422         New module 'shutdown'.
54423         * modules/shutdown: New file.
54424         * lib/sys_socket.in.h (shutdown): New declaration.
54425         * lib/winsock.c (shutdown): New function.
54426         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54427         GNULIB_SHUTDOWN.
54428         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54429         * doc/posix-functions/shutdown.texi: Document the new module.
54430
54431 2008-10-11  Jim Meyering  <meyering@redhat.com>
54432
54433         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54434
54435 2008-10-11  Bruno Haible  <bruno@clisp.org>
54436
54437         New module 'fclose'.
54438         * modules/fclose: New file.
54439         * lib/stdio.in.h (fclose): New declaration.
54440         * lib/fclose.c: New file.
54441         * m4/fclose.m4: New file.
54442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54443         REPLACE_FCLOSE.
54444         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54445         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54446         REPLACE_FCLOSE.
54447         * modules/close (Depends-on): fclose.
54448         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54449
54450 2008-10-11  Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54453         set errno and don't call _close.
54454
54455 2008-10-10  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54458         ACL, not afterwards. Fixes test failure on Cygwin.
54459
54460 2008-10-09  Ben Pfaff  <blp@gnu.org>
54461
54462         * build-aux/announce-gen: Fix gnulib version related part of usage
54463         message.  Die with a useful error message if no tarballs are
54464         found.
54465
54466 2008-10-10  Jim Meyering  <meyering@redhat.com>
54467
54468         bootstrap: use git's --depth=N option only if it's supported
54469         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54470         recognize the --depth option.  Reported by Pádraig Brady.
54471
54472 2008-10-09  Bruno Haible  <bruno@clisp.org>
54473
54474         New module 'ioctl'.
54475         * modules/ioctl: New file.
54476         * lib/sys_socket.in.h (ioctl): Remove declaration.
54477         * lib/winsock.c: Include <sys/ioctl.h>.
54478         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54479         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54480         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54481         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54482         * doc/posix-functions/ioctl.texi: Mention the new module.
54483
54484 2008-10-09  Bruno Haible  <bruno@clisp.org>
54485
54486         New module 'sys_ioctl'.
54487         * lib/sys_ioctl.in.h: New file.
54488         * m4/sys_ioctl_h.m4: New file.
54489         * modules/sys_ioctl: New file.
54490         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54491
54492 2008-10-09  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54495         * lib/winsock.c: Include <stdarg.h>.
54496         (rpl_ioctl): Change to second argument 'int' and then varargs.
54497
54498 2008-10-09  Bruno Haible  <bruno@clisp.org>
54499
54500         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54501         when the sys_socket module is present and the system has <winsock2.h>.
54502
54503 2008-10-09  Bruno Haible  <bruno@clisp.org>
54504
54505         * doc/posix-functions/close.texi: Mention module 'close' instead of
54506         module 'sys_socket'.
54507
54508 2008-10-09  Bruno Haible  <bruno@clisp.org>
54509
54510         * doc/glibc-headers/sys_ioctl.texi: New file.
54511         * doc/gnulib.texi: Include it.
54512
54513 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54514             Bruno Haible  <bruno@clisp.org>
54515
54516         Combine the two replacements of 'close'.
54517         * lib/sys_socket.in.h (close): Define to a reminder to include
54518         <unistd.h>.
54519         (_gl_close_fd_maybe_socket): New declaration.
54520         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54521         * lib/winsock.c (close): Remove undefinition.
54522         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54523         needed for the gnulib module 'close'.
54524         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54525         define to an error symbol or to a warning, if suitable.
54526         * lib/close.c: Include <sys/socket.h>.
54527         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54528         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54529         UNISTD_H_HAVE_WINSOCK2_H.
54530         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54532         UNISTD_H_HAVE_WINSOCK2_H.
54533         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54534         (configure.ac): Set a module indicator.
54535         (Makefile.am): Substitute GNULIB_CLOSE.
54536         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54537         * modules/poll-tests (Depends-on): Add close.
54538         * modules/select-tests (Depends-on): Likewise.
54539
54540 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54541             Bruno Haible  <bruno@clisp.org>
54542
54543         New module 'close'.
54544         * modules/close: New file.
54545         * lib/unistd.in.h (close): Move declaration out of the
54546         FCHDIR_REPLACEMENT scope.
54547         (_gl_unregister_fd): New declaration.
54548         * lib/close.c: New file.
54549         * lib/fchdir.c (rpl_close): Remove function.
54550         * m4/close.m4: New file.
54551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54552         close.
54553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54554         REPLACE_CLOSE.
54555         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54556         REPLACE_CLOSE.
54557         * modules/fchdir (Depends-on): Add close.
54558
54559 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54560             Bruno Haible  <bruno@clisp.org>
54561
54562         * lib/fcntl.in.h (open): Simplify conditionals.
54563         (_gl_register_fd): New declaration.
54564         * lib/fchdir.c (rpl_open): Remove function.
54565         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54566         also.
54567         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54569         open.
54570
54571 2008-10-09  Jim Meyering  <meyering@redhat.com>
54572
54573         GNUmakefile: use the more name-space-friendly "_version"
54574         * top/GNUmakefile (_dummy): Update.
54575         (_version): Rename from "version".
54576
54577 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54578             Bruno Haible  <bruno@clisp.org>
54579
54580         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54581         rpl_close.
54582         (_gl_register_fd): New function, extracted from rpl_open.
54583         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54584         (rpl_open, rpl_opendir): Use _gl_register_fd.
54585
54586 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54587
54588         Fix organization of 'open' replacement.
54589         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54590         (gl_FUNC_OPEN): Use it.
54591         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54592
54593 2008-10-08  Bruno Haible  <bruno@clisp.org>
54594
54595         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54596
54597 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54598
54599         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54600         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54601         listen).
54602
54603 2008-10-08  Eric Blake  <ebb9@byu.net>
54604
54605         GNUmakefile: add 'make version' target
54606         * top/GNUmakefile (_curr-ver): Split version update rules...
54607         (version): ...into a target.
54608
54609 2008-10-07  Bruno Haible  <bruno@clisp.org>
54610
54611         Use a more portable replacement expression for -0.0L.
54612         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54613         instead of -0.0L. Fix m4 quotation.
54614
54615         * tests/test-signbit.c: Include <float.h>.
54616         (minus_zero): New variable.
54617         (test_signbitl): Use minus_zero instead of -zero.
54618         * modules/signbit-tests (Depends-on): Add float.
54619
54620         * tests/test-ceill.c: Include <float.h>.
54621         (zero): Remove variable.
54622         (minus_zero): New variable.
54623         (main): Use minus_zero instead of -zero.
54624         * modules/ceill-tests (Depends-on): Add float.
54625
54626         * tests/test-floorl.c: Include <float.h>.
54627         (zero): Remove variable.
54628         (minus_zero): New variable.
54629         (main): Use minus_zero instead of -zero.
54630         * modules/floorl-tests (Depends-on): Add float.
54631
54632         * tests/test-roundl.c: Include <float.h>.
54633         (zero): Remove variable.
54634         (minus_zero): New variable.
54635         (main): Use minus_zero instead of -zero.
54636         * modules/roundl-tests (Depends-on): Add float.
54637
54638         * tests/test-truncl.c: Include <float.h>.
54639         (zero): Remove variable.
54640         (minus_zero): New variable.
54641         (main): Use minus_zero instead of -zero.
54642         * modules/truncl-tests (Depends-on): Add float.
54643
54644         * tests/test-frexpl.c (zero): Remove variable.
54645         (minus_zero): New variable.
54646         (main): Use minus_zero instead of -zero.
54647         * modules/frexpl-tests (Depends-on): Add float.
54648
54649         * tests/test-isnan.c (zerol): Remove variable.
54650         (minus_zerol): New variable.
54651         (test_long_double): Use minus_zerol instead of -zerol.
54652         * modules/isnan-tests (Depends-on): Add float.
54653
54654         * tests/test-isnanl.h (zero): Remove variable.
54655         (minus_zero): New variable.
54656         (main): Use minus_zero instead of -zero.
54657         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54658         * modules/isnanl-tests (Depends-on): Add float.
54659
54660         * tests/test-ldexpl.c (zero): Remove variable.
54661         (minus_zero): New variable.
54662         (main): Use minus_zero instead of -zero.
54663         * modules/ldexpl-tests (Depends-on): Add float.
54664
54665         * tests/test-snprintf-posix.h (zerol): Remove variable.
54666         (minus_zerol): New variable.
54667         (test_function): Use minus_zerol instead of -zerol.
54668         * modules/snprintf-posix-tests (Depends-on): Add float.
54669         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54670
54671         * tests/test-sprintf-posix.h (zerol): Remove variable.
54672         (minus_zerol): New variable.
54673         (test_function): Use minus_zerol instead of -zerol.
54674         * modules/sprintf-posix-tests (Depends-on): Add float.
54675         * modules/vsprintf-posix-tests (Depends-on): Add float.
54676
54677         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54678         (minus_zerol): New variable.
54679         (test_function): Use minus_zerol instead of -zerol.
54680         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54681
54682         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54683         (minus_zerol): New variable.
54684         (test_function): Use minus_zerol instead of -zerol.
54685         * modules/vasprintf-posix-tests (Depends-on): Add float.
54686
54687 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54688
54689         * MODULES.html.sh (Support for building documentation): Mention
54690         pmccabe2html.  Sort entries.
54691
54692         Add pmccabe2html module, from gnupdf.
54693         * build-aux/pmccabe.css: New file.
54694         * build-aux/pmccabe2html: New file.
54695         * m4/pmccabe2html.m4: New file.
54696         * modules/pmccabe2html: New file.
54697
54698 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54699
54700         flock: new module
54701         * MODULES.html.sh: Add to list of modules.
54702         * lib/flock.c: flock implementation for Windows and Unix systems
54703         which have fcntl.
54704         * doc/glibc-functions/flock.texi: Update documentation.
54705         * lib/sys_file.in.h: <sys/file.h> header file.
54706         * m4/flock.m4: M4 macros.
54707         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54708         * modules/flock: flock module.
54709         * modules/flock-tests: flock tests module.
54710         * modules/sys_file: sys/file.h module.
54711         * tests/test-flock.c: test suite for flock.
54712
54713 2008-10-06  Jim Meyering  <meyering@redhat.com>
54714
54715         bootstrap: check for LT_INIT more portably still ;-)
54716         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54717         Spotted by Bruno Haible.
54718
54719 2008-10-06  Eric Blake  <ebb9@byu.net>
54720
54721         test-signbit: avoid tripping Irix cc bug on -0.0L
54722         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54723         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54724         entire testsuite consistent and avoids an Irix 6.2 bug.
54725
54726 2008-10-05  Bruno Haible  <bruno@clisp.org>
54727             Jim Meyering  <jim@meyering.net>
54728
54729         Add an option for ignoring EPIPE during close_stdout.
54730         * lib/closeout.h: Include <stdbool.h>.
54731         (close_stdout_set_ignore_EPIPE): New declaration.
54732         * lib/closeout.c: Include <stdbool.h>.
54733         (ignore_EPIPE): New variable.
54734         (close_stdout_set_ignore_EPIPE): New function.
54735         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54736         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54737         failure.
54738         * modules/closeout (Depends-on): Add stdbool.
54739
54740 2008-10-05  Bruno Haible  <bruno@clisp.org>
54741
54742         * modules/accept: New file.
54743         * modules/bind: New file.
54744         * modules/connect: New file.
54745         * modules/getpeername: New file.
54746         * modules/getsockname: New file.
54747         * modules/getsockopt: New file.
54748         * modules/listen: New file.
54749         * modules/recv: New file.
54750         * modules/recvfrom: New file.
54751         * modules/send: New file.
54752         * modules/sendto: New file.
54753         * modules/setsockopt: New file.
54754         * modules/socket: New file.
54755         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54756         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54757         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54758         the particular module is requested. Add a link warning when the
54759         particular module is not requested.
54760         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54761         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54762         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54763         the particular module is requested.
54764         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54765         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54766         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54767         * modules/sys_socket (Depends-on): Add link-warning.
54768         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54769         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54770         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54771         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54772         GL_LINK_WARNING.
54773         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54774         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54775         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54776         * doc/posix-functions/getpeername.texi: Mention the new module
54777         'getpeername'.
54778         * doc/posix-functions/getsockname.texi: Mention the new module
54779         'getsockname'.
54780         * doc/posix-functions/getsockopt.texi: Mention the new module
54781         'getsockopt'.
54782         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54783         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54784         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54785         * doc/posix-functions/send.texi: Mention the new module 'send'.
54786         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54787         * doc/posix-functions/setsockopt.texi: Mention the new module
54788         'setsockopt'.
54789         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54790         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54791         listen, connect, accept.
54792         * modules/select-tests (Depends-on): Likewise.
54793
54794 2008-10-05  Bruno Haible  <bruno@clisp.org>
54795
54796         * lib/winsock.c (strerror): Remove unused #undef.
54797         (rpl_close): Remove unused local variable.
54798
54799         * modules/sys_socket (Depends-on); Add errno.
54800
54801 2008-10-05  Bruno Haible  <bruno@clisp.org>
54802
54803         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54804         (select): Add a link warning when the 'select' module is not used.
54805         * modules/sys_select (Depends-on): Add link-warning.
54806         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54807         Suggested by Paolo Bonzini.
54808
54809 2008-10-05  Jim Meyering  <meyering@redhat.com>
54810
54811         bootstrap: check for LT_INIT more portably
54812         * build-aux/bootstrap: Avoid using grep -E, since it's not
54813         portable enough.  Suggestion from Bruno Haible.
54814
54815 2008-10-05  Bruno Haible  <bruno@clisp.org>
54816
54817         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54818         as being fixed by gnulib.
54819
54820 2008-10-05  Bruno Haible  <bruno@clisp.org>
54821
54822         * modules/select-tests: New file, mostly copied from
54823         modules/sys_select-tests.
54824         * tests/test-select.c: New file, mostly copied from
54825         tests/test-sys_select.c.
54826         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54827         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54828         (Makefile.am): Remove test_sys_select_LDADD.
54829
54830         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54831         to an undefined symbol, for an error message.
54832         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54833         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54834         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54835         winsock-select.c here.
54836         * modules/sys_select (Files): Remove lib/winsock-select.c.
54837         (Depends-on): Remove alloca.
54838         (Makefile.am): Substitute GNULIB_SELECT.
54839         * modules/select: New file.
54840         * doc/posix-functions/select.texi: Update.
54841
54842 2008-10-05  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54845         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54846         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54847         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54848         getdtablesize.
54849         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54850         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54851
54852 2008-10-05  Bruno Haible  <bruno@clisp.org>
54853
54854         * modules/getdtablesize-tests: New file.
54855         * tests/test-getdtablesize.c: New file.
54856
54857         New module 'getdtablesize'.
54858         * lib/unistd.in.h (getdtablesize): New declaration.
54859         * lib/getdtablesize.c: New file.
54860         * m4/getdtablesize.m4: New file.
54861         * modules/getdtablesize: New file.
54862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54863         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54864         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54865         HAVE_GETDTABLESIZE.
54866         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54867
54868 2008-10-05  Bruno Haible  <bruno@clisp.org>
54869
54870         * modules/sched (Makefile.am): Fix typo.
54871         Reported by Simon Josefsson.
54872
54873 2008-10-05  Jim Meyering  <meyering@redhat.com>
54874
54875         bootstrap: check for LT_INIT, too
54876         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54877         are deprecated.  Suggestion from Ralf Wildenhues.
54878
54879 2008-10-05  Bruno Haible  <bruno@clisp.org>
54880
54881         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54882         overriding them by ours.
54883         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54884
54885 2008-10-05  Jim Meyering  <meyering@redhat.com>
54886
54887         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54888         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54889         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54890
54891 2008-10-04  Bruno Haible  <bruno@clisp.org>
54892
54893         * modules/dup2 (License): Change to LGPLv2+.
54894         * modules/sleep (License): Likewise.
54895         * modules/perror (License): Likewise.
54896         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54897         Blake.
54898         * modules/signal (License): Likewise.
54899         * modules/sigprocmask (License): Likewise.
54900         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54901         Meyering.
54902
54903 2008-10-04  Bruno Haible  <bruno@clisp.org>
54904
54905         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54906         Reported by Rainer Tammer <tammer@tammer.net>.
54907
54908 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54909             Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54912         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54913         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54914
54915 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54916
54917         filevercmp: new module
54918         * lib/filevercmp.h: New function filevercmp comparing version strings.
54919         * lib/filevercmp.c: Implementation of filevercmp function.
54920         * modules/filevercmp: Module metadata.
54921         * tests/test-filevercmp.c: Unit test for new module.
54922         * modules/filevercmp-tests: Unit test metadata.
54923         * MODULES.html.sh: Add filevercmp module.
54924
54925 2008-10-03  Bruno Haible  <bruno@clisp.org>
54926
54927         * lib/c-ctype.h: Add comment.
54928         Reported by Jim Meyering.
54929
54930 2008-10-02  Bruno Haible  <bruno@clisp.org>
54931
54932         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54933
54934 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54935
54936         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54937         name of bootstrap.conf accordingly.
54938
54939 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54940
54941         * build-aux/bootstrap: Install git-merge-changelog configuration
54942         items into .gitconfig if needed.
54943
54944 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54945
54946         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54947         git repository, and initialize/update it accordingly.
54948
54949 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54950
54951         * modules/fsync-tests: New file.
54952         * tests/test-fsync.c: New file.
54953
54954         New module 'fsync'.
54955         * lib/fsync.c: New file.
54956         * m4/fsync.m4: New file.
54957         * modules/fsync: New file.
54958         * lib/unistd.in.h (fsync): New declaration.
54959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54960         GNULIB_FSYNC and HAVE_FSYNC.
54961         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54962         * MODULES.html.sh (posix_functions): Add fsync.
54963         * doc/posix-functions/fsync.texi: Mention the new module.
54964
54965 2008-10-02  Jim Meyering  <meyering@redhat.com>
54966
54967         fts.c: sync with similar code from coreutils' remove.c
54968         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54969         Guard also with "#if defined __linux__", since for now at least,
54970         this code is Linux-kernel-specific.
54971
54972 2008-10-02  Jim Meyering  <meyering@redhat.com>
54973
54974         fts: bug fixes
54975         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54976         Include <sys/vfs.h>, not <sys/statfs.h>.
54977
54978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54979         Include <sys/vfs.h>, not <sys/statfs.h>.
54980
54981 2008-10-01  Bruno Haible  <bruno@clisp.org>
54982
54983         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54985         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54986         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54987         * doc/posix-functions/posix_spawnp.texi: Likewise.
54988         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54989         whether posix_spawn actually works.
54990         * m4/pipe.m4 (gl_PIPE): Likewise.
54991         * modules/execute (Files): Add m4/posix_spawn.m4.
54992         * modules/pipe (Files): Add m4/posix_spawn.m4.
54993         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54994
54995 2008-10-01  Jim Meyering  <meyering@redhat.com>
54996
54997         remove trailing spaces
54998         * NEWS: Likewise.
54999         * lib/poll.c (poll): Likewise.
55000         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55001         * lib/winsock.c (rpl_close): Likewise.
55002         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55003         * modules/yield: Likewise.
55004         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55005         * tests/test-sys_select.c (connect_to_socket): Likewise.
55006
55007         fts.c: adjust a new interface to be more generally useful
55008         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55009         (fts_build): Adjust caller.
55010
55011 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55012
55013         * modules/cond-tests: New file.
55014         * tests/test-cond.c: New file.
55015
55016 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55017             Bruno Haible  <bruno@clisp.org>
55018
55019         * modules/cond (Dependencies): Add errno, time.
55020         * lib/glthread/cond.h: Include <time.h>.
55021         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55022         across platforms.
55023
55024 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55025             Bruno Haible  <bruno@clisp.org>
55026
55027         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55028
55029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55030             Bruno Haible  <bruno@clisp.org>
55031
55032         * modules/tls-tests (Depends-on): Add thread, yield.
55033         (configure.ac): Remove all checks.
55034         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55035         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55036         gl_thread_self): Remove definitions. Include glthread/thread.h and
55037         glthread/yield.h instead.
55038         (test_tls): Pass an additional NULL argument to gl_thread_join.
55039
55040 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55041             Bruno Haible  <bruno@clisp.org>
55042
55043         * modules/lock-tests (Depends-on): Add thread, yield.
55044         (configure.ac): Remove all checks.
55045         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55046         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55047         gl_thread_self): Remove definitions. Include glthread/thread.h and
55048         glthread/yield.h instead.
55049         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55050         additional NULL argument to gl_thread_join.
55051
55052 2008-09-30  Bruno Haible  <bruno@clisp.org>
55053
55054         Fix the Win32 implementation of the 'thread' module.
55055         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55056         pointer type.
55057         (gl_thread_self): Invoke gl_thread_self_func.
55058         (gl_thread_self_func): New declaration.
55059         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55060         (do_init_self_key, init_self_key): New functions.
55061         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55062         Remove some fields.
55063         (running_threads, running_lock): Remove variables.
55064         (get_current_thread_handle): New function.
55065         (gl_thread_self_func, wrapper_func, glthread_create_func,
55066         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55067         simplified.
55068
55069 2008-09-30  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55072         files.
55073
55074 2008-09-30  Jim Meyering  <meyering@redhat.com>
55075
55076         fts.m4: correct the test for statfs.f_type
55077         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55078         when checking for statfs.f_type.
55079
55080 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55081
55082         tests: avoid some compiler warnings
55083         * tests/test-memchr.c (main): Pass NULL indirectly.
55084         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55085
55086 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55087
55088         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55089         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55090         exactly specified dayshifts.
55091         (dayshift): New rule.
55092         (rel): Add dayshift.
55093         (relative_time_table) [tomorrow, yesterday, today, now]:
55094         Use tDAY_SHIFT in place of tDAY_UNIT.
55095         * tests/test-getdate.c: Add tests for now-disallowed countable
55096         dayshifts, e.g., "4 yesterday ago".
55097
55098 2008-09-29  Bruno Haible  <bruno@clisp.org>
55099
55100         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55101         * tests/test-posix_spawn1.in.sh: Renamed from
55102         tests/test-posix_spawn.in.sh.
55103         * tests/test-posix_spawn2.c: New file.
55104         * tests/test-posix_spawn2.in.sh: New file.
55105         * modules/posix_spawnp-tests (Files): Update.
55106         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55107
55108 2008-09-29  Bruno Haible  <bruno@clisp.org>
55109
55110         Propagate effects of putenv/setenv/unsetenv to child processes.
55111         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55112         * lib/pipe.c (create_pipe): Likewise.
55113
55114 2008-09-29  Bruno Haible  <bruno@clisp.org>
55115
55116         Enable use of shell scripts as executables in mingw.
55117         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55118         run the program as a shell script.
55119         * lib/pipe.c (create_pipe): Likewise.
55120         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55121         resulting array.
55122
55123 2008-09-29  Eric Blake  <ebb9@byu.net>
55124
55125         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55126
55127 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55128
55129         * doc/posix-functions/accept.texi: Update mingw problems.
55130         * doc/posix-functions/bind.texi: Update mingw problems.
55131         * doc/posix-functions/close.texi: Update mingw problems.
55132         * doc/posix-functions/connect.texi: Update mingw problems.
55133         * doc/posix-functions/getpeername.texi: Update mingw problems.
55134         * doc/posix-functions/getsockname.texi: Update mingw problems.
55135         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55136         * doc/posix-functions/ioctl.texi: Update mingw problems.
55137         * doc/posix-functions/listen.texi: Update mingw problems.
55138         * doc/posix-functions/recv.texi: Update mingw problems.
55139         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55140         * doc/posix-functions/select.texi: Update mingw problems.
55141         * doc/posix-functions/send.texi: Update mingw problems.
55142         * doc/posix-functions/sendto.texi: Update mingw problems.
55143         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55144         * doc/posix-functions/socket.texi: Update mingw problems.
55145
55146 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55147             Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/sys_select.in.h: Include sys/time.h.
55150         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55151         * modules/sys_select: Depend on sys_time.
55152         * tests/test-sys_select.c: Test that sys/select.h defines struct
55153         timeval fully.
55154
55155 2008-09-29  Bruno Haible  <bruno@clisp.org>
55156
55157         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55158         * lib/sys_select.in.h: Likewise.
55159
55160 2008-09-29  Bruno Haible  <bruno@clisp.org>
55161
55162         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55163
55164 2008-09-29  Bruno Haible  <bruno@clisp.org>
55165
55166         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55167         Set LIBSOCKET instead of augmenting LIBS.
55168         * modules/sockets (Link): New section.
55169         * modules/sockets-tests (test_sockets_LDADD): New variable.
55170         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55171         * modules/poll-tests (test_poll_LDADD): New variable.
55172         * NEWS: Document the change.
55173
55174 2008-09-29  Bruno Haible  <bruno@clisp.org>
55175
55176         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55177         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55178         ARPA_INET_H directly.
55179         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55180
55181 2008-09-28  Bruno Haible  <bruno@clisp.org>
55182
55183         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55184         from gl_HEADER_SYS_SOCKET.
55185         (gl_HEADER_SYS_SOCKET): Invoke it.
55186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55187
55188 2008-09-28  Bruno Haible  <bruno@clisp.org>
55189
55190         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55191         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55192         Needed on OSF/1 4.0.
55193
55194 2008-09-28  Bruno Haible  <bruno@clisp.org>
55195
55196         Override open more carefully.
55197         * lib/open.c (orig_open): New function.
55198         (rpl_open): Use orig_open instead of open.
55199         * lib/fcntl.in.h: Add special invocation convention.
55200         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55201         (gl_FUNC_OPEN): Invoke it.
55202
55203         Override freopen more carefully.
55204         * lib/freopen.c (orig_freopen): New function.
55205         (rpl_freopen): Use orig_freopen instead of freopen.
55206         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55207         (gl_FUNC_FREOPEN): Invoke it.
55208
55209         Override fopen more carefully.
55210         * lib/fopen.c (orig_fopen): New function.
55211         (rpl_fopen): Use orig_fopen instead of fopen.
55212         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55213         (gl_FUNC_FOPEN): Invoke it.
55214         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55215
55216 2008-09-28  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55219         SIGPIPE.
55220
55221 2008-09-28  Bruno Haible  <bruno@clisp.org>
55222
55223         * tests/test-sigaction.c (handler, main): Disable the check whether
55224         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55225         glibc systems with LinuxThreads.
55226
55227 2008-09-28  Bruno Haible  <bruno@clisp.org>
55228
55229         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55230
55231         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55232         with AIX xlc.
55233         * lib/fcntl.in.h (open): Likewise.
55234         Reported by Rainer Tammer <tammer@tammer.net>.
55235
55236 2008-09-28  Bruno Haible  <bruno@clisp.org>
55237
55238         * modules/posix_spawnp-tests: New file.
55239         * tests/test-posix_spawn.c: New file.
55240         * tests/test-posix_spawn.in.sh: New file.
55241
55242         New module 'posix_spawnp'.
55243         * modules/posix_spawnp: New file.
55244         * lib/spawnp.c: New file, from GNU libc with modifications.
55245         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55246
55247         New module 'posix_spawn'.
55248         * modules/posix_spawn: New file.
55249         * lib/spawn.c: New file, from GNU libc with modifications.
55250         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55251
55252         New module 'posix_spawnattr_destroy'.
55253         * modules/posix_spawnattr_destroy: New file.
55254         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55255         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55256         module.
55257
55258         New module 'posix_spawnattr_setsigmask'.
55259         * modules/posix_spawnattr_setsigmask: New file.
55260         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55261         modifications.
55262         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55263         new module.
55264
55265         New module 'posix_spawnattr_getsigmask'.
55266         * modules/posix_spawnattr_getsigmask: New file.
55267         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55268         modifications.
55269         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55270         new module.
55271
55272         New module 'posix_spawnattr_setsigdefault'.
55273         * modules/posix_spawnattr_setsigdefault: New file.
55274         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55275         modifications.
55276         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55277         new module.
55278
55279         New module 'posix_spawnattr_getsigdefault'.
55280         * modules/posix_spawnattr_getsigdefault: New file.
55281         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55282         modifications.
55283         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55284         new module.
55285
55286         New module 'posix_spawnattr_setschedpolicy'.
55287         * modules/posix_spawnattr_setschedpolicy: New file.
55288         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55289         modifications.
55290         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55291         new module.
55292
55293         New module 'posix_spawnattr_getschedpolicy'.
55294         * modules/posix_spawnattr_getschedpolicy: New file.
55295         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55296         modifications.
55297         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55298         new module.
55299
55300         New module 'posix_spawnattr_setschedparam'.
55301         * modules/posix_spawnattr_setschedparam: New file.
55302         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55303         modifications.
55304         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55305         new module.
55306
55307         New module 'posix_spawnattr_getschedparam'.
55308         * modules/posix_spawnattr_getschedparam: New file.
55309         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55310         modifications.
55311         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55312         new module.
55313
55314         New module 'posix_spawnattr_setpgroup'.
55315         * modules/posix_spawnattr_setpgroup: New file.
55316         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55317         modifications.
55318         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55319         module.
55320
55321         New module 'posix_spawnattr_getpgroup'.
55322         * modules/posix_spawnattr_getpgroup: New file.
55323         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55324         modifications.
55325         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55326         module.
55327
55328         New module 'posix_spawnattr_setflags'.
55329         * modules/posix_spawnattr_setflags: New file.
55330         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55331         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55332         module.
55333
55334         New module 'posix_spawnattr_getflags'.
55335         * modules/posix_spawnattr_getflags: New file.
55336         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55337         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55338         module.
55339
55340         New module 'posix_spawnattr_init'.
55341         * modules/posix_spawnattr_init: New file.
55342         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55343         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55344         module.
55345
55346         New module 'posix_spawn_file_actions_destroy'.
55347         * modules/posix_spawn_file_actions_destroy: New file.
55348         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55349         modifications.
55350         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55351         the new module.
55352
55353         New module 'posix_spawn_file_actions_addopen'.
55354         * modules/posix_spawn_file_actions_addopen: New file.
55355         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55356         modifications.
55357         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55358         the new module.
55359
55360         New module 'posix_spawn_file_actions_adddup2'.
55361         * modules/posix_spawn_file_actions_adddup2: New file.
55362         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55363         modifications.
55364         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55365         the new module.
55366
55367         New module 'posix_spawn_file_actions_addclose'.
55368         * modules/posix_spawn_file_actions_addclose: New file.
55369         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55370         modifications.
55371         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55372         the new module.
55373
55374         New module 'posix_spawn_file_actions_init'.
55375         * modules/posix_spawn_file_actions_init: New file.
55376         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55377         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55378         new module.
55379
55380         New module 'posix_spawn-internal'.
55381         * modules/posix_spawn-internal: New file.
55382         * lib/spawn_int.h: New file, from GNU libc with modifications.
55383         * lib/spawni.c: New file, from GNU libc with modifications.
55384         * m4/posix_spawn.m4: New file.
55385
55386         New module 'spawn'.
55387         * modules/spawn: New file.
55388         * lib/spawn.in.h: New file, from GNU libc with modifications.
55389         * m4/spawn_h.m4: New file.
55390         * doc/posix-headers/spawn.texi: Mention the new module.
55391
55392 2008-09-28  Bruno Haible  <bruno@clisp.org>
55393
55394         * modules/sched-tests: New file.
55395         * tests/test-sched.c: New file.
55396
55397         New module 'sched'.
55398         * modules/sched: New file.
55399         * lib/sched.in.h: New file.
55400         * m4/sched_h.m4: New file.
55401         * doc/posix-headers/sched.texi: Mention the new module.
55402
55403 2008-09-27  Eric Blake  <ebb9@byu.net>
55404
55405         Fix previous patch, and tweak references to $0.
55406         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55407         (func_version, func_gnulib_dir): Don't call this program
55408         gnulib-tool.
55409         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55410         with using $0 in function.
55411         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55412         (func_fatal_error): Reuse the name the user invoked us with.
55413
55414 2008-09-27  Bruno Haible  <bruno@clisp.org>
55415
55416         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55417         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55418         (gl_ICONV_H): Not here.
55419         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55420         instead of assigning ICONV_H directly.
55421
55422         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55424         WCHAR_H directly.
55425
55426 2008-09-27  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55429         * modules/arpa_inet (Depends-on): Add link-warning.
55430         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55431         * modules/unistd (Makefile.am): Likewise.
55432
55433 2008-09-26  Bruno Haible  <bruno@clisp.org>
55434
55435         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55436         variables.
55437         (func_version): Essentially copied from gnulib-tool.
55438         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55439         func_readlink): Copied from gnulib-tool.
55440
55441 2008-09-26  Bruno Haible  <bruno@clisp.org>
55442
55443         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55444         invoking git-version-gen.
55445
55446 2008-09-26  Bruno Haible  <bruno@clisp.org>
55447
55448         * posix-modules: Update to directory names changed on 2008-01-19.
55449         Remove commas in output before splitting into words. No more need to
55450         avoid 'ftruncate' since 2007-02-19.
55451
55452 2008-09-26  Bruno Haible  <bruno@clisp.org>
55453
55454         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55455
55456 2008-09-26  Bruno Haible  <bruno@clisp.org>
55457
55458         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55459         * modules/fwriteerror (Depends-on): Add errno.
55460
55461 2008-09-26  Bruno Haible  <bruno@clisp.org>
55462
55463         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55464         * tests/test-vc-list-files-cvs.sh: Likewise.
55465
55466 2008-09-26  Bruno Haible  <bruno@clisp.org>
55467
55468         * doc/posix-headers/sys_resource.texi: Reorder items.
55469
55470 2008-09-26  Jim Meyering  <meyering@redhat.com>
55471
55472         fts: tweak inode comparison function
55473         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55474         inode numbers, as documented.
55475
55476         fts: sort dirent entries on inode number before traversing
55477         This avoids a quadratic, seek-related performance penalty when
55478         operating on a directory containing many entries (measurable at 10k;
55479         3.5 hours at 2 million entries with a cold cache) on certain types
55480         of file systems, including ext3 and ext4, but not tmpfs.
55481         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55482         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55483         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55484         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55485         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55486         (fts_build): Set the stat.st_ino member from D_INO.
55487         If it is likely to be useful, sort dirent entries on inode number.
55488
55489         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55490         and the struct statfs.f_type member.
55491         * modules/fts (Depends-on): Add d-ino.
55492
55493 2008-09-26  Bruno Haible  <bruno@clisp.org>
55494
55495         * modules/sigpipe-die (Depends-on): Add sigpipe.
55496
55497         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55498         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55499         and GNULIB_STDIO_H_SIGPIPE are set.
55500         * lib/stdio-write.c: New file.
55501         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55502         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55503         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55504         REPLACE_STDIO_WRITE_FUNCS.
55505         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55506         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55507         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55508         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55509         * modules/stdio (Files): Add lib/stdio-write.c.
55510         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55511         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55512         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55513         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55514         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55515         REPLACE_FPRINTF_POSIX.
55516         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55517         REPLACE_PRINTF_POSIX.
55518         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55519         REPLACE_VFPRINTF_POSIX.
55520         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55521         REPLACE_VPRINTF_POSIX.
55522         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55523         SIGPIPE issue.
55524         * doc/posix-functions/fputc.texi: Likewise.
55525         * doc/posix-functions/fputs.texi: Likewise.
55526         * doc/posix-functions/fwrite.texi: Likewise.
55527         * doc/posix-functions/printf.texi: Likewise.
55528         * doc/posix-functions/putc.texi: Likewise.
55529         * doc/posix-functions/putchar.texi: Likewise.
55530         * doc/posix-functions/puts.texi: Likewise.
55531         * doc/posix-functions/vfprintf.texi: Likewise.
55532         * doc/posix-functions/vprintf.texi: Likewise.
55533
55534         * modules/safe-write (Depends-on): Add write.
55535
55536         * modules/sigpipe-tests: New file.
55537         * tests/test-sigpipe.c: New file.
55538         * tests/test-sigpipe.sh: New file.
55539
55540         * modules/write: New file.
55541         * lib/unistd.in.h: Include <sys/types.h>.
55542         (write): New declaration.
55543         * lib/write.c: New file.
55544         * m4/write.m4: New file.
55545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55546         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55547         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55548         GNULIB_WRITE, REPLACE_WRITE.
55549         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55550         and the SIGPIPE issue.
55551
55552         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55553         (raise): New declaration.
55554         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55555         (ext_signal): New function.
55556         (rpl_raise): New function.
55557         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55558         GNULIB_SIGNAL_H_SIGPIPE.
55559         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55560         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55561
55562         * modules/sigpipe: New file.
55563         * m4/sigpipe.m4: New file.
55564
55565 2008-09-25  Derek Price  <derek@ximbiot.com>
55566             Bruno Haible  <bruno@clisp.org>
55567
55568         * gnulib-tool (func_import): Report all license incompatibilities, not
55569         just the first one.
55570
55571 2008-09-25  Bruno Haible  <bruno@clisp.org>
55572
55573         * gnulib-tool (func_import): When computing the edits, consider not
55574         only the Makefile.ams that exist but also those that will be generated.
55575
55576 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55577
55578         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55579         fixes gnulib-tool --test warning about duplicate dependency.
55580
55581 2008-09-25  Bruno Haible  <bruno@clisp.org>
55582
55583         * gnulib-tool: Don't ask the user to perform edits in the generated
55584         Makefile.ams.
55585         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55586         apply to the Makefile.am being generated.
55587         (func_emit_tests_Makefile_am): Execute edits that apply to the
55588         Makefile.am being generated.
55589         (func_import): Setup list of Makefile.am edits before emitting the
55590         Makefile.ams, not at the end.
55591         (func_create_testdir): Update.
55592         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55593
55594 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55595
55596         * gnulib-tool (func_import): Store the --tests-base option in the
55597         comment in gnulib-cache.m4.
55598
55599 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55600
55601         * NEWS: Document increased portability that sys_select now provides.
55602
55603         * lib/sys_select.in.h: Install select wrapper.
55604         * lib/sys_socket.in.h: Use more descriptive name when there is no
55605         select wrapper.
55606         * lib/winsock-select.c: New.
55607         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55608         Require gl_HEADER_SYS_SOCKET.
55609         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55610         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55611         * tests/test-sys_select.c: Add functional tests.
55612
55613 2008-09-24  Eric Blake  <ebb9@byu.net>
55614
55615         open, fopen: close fd leak in last patch
55616         * lib/open.c (rpl_open): Close fd before returning error.
55617         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55618         * doc/posix-functions/open.texi (open): Document that Irix also
55619         has the bug.
55620         * doc/posix-functions/fopen.texi (fopen): Likewise.
55621         Reported by Paolo Bonzini.
55622
55623 2008-09-24  Bruno Haible  <bruno@clisp.org>
55624
55625         Ensure that a filename ending in a slash cannot be used to access a
55626         non-directory.
55627         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55628         to check whether it's really a directory.
55629         * lib/fopen.c: Include fcntl.h, unistd.h.
55630         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55631         and fdopen().
55632         * modules/fopen (Depends-on): Add unistd.
55633         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55634         * tests/test-fopen.c (main): Likewise.
55635         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55636         * doc/posix-functions/fopen.texi: Likewise.
55637         Reported by Eric Blake.
55638
55639 2008-09-23  Eric Blake  <ebb9@byu.net>
55640
55641         c-stack: avoid compiler optimizations when provoking overflow
55642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55643         recursion harder to optimize, to ensure a stack overflow occurs.
55644         * tests/test-c-stack.c (recurse): Likewise.
55645         Borrowed from libsigsegv.
55646
55647         c-stack: work around Irix sigaltstack bug
55648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55649         whether sigaltstack uses wrong end of stack_t (copied in part from
55650         libsigsegv).
55651         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55652         Irix bug, without requiring an over-allocation.
55653         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55654         bug.
55655
55656         fopen: document mingw bug on directories
55657         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55658         not allowing a stream visiting a directory, even though reading
55659         from such a stream is not portable.
55660
55661 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55662
55663         * lib/poll.c: Rewrite.
55664         * modules/poll: Depend on alloca.
55665
55666 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55667
55668         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55669         instead define prototypes for a full set of wrappers.  Ensure
55670         that Cygwin does not use the compatibility code, which is only
55671         for MinGW.
55672         * lib/winsock.c: New.
55673         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55674         * modules/sys_socket: Add lib/winsock.c.
55675
55676         * modules/poll-tests: Add errno and perror.
55677         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55678
55679 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55680
55681         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55682
55683 2008-09-23  Bruno Haible  <bruno@clisp.org>
55684
55685         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55686         * doc/glibc-functions/*: Likewise.
55687
55688 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55689
55690         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55691         success.
55692
55693 2008-09-22  Eric Blake  <ebb9@byu.net>
55694             Bruno Haible  <bruno@clisp.org>
55695
55696         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55697         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55698         supply %A but mishandle pseudo-NaN.
55699         Reported by Simon Josefsson.
55700
55701 2008-09-21  Bruno Haible  <bruno@clisp.org>
55702
55703         * tests/test-lock.c (main): Tweak skip message.
55704         * tests/test-tls.c (main): Likewise.
55705
55706 2008-09-21  Bruno Haible  <bruno@clisp.org>
55707
55708         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55709         whether 'struct sigaction' has sa_sigaction here...
55710         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55711         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55712
55713 2008-09-21  Bruno Haible  <bruno@clisp.org>
55714
55715         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55716         section.
55717         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55718         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55719         the new section.
55720         (Support for obsolete systems lacking POSIX:2001): New section.
55721         (String handling <string.h>): Move strdup to the new section.
55722         Suggested by Simon Josefsson and Paolo Bonzini.
55723
55724 2008-09-21  Bruno Haible  <bruno@clisp.org>
55725
55726         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55727         exponents in %e and %g results on 'long double'. Needed for mingw's
55728         improved *printf functions.
55729         * tests/test-vasprintf-posix.c (test_function): Likewise.
55730         * tests/test-snprintf-posix.h (test_function): Likewise.
55731         * tests/test-sprintf-posix.h (test_function): Likewise.
55732         Reported by Eric Blake.
55733
55734 2008-09-21  Bruno Haible  <bruno@clisp.org>
55735
55736         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55737         * tests/test-sprintf-posix.h (test_function): Likewise.
55738
55739 2008-09-21  Bruno Haible  <bruno@clisp.org>
55740
55741         * modules/getpass (Depends-on): Add strdup-posix.
55742
55743         New module 'strdup-posix'.
55744         * modules/strdup-posix: New file.
55745         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55746         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55748         REPLACE_STRDUP.
55749         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55750         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55752         strdup-posix.
55753
55754         * modules/strdup (Depends-on): Remove malloc-posix.
55755
55756 2008-09-20  Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55759         Wildenhues.
55760
55761 2008-09-20  Bruno Haible  <bruno@clisp.org>
55762
55763         Ensure that wint_t gets defined on IRIX 5.3.
55764         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55765         * lib/wctype.in.h (wint_t): Likewise.
55766         (__wctype_wint_t): Remove type.
55767         (isw*): Use wint_t instead of __wctype_wint_t.
55768         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55769         * modules/wchar (Files): Add m4/wint_t.m4.
55770         (Makefile.am): Substitute HAVE_WINT_T.
55771         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55772         * tests/test-wctype.c: Check that wint_t is defined.
55773         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55774         * doc/posix-headers/wctype.texi: Likewise.
55775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55776
55777 2008-09-18  Bruno Haible  <bruno@clisp.org>
55778
55779         * gnulib-tool (func_exit): Update comment.
55780
55781 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55782
55783         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55784         assumes strdup exists and does not depend on strdup to return
55785         ENOMEM on out of memory conditions.
55786
55787 2008-09-18  Bruno Haible  <bruno@clisp.org>
55788
55789         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55790         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55791         digits for the exponent.
55792
55793 2008-09-18  Jim Meyering  <meyering@redhat.com>
55794             Bruno Haible  <bruno@clisp.org>
55795
55796         * lib/vasnprintf.c (decimal_point_char): Define also if
55797         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55798
55799 2008-09-16  Bruno Haible  <bruno@clisp.org>
55800         and Eric Blake  <ebb9@byu.net>
55801
55802         vasnprintf: support Irix 5.3
55803         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55804         that mishandle long double infinity.
55805         Reported by Tom G. Christensen.
55806
55807 2008-09-16  Bruno Haible  <bruno@clisp.org>
55808
55809         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55810         Solaris 9.
55811         * doc/glibc-functions/alphasort.texi: Likewise.
55812         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55813
55814 2008-09-16  Jim Meyering  <meyering@redhat.com>
55815
55816         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55817         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55818         a umask modification leak out of a subshell.  Otherwise, the
55819         opensolaris /bin/sh would be accepted and thus cause unwarranted
55820         failures in the coreutils test suite.
55821
55822 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55823
55824         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55825         to succeed.
55826
55827 2008-09-16  Jim Meyering  <meyering@redhat.com>
55828
55829         avoid spurious test failure when library is built without ACL support
55830         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55831         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55832         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55833         * tests/test-copy-acl.sh: Likewise.
55834
55835 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55836
55837         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55838         based on character occurrence counts.
55839
55840 2008-09-15  Eric Blake  <ebb9@byu.net>
55841
55842         tests: avoid some compiler warnings
55843         * tests/test-memchr.c (main): Pass NULL indirectly.
55844         * tests/test-closein.c (main): Avoid unused variable.
55845
55846 2008-09-15  Bruno Haible  <bruno@clisp.org>
55847
55848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55849         are missing on OpenBSD 4.0 individually.
55850         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55851
55852 2008-09-15  Bruno Haible  <bruno@clisp.org>
55853
55854         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55855         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55856         * doc/posix-functions/perror.texi: Likewise.
55857         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55858         is missing.
55859         Reported by Eric Blake.
55860
55861         * lib/errno.in.h: Use replacement values >= 2000.
55862         Reported by Eric Blake.
55863
55864 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55865
55866         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55867         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55868         limit.
55869         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55870         compareseq was aborted.
55871
55872 2008-09-14  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55875         yvec_edit_count.
55876         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55877         (fstrcmp_bounded): Simplify result computation accordingly.
55878
55879 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55880
55881         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55882         (fstrcmp): Define in terms of fstrcmp_bounded.
55883         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55884         lower_bound argument.
55885         Return quickly if the result is certainly < lower_bound.
55886         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55887
55888 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55889
55890         * lib/diffseq.h (EARLY_ABORT): New macro.
55891         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55892         evaluates to true.
55893
55894 2008-09-14  Bruno Haible  <bruno@clisp.org>
55895
55896         * modules/perror-tests: New file.
55897         * tests/test-perror.sh: New file.
55898         * tests/test-perror.c: New file.
55899
55900         New module 'perror'.
55901         * lib/stdio.in.h (perror): New declaration.
55902         * lib/perror.c: New file.
55903         * m4/perror.m4: New file.
55904         * modules/perror: New file.
55905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55906         * doc/posix-functions/perror.texi: Mention the perror module.
55907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55908         REPLACE_PERROR.
55909         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55910         REPLACE_PERROR.
55911
55912 2008-09-14  Bruno Haible  <bruno@clisp.org>
55913
55914         * modules/stdio (Makefile.am): Reorder to match the order in
55915         lib/stdio.in.h.
55916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55917
55918 2008-09-13  Bruno Haible  <bruno@clisp.org>
55919
55920         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55921
55922 2008-09-13  Bruno Haible  <bruno@clisp.org>
55923
55924         Extend strerror to cover the added errno values.
55925         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55926         (rpl_strerror): Provide error messages for the added errno values and
55927         for the WSA* values.
55928         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55929         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55930         strerror.
55931         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55932         * modules/strerror (Depends-on): Add errno.
55933         * doc/posix-functions/strerror.texi: Document the change.
55934         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55935         and EOVERFLOW.
55936
55937 2008-09-13  Bruno Haible  <bruno@clisp.org>
55938
55939         * modules/EOVERFLOW: Remove file.
55940         * m4/eoverflow.m4: Remove file.
55941         * modules/EOVERFLOW-tests: Remove file.
55942         * tests/test-EOVERFLOW.c: Remove file.
55943         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55944         * modules/ftell (Depends-on): Likewise.
55945         * modules/getdelim (Depends-on): Likewise.
55946         * modules/getugroups (Depends-on): Likewise.
55947         * modules/poll (Depends-on): Likewise.
55948         * modules/snprintf (Depends-on): Likewise.
55949         * modules/sprintf-posix (Depends-on): Likewise.
55950         * modules/vasnprintf (Depends-on): Likewise.
55951         * modules/vasprintf (Depends-on): Likewise.
55952         * modules/vfprintf-posix (Depends-on): Likewise.
55953         * modules/vsnprintf (Depends-on): Likewise.
55954         * modules/vsprintf-posix (Depends-on): Likewise.
55955         * modules/xvasprintf (Depends-on): Likewise.
55956         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55957         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55958         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55959         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55960         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55961         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55962         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55963         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55964         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55965         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55966         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55967         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55968         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55969         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55970         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55971         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55972         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55973         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55974         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55975         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55976         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55977         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55978         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55979         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55980         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55981         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55982         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55983         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55984         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55985         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55986         * MODULES.html.sh: Remove EOVERFLOW.
55987         * NEWS: Mention the change.
55988
55989 2008-09-13  Bruno Haible  <bruno@clisp.org>
55990
55991         * modules/errno-tests: New file.
55992         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55993
55994         * lib/errno.in.h: New file.
55995         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55996         * modules/errno: New file.
55997         * doc/posix-headers/errno.texi: Update documentation.
55998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55999
56000 2008-09-13  Bruno Haible  <bruno@clisp.org>
56001
56002         * tests/test-poll.c: Use #if for native Windows, rather than testing
56003         __MSVCRT__.
56004
56005 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56006             Bruno Haible  <bruno@clisp.org>
56007
56008         * lib/glob.c: Don't include <pwd.h> on native Windows.
56009         (WINDOWS32): New macro.
56010         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56011
56012 2008-09-13  Bruno Haible  <bruno@clisp.org>
56013
56014         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56015         (ETIMEDOUT): Remove macro.
56016         (glthread_cond_timedwait_multithreaded): New declaration.
56017         (glthread_cond_timedwait): Use it.
56018         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56019         (glthread_cond_timedwait_multithreaded): New function.
56020
56021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56022
56023         * modules/poll-tests: Do not check for io.h.
56024         * tests/test-poll.c: Check for __MSVCRT__ instead.
56025
56026 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56027
56028         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56029         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56030         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56031
56032 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56033
56034         * modules/poll-tests: New.
56035         * tests/test-poll.c: New.
56036
56037 2008-09-12  Eric Blake  <ebb9@byu.net>
56038
56039         frexp: test for NetBSD failure on -0.0
56040         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56041         not all, bugs from NetBSD 3.0 have been fixed.
56042         * doc/posix-functions/frexp.texi (frexp): Document bug.
56043         Reported by Thomas Klausner.
56044
56045         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56046         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56047         literal -0.0.
56048         Reported by Jonathan C. Patschke <jp@centtech.com>.
56049
56050 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56051
56052         * lib/glthread/cond.h: Use dummy implementation also if
56053         USE_WIN32_THREADS.
56054
56055 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56056
56057         * modules/fnmatch-posix (License): Change to LGPLv2+.
56058         * modules/fnmatch-gnu (License): Likewise.
56059
56060 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56061
56062         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56063
56064 2008-09-11  Jim Meyering  <meyering@redhat.com>
56065
56066         * users.txt: Add gtk-vnc.
56067
56068 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56069
56070         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56071         rotate amounts.
56072
56073         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56074         required for 16-bit and 8-bit rotates.
56075         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56076         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56077         UINT8_MAX instead of hard-coded constants.
56078         Suggested by Paul Eggert.
56079
56080 2008-09-07  Bruno Haible  <bruno@clisp.org>
56081
56082         * tests/test-striconveh.c (main): Check behaviour when converting from
56083         UTF-7.
56084
56085         Make striconveh work better with stateful encodings.
56086         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56087         that iconv does not increment the inptr when returning -1/EINVAL.
56088
56089 2008-09-07  Bruno Haible  <bruno@clisp.org>
56090
56091         * build-aux/config.rpath: Update according to libtool-2.2.6.
56092         * build-aux/config.libpath: Likewise.
56093
56094 2008-09-06  Bruno Haible  <bruno@clisp.org>
56095
56096         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56097         * lib/freadptr.c (freadptr): Likewise.
56098         * lib/freadseek.c (freadptrinc): Likewise.
56099         Reported by Simon Josefsson.
56100
56101 2008-09-06  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/freadptr (License): Change to LGPLv2+.
56104         * modules/freadseek (License): Likewise.
56105         Suggested by Eric Blake.
56106
56107         * modules/memchr2 (License): Change to LGPLv2+.
56108         Approved by Eric Blake.
56109
56110 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56111             Bruno Haible  <bruno@clisp.org>
56112
56113         Make gnulib-tool work with native 'sed' on AIX.
56114         * gnulib-tool (sed_noop): New variable.
56115         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56116         func_add_or_update, func_create_testdir): Use it to initialize sed
56117         script variables.
56118         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56119
56120 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56121             Bruno Haible  <bruno@clisp.org>
56122
56123         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56124         also works after #include directives.
56125
56126 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56127
56128         getdate.y: reject an out-of-range timezone value
56129         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56130         the range [-24...+24].  When specified with only one or two digits,
56131         * tests/test-getdate.c: Tests for the fix.
56132         * doc/getdate.texi: Document this change.
56133
56134 2008-09-03  Bruno Haible  <bruno@clisp.org>
56135
56136         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56137
56138 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56139
56140         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56141         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56142         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56143         Blake <ebb9@byu.net>.
56144
56145         * tests/test-bitrotate.c: Add more test vectors.
56146
56147 2008-09-02  Eric Blake  <ebb9@byu.net>
56148
56149         vasnprintf-posix: handle large precision via %.*d
56150         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56151         when handling it ourselves.
56152         * tests/test-vasnprintf-posix.c (test_function): Add test.
56153         * tests/test-snprintf-posix.h (test_function): Likewise.
56154         * tests/test-sprintf-posix.h (test_function): Likewise.
56155         * tests/test-vasprintf-posix.c (test_function): Likewise.
56156         Reported by Alain Guibert.
56157
56158 2008-09-01  Eric Blake  <ebb9@byu.net>
56159
56160         c-stack: make configure-time check more robust
56161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56162         successful sigaction call.
56163         Reported by Tom G. Christensen.
56164
56165 2008-09-01  Bruno Haible  <bruno@clisp.org>
56166
56167         New module 'findprog-lgpl'.
56168         * modules/findprog-lgpl: New file.
56169         * lib/findprog-lgpl.c: New file.
56170         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56171         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56172         to decide whether to use strdup or xstrdup, concatenated_filename or
56173         xconcatenated_filename.
56174
56175 2008-09-01  Bruno Haible  <bruno@clisp.org>
56176
56177         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56178         'xconcat-filename' (GPL).
56179         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56180         (License): Change to LGPLv2+.
56181         * modules/xconcat-filename: New file.
56182         * lib/concat-filename.h (concatenated_filename): Change specification.
56183         (xconcatenated_filename): New declaration.
56184         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56185         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56186         memory situations.
56187         * lib/xconcat-filename.c: New file.
56188         * NEWS: Mention the change.
56189         * lib/findprog.c: Include concat-filename.h, not filename.h.
56190         (find_in_path): Use xconcatenated_filename instead of
56191         concatenated_filename.
56192         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56193         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56194         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56195         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56196         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56197         instead of concatenated_filename.
56198         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56199         (execute_java_class): Use xconcatenated_filename instead of
56200         concatenated_filename.
56201         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56202         * modules/javacomp (Depends-on): Likewise.
56203         * modules/javaexec (Depends-on): Likewise.
56204
56205 2008-09-01  Bruno Haible  <bruno@clisp.org>
56206
56207         Split module 'filename' into 'filename' and 'concat-filename'.
56208         * modules/filename: Keep only lib/filename.h.
56209         (License): Change to LGPLv2+.
56210         * modules/concat-filename: New file, extracted from modules/filename.
56211         * lib/filename.h (concatenated_filename): Remove declaration.
56212         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56213         * lib/concat-filename.c: Include concat-filename.h.
56214         * NEWS: Mention the change.
56215
56216 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56217
56218         * lib/bitrotate.h (rotl8, rotr8): Add.
56219
56220         * modules/bitrotate (configure.ac): Need
56221         AC_REQUIRE([AC_C_INLINE]).
56222         (Description): Mention stdint.h.  Reported by Bruno Haible
56223         <bruno@clisp.org>.
56224
56225         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56226         Paolo Bonzini <bonzini@gnu.org>.
56227
56228 2008-08-31  Bruno Haible  <bruno@clisp.org>
56229
56230         Assume Solaris specific bi-arch conventions on Solaris systems.
56231         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56232         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56234         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56235         like acl_libdirstem.
56236         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56237         acl_libdirstem.
56238         * NEWS: Mention the change.
56239         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56240
56241 2008-08-31  Jim Meyering  <meyering@redhat.com>
56242
56243         * lib/strftime.h: Add comments describing the two added arguments.
56244
56245         remove duplicate #include directives
56246         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56247         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56248
56249 2008-08-31  Bruno Haible  <bruno@clisp.org>
56250
56251         New module 'sigpipe-die'.
56252         * modules/sigpipe-die: New file.
56253         * lib/sigpipe-die.h: New file.
56254         * lib/sigpipe-die.c: New file.
56255         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56256
56257 2008-08-31  Bruno Haible  <bruno@clisp.org>
56258
56259         Don't override previously installed signal handlers.
56260         * lib/fatal-signal.c (saved_sigactions): New variable.
56261         (uninstall_handlers): Reset the signal to the saved handler, not
56262         to SIG_DFL (except when ignored).
56263         (install_handlers): Save the previous handlers.
56264
56265 2008-08-30  Bruno Haible  <bruno@clisp.org>
56266
56267         * gnulib-tool (func_reset_sigpipe): New function.
56268         (func_get_automake_snippet, func_modules_transitive_closure,
56269         func_import): Invoke it before a join command that reads from stdin,
56270         to avoid "echo: write error: Broken pipe" error messages on stderr.
56271         Reported by Sam Steingold <sds@gnu.org>.
56272
56273 2008-08-30  Bruno Haible  <bruno@clisp.org>
56274
56275         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56276         Code copied from m4/open.m4.
56277         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56278         access and the filename ends in a slash. Code copied from lib/open.c.
56279         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56280         * tests/test-fopen.c (main): Check against bug with trailing slash.
56281
56282 2008-08-29  Bruno Haible  <bruno@clisp.org>
56283
56284         Avoid some "gcc -pedantic" warnings.
56285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56286         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56287         * lib/dirent.in.h: Likewise.
56288         * lib/fcntl.in.h: Likewise.
56289         * lib/float.in.h: Likewise.
56290         * lib/iconv.in.h: Likewise.
56291         * lib/inttypes.in.h: Likewise.
56292         * lib/locale.in.h: Likewise.
56293         * lib/math.in.h: Likewise.
56294         * lib/netinet_in.in.h: Likewise.
56295         * lib/search.in.h: Likewise.
56296         * lib/signal.in.h: Likewise.
56297         * lib/stdarg.in.h: Likewise.
56298         * lib/stdint.in.h: Likewise.
56299         * lib/stdio.in.h: Likewise.
56300         * lib/stdlib.in.h: Likewise.
56301         * lib/string.in.h: Likewise.
56302         * lib/strings.in.h: Likewise.
56303         * lib/sys_select.in.h: Likewise.
56304         * lib/sys_socket.in.h: Likewise.
56305         * lib/sys_stat.in.h: Likewise.
56306         * lib/sys_time.in.h: Likewise.
56307         * lib/sysexits.in.h: Likewise.
56308         * lib/time.in.h: Likewise.
56309         * lib/unistd.in.h: Likewise.
56310         * lib/wchar.in.h: Likewise.
56311         * lib/wctype.in.h: Likewise.
56312         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56313         * modules/fchdir (Makefile.am): Likewise.
56314         * modules/fcntl (Makefile.am): Likewise.
56315         * modules/float (Makefile.am): Likewise.
56316         * modules/iconv_open (Makefile.am): Likewise.
56317         * modules/inttypes (Makefile.am): Likewise.
56318         * modules/locale (Makefile.am): Likewise.
56319         * modules/math (Makefile.am): Likewise.
56320         * modules/netinet_in (Makefile.am): Likewise.
56321         * modules/search (Makefile.am): Likewise.
56322         * modules/signal (Makefile.am): Likewise.
56323         * modules/stdarg (Makefile.am): Likewise.
56324         * modules/stdint (Makefile.am): Likewise.
56325         * modules/stdio (Makefile.am): Likewise.
56326         * modules/stdlib (Makefile.am): Likewise.
56327         * modules/string (Makefile.am): Likewise.
56328         * modules/strings (Makefile.am): Likewise.
56329         * modules/sys_select (Makefile.am): Likewise.
56330         * modules/sys_socket (Makefile.am): Likewise.
56331         * modules/sys_stat (Makefile.am): Likewise.
56332         * modules/sys_time (Makefile.am): Likewise.
56333         * modules/sysexits (Makefile.am): Likewise.
56334         * modules/time (Makefile.am): Likewise.
56335         * modules/unistd (Makefile.am): Likewise.
56336         * modules/wchar (Makefile.am): Likewise.
56337         * modules/wctype (Makefile.am): Likewise.
56338         Reported by Reuben Thomas <rrt@sc3d.org>.
56339
56340 2008-08-29  Bruno Haible  <bruno@clisp.org>
56341
56342         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56343         any more.
56344
56345 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56346
56347         * MODULES.html.sh (Misc): Add bitrotate.
56348
56349         * modules/bitrotate: New file.
56350
56351         * lib/bitrotate.h: New file.
56352
56353         * modules/bitrotate-tests: New file.
56354
56355         * tests/test-bitrotate.c: New file.
56356
56357         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56358         on the bitrotate module.
56359
56360         * lib/arctwo.c: Use new bitrotate module.
56361
56362 2008-08-29  Jim Meyering  <meyering@redhat.com>
56363
56364         bootstrap: merge changes from coreutils
56365         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56366         of copied files.  Remove a kludge, now that this is fixed.
56367         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56368         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56369         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56370
56371 2008-08-29  Bruno Haible  <bruno@clisp.org>
56372
56373         * MODULES.html.sh: Remove --cvs-urls option.
56374
56375 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56376
56377         maint.mk: adjust to file name change
56378         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56379
56380 2008-08-28  Jim Meyering  <meyering@redhat.com>
56381
56382         * modules/getndelim2 (License): Relicense to LGPLv2+.
56383         Approved by Richard Stallman for the version of 1995, and by
56384         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56385
56386 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56387
56388         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56389         dummy if one is not available.  Do not touch them if
56390         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56391         (getc_maybe_unlocked): New.
56392         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56393
56394 2008-08-26  Eric Blake  <ebb9@byu.net>
56395
56396         doc/INSTALL: resync from autoconf
56397         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56398         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56399         moving...
56400         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56401         * INSTALL: Regenerate.
56402         * INSTALL.ISO: New file.
56403         * INSTALL.UTF-8: Likewise.
56404
56405 2008-08-26  Jim Meyering  <meyering@redhat.com>
56406
56407         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56408         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56409         these definitions conditional, so that they may be overridden, too.
56410
56411 2008-08-26  Bruno Haible  <bruno@clisp.org>
56412
56413         Generate INSTALL file variants with prettier quotes.
56414         * doc/Makefile (INSTALL_PRELUDE): New macro.
56415         (INSTALL): Use it.
56416         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56417
56418 2008-08-26  Bruno Haible  <bruno@clisp.org>
56419
56420         Run makeinfo in an English locale.
56421         * doc/Makefile (MAKEINFO): New variable.
56422
56423 2008-08-26  Bruno Haible  <bruno@clisp.org>
56424
56425         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56426         Suggested by Eric Blake.
56427
56428 2008-08-25  Bruno Haible  <bruno@clisp.org>
56429
56430         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56431
56432 2008-08-25  Eric Blake  <ebb9@byu.net>
56433
56434         c-stack: test that stack overflow can be caught
56435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56436         that platform allows handling stack overflow; at least OS/2 EMX
56437         has sigaltstack, but crashes before transferring control to
56438         handler on stack overflow.
56439         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56440         check for HAVE_STACK_OVERFLOW_HANDLING.
56441         Reported by Elbert Pol.
56442
56443 2008-08-25  Bruno Haible  <bruno@clisp.org>
56444
56445         * doc/posix-functions/strftime.texi: Fix description of strftime
56446         module.
56447
56448 2008-08-24  Bruno Haible  <bruno@clisp.org>
56449
56450         * tests/uniwidth/test-uc_width2.c: New file.
56451         * tests/uniwidth/test-uc_width2.sh: New file.
56452         * modules/uniwidth/width-tests (Files): Add the new files.
56453         (TESTS): Add uniwidth/test-uc_width2.sh.
56454         (TESTS_ENVIRONMENT): New variable.
56455         (check_PROGRAMS): Add test-uc_width2.
56456         (test_uc_width2_SOURCES): New variable.
56457
56458         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56459         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56460         not 0x00AB.
56461         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56462
56463 2008-08-22  Eric Blake  <ebb9@byu.net>
56464
56465         test-lock, test-tls: mention why a test is skipped
56466         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56467         skipped.
56468         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56469
56470         count-one-bits: relax license
56471         * modules/count-one-bits (License): Relicense to LGPLv2+.
56472         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56473
56474 2008-08-22  Andreas Schwab  <schwab@suse.de>
56475
56476         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56477         Remove spurious space in assignment.
56478
56479 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56480
56481         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56482         Paul Eggert <eggert@CS.UCLA.EDU>.
56483
56484 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56485
56486         * modules/gettext: Add m4/threadlib.m4.
56487
56488 2008-08-19  Eric Blake  <ebb9@byu.net>
56489
56490         test-c-stack: fix compilation failure on FreeBSD 5.0
56491         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56492         headers before <sys/resource.h>.
56493         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56494         the bug.
56495         Reported by Nelson H. F. Beebe.
56496
56497         strverscmp: migrate from "strverscmp.h" to <string.h>
56498         * modules/string (Makefile.am): Add new hooks.
56499         * modules/strverscmp (Files): Remove strverscmp.h.
56500         (Depends-on): Add string.
56501         (configure.ac): Add indicator.
56502         (Include): Mention new header.
56503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56504         defaults.
56505         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56506         results.
56507         * lib/strverscmp.h: Delete.
56508         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56509         * tests/test-strverscmp.c (includes): Adjust client.
56510         * lib/check-version.c (includes): Likewise.
56511         * NEWS: Document the change.
56512
56513         strverscmp: add unit test
56514         * modules/strverscmp-tests: New file.
56515         * tests/test-strverscmp.c: Likewise.
56516
56517 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56518
56519         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56520         regarding Windows crypto stuff, from Mono.
56521
56522 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56523
56524         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56525         if present, for intel RND.  Return error on failures.
56526
56527 2008-08-18  Ben Pfaff  <blp@gnu.org>
56528
56529         gitlog-to-changelog: give better diagnostic for failed pipe-open
56530         * build-aux/gitlog-to-changelog: Improve error message: suggest
56531         that the version of Git may be too old.
56532
56533 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56534
56535         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56536         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56537
56538 2008-08-18  Bruno Haible  <bruno@clisp.org>
56539
56540         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56541         pthread_in_use().
56542
56543 2008-08-18  Bruno Haible  <bruno@clisp.org>
56544
56545         * lib/glthread/threadlib.c: Include <pthread.h>.
56546
56547 2008-08-18  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56550         glthread_recursive_lock_* macros.
56551         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56552         Fix syntax error.
56553
56554 2008-08-18  Bruno Haible  <bruno@clisp.org>
56555
56556         * lib/glthread/thread.c: Avoid forcing a context switch right after
56557         thread creation.
56558
56559 2008-08-17  Bruno Haible  <bruno@clisp.org>
56560
56561         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56562         * lib/glthread/thread.h: Provide Win32 specific implementation.
56563         * modules/thread (Files): Add lib/glthread/thread.c.
56564         (Depends-on): Add lock.
56565         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56566
56567 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56568
56569         New module 'yield'.
56570         * modules/yield: New file.
56571         * lib/glthread/yield.h: New file.
56572         * m4/yield.m4: New file.
56573         * MODULES.html.sh (Multithreading): Add yield.
56574
56575 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56576
56577         New module 'thread'.
56578         * modules/thread: New file.
56579         * lib/glthread/thread.h: New file.
56580         * m4/thread.m4: New file.
56581         * MODULES.html.sh (Multithreading): Add thread.
56582
56583 2008-08-17  Bruno Haible  <bruno@clisp.org>
56584
56585         * lib/glthread/lock.h: Include <stdlib.h> always.
56586         * lib/glthread/tls.h: Likewise.
56587         * lib/glthread/cond.h: Likewise.
56588
56589 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56590
56591         New module 'cond'.
56592         * modules/cond: New file.
56593         * lib/glthread/cond.h: New file.
56594         * lib/glthread/cond.c: New file.
56595         * m4/cond.m4: New file.
56596         * MODULES.html.sh (Multithreading): Add cond.
56597
56598 2008-08-16  Eric Blake  <ebb9@byu.net>
56599
56600         c-stack: fix regression on Irix 5.3 from 2008-06-21
56601         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56602         sa_sigaction...
56603         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56604         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56606         * modules/signal (Makefile.am): Use the value.
56607         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56608         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56609         * doc/posix-headers/signal.texi (signal.h): Document this
56610         portability issue.
56611         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56612         Reported by Tom G. Christensen.
56613
56614 2008-08-17  Bruno Haible  <bruno@clisp.org>
56615
56616         New module 'threadlib'.
56617         * modules/threadlib: New file.
56618         * lib/glthread/threadlib.c: New file, extracted from
56619         lib/glthread/lock.c.
56620         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56621         functions.
56622         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56623         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56624         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56625         macros.
56626         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56627         (gl_DISABLE_THREADS): Remove macro.
56628         * modules/lock (Files): Remove build-aux/config.rpath.
56629         (Depends-on): Remove havelib. Add threadlib.
56630         (configure.ac-early): Remove section.
56631         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56632         * modules/tls (Depends-on): Remove lock. Add threadlib.
56633         (Link): New section, copied from threadlib.
56634         * MODULES.html.sh (Multithreading): Add threadlib.
56635
56636 2008-08-14  Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56639         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56640         glthread_rwlock_unlock, glthread_rwlock_destroy,
56641         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56642         glthread_recursive_lock_destroy): Define as macros always.
56643         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56644         glthread_lock_lock.
56645         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56646         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56647         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56648         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56649         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56650         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56651         (glthread_recursive_lock_lock_func): Renamed from
56652         glthread_recursive_lock_lock.
56653         (glthread_recursive_lock_unlock_func): Renamed from
56654         glthread_recursive_lock_unlock.
56655         (glthread_recursive_lock_destroy_func): Renamed from
56656         glthread_recursive_lock_destroy.
56657
56658 2008-08-14  Bruno Haible  <bruno@clisp.org>
56659
56660         * lib/glthread/lock.h: Renamed from lib/lock.h.
56661         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56662         * lib/glthread/tls.h: Renamed from lib/tls.h.
56663         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56664         * lib/fstrcmp.c: Update includes.
56665         * lib/strsignal.c: Update includes.
56666         * modules/lock (Files, Makefile.am): Update.
56667         (Include): Change to "glthread/lock.h".
56668         * modules/tls (Files, Makefile.am): Update.
56669         (Include): Change to "glthread/tls.h".
56670         * tests/test-lock.c: Update includes.
56671         * tests/test-tls.c: Update includes.
56672         * NEWS: Mention the renamed header files.
56673
56674 2008-08-11  Jim Meyering  <meyering@redhat.com>
56675
56676         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56677
56678 2008-08-11  Eric Blake  <ebb9@byu.net>
56679
56680         test-c-stack: avoid C99-ism
56681         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56682         before statement.
56683         Reported by Alain Guibert.
56684
56685 2008-08-10  Jim Meyering  <meyering@redhat.com>
56686
56687         ensure that return value of uinttostr et al are not ignored
56688         * lib/inttostr.h (__GNUC_PREREQ): Define.
56689         (__attribute_warn_unused_result__): Define.
56690         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56691
56692 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56693
56694         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56695         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56696
56697 2008-08-07  Jim Meyering  <meyering@redhat.com>
56698
56699         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56700
56701         * modules/mkstemp (License): Relicense under LGPLv2+.
56702         * modules/tempname (License): Likewise.
56703
56704 2008-08-06  Bruno Haible  <bruno@clisp.org>
56705
56706         * lib/poll.c (poll): Further micro-optimization.
56707
56708 2008-08-06  Jim Meyering  <meyering@redhat.com>
56709
56710         inet_pton.c: use locale-independent tolower
56711         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56712         (inet_pton6): Use c_tolower rather than tolower.
56713         * modules/inet_pton (Depends-on): Add c-ctype.
56714
56715 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56716
56717         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56718         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56719
56720 2008-08-06  Jim Meyering  <meyering@redhat.com>
56721
56722         * modules/inet_pton (License): Relicense under LGPLv2+.
56723
56724 2008-08-03  Bruno Haible  <bruno@clisp.org>
56725
56726         Additional non-aborting API for lock and tls.
56727         * lib/lock.h: Include <errno.h>.
56728         (glthread_lock_init): New macro/function.
56729         (gl_lock_init): Define as wrapper around glthread_lock_init.
56730         (glthread_lock_lock): New macro/function.
56731         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56732         (glthread_lock_unlock): New macro/function.
56733         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56734         (glthread_lock_destroy): New macro/function.
56735         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56736         (glthread_rwlock_init): New macro/function.
56737         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56738         (glthread_rwlock_rdlock): New macro/function.
56739         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56740         (glthread_rwlock_wrlock): New macro/function.
56741         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56742         (glthread_rwlock_unlock): New macro/function.
56743         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56744         (glthread_rwlock_destroy): New macro/function.
56745         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56746         (glthread_recursive_lock_init): New macro/function.
56747         (gl_recursive_lock_init): Define as wrapper around
56748         glthread_recursive_lock_init.
56749         (glthread_recursive_lock_lock): New macro/function.
56750         (gl_recursive_lock_lock): Define as wrapper around
56751         glthread_recursive_lock_lock.
56752         (glthread_recursive_lock_unlock): New macro/function.
56753         (gl_recursive_lock_unlock): Define as wrapper around
56754         glthread_recursive_lock_unlock.
56755         (glthread_recursive_lock_destroy): New macro/function.
56756         (gl_recursive_lock_destroy): Define as wrapper around
56757         glthread_recursive_lock_destroy.
56758         (glthread_once): New macro/function.
56759         (gl_once): Define as wrapper around glthread_once.
56760         Update function declarations.
56761         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56762         glthread_rwlock_init. Return error code.
56763         (glthread_rwlock_rdlock_multithreaded): Renamed from
56764         glthread_rwlock_rdlock. Return error code.
56765         (glthread_rwlock_wrlock_multithreaded): Renamed from
56766         glthread_rwlock_wrlock. Return error code.
56767         (glthread_rwlock_unlock_multithreaded): Renamed from
56768         glthread_rwlock_unlock. Return error code.
56769         (glthread_rwlock_destroy_multithreaded): Renamed from
56770         glthread_rwlock_destroy. Return error code.
56771         (glthread_recursive_lock_init_multithreaded): Renamed from
56772         glthread_recursive_lock_init. Return error code.
56773         (glthread_recursive_lock_lock_multithreaded): Renamed from
56774         glthread_recursive_lock_lock. Return error code.
56775         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56776         glthread_recursive_lock_unlock. Return error code.
56777         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56778         glthread_recursive_lock_destroy. Return error code.
56779         (glthread_once_call): Make static.
56780         (glthread_once_multithreaded): Renamed from glthread_once.
56781         * lib/tls.h: Include <errno.h>.
56782         (glthread_tls_key_init): New macro/function.
56783         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56784         (glthread_tls_set): New macro/function.
56785         (gl_tls_set): Define as wrapper around glthread_tls_set.
56786         (glthread_tls_key_destroy): New macro/function.
56787         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56788         Update function declarations.
56789         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56790         glthread_tls_get.
56791         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56792
56793 2008-08-04  Eric Blake  <ebb9@byu.net>
56794
56795         gnumakefile: use space, not TAB, outside of targets
56796         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56797
56798 2008-08-02  Jim Meyering  <meyering@redhat.com>
56799
56800         getdate.y: avoid locale-dependent date parsing failure
56801         In Turkish locales, getdate would fail to recognize keywords
56802         containing a lowercase "i".  The solution is not to rely on
56803         locale-sensitive case-conversion.
56804         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56805         (lookup_word): Use c_toupper in place of toupper.
56806         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56807         Reported by Vefa Bicakci <bicave@superonline.com> in
56808         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56809         * modules/getdate (Depends-on): Add c-ctype.
56810
56811 2008-08-02  Bruno Haible  <bruno@clisp.org>
56812
56813         * gnulib-tool (func_import): When updating or creating a .gitignore
56814         file, prepend each added line with a slash, and ignore leading slashes
56815         from the existing lines.
56816         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56817
56818 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56819
56820         Portability fix for GNU make 3.79.1.
56821         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56822         versions do not understand.
56823
56824 2008-08-01  Bruno Haible  <bruno@clisp.org>
56825
56826         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56827         * tests/test-isnanf.h (zero): New variable.
56828         (main): Avoid literal -0.0f.
56829         * tests/test-isnand.h (zero): New variable.
56830         (main): Avoid literal -0.0.
56831         * tests/test-isnanl.h (zero): New variable.
56832         (main): Avoid literal -0.0L.
56833         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56834         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56835         -0.0, -0.0L.
56836         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56837         (test_signbitd): Avoid literal -0.0.
56838         (test_signbitl): Avoid literal -0.0L.
56839         * tests/test-ceilf1.c (zero): New variable.
56840         (main): Avoid literal -0.0f.
56841         * tests/test-ceill.c (zero): New variable.
56842         (main): Avoid literal -0.0L.
56843         * tests/test-floorf1.c (zero): New variable.
56844         (main): Avoid literal -0.0f.
56845         * tests/test-floorl.c (zero): New variable.
56846         (main): Avoid literal -0.0L.
56847         * tests/test-roundf1.c (zero): New variable.
56848         (main): Avoid literal -0.0f.
56849         * tests/test-round1.c (zero): New variable.
56850         (main): Avoid literal -0.0.
56851         * tests/test-roundl.c (zero): New variable.
56852         (main): Avoid literal -0.0L.
56853         * tests/test-truncf1.c (zero): New variable.
56854         (main): Avoid literal -0.0f.
56855         * tests/test-trunc1.c (zero): New variable.
56856         (main): Avoid literal -0.0.
56857         * tests/test-truncl.c (zero): New variable.
56858         (main): Avoid literal -0.0L.
56859         * tests/test-frexp.c (zero): New variable.
56860         (main): Avoid literal -0.0.
56861         * tests/test-frexpl.c (zero): New variable.
56862         (main): Avoid literal -0.0L.
56863         * tests/test-ldexpl.c (zero): New variable.
56864         (main): Avoid literal -0.0L.
56865         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56866         (zerod, zerol): New variables.
56867         (test_function): Avoid literals -0.0, -0.0L.
56868         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56869         (zerod, zerol): New variables.
56870         (test_function): Avoid literals -0.0, -0.0L.
56871         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56872         (zerod, zerol): New variables.
56873         (test_function): Avoid literals -0.0, -0.0L.
56874         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56875         (zerod, zerol): New variables.
56876         (test_function): Avoid literals -0.0, -0.0L.
56877         * tests/test-strtod.c (zero): New variable.
56878         (main): Avoid literal -0.0.
56879         Reported by Jonathan C. Patschke <jp@centtech.com>.
56880
56881 2008-07-31  Jim Meyering  <meyering@redhat.com>
56882
56883         sha256.h: correct definition of SHA224_DIGEST_SIZE
56884         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56885         Reported by Paulie Pena IV <paulie4@gmail.com>.
56886         Define as 224 / 8, rather than as a literal.
56887         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56888         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56889         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56890
56891 2008-07-31  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56894         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56895         Reported by Jonathan Patschke <jp@centtech.com>.
56896
56897 2008-07-31  Bruno Haible  <bruno@clisp.org>
56898
56899         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56900         Reported by Paolo Bonzini <bonzini@gnu.org>.
56901
56902 2008-07-30  Eric Blake  <ebb9@byu.net>
56903
56904         test-strtod: allow compilation without -lm
56905         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56906         Reported by Dennis Clarke <blastwave@gmail.com>.
56907
56908 2008-07-28  Jim Meyering  <meyering@redhat.com>
56909
56910         bootstrap: work also when there are no .po files in po/
56911         * build-aux/bootstrap (update_po_files): Complete the change
56912         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56913
56914 2008-07-27  Jim Meyering  <meyering@redhat.com>
56915
56916         * users.txt: Add zile.
56917
56918 2008-07-26  Ben Pfaff  <blp@gnu.org>
56919
56920         Add missing dependencies on new m4/exponent[fdl].m4 files.
56921         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56922         * modules/isnand-nolibm: Add m4/exponentd.m4.
56923         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56924         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56925         m4/isnan[fdl].m4, because the macros actually used moved.
56926         Reported by Jim Meyering.
56927
56928 2008-07-14  Ben Pfaff  <blp@gnu.org>
56929
56930         Add isinf module.
56931         * lib/isinf.c: New file.
56932         * lib/math.in.h: Define isinf macro if we have decided to replace
56933         it.
56934         * m4/isinf.m4: New file.
56935         * m4/math_h.m4: Initialize and substitute variables for isinf
56936         module.
56937         * modules/isinf: New file.
56938         * modules/isinf-tests: New file.
56939         * modules/math: Add substitutions for new module.
56940         * tests/test-isinf.c: New file.
56941         * doc/posix-functions/isinf.texi: Mention new module.
56942         * MODULES.html.sh: Mention new module.
56943
56944 2008-07-14  Ben Pfaff  <blp@gnu.org>
56945
56946         Factor out some macros for use by additional modules.
56947         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56948         exponentf.m4.
56949         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56950         exponentd.m4.
56951         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56952         file exponentl.m4.
56953         * m4/exponentf.m4: New file.
56954         * m4/exponentd.m4: New file.
56955         * m4/exponentl.m4: New file.
56956         * modules/isnanf: Use new file m4/exponentf.m4.
56957         * modules/isnand: Use new file m4/exponentd.m4.
56958         * modules/isnanl: Use new file m4/exponentl.m4.
56959
56960 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56961
56962         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56963         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56964         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56965         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56966
56967         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56968         readlink on platforms without PATH_MAX.
56969
56970 2008-07-21  Eric Blake  <ebb9@byu.net>
56971
56972         Warn, not fail, on stale version.
56973         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56974
56975         Don't allow installation with stale devel version number.
56976         * top/GNUmakefile (_is-install-target): New macro.
56977         (_curr-ver): Forbid installation with stale version number.
56978
56979 2008-07-20  Bruno Haible  <bruno@clisp.org>
56980
56981         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56982         TESTS_ENVIRONMENT.
56983         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56984
56985 2008-07-20  Bruno Haible  <bruno@clisp.org>
56986
56987         * lib/c-stack.h (c_stack_action): Add documentation.
56988         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56989
56990 2008-07-20  Bruno Haible  <bruno@clisp.org>
56991
56992         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56993         * modules/readlink (License): Likewise.
56994
56995 2008-07-17  Eric Blake  <ebb9@byu.net>
56996
56997         * modules/c-stack (Link): Fix typo.
56998
56999         Make c-stack use libsigsegv, when available.
57000         * modules/c-stack (Depends-on): Add libsigsegv.
57001         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57002         needed.
57003         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57004         (segv_handler, overflow_handler, c_stack_action)
57005         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57006         implementation when libsigsegv is available, but only when using
57007         the library is necessary.
57008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57009         comment, explaining why XSI check fails on Linux.
57010         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57011         * tests/test-c-stack2.sh: Tweak skip message.
57012         * NEWS: Document new link-time requirements.
57013
57014 2008-07-16  Eric Blake  <ebb9@byu.net>
57015
57016         c-stack: Expose false positives when not using libsigsegv.
57017         * modules/c-stack-tests (Files): Expand test.
57018         * tests/test-c-stack.c (main): Add means to conditionally trigger
57019         non-overflow SIGSEGV.
57020         * tests/test-c-stack2.sh: New file.
57021
57022 2008-07-14  Bruno Haible  <bruno@clisp.org>
57023
57024         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57025         Reported by Eric Blake.
57026
57027 2008-07-14  Sam Steingold  <sds@gnu.org>
57028             Bruno Haible  <bruno@clisp.org>
57029
57030         New module libsigsegv.
57031         * modules/libsigsegv: New file.
57032         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57033         modifications.
57034         * MODULES.html.sh (Signal handling): New section.
57035
57036 2008-07-14  Bruno Haible  <bruno@clisp.org>
57037
57038         * modules/unictype/ctype-* (Description): Add the word "function".
57039         Improves the resulting doc in MODULES.html.
57040
57041 2008-07-12  Ben Pfaff  <blp@gnu.org>
57042
57043         Add longlong module.
57044         * modules/longlong: New file.
57045
57046 2008-07-12  Bruno Haible  <bruno@clisp.org>
57047
57048         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57049         to empty.
57050
57051 2008-07-10  Ben Pfaff  <blp@gnu.org>
57052
57053         Add isnan module.
57054         * doc/posix-functions/isnan.texi: Mention new module.
57055         * lib/math.in.h: Define isnan macro if we have decided to replace
57056         it.
57057         * m4/isnan.m4: New file.
57058         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57059         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57060         also.
57061         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57062         redundancy.
57063         * m4/math_h.m4: Initialize and substitute variables for isnan
57064         module.
57065         * modules/isnan: New file.
57066         * modules/isnan-tests: New file.
57067         * modules/math: Add substitutions for new module.
57068         * tests/test-isnan.c: New file.
57069         * MODULES.html.sh: Mention new module.
57070
57071 2008-07-10  Ben Pfaff  <blp@gnu.org>
57072
57073         Add isnanf module.
57074         * lib/isnanf.m4: New file.
57075         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57076         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57077         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57078         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57079         * modules/isnanf: New file.
57080         * modules/isnanf-tests: New file.
57081         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57082         files.
57083         * tests/test-isnanf-nolibm.c: factored most of its contents into
57084         new file tests/test-isnanf.h.
57085         * tests/test-isnanf.h: New file.
57086         * tests/test-isnanf.c: New file.
57087         * MODULES.html.sh: Mention new module.
57088         * doc/glibc-functions/isnanf.texi: Mention new module.
57089
57090 2008-07-10  Ben Pfaff  <blp@gnu.org>
57091
57092         Add isnand module.
57093         * lib/isnand.h: New file.
57094         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57095         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57096         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57097         functionality also.
57098         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57099         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57100         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57101         * modules/isnand: New file.
57102         * modules/isnand-tests: New file.
57103         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57104         files.
57105         * tests/test-isnand-nolibm.c: factored most of its contents into
57106         new file tests/test-isnand.h.
57107         * tests/test-isnand.h: New file.
57108         * tests/test-isnand.c: New file.
57109         * MODULES.html.sh: Mention new module.
57110
57111 2008-07-10  Ben Pfaff  <blp@gnu.org>
57112
57113         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57114         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57115         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57116         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57117         * modules/isnanf-nolibm: Update references to renamed files.
57118         * modules/isnand-nolibm: Likewise.
57119         * modules/isnanf-nolibm-tests: Likewise.
57120         * modules/isnand-nolibm-tests: Likewise.
57121         * lib/frexp.c: Likewise.
57122         * lib/isfinite.c: Likewise.
57123         * lib/signbitd.c: Likewise.
57124         * lib/signbitf.c: Likewise.
57125         * lib/vasnprintf.c: Likewise.
57126         * tests/test-ceilf1.c: Likewise.
57127         * tests/test-ceilf2.c: Likewise.
57128         * tests/test-floorf1.c: Likewise.
57129         * tests/test-floorf2.c: Likewise.
57130         * tests/test-frexp.c: Likewise.
57131         * tests/test-round1.c: Likewise.
57132         * tests/test-round2.c: Likewise.
57133         * tests/test-roundf1.c: Likewise.
57134         * tests/test-strtod.c: Likewise.
57135         * tests/test-trunc1.c: Likewise.
57136         * tests/test-trunc2.c: Likewise.
57137         * tests/test-truncf1.c: Likewise.
57138         * tests/test-truncf2.c: Likewise.
57139         * NEWS: Mention the renamed header files.
57140
57141 2008-07-11  Jim Meyering  <meyering@redhat.com>
57142
57143         vc-list-files: make the last-resort awk code more portable
57144         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57145         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57146         does not support it.
57147
57148 2008-07-10  Eric Blake  <ebb9@byu.net>
57149
57150         Work with tar's bootstrap.
57151         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57152         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57153         an m4 comment.
57154
57155 2008-07-09  Jim Meyering  <meyering@redhat.com>
57156
57157         posix-shell.m4: fix typo that made this test malfunction
57158         * m4/posix-shell.m4: Remove capitalization in variable name.
57159
57160 2008-07-08  Bruno Haible  <bruno@clisp.org>
57161
57162         * m4/onceonly.m4: Update comments.
57163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57164
57165 2008-07-04  Jim Meyering  <meyering@redhat.com>
57166
57167         * users.txt: Add vc-dwim.
57168         (bison, coreutils): Use the gitweb URL.
57169
57170 2008-07-03  Jim Meyering  <meyering@redhat.com>
57171
57172         * users.txt: Add libffcall.  From Sam Steingold.
57173
57174 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57175
57176         getdate.y: do not ignore TZ with relative day, month or year offset
57177         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57178         relative-date-handling, since otherwise, the latter would clobber the
57179         sole output (an updated Start value) of the tz-handling block.
57180         * tests/test-getdate.c: Tests for the fix
57181
57182 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57183
57184         Recognize 'foo_LIBRARIES += libgnu.a'.
57185         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57186         makefile snippet has already specified an installation location,
57187         also using '+='.
57188
57189 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57190
57191         getdate.y: factor out common actions
57192         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57193         Use them in place of open-coded actions.
57194
57195 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57196
57197         Add self-test for getdate module.
57198         * modules/getdate-tests: New file.
57199         * tests/test-getdate.c: New file.
57200
57201 2008-06-29  Bruno Haible  <bruno@clisp.org>
57202
57203         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57204         .gitignore.
57205         Reported by Sylvain Beucler <beuc@beuc.net>.
57206
57207 2008-06-29  Bruno Haible  <bruno@clisp.org>
57208
57209         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57210         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57211
57212 2008-06-29  Bruno Haible  <bruno@clisp.org>
57213
57214         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57215         EXTRA_DIST.
57216         Reported by Sylvain Beucler <beuc@beuc.net>.
57217
57218 2008-06-26  Jim Meyering  <meyering@redhat.com>
57219
57220         make several modules depend on the "open" module
57221         This provides slightly increased consistency when opening-for-write
57222         the name of a non-directory spelled with a trailing slash.
57223         * modules/chdir-safer: Likewise.
57224         * modules/chown: Likewise.
57225         * modules/clean-temp: Likewise.
57226         * modules/copy-file: Likewise.
57227         * modules/fchdir: Likewise.
57228         * modules/fcntl-safer: Likewise.
57229         * modules/pipe: Likewise.
57230         * modules/utime: Likewise.
57231         Prompted by Eric Blake and Bruno Haible.
57232
57233 2008-06-24  Andreas Schwab  <schwab@suse.de>
57234
57235         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57236         literals can be used as initializers for global variables.
57237
57238 2008-06-23  Eric Blake  <ebb9@byu.net>
57239
57240         Make gnulib-cache.m4 easier to diff.
57241         * gnulib-tool (func_import): Allow newlines when reading cached
57242         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57243
57244 2008-06-23  Bruno Haible  <bruno@clisp.org>
57245
57246         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57247         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57248         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57249         m4/signalblocking.m4.
57250         (gl_PREREQ_SIGACTION): Don't invoke it.
57251         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57252         gl_PREREQ_SIG_HANDLER_H.
57253         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57254         Don't check for sigaction here.
57255
57256 2008-06-23  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57259         (install_handlers): Don't set the SA_RESETHAND flag.
57260
57261 2008-06-23  Bruno Haible  <bruno@clisp.org>
57262
57263         * m4/sigaction.m4: Comment fixes.
57264         * lib/signal.in.h: Likewise.
57265
57266 2008-06-23  Eric Blake  <ebb9@byu.net>
57267
57268         Fix typo.
57269         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57270
57271         Avoid SA_ namespace.
57272         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57273         Reported by Ralf Wildenhues.
57274
57275         Avoid test failure due to SA_RESTORER.
57276         * tests/test-sigaction.c (SA_MASK): New macro.
57277         (main): Avoid failing due to extension flags being set.
57278         Reported by Jim Meyering.
57279
57280         Revert use of sig-handler.h in sigprocmask.c.
57281         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57282         it requires the existence of struct sigaction.
57283         * lib/sigprocmask.c (handler_t): Restore typedef.
57284         (rpl_signal, old_handlers): Use local type.
57285
57286 2008-06-22  Bruno Haible  <bruno@clisp.org>
57287
57288         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57289         conditionally.
57290         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57291
57292 2008-06-22  Bruno Haible  <bruno@clisp.org>
57293
57294         * doc/posix-functions/siginterrupt.texi: Move note.
57295
57296         * lib/signal.in.h (SA_RESTART): New macro.
57297         * lib/sigaction.c: Update comment.
57298
57299         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57300
57301         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57302         (gl_PREREQ_SIGPROCMASK): Invoke it.
57303         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57304
57305         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57306
57307         * lib/sigprocmask.c: Update a comment.
57308
57309 2008-06-21  Eric Blake  <ebb9@byu.net>
57310
57311         Use sigaction module rather than signal().
57312         * modules/c-stack (Depends-on): Add sigaction.
57313         * modules/fatal-signal (Depends-on): Likewise.
57314         * modules/nanosleep (Depends-on): Likewise.
57315         * modules/sigprocmask (Files): Add sig-handler.h.
57316         * modules/sigaction (Files): Likewise.
57317         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57318         Eggert.
57319         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57320         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57321         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57322         (init_fatal_signals): Likewise.
57323         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57324         (siginterrupt): Delete fallback.
57325         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57326         instead.
57327         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57328         siginterrupt.
57329
57330         New module sigaction, for mingw.
57331         * modules/sigaction: New module...
57332         * modules/sigaction-tests: ...and its test.
57333         * m4/sigaction.m4: New file.
57334         * lib/sigaction.c: Likewise.
57335         * tests/test-sigaction.c: Likewise.
57336         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57337         * modules/signal (Makefile.am): Likewise.
57338         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57339         needed.
57340         * doc/posix-headers/signal.texi (signal.h): Mention provided
57341         types.
57342         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57343         that sigaction is preferable.
57344         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57345         module.
57346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57347         sigaction.
57348
57349         Improve robustness of sigprocmask by overriding signal.
57350         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57351         is in use.
57352         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57353         (SIGKILL, SIGSTOP): Provide fallbacks.
57354         (rpl_signal): Implement.
57355         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57356         signal can be called inside handlers.
57357
57358         Fix nanosleep module on mingw.
57359         * modules/nanosleep (Depends-on): Add sys_select.
57360         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57361
57362         Fix licensing of sigprocmask.
57363         * modules/raise (License): Relicense as LGPL.
57364
57365 2008-06-21  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57368         result if it contains question marks.
57369         Reported by Michael Geng <linux@michaelgeng.de>.
57370
57371 2008-06-19  Bruno Haible  <bruno@clisp.org>
57372
57373         Fix CVS-ism.
57374         * doc/gnulib.texi: Include updated-stamp.texi.
57375         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57376         (updated-stamp.texi): New rule.
57377         (gnulib.info): Depend on it.
57378         * doc/.gitignore: Add updated-stamp.texi.
57379         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57380
57381 2008-06-19  Bruno Haible  <bruno@clisp.org>
57382
57383         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57384         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57385
57386 2008-06-19  Eric Blake  <ebb9@byu.net>
57387
57388         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57389         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57390         Reported by Stepan Kasal.
57391
57392 2008-06-18  Bruno Haible  <bruno@clisp.org>
57393
57394         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57395         Reported by Eric Blake.
57396
57397 2008-06-18  Eric Blake  <ebb9@byu.net>
57398
57399         Work around cygwin 1.5.25 strsignal bug.
57400         * tests/test-strsignal.c: Allow for const char *.
57401         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57402
57403 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57404
57405         * users.txt: Update URL to article and add author/date
57406         information.
57407
57408 2008-06-17  Bruno Haible  <bruno@clisp.org>
57409
57410         New macro gl_DISABLE_THREADS.
57411         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57412         if the user did not pass --enable-threads or --disable-threads option.
57413         (gl_DISABLE_THREADS): New macro.
57414         Reported by Eric Blake <ebb9@byu.net>.
57415
57416 2008-06-17  Bruno Haible  <bruno@clisp.org>
57417
57418         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57419         when the macro ignores it.
57420         Based on a patch by Eric Blake <ebb9@byu.net>.
57421
57422 2008-06-17  Bruno Haible  <bruno@clisp.org>
57423
57424         * modules/tls (License): Change to LGPLv2+.
57425         Reported by Eric Blake.
57426
57427 2008-06-17  Eric Blake  <ebb9@byu.net>
57428
57429         Simplify c-stack prerequisites.
57430         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57432         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57433         check.
57434         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57435         <sys/resource.h>.
57436
57437         Move c-stack test into testsuite.
57438         * modules/c-stack-tests: New file.
57439         * lib/c-stack.c [DEBUG]: Move test program...
57440         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57441         fail test if sigaltstack is lacking.
57442         * tests/test-c-stack.sh: New driver file.
57443
57444 2008-06-16  Eric Blake  <ebb9@byu.net>
57445
57446         Use raise module consistently.
57447         * modules/fatal-signal (Depends-on): Add raise.
57448         * modules/sigprocmask (Depends-on): Likewise.
57449         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57450         * lib/sigprocmask.c (sigprocmask): Likewise.
57451         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57452         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57453
57454         Fix compliance bug in sigpending.
57455         * lib/sigprocmask.c (sigpending): Return pending array via
57456         parameter, not return value.
57457
57458 2008-06-14  Eric Blake  <ebb9@byu.net>
57459
57460         Improve obstack-printf test code.
57461         * tests/test-obstack-printf.c (test_function): Fix comment, and
57462         simplify usage of obstack_* in macros.  Add a test for coverage.
57463         Reported by Bruno Haible.
57464
57465 2008-06-14  Bruno Haible  <bruno@clisp.org>
57466
57467         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57468         array size as a constant, not as a const variable.
57469         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57470         AC_USE_SYSTEM_EXTENSIONS.
57471         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57472         Test whether the obstack_printf function actually exists.
57473         * modules/obstack-printf (Depends-on): Add extensions.
57474         (Include): Remove obstack.h.
57475         * modules/obstack-printf-posix (Depends-on): Add extensions.
57476         (Include): Remove obstack.h.
57477
57478 2008-06-13  Eric Blake  <ebb9@byu.net>
57479
57480         Add obstack-printf and obstack-printf-posix modules.
57481         * modules/obstack-printf: New file.
57482         * modules/obstack-printf-posix: Likewise.
57483         * MODULES.html.sh (Misc): Mention them.
57484         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57485         Likewise.
57486         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57487         Likewise.
57488         * modules/stdio (Makefile.am): Accomodate new modules.
57489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57490         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57491         Declare.
57492         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57493         functions.
57494         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57495         (gl_REPLACE_OBSTACK_PRINTF): New macros
57496         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57497         * tests/test-obstack-printf.c: New file.
57498         * modules/obstack-printf-tests: Likewise.
57499         * modules/obstack-printf-posix-tests: Likewise.
57500
57501 2008-06-11  Bruno Haible  <bruno@clisp.org>
57502
57503         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57504         * lib/open.c: Include errno.h.
57505         (open): Fail when attempting to write to a file that has a trailing
57506         slash.
57507         * tests/test-open.c (main): Test against trailing slash bug.
57508         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57509
57510 2008-06-10  Bruno Haible  <bruno@clisp.org>
57511
57512         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57513         for $? to work inside the trap command, with various /bin/sh-s.
57514         * tests/test-vc-list-files-cvs.sh: Likewise.
57515
57516 2008-06-10  Bruno Haible  <bruno@clisp.org>
57517
57518         * lib/acl-internal.h: Don't include gettext.h here.
57519         * lib/set-mode-acl.c: Include gettext.h here.
57520         * lib/copy-acl.c: Likewise.
57521
57522 2008-06-10  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57525         * lib/wait-process.c (wait_subprocess): Likewise.
57526         * lib/execute.h (execute): Add termsigp argument.
57527         * lib/execute.c (execute): Likewise.
57528         * lib/csharpcomp.c (compile_csharp_using_pnet,
57529         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57530         * lib/csharpexec.c (execute_csharp_using_pnet,
57531         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57532         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57533         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57534         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57535         is_jikes_present): Update.
57536         * lib/javaexec.c (execute_java_class): Update.
57537         * lib/javaversion.c (execute_and_read_line): Update.
57538         * NEWS: Document the changes.
57539         Reported by Eric Blake.
57540
57541 2008-06-10  Eric Blake  <ebb9@byu.net>
57542
57543         Add missing include.
57544         * tests/test-strstr.c (includes): Add <signal.h>.
57545         * tests/test-strcasestr.c (includes): Likewise.
57546         * tests/test-memmem.c (includes): Likewise.
57547
57548 2008-06-10  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/wait-process.c (wait_subprocess): Add an assertion.
57551
57552 2008-06-10  Bruno Haible  <bruno@clisp.org>
57553
57554         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57555
57556 2008-06-10  Bruno Haible  <bruno@clisp.org>
57557
57558         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57559         using alarm().
57560         * tests/test-strcasestr.c (main): Likewise.
57561         * tests/test-strstr.c (main): Likewise.
57562
57563 2008-06-09  Bruno Haible  <bruno@clisp.org>
57564
57565         Work around the Solaris 10 ACE ACLs ABI change.
57566         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57567         declare if ACL_NO_TRIVIAL is present.
57568         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57569         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57570         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57571         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57572         define if ACL_NO_TRIVIAL is present.
57573         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57574         and use the current ABI.
57575         (file_has_acl): Use same #if condition as elsewhere.
57576         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57577         in use, and use the current ABI.
57578         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57579         Reported by Jim Meyering.
57580
57581 2008-06-09  Eric Blake  <ebb9@byu.net>
57582
57583         Work around environments that (stupidly) ignore SIGALRM.
57584         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57585         before using alarm().
57586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57588         Reported by Ian Beckwith <ianb@erislabs.net>.
57589
57590         Produce autobuild blurb earlier in log.
57591         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57592
57593 2008-06-09  Jim Meyering  <meyering@redhat.com>
57594         and OndÅ™ej Vašík  <ovasik@redhat.com>
57595
57596         utimens.c: correct kernel bug work-around
57597         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57598         failure, not success, and the kernel bug we're trying to work
57599         around affects not just the utimensat call, but also the fallback
57600         futimens call.
57601         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57602         not success.
57603         [HAVE_FUTIMENS]: Use the same work-around, here.
57604
57605 2008-06-09  Jim Meyering  <meyering@redhat.com>
57606
57607         add more guards around definition of ACE_-related code
57608         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57609         ALLOW and ACE_OWNER are also defined.
57610
57611 2008-06-08  Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/acl-internal.h: Add me as co-author.
57614         * lib/file-has-acl.c: Likewise.
57615         * lib/set-mode-acl.c: Likewise.
57616         * lib/copy-acl.c: Likewise.
57617
57618 2008-06-08  Bruno Haible  <bruno@clisp.org>
57619
57620         Add support for AIX ACLs.
57621         * lib/acl-internal.h (acl_nontrivial): New declaration.
57622         * lib/file-has-acl.c (acl_nontrivial): New function.
57623         (file_has_acl): Add implementation using AIX 4 ACL API.
57624         * lib/set-mode-acl.c (qset_acl): Likewise.
57625         * lib/copy-acl.c (qcopy_acl): Likewise.
57626
57627 2008-06-08  Bruno Haible  <bruno@clisp.org>
57628
57629         Add support for HP-UX ACLs.
57630         * lib/acl-internal.h (acl_nontrivial): New declaration.
57631         * lib/file-has-acl.c (acl_nontrivial): New function.
57632         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57633         * lib/set-mode-acl.c (qset_acl): Likewise.
57634         * lib/copy-acl.c (qcopy_acl): Likewise.
57635
57636 2008-06-08  Bruno Haible  <bruno@clisp.org>
57637
57638         Add support for Cygwin ACLs.
57639         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57640         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57641         the chmod_or_fchmod call.
57642         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57643
57644 2008-06-08  Bruno Haible  <bruno@clisp.org>
57645
57646         Fix bug with setuid modes in Solaris 10+ code.
57647         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57648         succeeded, when the mode contains some special bits.
57649
57650 2008-06-08  Bruno Haible  <bruno@clisp.org>
57651
57652         Add support for Solaris 7..10 ACLs.
57653         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57654         declarations.
57655         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57656         functions.
57657         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57658         * lib/set-mode-acl.c (qset_acl): Likewise.
57659         * lib/copy-acl.c (qcopy_acl): Likewise.
57660
57661 2008-06-08  Bruno Haible  <bruno@clisp.org>
57662
57663         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57664         declaration.
57665         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57666         (acl_access_nontrivial): Remove MacOS X case.
57667         (file_has_acl): Use acl_extended_nontrivial.
57668         * lib/copy-acl.c (qcopy_acl): Likewise.
57669
57670 2008-06-08  Bruno Haible  <bruno@clisp.org>
57671
57672         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57673
57674 2008-06-08  Jim Meyering  <meyering@redhat.com>
57675
57676         * modules/acl (Maintainer): Add Bruno Haible.
57677
57678 2008-06-07  Bruno Haible  <bruno@clisp.org>
57679
57680         Improve support for Tru64 ACLs.
57681         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57682         ACL on OSF/1.
57683
57684 2008-06-07  Bruno Haible  <bruno@clisp.org>
57685
57686         Add support for MacOS X ACLs.
57687         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57688         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57689         * lib/set-mode-acl.c (qset_acl): Likewise.
57690         * lib/copy-acl.c (qcopy_acl): Likewise.
57691
57692 2008-06-07  Bruno Haible  <bruno@clisp.org>
57693
57694         Fix memory leak introduced on 2008-05-22.
57695         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57696         use.
57697
57698 2008-06-07  Bruno Haible  <bruno@clisp.org>
57699
57700         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57701         to construct an empty ACL.
57702
57703 2008-06-07  Bruno Haible  <bruno@clisp.org>
57704
57705         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57706         precisely.
57707         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57708
57709 2008-06-07  Bruno Haible  <bruno@clisp.org>
57710
57711         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57712         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57713
57714 2008-06-07  Bruno Haible  <bruno@clisp.org>
57715
57716         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57717         regardless of POSIX.
57718         * doc/posix-functions/_longjmp.texi: Likewise.
57719         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57720         SystemV platform in this case.
57721
57722 2008-06-06  Eric Blake  <ebb9@byu.net>
57723
57724         Document abort() bugs.
57725         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57726
57727         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57728         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57729         sigsetjmp.
57730         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57731         siglongjmp, but only as a macro.
57732         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57733         is obsolete.
57734         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57735
57736         Tweak documentation to cover cygwin argz bugs.
57737         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57738         argz bug fix; no code change needed since no cygwin releases
57739         occurred between the last fix and the bug being tested.
57740         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57741         module and recently fixed cygwin bugs.
57742         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57743         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57744         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57745         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57746         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57747         Likewise.
57748         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57749         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57750         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57751         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57752         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57753         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57754         Likewise.
57755
57756         Avoid gcc warning on cygwin.
57757         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57758         !ACL_NO_TRIVIAL]: Avoid unused variable.
57759
57760 2008-06-05  Eric Blake  <ebb9@byu.net>
57761
57762         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57763         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57764         git-version-gen fails to come up with a version.
57765         Reported by Simon Josefsson.
57766
57767 2008-06-05  Jim Meyering  <meyering@redhat.com>
57768             Paul Eggert  <eggert@cs.ucla.edu>
57769
57770         utimens.c: work around a probable Linux kernel bug
57771         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57772         appears to be a kernel bug that causes utimensat to return 280
57773         instead of 0, indicating success.
57774
57775 2008-06-04  Bruno Haible  <bruno@clisp.org>
57776
57777         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57778         2008-06-01 commit.
57779
57780 2008-06-04  Bruno Haible  <bruno@clisp.org>
57781
57782         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57783         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57784         (file_has_acl): Use it. Save errno afterwards.
57785         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57786
57787 2008-06-03  Bruno Haible  <bruno@clisp.org>
57788
57789         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57790         draft code. Simplify #ifs.
57791         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57792         Put Solaris code after POSIX-draft code. Fix comments regarding
57793         Solaris 10, HP-UX. Mention Cygwin.
57794         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57795
57796 2008-06-03  Eric Blake  <ebb9@byu.net>
57797
57798         Provide fallback for older kernels.
57799         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57800         Provide runtime fallback if kernel lacks support.
57801         Reported by Mike Frysinger.
57802
57803 2008-06-02  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57806         it exists.
57807
57808 2008-06-02  Bruno Haible  <bruno@clisp.org>
57809
57810         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57811         * lib/copy-acl.c (qcopy_acl): Update comment.
57812
57813 2008-06-02  Bruno Haible  <bruno@clisp.org>
57814
57815         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57816         like ACL APIs.
57817
57818 2008-06-02  Bruno Haible  <bruno@clisp.org>
57819
57820         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57821         * tests/test-set-mode-acl.sh: Likewise.
57822         * tests/test-copy-acl.sh: Likewise.
57823         * tests/test-copy-file.sh: Likewise.
57824
57825 2008-06-02  Bruno Haible  <bruno@clisp.org>
57826
57827         * tests/test-file-has-acl.sh: Remove unused code.
57828
57829 2008-06-01  Bruno Haible  <bruno@clisp.org>
57830
57831         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57832         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57833         messages.
57834         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57835
57836 2008-06-01  Bruno Haible  <bruno@clisp.org>
57837
57838         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57839         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57840         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57841         APIs.
57842         * modules/acl-tests (configure.ac): Remove tests now contained in
57843         m4/acl.m4.
57844
57845 2008-06-02  Jim Meyering  <meyering@redhat.com>
57846
57847         announce-gen: use a better key-server host name
57848         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57849         it may be more consistently reliable.  Suggested by Werner Koch
57850         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57851
57852 2008-06-01  Bruno Haible  <bruno@clisp.org>
57853
57854         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57855         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57856
57857 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57858
57859         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57860
57861 2008-06-01  Bruno Haible  <bruno@clisp.org>
57862
57863         New ACL tests.
57864         * tests/test-file-has-acl.sh: New file.
57865         * tests/test-file-has-acl.c: New file.
57866         * tests/test-set-mode-acl.sh: New file.
57867         * tests/test-set-mode-acl.c: New file.
57868         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57869         * tests/test-copy-acl.c: New file.
57870         * modules/acl-tests: New file, based on modules/copy-file-tests.
57871         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57872         (Depends-on): Add acl-tests.
57873         (configure.ac): Remove checks.
57874         (Makefile.am): Don't create test-sameacls program here any more.
57875
57876 2008-06-01  Bruno Haible  <bruno@clisp.org>
57877
57878         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57879         * tests/test-sameacls.c: Include progname.h.
57880         (main): Invoke set_program_name. Portability fixes for MacOS X,
57881         Solaris, HP-UX.
57882
57883 2008-06-01  Bruno Haible  <bruno@clisp.org>
57884
57885         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57886         function.
57887         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57888
57889 2008-06-01  Bruno Haible  <bruno@clisp.org>
57890
57891         * modules/rpmatch (Depends-on): Add strdup.
57892
57893 2008-06-01  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/pipe.c: Include unistd-safer.h.
57896         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57897         * modules/pipe (Depends-on): Add unistd-safer.
57898
57899 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57900
57901         * modules/autobuild (configure.ac): Call AB_INIT.
57902
57903 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57904
57905         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57906         Suggested by Bruno Haible <bruno@clisp.org>.
57907
57908 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57909
57910         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57911         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57912         <bruno@clisp.org>.
57913
57914 2008-05-29  Eric Blake  <ebb9@byu.net>
57915
57916         Prefer new POSIX 200x interfaces over futimesat.
57917         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57918         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57919         when available.
57920         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57921
57922 2008-05-28  Bruno Haible  <bruno@clisp.org>
57923
57924         * modules/stpcpy (License): Change to LGPLv2+.
57925         Requested by David Lutterkort <dlutter@redhat.com>.
57926
57927 2008-05-27  Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57930         current mingw.
57931         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57932
57933 2008-05-27  Bruno Haible  <bruno@clisp.org>
57934
57935         * modules/iconv_open (Link): New section, from module 'iconv'.
57936         * modules/striconv (Link): Likewise.
57937         * modules/striconveh (Link): Likewise.
57938         * modules/xstriconv (Link): Likewise.
57939         * modules/unicodeio (Link): Likewise.
57940         * modules/propername (Link): Likewise.
57941         Reported by Jim Meyering.
57942
57943 2008-05-26  Jim Meyering  <meyering@redhat.com>
57944
57945         sha256: do not artificially restrict buffer length to be < 2^32
57946         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57947         uint32_t to size_t.
57948         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57949         to match.
57950
57951         avoid unaligned access errors, e.g., on sparc
57952         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57953         direct access through a possibly-unaligned uint64* pointer.
57954         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57955         direct access through a possibly-unaligned uint32* pointer.
57956         Prompted by this patch from Tom "spot" Callaway:
57957         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57958
57959         sha512.c: fix typo in comment
57960         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57961
57962 2008-05-25  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57965         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57966         (Makefile.am): Update lib_SOURCES.
57967
57968 2008-05-25  Bruno Haible  <bruno@clisp.org>
57969
57970         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57971
57972 2008-05-25  Jim Meyering  <meyering@redhat.com>
57973
57974         useless-if-before-free: freed expr may have white-space differences
57975         * build-aux/useless-if-before-free: Recognize cases in which the
57976         freed expression differs from the tested one in embedded white
57977         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57978         $1 was used, so we can't make any regexp shy.  Improved tests now
57979         detect this.
57980
57981         useless-if-before-free: accept white space in the expression.
57982         * build-aux/useless-if-before-free: For now, any white space
57983         in the expression must be identical in the free argument.
57984
57985         useless-if-before-free: efficiency tweak
57986         * build-aux/useless-if-before-free: Make the expression-matching
57987         regexp "shy".
57988         Make the *outer* regexp shy, not the expr-matching one.
57989
57990         update code-in-comment to accept cast of free arg
57991         * build-aux/useless-if-before-free: Update regexp.
57992
57993 2008-05-25  Bruno Haible  <bruno@clisp.org>
57994
57995         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57996         * modules/copy-file-tests (Files, Makefile.am): Update.
57997         * tests/test-copy-file.c (func_test_copy): Update.
57998
57999 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58000
58001         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58002
58003 2008-05-23  Bruno Haible  <bruno@clisp.org>
58004
58005         Improve support for ACLs on OSF/1.
58006         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58007         Remove fallback for unknown flavors of ACLs.
58008
58009 2008-05-22  Bruno Haible  <bruno@clisp.org>
58010
58011         Add support for ACLs on OSF/1.
58012         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58013         replacements.
58014         (acl_free_text): New macro fallback.
58015         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58016         acl_free.
58017         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58018         acl_free_text function. Require AC_C_INLINE.
58019
58020 2008-05-22  Bruno Haible  <bruno@clisp.org>
58021
58022         Make copy_acl work on MacOS X 10.5.
58023         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58024         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58025         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58026         If MODE_INSIDE_ACL, don't assume that every system has the same text
58027         representation for ACLs as FreeBSD.
58028         * lib/copy-acl.c (copy_acl): Add support for platforms with
58029         !MODE_INSIDE_ACL.
58030         * lib/file-has-acl.c (file_has_acl): Likewise.
58031         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58032         FreeBSD, MacOS X, or IRIX, respectively.
58033
58034 2008-05-22  Bruno Haible  <bruno@clisp.org>
58035
58036         * lib/acl.h: Don't include <sys/acl.h>.
58037         (GETACLCNT): Move fallback to lib/acl-internal.h.
58038         * lib/acl-internal.h: Include <sys/acl.h> here.
58039         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58040
58041 2008-05-22  Bruno Haible  <bruno@clisp.org>
58042
58043         Split off copy_acl function to separate file.
58044         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58045         * lib/acl.c (copy_acl): Moved function to separate file.
58046         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58047         * modules/acl (Files): Add lib/copy-acl.c.
58048         (Makefiles.am): Augment lib_SOURCES.
58049
58050 2008-05-22  Bruno Haible  <bruno@clisp.org>
58051
58052         * modules/copy-file-tests: New file.
58053         * tests/test-copy-file.sh: New file.
58054         * tests/test-copy-file.c: New file.
58055         * tests/test-copy-file-sameacls.c: New file.
58056
58057 2008-05-22  Eric Blake  <ebb9@byu.net>
58058
58059         Avoid gcc warning.
58060         * tests/test-memcmp.c (main): Pass NULL indirectly.
58061
58062 2008-05-21  Bruno Haible  <bruno@clisp.org>
58063
58064         Add reference doc about ACLs.
58065         * doc/acl-resources.txt: New file.
58066         * doc/acl-cygwin.txt: New file.
58067
58068 2008-05-21  Bruno Haible  <bruno@clisp.org>
58069
58070         Avoid one more warning from gcc.
58071         * lib/vasnprintf.c (IF_LINT): Update comments.
58072         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58073
58074 2008-05-21  Jim Meyering  <meyering@redhat.com>
58075
58076         avoid a warning from gcc
58077         * lib/vasnprintf.c (IF_LINT): Define.
58078         (scale10_round_decimal_long_double):
58079         Use it to avoid a "may be used uninitialized" warning.
58080         (scale10_round_decimal_double): Likewise.
58081
58082 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58083
58084         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58085         declared.
58086
58087 2008-05-20  Bruno Haible  <bruno@clisp.org>
58088
58089         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58090         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58091
58092 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58093
58094         * modules/memcmp-tests: New file.
58095         * tests/test-memcmp.c: New file.
58096
58097 2008-05-19  Bruno Haible  <bruno@clisp.org>
58098
58099         * modules/propername (Notice, configure.ac): Put quoted "..." into
58100         --keyword option.
58101         * lib/propername.h: Update comments accordingly.
58102         Reported by Eric Blake.
58103
58104 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58105
58106         * modules/getpass-gnu (Depends-on): Add fseeko.
58107
58108 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58109
58110         * modules/base64-tests: New file.
58111
58112 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58113
58114         * lib/base64.c (base64_decode_ctx): If a decode context structure
58115         was passed in use it to ignore newlines.  If a context structure
58116         was _not_ passed in, continue to treat newlines as garbage (this
58117         is the historical behavior).  Formerly base64_decode.
58118         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58119         takes a decode context structure.
58120         * lib/base64.h (base64_decode): Macro for four-argument calls.
58121         (base64_decode_alloc): Likewise.
58122         * lib/base64.c (base64_decode_ctx): If a decode context structure
58123         was passed in use it to ignore newlines.  If a context structure
58124         was _not_ passed in, continue to treat newlines as garbage (this
58125         is the historical behavior).  Formerly base64_decode.
58126         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58127         takes a decode context structure.
58128         * lib/base64.h (base64_decode): Macro for four-argument calls.
58129         (base64_decode_alloc): Likewise.
58130
58131 2008-05-19  Jim Meyering  <meyering@redhat.com>
58132
58133         avoid a warning from gcc
58134         * lib/trim.c (IF_LINT): Define.
58135         (trim2): Use it to avoid a "may be used uninitialized" warning.
58136
58137         Fix doc typo.
58138         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58139
58140 2008-05-19  Bruno Haible  <bruno@clisp.org>
58141
58142         * doc/glibc-functions/getpass.texi: Document limits of other
58143         implementations.
58144
58145 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58146             Bruno Haible <bruno@clisp.org>
58147
58148         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58149
58150 2008-05-18  Bruno Haible  <bruno@clisp.org>
58151
58152         * modules/propername: New file, from GNU gettext.
58153         * lib/propername.h: New file, from GNU gettext.
58154         * lib/propername.c: New file, from GNU gettext.
58155         * MODULES.html.sh (Internationalization functions): Add propername.
58156
58157 2008-05-16  Jim Meyering  <meyering@redhat.com>
58158             Bruno Haible  <bruno@clisp.org>
58159
58160         Avoid some warnings from "gcc -Wshadow".
58161         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58162
58163 2008-05-15  Eric Blake  <ebb9@byu.net>
58164
58165         Extend previous patch to cygwin 1.7.0.
58166         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58167         fast implementation in cygwin >= 1.7.0.
58168         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58170
58171 2008-05-15  Bruno Haible  <bruno@clisp.org>
58172
58173         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58174         implementation in glibc >= 2.9.
58175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58177
58178 2008-05-15  Bruno Haible  <bruno@clisp.org>
58179
58180         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58181         (Unicode string functions): Add unilbrk/*.
58182         Reported by Karl Berry.
58183
58184 2008-05-15  Eric Blake  <ebb9@byu.net>
58185
58186         Fix violation of <stdbool.h> replacement in regex.
58187         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58188         * lib/regexec.c (re_search_internal): Likewise.
58189         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58190
58191 2008-05-15  Jim Meyering  <meyering@redhat.com>
58192
58193         avoid distracting test output when git or cvs is not found
58194         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58195         * tests/test-vc-list-files-git.sh: Likewise.
58196
58197 2008-05-15  Eric Blake  <ebb9@byu.net>
58198
58199         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58200         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58201         glibc version.
58202         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58203         * doc/posix-functions/strstr.texi (strstr): Likewise.
58204         * lib/str-two-way.h (MAX): Sychronize with glibc.
58205
58206 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58207
58208         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58209         opr.ctx_type.
58210         (calc_first): Initialize constraint field.
58211         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58212         Fix grammar.
58213         (duplicate_node): Merge constraint field for all node types.
58214         (calc_eclosure_iter): Look at constraint field for all node types.
58215         * lib/regex_internal.c (create_cd_newstate): Don't look at
58216         opr.ctx_type.
58217
58218 2008-05-14  Bruno Haible  <bruno@clisp.org>
58219
58220         Help GCC to do better code generation.
58221         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58222         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58223         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58224         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58225         Declare with attribute 'malloc' if supported.
58226
58227 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58228
58229         use "echo STR|wc -c" rather than unportable "expr length STR"
58230         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58231         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58232
58233 2008-05-14  Jim Meyering  <meyering@redhat.com>
58234
58235         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58236         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58237         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58238         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58239         via Collin Lasse.
58240
58241 2008-05-14  Eric Blake  <ebb9@byu.net>
58242
58243         Avoid quadratic growth in gl_LIBSOURCES.
58244         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58245         Suggested by Bruno Haible.
58246
58247         Test xmemdup0.
58248         * modules/xmemdup0-tests: New file.
58249         * tests/test-xmemdup0.c: Likewise.
58250
58251 2008-05-13  Eric Blake  <ebb9@byu.net>
58252
58253         Split xmemdup0 into its own module.
58254         * modules/xmemdup0: New file.
58255         * lib/xmemdup0.h: Likewise.
58256         * lib/xmemdup0.c: Likewise.
58257         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58258         * lib/xalloc.h (xmemdup0): Remove.
58259         * lib/xmalloc.c (xmemdup0): Likewise.
58260
58261 2008-05-13  Eric Blake  <ebb9@byu.net>
58262             Bruno Haible  <bruno@clisp.org>
58263
58264         Reduce number of forks required during autoconf.
58265         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58266         and gl_LIBSOURCES_DIR.
58267         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58268         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58269         m4_syscmd per file.
58270         <m4_foreach_w>: Move...
58271         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58272
58273 2008-05-13  Eric Blake  <ebb9@byu.net>
58274
58275         * gnulib-tool: Fix various comment typos.
58276
58277 2008-05-12  Bruno Haible  <bruno@clisp.org>
58278
58279         Tailor the linebreaking algorithm.
58280         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58281
58282 2008-05-12  Bruno Haible  <bruno@clisp.org>
58283
58284         Update to Unicode 5.0.0.
58285         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58286         LBP_JV, LBP_JT. Redistribute values.
58287         (unilbrk_table): Change size.
58288         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58289         Unicode TR#14 rev. 22.
58290         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58291         LBP_JV, LBP_JT. Redistribute values.
58292         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58293         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58294         Update.
58295         * lib/unilbrk/lbrkprop1.h: Regenerated.
58296         * lib/unilbrk/lbrkprop2.h: Regenerated.
58297         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58298         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58299         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58300         Likewise.
58301         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58302         Likewise.
58303         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58304         result.
58305         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58306         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58307         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58308         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58309         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58310         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58311
58312 2008-05-11  Bruno Haible  <bruno@clisp.org>
58313
58314         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58315
58316 2008-05-11  Bruno Haible  <bruno@clisp.org>
58317
58318         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58319         * modules/unilbrk/gen-lbrk: New file.
58320
58321 2008-05-11  Bruno Haible  <bruno@clisp.org>
58322
58323         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58324         * m4/sha512.m4 (gl_SHA512): Likewise.
58325
58326 2008-05-11  Jim Meyering  <meyering@redhat.com>
58327
58328         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58329         * modules/crypto/sha256: New file.
58330         * modules/crypto/sha512: Likewise.
58331         * lib/sha256.c: Likewise.
58332         * lib/sha256.h: Likewise.
58333         * lib/sha512.c: Likewise.
58334         * lib/sha512.h: Likewise.
58335         * lib/u64.h: Likewise.
58336         * m4/sha256.m4: Likewise.
58337         * m4/sha512.m4: Likewise.
58338         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58339
58340 2008-05-10  Bruno Haible  <bruno@clisp.org>
58341
58342         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58343         (Input/Output <stdio.h>): Add xprintf.
58344         (Signal handling <signal.h>): Add strsignal.
58345         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58346         (Core language properties): Add func.
58347         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58348         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58349         strings.
58350         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58351         (Input/output): New section.
58352         (File system functions): Add openat-die, stat-macros.
58353         (Networking functions): Add sockets.
58354         (Unicode string functions): Add unictype/*.
58355         (Support for building libraries and executables): Add gperf.
58356         (Support for building documentation): Add agpl-3.0.
58357         (Misc): Add nocrash.
58358
58359 2008-05-10  Bruno Haible  <bruno@clisp.org>
58360
58361         * modules/unictype/gen-ctype: New file.
58362
58363 2008-05-10  Jim Meyering  <meyering@redhat.com>
58364
58365         Make chdir-safer.c more efficient on a system with no symlinks.
58366         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58367         also if ELOOP is zero.  Suggested by Bruno Haible.
58368
58369         Make chdir-safer.c slightly safer.
58370         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58371         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58372
58373         Avoid compile failure on systems without ELOOP (like mingw).
58374         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58375         Reported by Bruno Haible.
58376
58377 2008-05-10  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58380         (is_utf8_encoding): Use a case-insensitive comparison.
58381         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58382         streq.
58383
58384 2008-05-10  Bruno Haible  <bruno@clisp.org>
58385
58386         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58387         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58388         * lib/unilbrk/ulc-common.h (iconv_string_length,
58389         iconv_string_keeping_offsets): Remove declarations.
58390         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58391         Don't include <iconv.h>, streq.h, xsize.h.
58392         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58393         conversion.
58394         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58395         <iconv.h>, streq.h, xsize.h.
58396         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58397         conversion.
58398         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58399         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58400         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58401         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58402
58403 2008-05-10  Bruno Haible  <bruno@clisp.org>
58404
58405         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58406         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58407
58408         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58409         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58410
58411         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58412         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58413
58414         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58415         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58416
58417         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58418         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58419
58420         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58421         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58422
58423         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58424         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58425
58426         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58427         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58428
58429 2008-05-10  Bruno Haible  <bruno@clisp.org>
58430
58431         Split up 'linebreak' module.
58432         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58433         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58434         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58435         modifications.
58436         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58437         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58438         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58439         lib/linebreak.c.
58440         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58441         lib/linebreak.c.
58442         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58443         lib/linebreak.c.
58444         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58445         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58446         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58447         lib/linebreak.c.
58448         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58449         lib/linebreak.c.
58450         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58451         lib/linebreak.c.
58452         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58453         lib/linebreak.c.
58454         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58455         lib/linebreak.c.
58456         * modules/unilbrk/base: New file.
58457         * modules/unilbrk/tables: New file.
58458         * modules/unilbrk/u8-possible-linebreaks: New file.
58459         * modules/unilbrk/u16-possible-linebreaks: New file.
58460         * modules/unilbrk/u32-possible-linebreaks: New file.
58461         * modules/unilbrk/ulc-common: New file.
58462         * modules/unilbrk/ulc-possible-linebreaks: New file.
58463         * modules/unilbrk/u8-width-linebreaks: New file.
58464         * modules/unilbrk/u16-width-linebreaks: New file.
58465         * modules/unilbrk/u32-width-linebreaks: New file.
58466         * modules/unilbrk/ulc-width-linebreaks: New file.
58467         * lib/linebreak.h: Remove file.
58468         * lib/linebreak.c: Remove file.
58469         * m4/linebreak.m4: Remove file.
58470         * modules/linebreak: Remove file.
58471         * NEWS: Mention the changes.
58472
58473 2008-05-09  Eric Blake  <ebb9@byu.net>
58474
58475         Add xmemdup0.
58476         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58477         implementation.
58478         * lib/xmalloc.c (xmemdup0): New C implementation.
58479
58480 2008-05-08  Bruno Haible  <bruno@clisp.org>
58481
58482         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58483
58484 2008-05-07  Eric Blake  <ebb9@byu.net>
58485
58486         Support cross-compilation of <wctype.h>.
58487         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58488         AC_CACHE_CHECK.
58489
58490 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58491
58492         * build-aux/vc-list-files: Add support for bzr.
58493
58494 2008-05-03  Jim Meyering  <meyering@redhat.com>
58495
58496         avoid failed assertion with tight malloc
58497         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58498
58499 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58500
58501         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58502         are needed from arpa/inet.h.
58503         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58504         Reported by Bruno Haible.
58505
58506 2008-05-02  Jim Meyering  <meyering@redhat.com>
58507
58508         avoid compilation error on FreeBSD 6
58509         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58510
58511 2008-05-01  Jim Meyering  <meyering@redhat.com>
58512
58513         useless-if-before-free: correct --help's exit status description
58514         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58515         for one or more matches, etc.  Reported by Bruno Haible.
58516
58517         vc-list-files: make the stand-alone gnulib test work
58518         * modules/vc-list-files-tests (configure.ac):
58519         Define and AC_SUBST abs_aux_dir.
58520         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58521         $(abs_top_srcdir) to each script and having each of them
58522         duplicate the work of setting PATH, set PATH here, using
58523         the new variable, abs_aux_dir instead.
58524         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58525         * tests/test-vc-list-files-git.sh: Likewise.
58526         Reported by Bruno Haible.
58527
58528 2008-05-01  Bruno Haible  <bruno@clisp.org>
58529
58530         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58531         reallocation. Rename 'done' to 'found_delimiter'.
58532
58533 2008-05-01  Jim Meyering  <meyering@redhat.com>
58534
58535         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58536         * build-aux/vc-list-files: Use `...`, not $(...).
58537
58538 2008-04-30  Jim Meyering  <meyering@redhat.com>
58539
58540         add tests for vc-list-files
58541         * modules/vc-list-files-tests: New module.
58542         * tests/test-vc-list-files-cvs.sh: New file.
58543         * tests/test-vc-list-files-git.sh: New file.
58544
58545         avoid a warning from gcc
58546         * lib/getndelim2.c (IF_LINT): Define.
58547         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58548
58549         vc-list-files: work properly with build-aux/cvsu, too
58550         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58551         to all cvs-based clauses.
58552
58553         vc-list-files: work properly in the CVS+awk case, too
58554         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58555
58556         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58557         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58558         take more than one file argument, so .  Add quotes, just in case $dir
58559         ever contains a shell meta-character.  Prompted by Soren Hansen in
58560         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58561
58562 2008-04-29  Eric Blake  <ebb9@byu.net>
58563
58564         Optimize getndelim2 to use block operations when possible.
58565         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58566         freadseek, and memchr2.
58567         * lib/getndelim2.c (getndelim2): Use them for block reads.
58568
58569 2008-04-29  Bruno Haible  <bruno@clisp.org>
58570
58571         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58573         * modules/inet_ntop (Depends-on): Add extensions.
58574         * modules/inet_pton (Depends-on): Likewise.
58575         Reported by Simon Josefsson.
58576
58577 2008-04-29  Jim Meyering  <meyering@redhat.com>
58578
58579         When the is more than one match in a block, match all of them.
58580         * build-aux/useless-if-before-free: Iterate through each block
58581         until there are no more matches.
58582
58583         Fix broken useless-if-before-free script.
58584         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58585         the expression to match cast of argument to free-like function.
58586
58587 2008-04-29  Eric Blake  <ebb9@byu.net>
58588
58589         Use new header.
58590         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58591
58592 2008-04-29  Jim Meyering  <meyering@redhat.com>
58593
58594         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58595         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58596         by gnulib to exist and to declare e.g., inet_ntop.
58597         Don't include "inet_ntop.h", now removed.
58598
58599         * m4/arpa_inet_h.m4: Remove trailing blanks.
58600
58601 2008-04-29  Eric Blake  <ebb9@byu.net>
58602
58603         Silence valgrind on safe reads beyond potential array bounds.
58604         * lib/rawmemchr.valgrind: New file.
58605         * lib/strchrnul.valgrind: Likewise.
58606         * modules/rawmemchr (Files): Distribute new file.
58607         * modules/strchrnul (Files): Likewise.
58608         Suggested by Bruno Haible.
58609
58610 2008-04-29  Bruno Haible  <bruno@clisp.org>
58611
58612         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58613         (inet_ntop, inet_pton): Change portability warning's wording.
58614         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58615         Invoke gl_CHECK_NEXT_HEADERS.
58616         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58617         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58618         set ARPA_INET_H.
58619         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58620         * modules/arpa_inet (Description): No longer only for systems that
58621         lack it.
58622         (Depends-on): Add include_next.
58623         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58624         HAVE_ARPA_INET_H.
58625
58626 2008-04-29  Jim Meyering  <meyering@redhat.com>
58627
58628         * modules/mkdir (License): Re-license as LGPLv2+.
58629
58630 2008-04-29  Bruno Haible  <bruno@clisp.org>
58631
58632         * modules/rawmemchr (Maintainer): Set to Eric.
58633         * modules/strchrnul (Maintainer): Likewise.
58634
58635 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58636
58637         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58638         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58639
58640         * modules/arpa_inet (arpa/inet.h): Use them.
58641
58642 2008-04-28  Eric Blake  <ebb9@byu.net>
58643
58644         Test getndelim2.
58645         * modules/getndelim2-tests: New file.
58646         * tests/test-getndelim2.c: Likewise.
58647         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58648         stream.
58649         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58650
58651         * MODULES.html.sh: Document new module.
58652
58653 2008-04-20  Bruno Haible  <bruno@clisp.org>
58654
58655         * lib/c-stack.c (die): Use raise.
58656         * modules/c-stack (Depends-on): Add raise.
58657
58658 2008-04-28  Bruno Haible  <bruno@clisp.org>
58659
58660         Expect rpmatch to be declared.
58661         * lib/yesno.c (rpmatch): Remove declaration.
58662
58663         Declare rpmatch.
58664         * lib/stdlib.in.h (rpmatch): New declaration.
58665         * lib/rpmatch.c: Include <stdlib.h> first.
58666         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58667         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58669         HAVE_RPMATCH.
58670         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58671         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58672         (Include): Set to <stdlib.h>.
58673         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58674         HAVE_RPMATCH.
58675         * NEWS: Document the change.
58676
58677 2008-04-28  Bruno Haible  <bruno@clisp.org>
58678
58679         Change rpmatch to use nl_langinfo when appropriate.
58680         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58681         (N_): New macro.
58682         (localized_pattern): New function/macro.
58683         (try): Remove match, nomatch arguments. Copy the pattern into safe
58684         memory before caching it.
58685         (rpmatch): Use localized_pattern. Add translator comments.
58686         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58687         Suggested by Eric Blake.
58688         * modules/rpmatch (Depends-on): Add stdbool.
58689
58690 2008-04-28  Eric Blake  <ebb9@byu.net>
58691
58692         Add rawmemchr module, matching glibc.
58693         * modules/string (Makefile.am): New indicator.
58694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58695         * lib/string.in.h (rawmemchr): Declare when appropriate.
58696         * modules/rawmemchr: New file.
58697         * m4/rawmemchr.m4: Likewise.
58698         * lib/rawmemchr.c: Likewise.
58699         * modules/rawmemchr-tests: Likewise.
58700         * tests/test-rawmemchr.c: Likewise.
58701         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58702         module.
58703         * modules/strchrnul (Depends-on): Add rawmemchr.
58704         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58705
58706         Whitespace cleanup.
58707         * tests/test-strchrnul.c: Reindent.
58708         * lib/strchrnul.c: Likewise.
58709
58710         Optimize and test strchrnul.
58711         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58712         * modules/strchrnul-tests: New file.
58713         * tests/test-strchrnul.c: Likewise.
58714
58715         Remove intprops dependency.
58716         * modules/memchr (Depends-on): Remove intprops.
58717         * modules/memrchr (Depends-on): Likewise.
58718         * modules/memchr2 (Depends-on): Likewise.
58719         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58720         * lib/memrchr.c (__memrchr): Likewise.
58721         * lib/memrchr2.c (memchr2): Likewise.
58722         Reported by Simon Josefsson.
58723
58724 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58725
58726         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58727         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58728
58729 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58730
58731         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58732
58733         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58734
58735         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58736
58737         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58738         declarations.
58739         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58740
58741         * m4/inet_pton.m4: Don't check for header files.
58742
58743         * m4/inet_ntop.m4: Don't check for header files.
58744
58745 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58746
58747         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58748         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58749         trigger for cygwin).
58750         Reported by Bruno Haible  <bruno@clisp.org>.
58751
58752 2008-04-28  Bruno Haible  <bruno@clisp.org>
58753
58754         * doc/posix-functions/strdup.texi: Mention mingw problem.
58755
58756 2008-04-27  Bruno Haible  <bruno@clisp.org>
58757
58758         * modules/stat-time-tests (Depends-on): Add sleep.
58759         * tests/test-stat-time.c (force_unlink): New function.
58760         (cleanup): Use it.
58761         (test_mtime): Remove the ctime related tests.
58762         (test_ctime): New function, containing the ctime related tests.
58763         (main): Call test_ctime, except on native Windows platforms.
58764
58765 2008-04-27  Bruno Haible  <bruno@clisp.org>
58766
58767         * lib/rpmatch.c (rpmatch): Add some comments.
58768         Reported by James Youngman <jay@gnu.org>.
58769
58770 2008-04-27  Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58773         quiet NaNs.
58774
58775 2008-04-27  Bruno Haible  <bruno@clisp.org>
58776
58777         Make test-yesno.sh work on mingw.
58778         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58779         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58780         (main): Set stdin to binary mode.
58781         * modules/yesno-tests (Depends-on): Add binary-io.
58782
58783 2008-04-27  Bruno Haible  <bruno@clisp.org>
58784
58785         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58786         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58787         argument that lie outside the IEEE 854 domain.
58788         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58789         (gl_ISFINITE): Use it.
58790         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58791
58792 2008-04-27  Bruno Haible  <bruno@clisp.org>
58793
58794         Allow local renaming in config.h.
58795         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58796
58797 2008-04-27  Bruno Haible  <bruno@clisp.org>
58798
58799         * lib/memchr.c (__memchr): Change type of 'i'.
58800         * lib/memchr2.c (memchr2): Likewise.
58801
58802 2008-04-26  Eric Blake  <ebb9@byu.net>
58803         and Bruno Haible  <bruno@clisp.org>
58804
58805         Optimize and test memrchr.
58806         * modules/memrchr (Depends-on): Add intprops.
58807         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58808         * modules/memrchr-tests: New file.
58809         * tests/test-memrchr.c: New file.
58810
58811 2008-04-26  Bruno Haible  <bruno@clisp.org>
58812
58813         Add tentative support for DragonFly BSD.
58814         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58815         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58816         fp.
58817         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58818         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58819         * lib/fpurge.c (fpurge): Likewise.
58820         * lib/freadable.c (freaadable): Likewise.
58821         * lib/freadahead.c (freadahead): Likewise.
58822         * lib/freading.c (freading): Likewise.
58823         * lib/freadptr.c (freadptr): Likewise.
58824         * lib/freadseek.c (freadptrinc): Likewise.
58825         * lib/fseeko.c (fseeko): Likewise.
58826         * lib/fseterr.c (fseterr): Likewise.
58827         * lib/fwritable.c (fwritable): Likewise.
58828         * lib/fwriting.c (fwriting): Likewise.
58829
58830 2008-04-26  Bruno Haible  <bruno@clisp.org>
58831
58832         * lib/stdio-impl.h: New file.
58833         * lib/fbufmode.c: Include stdio-impl.h.
58834         (fbufmode): Use fp_, remove redundant #defines.
58835         * lib/fflush.c: Include stdio-impl.h.
58836         (clear_ungetc_buffer): Remove redundant #defines.
58837         * lib/fpurge.c: Include stdio-impl.h.
58838         (fpurge): Remove redundant #defines.
58839         * lib/freadable.c: Include stdio-impl.h.
58840         (freadable): Remove redundant #defines.
58841         * lib/freadahead.c: Include stdio-impl.h.
58842         (freadahead): Remove redundant #defines.
58843         * lib/freading.c: Include stdio-impl.h.
58844         (freading): Remove redundant #defines.
58845         * lib/freadptr.c: Include stdio-impl.h.
58846         (freadptr): Remove redundant #defines.
58847         * lib/freadseek.c: Include stdio-impl.h.
58848         (freadptrinc): Remove redundant #defines.
58849         * lib/fseeko.c: Include stdio-impl.h.
58850         (rpl_fseeko): Remove redundant #defines.
58851         * lib/fseterr.c: Include stdio-impl.h.
58852         (fseterr): Remove redundant #defines.
58853         * lib/fwritable.c: Include stdio-impl.h.
58854         (fwritable: Remove redundant #defines.
58855         * lib/fwriting.c: Include stdio-impl.h.
58856         (fwriting): Remove redundant #defines.
58857         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58858         * modules/fflush (Files): Likewise.
58859         * modules/fpurge (Files): Likewise.
58860         * modules/freadable (Files): Likewise.
58861         * modules/freadahead (Files): Likewise.
58862         * modules/freading (Files): Likewise.
58863         * modules/freadptr (Files): Likewise.
58864         * modules/freadseek (Files): Likewise.
58865         * modules/fseeko (Files): Likewise.
58866         * modules/fseterr (Files): Likewise.
58867         * modules/fwritable (Files): Likewise.
58868         * modules/fwriting (Files): Likewise.
58869
58870 2008-04-26  Bruno Haible  <bruno@clisp.org>
58871
58872         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58873         restore_seek_optimization, update_fpos_cache): New functions, extracted
58874         from rpl_fflush.
58875         (rpl_fflush): Use them.
58876         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58877         (gl_REPLACE_FFLUSH): Use it.
58878
58879 2008-04-26  Bruno Haible  <bruno@clisp.org>
58880
58881         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58882         on Solaris.
58883         * tests/test-xstrtoimax.sh: Likewise.
58884         * tests/test-xstrtoumax.sh: Likewise.
58885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58886
58887 2008-04-26  Bruno Haible  <bruno@clisp.org>
58888
58889         * modules/memchr-tests: New file.
58890         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58891
58892 2008-04-26  Eric Blake  <ebb9@byu.net>
58893             Bruno Haible  <bruno@clisp.org>
58894
58895         * lib/memchr.c: Include intprops.h.
58896         (__memchr): Optimize parallel detection of matching bytes. Rename local
58897         variables. Add explanatory comments.
58898
58899 2008-04-26  Bruno Haible  <bruno@clisp.org>
58900
58901         Fix module 'memchr', broken since 2000-10-28.
58902         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58903
58904 2008-04-26  Bruno Haible  <bruno@clisp.org>
58905
58906         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58907         comments.
58908
58909 2008-04-25  Eric Blake  <ebb9@byu.net>
58910
58911         Use native fstatat on cygwin 1.7.0.
58912         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58913         first.
58914
58915 2008-04-23  Eric Blake  <ebb9@byu.net>
58916
58917         Improve memchr2 performance.
58918         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58919         NUL bytes.
58920         * modules/memchr2 (Depends-on): Use intprops.h.
58921
58922 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58923
58924         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58925         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58926         <blp@cs.stanford.edu>.
58927
58928 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58929
58930         * lib/arpa_inet.in.h: New file.
58931
58932         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58933         (Makefile.am): Sed in substitute header file.
58934
58935         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58936         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58937
58938         * modules/inet_ntop (configure.ac): Use
58939         gl_ARPA_INET_MODULE_INDICATOR.
58940
58941         * modules/inet_pton (configure.ac): Use
58942         gl_ARPA_INET_MODULE_INDICATOR.
58943
58944 2008-04-22  Jim Meyering  <meyering@redhat.com>
58945
58946         * modules/verify (License): Re-license as LGPLv2+.
58947
58948 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58949
58950         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58951         parameter to void* as per POSIX standard (MinGW uses char*).
58952
58953 2008-04-21  Bruno Haible  <bruno@clisp.org>
58954
58955         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58956         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58957         Define to replacements if REPLACE_ISWCNTRL is 1.
58958         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58959         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58960         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58961         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58962         what it fixes.
58963         * doc/posix-functions/iswalpha.texi: Likewise.
58964         * doc/posix-functions/iswblank.texi: Likewise.
58965         * doc/posix-functions/iswcntrl.texi: Likewise.
58966         * doc/posix-functions/iswdigit.texi: Likewise.
58967         * doc/posix-functions/iswgraph.texi: Likewise.
58968         * doc/posix-functions/iswlower.texi: Likewise.
58969         * doc/posix-functions/iswprint.texi: Likewise.
58970         * doc/posix-functions/iswpunct.texi: Likewise.
58971         * doc/posix-functions/iswspace.texi: Likewise.
58972         * doc/posix-functions/iswupper.texi: Likewise.
58973         * doc/posix-functions/iswxdigit.texi: Likewise.
58974         Reported by Alain Guibert.
58975
58976 2008-04-21  Bruno Haible  <bruno@clisp.org>
58977
58978         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58979         Patch by Alain Guibert.
58980
58981 2008-04-21  Bruno Haible  <bruno@clisp.org>
58982
58983         Fix test failures on mingw.
58984         * tests/test-xstrtol.c (print_no_progname): New function.
58985         (main): Install it in error_print_progname hook.
58986         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58987         * tests/test-xstrtoimax.sh: Likewise.
58988         * tests/test-xstrtoumax.sh: Likewise.
58989
58990 2008-04-21  Bruno Haible  <bruno@clisp.org>
58991
58992         Fix test failure on mingw.
58993         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58994
58995 2008-04-21  Bruno Haible  <bruno@clisp.org>
58996
58997         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58998         Actually assign a value.
58999
59000 2008-04-20  Bruno Haible  <bruno@clisp.org>
59001
59002         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59003         take 2.
59004         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59005         'canonicalize-lgpl' module is also used.
59006         * lib/canonicalize-lgpl.c: Undo last change.
59007         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59008
59009 2008-04-20  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59012         config.h. Provide _mkdir based fallback for mingw.
59013         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59014         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59015         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59016         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59017         rather than defining mkdir in config.h.
59018         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59019         (gl_SYS_STAT_H_DEFAULTS): New macro.
59020         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59021         HAVE_IO_H any more.
59022         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59023         HAVE_DECL_MKDIR and HAVE_IO_H.
59024
59025 2008-04-20  Bruno Haible  <bruno@clisp.org>
59026
59027         * lib/isapipe.c: Port to native Windows platforms.
59028
59029 2008-04-20  Bruno Haible  <bruno@clisp.org>
59030
59031         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59032
59033 2008-04-21  Eric Blake  <ebb9@byu.net>
59034
59035         Work around preprocessors that don't handle UINTMAX_MAX.
59036         * lib/memchr2.c (memchr2): Avoid embedded #if.
59037         Reported by Alain Guibert, fix suggested by Bruno Haible.
59038
59039 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59040
59041         * doc/posix-functions/strftime.texi (strftime): Explain better
59042         Windows incompatibility.  Suggested by Micah Cowan
59043         <micah@cowan.name>.
59044
59045 2008-04-20  Bruno Haible  <bruno@clisp.org>
59046
59047         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59048         unistr/u8-mblen.
59049
59050 2008-04-20  Bruno Haible  <bruno@clisp.org>
59051
59052         Fix test failure on platforms with non-GNU iconv.
59053         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59054         (U_TO_U8): Use it, rather than u16_to_u8.
59055         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59056         units at the end of the input string.
59057         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59058
59059 2008-04-20  Bruno Haible  <bruno@clisp.org>
59060
59061         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59062         when the resulting length is 0.
59063         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59064
59065 2008-04-20  Bruno Haible  <bruno@clisp.org>
59066
59067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59068         works.
59069         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59070
59071 2008-04-20  Bruno Haible  <bruno@clisp.org>
59072
59073         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59074         * modules/tsearch-tests (configure.ac): Test for initstate function.
59075
59076 2008-04-20  Bruno Haible  <bruno@clisp.org>
59077
59078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59079         for nlink_t if missing.
59080         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59081
59082 2008-04-19  Bruno Haible  <bruno@clisp.org>
59083
59084         Work around snprintf bug on Linux libc5.
59085         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59086         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59087         gl_SNPRINTF_SIZE1.
59088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59089         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59090         that test failed.
59091         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59092         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59093         * modules/snprintf (Files): Add m4/printf.m4.
59094         * modules/vsnprintf (Files): Likewise.
59095         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59096         * doc/posix-functions/vsnprintf.texi: Likewise.
59097
59098 2008-04-19  Bruno Haible  <bruno@clisp.org>
59099
59100         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59101         from 0.0058 to less than 10^-7.
59102
59103 2008-04-19  Bruno Haible  <bruno@clisp.org>
59104
59105         Fix rounding when a precision is given.
59106         * lib/vasnprintf.c (is_borderline): New function.
59107         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59108         9...9x.
59109         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59110         %e, %g.
59111         * tests/test-vasprintf-posix.c (test_function): Likewise.
59112         * tests/test-snprintf-posix.h (test_function): Likewise.
59113         * tests/test-sprintf-posix.h (test_function): Likewise.
59114         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59115         * tests/test-printf-posix.h (test_function): Likewise.
59116         * tests/test-printf-posix.output: Update.
59117         Reported by John Darrington <john@darrington.wattle.id.au> via
59118         Ben Pfaff <blp@cs.stanford.edu>.
59119
59120 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59121
59122         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59123         Suggested by Bruno Haible <bruno@clisp.org>.
59124
59125 2008-04-17  Bruno Haible  <bruno@clisp.org>
59126
59127         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59128         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59129         implementation.
59130         Patch by Bruce Merry <bmerry@gmail.com>.
59131
59132 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59133
59134         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59135         doesn't work under Windows.
59136
59137 2008-04-16  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59140         New macros.
59141         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59142         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59143         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59144         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59145         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59146         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59147         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59148         macros.
59149         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59150         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59151         Northern Sotho, Uighur.
59152
59153 2008-04-16  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59156         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59157         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59158         Reported by Daniel Bergström <daniel@octocode.com>.
59159
59160 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59161             Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59164         function.
59165         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59166         New functions, mostly extracted from gl_locale_name_default.
59167         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59168
59169 2008-04-16  Eric Blake  <ebb9@byu.net>
59170
59171         Adjust strtod detection to catch glibc 2.7 bug.
59172         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59173         Reported by John Gatewood Ham.
59174
59175 2008-04-16  Bruno Haible  <bruno@clisp.org>
59176
59177         Add tentative support for Linux libc5.
59178         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59179         * lib/fpurge.c (fpurge): Likewise.
59180         * lib/freadable.c (freadable): Likewise.
59181         * lib/freadahead.c (freadahead): Likewise.
59182         * lib/freading.c (freading): Likewise.
59183         * lib/freadptr.c (freadptr): Likewise.
59184         * lib/freadseek.c (freadptrinc): Likewise.
59185         * lib/fseeko.c (rpl_fseeko): Likewise.
59186         * lib/fseterr.c (fseterr): Likewise.
59187         * lib/fwritable.c (fwritable): Likewise.
59188         * lib/fwriting.c (fwriting): Likewise.
59189         Reported by Alain Guibert <alguibert+bts@free.fr>.
59190
59191 2008-04-15  Bruno Haible  <bruno@clisp.org>
59192
59193         * modules/mathl (configure.ac): Define module indicator.
59194
59195 2008-04-15  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/logl.c (logl): Remove unused variables.
59198
59199 2008-04-15  Bruno Haible  <bruno@clisp.org>
59200
59201         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59202         fails.
59203
59204 2008-04-15  Bruno Haible  <bruno@clisp.org>
59205
59206         * lib/trim.c (trim2): Fix argument of isspace() macro.
59207
59208 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59209
59210         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59211         to 0.
59212         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59213
59214 2008-04-14  Bruno Haible  <bruno@clisp.org>
59215
59216         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59217         AC_LANG_PROGRAM argument.
59218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59219         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59221         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59222         * m4/math_h.m4 (gl_MATH_H): Likewise.
59223         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59225         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59226         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59227         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59228         * m4/regex.m4 (gl_REGEX): Likewise.
59229         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59230         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59232         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59235         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59236         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59237
59238 2008-04-14  Jim Meyering  <meyering@redhat.com>
59239
59240         test-strtod: fix typos: s/abs/fabs/
59241         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59242
59243 2008-04-13  Bruno Haible  <bruno@clisp.org>
59244
59245         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59246         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59247         module is also used and while not building the reloc-wrapper.
59248
59249 2008-04-13  Bruno Haible  <bruno@clisp.org>
59250
59251         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59252
59253 2008-04-13  Bruno Haible  <bruno@clisp.org>
59254
59255         Fix AIX compilation failure introduced on 2008-04-02.
59256         * tests/test-frexp.c (exp): Undefine before redefining.
59257         * tests/test-frexpl.c (exp): Likewise.
59258
59259 2008-04-13  Bruno Haible  <bruno@clisp.org>
59260
59261         Work around a HP-UX stdio bug.
59262         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59263         * tests/test-ftello.c (main): Likewise.
59264         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59265         * doc/posix-functions/ftello.texi: Likewise.
59266
59267 2008-04-13  Bruno Haible  <bruno@clisp.org>
59268
59269         Make test-signbit pass on HP-UX/hppa.
59270         * tests/test-signbit.c (minus_zerol): New variable.
59271         (test_signbitl): Use it.
59272
59273 2008-04-13  Bruno Haible  <bruno@clisp.org>
59274
59275         Make truncl work on OSF/1 4.0.
59276         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59277         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59278         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59280         HAVE_DECL_TRUNCL.
59281         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59282         HAVE_DECL_TRUNCL.
59283         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59284
59285 2008-04-13  Bruno Haible  <bruno@clisp.org>
59286
59287         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59288
59289 2008-04-13  Bruno Haible  <bruno@clisp.org>
59290
59291         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59292         expression, so as to avoid HP-UX 11 cc compiler bug.
59293
59294 2008-04-13  Bruno Haible  <bruno@clisp.org>
59295
59296         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59297
59298 2008-04-13  Bruno Haible  <bruno@clisp.org>
59299
59300         * lib/git-merge-changelog.c: Remove empty declaration outside of
59301         functions.
59302
59303 2008-04-13  Bruno Haible  <bruno@clisp.org>
59304
59305         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59306
59307 2008-04-13  Bruno Haible  <bruno@clisp.org>
59308
59309         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59310         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59312         also if it exists but lacks definitions of the SHUT_* macros.
59313         * modules/sys_socket (Description): Update.
59314         Reported by Elbert Pol <e.pol@chello.nl>.
59315
59316 2008-04-13  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/localcharset.c (OS2): Don't redefine if already defined.
59319         Reported by Elbert Pol <e.pol@chello.nl>.
59320
59321 2008-04-13  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/binary-io.h [__EMX__]: Include <io.h>.
59324         Reported by Elbert Pol <e.pol@chello.nl>.
59325
59326 2008-04-12  Bruno Haible  <bruno@clisp.org>
59327
59328         * lib/fpucw.h: Enable the definitions also for x86_64.
59329         Needed for NetBSD/x86_64.
59330         Reported by Thomas Klausner <tk@giga.or.at>.
59331
59332 2008-04-12  Bruno Haible  <bruno@clisp.org>
59333
59334         * tests/test-strtod.c: Include isnand.h.
59335         (main): Use isnand instead of isnan.
59336         Reported by Jim Meyering.
59337
59338 2008-04-12  Bruno Haible  <bruno@clisp.org>
59339
59340         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59341         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59342
59343 2008-04-12  Jim Meyering  <meyering@redhat.com>
59344
59345         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59346
59347 2008-04-12  Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59350         Reported by Elbert Pol <e.pol@chello.nl>.
59351
59352 2008-04-12  Eric Blake  <ebb9@byu.net>
59353
59354         Work around Solaris 10 math.h bug.
59355         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59356         (gl_MATH_H_DEFAULTS): Set up default.
59357         * modules/math (Makefile.am): Replace new indicators.
59358         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59359         * tests/test-math.c (main): Test this.
59360         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59361         * doc/posix-headers/math.texi (math.h): Mention bug.
59362         Reported by Nelson H. F. Beebe and Jim Meyering.
59363
59364 2008-04-11  Bruno Haible  <bruno@clisp.org>
59365
59366         Adapt to future versions of Apple GCC.
59367         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59368         Reported by Peter O'Gorman <peter@pogma.com>.
59369
59370 2008-04-11  Bruno Haible  <bruno@clisp.org>
59371
59372         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59373
59374 2008-04-11  Bruno Haible  <bruno@clisp.org>
59375
59376         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59377
59378         * modules/getaddrinfo-tests (Makefile.am): Define
59379         test_getaddrinfo_LDADD.
59380
59381 2008-04-11  Bruno Haible  <bruno@clisp.org>
59382
59383         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59384         (init): Fix syntax error.
59385         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59386         is declared.
59387
59388 2008-04-11  Bruno Haible  <bruno@clisp.org>
59389
59390         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59391         * modules/glob (Depends-on): Add stdbool.
59392
59393 2008-04-11  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/trim.c: Include <string.h>.
59396
59397 2008-04-11  Eric Blake  <ebb9@byu.net>
59398
59399         Avoid compile failure on OS/2.
59400         * lib/regex_internal.h (internal_function): Disable optimization
59401         on OS/2 (__EMX__), where it caused compiler error.
59402         Reported by Elbert Pol.
59403
59404 2008-04-11  Bruno Haible  <bruno@clisp.org>
59405
59406         Flush the standard error stream before aborting. Needed on mingw.
59407         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59408         * tests/test-array_list.c (ASSERT): Likewise.
59409         * tests/test-array_oset.c (ASSERT): Likewise.
59410         * tests/test-avltree_list.c (ASSERT): Likewise.
59411         * tests/test-avltree_oset.c (ASSERT): Likewise.
59412         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59413         * tests/test-binary-io.c (ASSERT): Likewise.
59414         * tests/test-byteswap.c (ASSERT): Likewise.
59415         * tests/test-c-ctype.c (ASSERT): Likewise.
59416         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59417         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59418         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59419         * tests/test-c-strstr.c (ASSERT): Likewise.
59420         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59421         * tests/test-canonicalize.c (ASSERT): Likewise.
59422         * tests/test-carray_list.c (ASSERT): Likewise.
59423         * tests/test-ceilf1.c (ASSERT): Likewise.
59424         * tests/test-ceilf2.c (ASSERT): Likewise.
59425         * tests/test-ceill.c (ASSERT): Likewise.
59426         * tests/test-count-one-bits.c (ASSERT): Likewise.
59427         * tests/test-fbufmode.c (ASSERT): Likewise.
59428         * tests/test-fflush2.c (ASSERT): Likewise.
59429         * tests/test-floorf1.c (ASSERT): Likewise.
59430         * tests/test-floorf2.c (ASSERT): Likewise.
59431         * tests/test-floorl.c (ASSERT): Likewise.
59432         * tests/test-fopen.c (ASSERT): Likewise.
59433         * tests/test-fpending.c (ASSERT): Likewise.
59434         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59435         * tests/test-fpurge.c (ASSERT): Likewise.
59436         * tests/test-freadable.c (ASSERT): Likewise.
59437         * tests/test-freadahead.c (ASSERT): Likewise.
59438         * tests/test-freading.c (ASSERT): Likewise.
59439         * tests/test-freadptr.c (ASSERT): Likewise.
59440         * tests/test-freadptr2.c (ASSERT): Likewise.
59441         * tests/test-freadseek.c (ASSERT): Likewise.
59442         * tests/test-freopen.c (ASSERT): Likewise.
59443         * tests/test-frexp.c (ASSERT): Likewise.
59444         * tests/test-frexpl.c (ASSERT): Likewise.
59445         * tests/test-fseek.c (ASSERT): Likewise.
59446         * tests/test-fseeko.c (ASSERT): Likewise.
59447         * tests/test-fstrcmp.c (ASSERT): Likewise.
59448         * tests/test-ftell.c (ASSERT): Likewise.
59449         * tests/test-ftello.c (ASSERT): Likewise.
59450         * tests/test-func.c (ASSERT): Likewise.
59451         * tests/test-fwritable.c (ASSERT): Likewise.
59452         * tests/test-fwriting.c (ASSERT): Likewise.
59453         * tests/test-getdelim.c (ASSERT): Likewise.
59454         * tests/test-getline.c (ASSERT): Likewise.
59455         * tests/test-i-ring.c (ASSERT): Likewise.
59456         * tests/test-iconv-utf.c (ASSERT): Likewise.
59457         * tests/test-iconv.c (ASSERT): Likewise.
59458         * tests/test-isfinite.c (ASSERT): Likewise.
59459         * tests/test-isnand.c (ASSERT): Likewise.
59460         * tests/test-isnanf.c (ASSERT): Likewise.
59461         * tests/test-isnanl.h (ASSERT): Likewise.
59462         * tests/test-ldexpl.c (ASSERT): Likewise.
59463         * tests/test-linked_list.c (ASSERT): Likewise.
59464         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59465         * tests/test-localename.c (ASSERT): Likewise.
59466         * tests/test-lseek.c (ASSERT): Likewise.
59467         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59468         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59469         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59470         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59471         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59472         * tests/test-mbschr.c (ASSERT): Likewise.
59473         * tests/test-mbscspn.c (ASSERT): Likewise.
59474         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59475         * tests/test-mbspbrk.c (ASSERT): Likewise.
59476         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59477         * tests/test-mbsrchr.c (ASSERT): Likewise.
59478         * tests/test-mbsspn.c (ASSERT): Likewise.
59479         * tests/test-mbsstr1.c (ASSERT): Likewise.
59480         * tests/test-mbsstr2.c (ASSERT): Likewise.
59481         * tests/test-mbsstr3.c (ASSERT): Likewise.
59482         * tests/test-memchr2.c (ASSERT): Likewise.
59483         * tests/test-memmem.c (ASSERT): Likewise.
59484         * tests/test-open.c (ASSERT): Likewise.
59485         * tests/test-printf-frexp.c (ASSERT): Likewise.
59486         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59487         * tests/test-printf-posix.c (ASSERT): Likewise.
59488         * tests/test-quotearg.c (ASSERT): Likewise.
59489         * tests/test-rbtree_list.c (ASSERT): Likewise.
59490         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59491         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59492         * tests/test-round1.c (ASSERT): Likewise.
59493         * tests/test-roundf1.c (ASSERT): Likewise.
59494         * tests/test-roundl.c (ASSERT): Likewise.
59495         * tests/test-signbit.c (ASSERT): Likewise.
59496         * tests/test-sleep.c (ASSERT): Likewise.
59497         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59498         * tests/test-snprintf.c (ASSERT): Likewise.
59499         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59500         * tests/test-stat-time.c (ASSERT): Likewise.
59501         * tests/test-strcasestr.c (ASSERT): Likewise.
59502         * tests/test-strerror.c (ASSERT): Likewise.
59503         * tests/test-striconv.c (ASSERT): Likewise.
59504         * tests/test-striconveh.c (ASSERT): Likewise.
59505         * tests/test-striconveha.c (ASSERT): Likewise.
59506         * tests/test-strsignal.c (ASSERT): Likewise.
59507         * tests/test-strstr.c (ASSERT): Likewise.
59508         * tests/test-strtod.c (ASSERT): Likewise.
59509         * tests/test-trunc1.c (ASSERT): Likewise.
59510         * tests/test-trunc2.c (ASSERT): Likewise.
59511         * tests/test-truncf1.c (ASSERT): Likewise.
59512         * tests/test-truncf2.c (ASSERT): Likewise.
59513         * tests/test-truncl.c (ASSERT): Likewise.
59514         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59515         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59516         * tests/test-vasnprintf.c (ASSERT): Likewise.
59517         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59518         * tests/test-vasprintf.c (ASSERT): Likewise.
59519         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59520         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59521         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59522         * tests/test-vsnprintf.c (ASSERT): Likewise.
59523         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59524         * tests/test-wcwidth.c (ASSERT): Likewise.
59525         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59526         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59527         * tests/test-xvasprintf.c (ASSERT): Likewise.
59528         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59529         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59530         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59531         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59532         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59533         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59534         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59535         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59536         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59537         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59538         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59539         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59540         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59541         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59542         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59543         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59544         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59545         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59546         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59547         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59548         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59549         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59550         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59551         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59552         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59553         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59554         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59555         * tests/unictype/test-combining.c (ASSERT): Likewise.
59556         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59557         * tests/unictype/test-digit.c (ASSERT): Likewise.
59558         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59559         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59560         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59561         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59562         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59563         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59564         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59565         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59566         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59567         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59568         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59569         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59570         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59571         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59572         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59573         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59574         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59575         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59576         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59577         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59578         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59579         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59580         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59581         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59582         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59583         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59584         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59585         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59586         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59587         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59588         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59589         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59590         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59591         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59592         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59593         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59594         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59595         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59596         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59597         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59598         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59599         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59600         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59601         Reported by Eric Blake.
59602
59603 2008-04-11  Bruno Haible  <bruno@clisp.org>
59604
59605         * lib/wchar.in.h: Tweak comment.
59606
59607 2008-04-11  Bruno Haible  <bruno@clisp.org>
59608
59609         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59610         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59611         gl_COMMON.
59612         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59613
59614 2008-04-11  Bruno Haible  <bruno@clisp.org>
59615
59616         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59617
59618 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59619
59620         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59621         of attempting to use non-existing /dev/*random.  Based on patch
59622         from Adam Strzelecki <ono@java.pl> in
59623         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59624
59625 2008-04-08  Bruno Haible  <bruno@clisp.org>
59626
59627         Add tentative support for emx+gcc.
59628         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59629         * lib/fpurge.c (fpurge): Likewise.
59630         * lib/freadable.c (freadable): Likewise.
59631         * lib/freadahead.c (freadahead): Likewise.
59632         * lib/freading.c (freading): Likewise.
59633         * lib/freadptr.c (freadptr): Likewise.
59634         * lib/freadseek.c (freadptrinc): Likewise.
59635         * lib/fseeko.c (rpl_fseeko): Likewise.
59636         * lib/fseterr.c (fseterr): Likewise.
59637         * lib/fwritable.c (fwritable): Likewise.
59638         * lib/fwriting.c (fwriting): Likewise.
59639         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59640
59641 2008-04-09  Eric Blake  <ebb9@byu.net>
59642
59643         Avoid some autoconf warnings.
59644         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59645         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59646         * m4/afs.m4 (gl_AFS): Likewise.
59647         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59648         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59650         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59651         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59652         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59653         (AC_CHECK_DECLS_ONCE): Likewise.
59654         Rename file...
59655         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59656         gnulib-tool requires autoconf 2.59 or better.
59657         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59658
59659 2008-04-08  Eric Blake  <ebb9@byu.net>
59660
59661         Use 'git describe --match' if present (added in git 1.5.5).
59662         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59663         if possible.
59664
59665 2008-04-08  Bruno Haible  <bruno@clisp.org>
59666
59667         Add tentative support for OpenServer.
59668         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59669         _ptr, _cnt.
59670         * lib/fpurge.c (fpurge): Likewise.
59671         * lib/freadable.c (freadable): Likewise.
59672         * lib/freadahead.c (freadahead): Likewise.
59673         * lib/freading.c (freading): Likewise.
59674         * lib/freadptr.c (freadptr): Likewise.
59675         * lib/freadseek.c (freadptrinc): Likewise.
59676         * lib/fseeko.c (rpl_fseeko): Likewise.
59677         * lib/fseterr.c (fseterr): Likewise.
59678         * lib/fwritable.c (fwritable): Likewise.
59679         * lib/fwriting.c (fwriting): Likewise.
59680         Reported by Roger Cornelius <rac@tenzing.org> and
59681         Brian K. White <brian@aljex.com>.
59682
59683 2008-04-06  Jim Meyering  <meyering@redhat.com>
59684
59685         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59686
59687 2008-04-06  Bruno Haible  <bruno@clisp.org>
59688
59689         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59690         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59691         * tests/test-printf-posix.sh: Likewise.
59692         * tests/test-vfprintf-posix.sh: Likewise.
59693         * tests/test-vprintf-posix.sh: Likewise.
59694         * tests/test-xprintf-posix.sh: Likewise.
59695
59696 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59697
59698         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59699         hide error from 'ls', needed on OS/2.
59700         Report by Elbert Pol <elbert.pol@gmail.com>.
59701
59702 2008-04-04  Eric Blake  <ebb9@byu.net>
59703
59704         Make test-fseeko.c failures meaningful.
59705         * tests/test-fseeko.c: Print line number on failure.
59706         * tests/test-fseek.c: Likewise.
59707         Reported by Nelson H. F. Beebe.
59708
59709         Improve strtod bug detection check.
59710         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59711         required for Solaris 10.
59712         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59713
59714 2008-04-04  Bruno Haible  <bruno@clisp.org>
59715
59716         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59717         by m4/setenv.m4.
59718
59719 2008-04-03  Eric Blake  <ebb9@byu.net>
59720
59721         Ensure sane .version contents.
59722         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59723         version string.
59724         * build-aux/git-version-gen: Improve documentation.
59725
59726         Make GNU make output nicer.
59727         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59728         MAKECMDGOALS to enforce message for all command line targets.  Set
59729         srcdir for use in maint.mk.
59730
59731         Another maintainer tweak.
59732         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59733         a target that regenerates version.
59734
59735 2008-04-03  Jim Meyering  <meyering@redhat.com>
59736
59737         vc-list-files: don't cause coreutils "make po-check" failure
59738         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59739
59740 2008-04-03  Eric Blake  <ebb9@byu.net>
59741
59742         Allow VPATH usage of vc-list-files.
59743         * build-aux/vc-list-files (scriptversion): Add timestamp.
59744         (options): Add --help, --version, -C.
59745         (CVS): Support installed cvsu.
59746
59747 2008-04-02  Bruno Haible  <bruno@clisp.org>
59748
59749         Avoid some "statement with no effect" warnings from gcc.
59750         * tests/test-wctype.c (main): Explicitly ignore unused values.
59751         Reported by Jim Meyering.
59752
59753 2008-04-02  Jim Meyering  <meyering@redhat.com>
59754
59755         Avoid some warnings from "gcc -Wshadow".
59756         * tests/test-frexp.c (exp): Define to a different identifier.
59757         * tests/test-frexpl.c (exp): Likewise.
59758
59759 2008-04-03  Jim Meyering  <meyering@redhat.com>
59760
59761         bootstrap: remove dangling *.[ch] symlinks from lib
59762         * build-aux/bootstrap [dangling symlink removal]: Move find's
59763         -depth option to precede all others, to avoid a warning.
59764         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59765
59766 2008-04-02  Bruno Haible  <bruno@clisp.org>
59767
59768         Avoid some warnings from "gcc -Wshadow".
59769         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59770         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59771         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59772         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59773         Reported by Jim Meyering.
59774
59775 2008-04-01  Bruno Haible  <bruno@clisp.org>
59776
59777         Fix test to work on IRIX 6.5 with cc.
59778         * tests/test-math.c (numeric_equal): New function.
59779         (main): Use it.
59780
59781 2008-04-01  Bruno Haible  <bruno@clisp.org>
59782
59783         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59784
59785 2008-04-01  Bruno Haible  <bruno@clisp.org>
59786
59787         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59789         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59790         (Depends-on): Remove math.
59791
59792         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59793         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59794         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59795         (Depends-on): Remove math.
59796
59797         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59798         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59799         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59800         (Depends-on): Remove math.
59801         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59802         (Depends-on): Remove math.
59803
59804         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59805         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59806         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59807         (Depends-on): Remove math.
59808         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59809         (Depends-on): Remove math.
59810
59811         * tests/test-round1.c: Include nan.h.
59812         (main): Use NaNd instead of NAN.
59813         * modules/round-tests (Files): Add tests/nan.h.
59814
59815         * tests/test-trunc1.c: Include nan.h.
59816         (main): Use NaNd instead of NAN.
59817         * modules/trunc-tests (Files): Add tests/nan.h.
59818
59819         * tests/test-roundf1.c: Include nan.h.
59820         (main): Use NaNf instead of NAN.
59821         * modules/roundf-tests (Files): Add tests/nan.h.
59822
59823         * tests/test-truncf1.c: Include nan.h.
59824         (main): Use NaNf instead of NAN.
59825         * modules/truncf-tests (Files): Add tests/nan.h.
59826
59827         * tests/test-ceilf1.c: Include nan.h.
59828         (main): Use NaNf instead of NAN.
59829         * modules/ceilf-tests (Files): Add tests/nan.h.
59830
59831         * tests/test-floorf1.c: Include nan.h.
59832         (main): Use NaNf instead of NAN.
59833         * modules/floorf-tests (Files): Add tests/nan.h.
59834
59835         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59836         (main): Use NaNf instead of NAN.
59837         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59838
59839         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59840         (main): Use NaNd instead of NAN.
59841         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59842
59843         * tests/test-frexp.c: Include nan.h.
59844         (main): Use NaNd instead of NAN.
59845         * modules/frexp-tests (Files): Add tests/nan.h.
59846
59847         * lib/isnan.c: Don't include <math.h>.
59848         (FUNC): Don't use NAN macro.
59849         * modules/isnand-nolibm (Depends-on): Remove math.
59850         * modules/isnanf-nolibm (Depends-on): Remove math.
59851         * modules/isnanl (Depends-on): Remove math.
59852         * modules/isnanl-nolibm (Depends-on): Remove math.
59853
59854         * tests/nan.h: New file.
59855
59856 2008-04-01  Eric Blake  <ebb9@byu.net>
59857
59858         Fix typos.
59859         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59860         values to be the right type.
59861
59862         For now, cater to gnulib strtod inaccuracies.
59863         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59864         fractional results.  While not as nice from a QoI perspective, it
59865         is a quicker patch than correctly implementing decimal to binary
59866         rounding.
59867
59868 2008-03-31  Eric Blake  <ebb9@byu.net>
59869
59870         Guarantee a definition of NAN.
59871         * lib/math.in.h (NAN): Define if missing.
59872         * tests/test-math.c (main): Test it.
59873         * doc/posix-headers/math.texi (math.h): Document this.
59874         * lib/isnan.c (rpl_isnand): Use it.
59875         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59876         * tests/test-floorf1.c (NaN): Likewise.
59877         * tests/test-frexp.c (NaN): Likewise.
59878         * tests/test-isnand.c (NaN): Likewise.
59879         * tests/test-isnanf.c (NaN): Likewise.
59880         * tests/test-round1.c (NaN): Likewise.
59881         * tests/test-roundf1.c (NaN): Likewise.
59882         * tests/test-snprintf-posix.h (NaN): Likewise.
59883         * tests/test-sprintf-posix.h (NaN): Likewise.
59884         * tests/test-trunc1.c (NaN): Likewise.
59885         * tests/test-truncf1.c (NaN): Likewise.
59886         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59887         * tests/test-vasprintf-posix.c (NaN): Likewise.
59888         * modules/isnand-nolibm (Depends-on): Add math.
59889         * modules/isnanf-nolibm (Depends-on): Likewise.
59890         * modules/isnanl (Depends-on): Likewise.
59891         * modules/isnanl-nolibm (Depends-on): Likewise.
59892         * modules/snprintf-posix-tests (Depends-on): Likewise.
59893         * modules/sprintf-posix-tests (Depends-on): Likewise.
59894         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59895         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59896         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59897         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59898
59899 2008-03-31  Bruno Haible  <bruno@clisp.org>
59900
59901         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59902         * doc/posix-functions/strtod.texi: Likewise.
59903
59904 2008-03-31  Bruno Haible  <bruno@clisp.org>
59905
59906         * tests/test-strtod.c (main): Don't use C99 syntax.
59907
59908 2008-03-31  Bruno Haible  <bruno@clisp.org>
59909
59910         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59911         Reported by Eric Blake.
59912
59913 2008-03-31  Jim Meyering  <meyering@redhat.com>
59914
59915         Don't compare actual signbit return values.
59916         * tests/test-strtod.c (main): Rather, compare only their
59917         zero/non-zero nature.
59918
59919 2008-03-31  Eric Blake  <ebb9@byu.net>
59920
59921         More strtod documentation.
59922         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59923         failures as distinct bugs.
59924
59925 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59928         Problem reported by Erik Benada in
59929         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59930
59931 2008-03-30  Bruno Haible  <bruno@clisp.org>
59932
59933         * tests/test-strtod.c: Add comments about which assertion fails on which
59934         platform.
59935         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59936
59937 2008-03-30  Eric Blake  <ebb9@byu.net>
59938
59939         Test signbit behavior on zeros.
59940         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59941         (test_signbitd, test_signbitl): Likewise.
59942
59943         More strtod touchups.
59944         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59945         sign of negative underflow, for now.  Use .5, not .1.
59946         * doc/posix-functions/strtod.texi (strtod): Mention these
59947         limitations.
59948         Reported by Jim Meyering.
59949
59950 2008-03-30  Bruno Haible  <bruno@clisp.org>
59951
59952         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59953         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59954
59955 2008-03-30  Bruno Haible  <bruno@clisp.org>
59956
59957         Avoid failure when attempting to return empty iconv results on some
59958         platforms.
59959         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59960         allocation, don't report ENOMEM when the resulting string is empty.
59961
59962 2008-03-30  Bruno Haible  <bruno@clisp.org>
59963
59964         Fix buffer overrun.
59965         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59966         Don't consider the width for tmp_length. Check count against tmp_length
59967         before doing the padding. Ensure enough allocation during padding.
59968
59969 2008-03-30  Eric Blake  <ebb9@byu.net>
59970
59971         strtod touchups.
59972         * lib/strtod.c (strtod): Avoid compiler warnings.
59973         Reported by Jim Meyering.
59974
59975 2008-03-30  Bruno Haible  <bruno@clisp.org>
59976
59977         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59978         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59979         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59980         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59981         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59982         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59983         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59984         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59985
59986         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59987         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59988         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59989         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59990         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59991         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59992         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59993         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59994
59995         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59996         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59997         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59998         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59999         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60000         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60001         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60002         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60003
60004         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60005         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60006
60007         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60008         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60009
60010         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60011         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60012
60013         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60015         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60016
60017         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60019         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60020
60021         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60022         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60023         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60024
60025         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60026         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60027         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60028
60029         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60030         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60032         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60033         (Depends-on): Add EOVERFLOW.
60034         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60035         (Depends-on): Add EOVERFLOW.
60036         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60037         (Depends-on): Add EOVERFLOW.
60038         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60039         (Depends-on): Add EOVERFLOW.
60040         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60041         (Depends-on): Add EOVERFLOW.
60042         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60043         (Depends-on): Add EOVERFLOW.
60044         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60045         (Depends-on): Add EOVERFLOW.
60046         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60047         (Depends-on): Add EOVERFLOW.
60048
60049         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60051         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60052
60053         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60055         * modules/snprintf (Depends-on): Add EOVERFLOW.
60056
60057         * lib/poll.c (EOVERFLOW): Remove fallback.
60058         * modules/poll (Depends-on): Add EOVERFLOW.
60059
60060         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60061         * modules/getugroups (Depends-on): Add EOVERFLOW.
60062
60063         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60064         * modules/getdelim (Depends-on): Add EOVERFLOW.
60065
60066         * lib/ftell.c (EOVERFLOW): Remove fallback.
60067         * modules/ftell (Depends-on): Add EOVERFLOW.
60068
60069         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60071         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60072
60073         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60074
60075         * modules/EOVERFLOW-tests: New file.
60076         * tests/test-EOVERFLOW.c: New file.
60077
60078         * modules/EOVERFLOW: New file.
60079         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60080
60081 2008-03-30  Bruno Haible  <bruno@clisp.org>
60082
60083         Fix bug introduced on 2007-06-10.
60084         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60085         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60086
60087 2008-03-30  Bruno Haible  <bruno@clisp.org>
60088
60089         Improve freadseek's efficiency after ungetc.
60090         * lib/freadseek.c: Include freadahead.h.
60091         (freadptrinc): New function, extracted from freadseek.
60092         (freadseek): Use it in a loop. Use freadahead to determine the number
60093         of loop iterations.
60094         * modules/freadseek (Depends-on): Add freadahead.
60095         (configure.ac): Require AC_C_INLINE.
60096
60097 2008-03-30  Bruno Haible  <bruno@clisp.org>
60098
60099         * lib/freadseek.c (freadseek): Don't ignore the return value of
60100         freadptr.
60101
60102 2008-03-29  Eric Blake  <ebb9@byu.net>
60103
60104         Add hex float support.
60105         * modules/strtod (Depends-on): Add c-ctype.
60106         (Link): Mention POW_LIB.
60107         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60108         whitespace between 'e' and exponent.
60109         * tests/test-strtod.c (main): Enable hex float tests.
60110         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60111         now provides.
60112
60113         Document various strtod bugs, with some fixes.
60114         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60115         "-0x", "inf", "nan", and hex constants.
60116         * doc/posix-functions/atof.texi (atof): Likewise.
60117         * modules/stdlib (Makefile.am): Support strtod.
60118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60119         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60120         detect additional strtod bugs.
60121         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60122         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60123         bool where appropriate.  Parse 'inf' and 'nan'.
60124         * tests/test-strtod.c: New file.
60125         * modules/strtod (Depends-on): Add stdbool, stdlib.
60126         (configure.ac): Turn on module indicator.
60127         * modules/strtod-tests: New module.
60128
60129 2008-03-29  Eric Blake  <ebb9@byu.net>
60130
60131         Fix ftell on mingw.
60132         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60133         * modules/ftell-tests (Depends-on): Add binary-io.
60134         * modules/ftello-tests (Depends-on): Likewise.
60135         * tests/test-ftell.c (main): Enhance test to cover behavior after
60136         ungetc.  Enforce binary mode.
60137         * tests/test-ftello.c (main): Likewise.
60138
60139         Pass test-freadseek on cygwin.
60140         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60141         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60142         ungetc buffer.
60143
60144         * tests/test-fflush2.c (main): Fix typo.
60145
60146 2008-03-29  Bruno Haible  <bruno@clisp.org>
60147
60148         * tests/test-fflush2.c (main): Temporarily disable the contents of
60149         this test.
60150         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60151         Reported by Eric Blake.
60152
60153 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60154
60155         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60156         (GC_SHA224_DIGEST_SIZE): Add.
60157
60158         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60159         (gc_hash_digest_length): Likewise.
60160         (gc_hash_buffer): Likewise.
60161
60162 2008-03-25  Bruno Haible  <bruno@clisp.org>
60163
60164         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60165         detail which gettext release to use.
60166         Reported by Simon Josefsson.
60167
60168 2008-03-26  Jim Meyering  <meyering@redhat.com>
60169
60170         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60171         * modules/gnumakefile (clean-GNUmakefile): Also, use
60172         test ... && ... || : syntax rather than if-then ... fi.
60173
60174         gnumakefile: Don't double-quote-expand $(VPATH) value.
60175         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60176
60177 2008-03-24  Eric Blake  <ebb9@byu.net>
60178
60179         Alter GNUmakefile to install into top directory.
60180         * modules/maintainer-makefile: Split, and add dependency...
60181         * modules/gnumakefile: to this new module.
60182         * build-aux/GNUmakefile: Move...
60183         * top/GNUmakefile: ...here.
60184         * build-aux/maint.mk: Move...
60185         * top/maint.mk: ...here.
60186         * MODULES.html.sh (Support for maintaining...): Document new
60187         module.
60188
60189 2008-03-23  Bruno Haible  <bruno@clisp.org>
60190
60191         * gnulib-tool: New options --vc-files, --no-vc-files.
60192         (func_usage): Document them.
60193         (vc_files): New variable.
60194         (func_import): Consider vc_files.
60195         (func_create_testdir): Set vc_files to empty.
60196         Suggested by Jim Meyering and Karl Berry.
60197
60198 2008-03-23  Bruno Haible  <bruno@clisp.org>
60199
60200         Fix regex compilation error on HP-UX 11.
60201         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60202         * modules/regex (Files): Add m4/mbstate_t.m4.
60203         Reported by Ton Voon <ton.voon@altinity.com>.
60204
60205 2008-03-23  Bruno Haible  <bruno@clisp.org>
60206
60207         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60208
60209 2008-03-23  Eric Blake  <ebb9@byu.net>
60210             Bruno Haible  <bruno@clisp.org>
60211
60212         Install files from top/ in the destination directory.
60213         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60214         augmentation also for the files from top/.
60215         (func_import, func_create_testdir): Rewrite file names:
60216         top/filename -> filename.
60217
60218 2008-03-23  Bruno Haible  <bruno@clisp.org>
60219
60220         Tweak "gnulib --version" output.
60221         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60222
60223 2008-03-23  Bruno Haible  <bruno@clisp.org>
60224
60225         Tweak "gnulib --version" output.
60226         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60227         rather than contents of ChangeLog, when possible.
60228
60229 2008-03-21  Eric Blake  <ebb9@byu.net>
60230
60231         More --version tweaks.
60232         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60233         date of last ChangeLog entry.
60234
60235 2008-03-21  Jim Meyering  <meyering@redhat.com>
60236
60237         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60238
60239 2008-03-20  Eric Blake  <ebb9@byu.net>
60240
60241         VPATH fix.
60242         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60243
60244 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60245
60246         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60247         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60248
60249 2008-03-20  Eric Blake  <ebb9@byu.net>
60250
60251         Sync GNUmakefile with coreutils.
60252         * build-aux/GNUmakefile (have-Makefile): Rename...
60253         (_have-Makefile): ...to this, for namespace consideration.
60254         (GNUmakefile.cfg): Include, if present.
60255         (_autoreconf): Define a default.
60256         (_is-dist-target): New rule for rebuilds to pick up intra-release
60257         version.
60258         (maint-cfg.mk): Rename...
60259         (cfg.mk): ...to this.
60260
60261 2008-03-18  Jim Meyering  <meyering@redhat.com>
60262
60263         New script and module: mktempd
60264         * MODULES.html.sh (maint+release support): Add mktempd.
60265         * build-aux/mktempd: New file.
60266         * modules/mktempd: New file.
60267
60268 2008-03-15  Jim Meyering  <meyering@redhat.com>
60269
60270         Undo last change.
60271         * lib/sha1.c, lib/md5.c: 63 != ~63.
60272         Reported by Andreas Schwab.
60273
60274         sha1.c, md5.c: Hoist a redundant expression.
60275         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60276         "ctx->buflen" only once, before calling *_process_block.
60277         * lib/md5.c (md5_process_bytes): Likewise.
60278
60279 2008-03-14  Eric Blake  <ebb9@byu.net>
60280
60281         Bump copyright year in files generated by gnulib-tool.
60282         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60283         gnulib-tool, rather than hard-coding it.
60284
60285         Fix 'gnulib-tool --version' output to work with git.
60286         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60287         (startup): ...here.
60288         (func_version): Use it to invoke git-version-gen, rather than
60289         relying on CVS keyword expansion.  Modernize wording.
60290         (cvsdatestamp, last_checkin_date, version): Kill unused
60291         variables.
60292
60293 2008-03-12  Jim Meyering  <meyering@redhat.com>
60294
60295         Recognize optional cast of the argument to free.
60296         * build-aux/useless-if-before-free: Update regexps.
60297
60298         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60299
60300 2008-03-11  Bruno Haible  <bruno@clisp.org>
60301
60302         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60303         by a single package.
60304         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60305         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60306         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60307         Reported by Sam Steingold <sds@gnu.org>.
60308
60309 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60310
60311         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60312         repositories.
60313
60314 2008-03-11  Bruno Haible  <bruno@clisp.org>
60315
60316         Avoid conflicts between local macro definitions.
60317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60318         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60319
60320 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60321             Bruno Haible  <bruno@clisp.org>
60322
60323         Make va_copy work with some version of xlc on AIX 5.1.
60324         * lib/stdarg.in.h: New file.
60325         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60326         On AIX, use a <stdarg.h> file substitute.
60327         * modules/stdarg (Files): Add lib/stdarg.in.h.
60328         (Depends-on): Add include_next.
60329         (Makefile.am): Build a stdarg.h substitute if requested.
60330         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60331
60332 2008-03-10  Bruno Haible  <bruno@clisp.org>
60333
60334         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60335         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60336         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60337
60338 2008-03-10  Bruno Haible  <bruno@clisp.org>
60339
60340         * modules/stdlib (Depends-on): Add include_next, remove
60341         absolute-header.
60342
60343 2008-03-09  Bruno Haible  <bruno@clisp.org>
60344
60345         * lib/freadahead.h (freadahead): Document more precisely.
60346         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60347         the sum of both buffer sizes.
60348         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60349         * NEWS: Document the change.
60350
60351 2008-03-09  Bruno Haible  <bruno@clisp.org>
60352
60353         Extend freadptr to return also the buffer size.
60354         * lib/freadptr.h (freadptr): Add sizep argument.
60355         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60356         (freadptr): Add sizep argument. Determine buffer size like freadahead
60357         does.
60358         * tests/test-freadptr.c: Don't include freadahead.h.
60359         (main): Adapt for new calling convention of freadptr.
60360         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60361         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60362         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60363         tests/test-freadptr2.sh.
60364         (Depends): Remove freadahead.
60365         (TESTS): Add test-freadptr2.sh.
60366         (check_PROGRAMS): Add test-freadptr2.
60367
60368 2008-03-09  Bruno Haible  <bruno@clisp.org>
60369
60370         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60371         Report and solution by Simon Josefsson.
60372
60373 2008-03-06  Bruno Haible  <bruno@clisp.org>
60374
60375         Make fflush after ungetc work on BSD platforms.
60376         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60377         * tests/test-fflush2.c: New file.
60378         * tests/test-fflush2.sh: New file.
60379         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60380         tests/test-fflush2.c.
60381         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60382         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60383
60384 2008-03-06  Eric Blake  <ebb9@byu.net>
60385
60386         Likewise for ftello.
60387         * modules/ftello (Dependencies): Add extensions.
60388         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60389
60390 2008-03-06  Bruno Haible  <bruno@clisp.org>
60391
60392         * modules/fseeko (Dependencies): Add extensions.
60393         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60394         Needed on glibc systems.
60395
60396 2008-03-06  Bruno Haible  <bruno@clisp.org>
60397
60398         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60399         email address.
60400         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60401
60402 2008-03-06  Bruno Haible  <bruno@clisp.org>
60403
60404         * users.txt: Add libgnupdf.
60405
60406 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60407
60408         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60409         (Header File Substitutes, Function Substitutes,
60410         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60411         (Build robot for gnulib): Fix typo.
60412
60413 2008-03-06  Bruno Haible  <bruno@clisp.org>
60414
60415         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60416         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60417
60418 2008-03-06  Bruno Haible  <bruno@clisp.org>
60419
60420         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60421         * doc/gnulib.texi: Include it.
60422
60423 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60424
60425         * modules/func (License): Change license to unlimited; there was
60426         no LGPL parts in the module anyway.
60427
60428 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60429
60430         * modules/__func__: Renamed to modules/func.
60431         * modules/__func__-tests: Renamed to modules/func-tests.
60432         * tests/test-__func__.c: Renamed to tests/test-func.c.
60433         * m4/__func__.m4: Renamed to m4/func.m4.
60434         * doc/gnulib.texi (__func__): Section renamed to func.
60435         Suggested by Eric Blake <ebb9@byu.net>.
60436
60437 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60438
60439         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60440         about __func__.  Make example self-contained.  Suggested by Eric
60441         Blake <ebb9@byu.net>.
60442
60443         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60444         Suggested by Eric Blake <ebb9@byu.net>.
60445
60446 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60447
60448         * modules/__func__: New file.
60449         * modules/__func__-tests: New file.
60450         * tests/test-__func__.c: New file.
60451         * m4/__func__.m4: New file.
60452         * doc/gnulib.texi (__func__): Document __func__ module.
60453
60454 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60455
60456         * modules/byteswap (License): Re-license as LGPLv2+.
60457
60458 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60459
60460         * doc/Makefile: Add pdf target.
60461
60462 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60463
60464         * modules/inline (License): Use 'unlimited', since there are only
60465         *.m4 files in this module.
60466
60467 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60468             Bruno Haible  <bruno@clisp.org>
60469
60470         Add support for HP C 7.1 on OpenVMS 8.3.
60471         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60472
60473 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60474
60475         Update VMS specifics.
60476         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60477
60478 2008-03-02  Jim Meyering  <meyering@redhat.com>
60479
60480         Remove the last dependency on the "free" module.
60481         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60482         Reported by Bob Proulx.
60483
60484         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60485
60486         Remove useless "if" tests before free.  Deprecate "free" module.
60487         * doc/posix-functions/free.texi: Mention that this
60488         module is no longer useful.
60489         * modules/free (Notice): Say this module is obsolete.
60490         * modules/readutmp (Depends-on): Remove free.
60491         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60492         * lib/putenv.c (putenv): Likewise.
60493         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60494         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60495         * tests/test-c-strcasestr.c (main): Likewise.
60496         * tests/test-c-strstr.c (main): Likewise.
60497         * tests/test-mbscasestr1.c (main): Likewise.
60498         * tests/test-mbscasestr2.c (main): Likewise.
60499         * tests/test-mbsstr1.c (main): Likewise.
60500         * tests/test-mbsstr2.c (main): Likewise.
60501         * tests/test-memmem.c (main): Likewise.
60502         * tests/test-strcasestr.c (main): Likewise.
60503         * tests/test-striconv.c (main): Likewise.
60504         * tests/test-striconveh.c (main): Likewise.
60505         * tests/test-striconveha.c (main): Likewise.
60506         * tests/test-strstr.c (main): Likewise.
60507
60508         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60509
60510         bootstrap: sync from coreutils again
60511         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60512
60513 2008-03-01  Jim Meyering  <meyering@redhat.com>
60514
60515         bootstrap: sync from coreutils
60516         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60517         also when the target doesn't exist.
60518
60519 2008-03-01  Eric Blake  <ebb9@byu.net>
60520
60521         Fix bugs in last patch.
60522         * lib/memchr2.c (memchr2): Fix typo.
60523         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60524         extension.
60525         Reported by Bruce Korb.
60526
60527         New module 'memchr2'.
60528         * modules/memchr2: New file.
60529         * modules/memchr2-tests: Likewise.
60530         * lib/memchr2.h: Likewise.
60531         * lib/memchr2.c: Likewise, based on memchr.c.
60532         * tests/test-memchr2.c: New test.
60533         * MODULES.html.sh (String handling): Add memchr2.
60534
60535 2008-02-29  Bruno Haible  <bruno@clisp.org>
60536
60537         * modules/freadseek-tests: New file.
60538         * tests/test-freadseek.sh: New file.
60539         * tests/test-freadseek.c: New file.
60540
60541         New module 'freadseek'.
60542         * modules/freadseek: New file.
60543         * lib/freadseek.h: New file.
60544         * lib/freadseek.c: New file.
60545         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60546
60547 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60548
60549         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60550         wydawca.
60551
60552         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60553         program_invocation_name and program_invocation_short_name are
60554         present.
60555
60556 2008-02-28  Bruno Haible  <bruno@clisp.org>
60557
60558         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60559         * tests/test-freadptr.sh: Also test non-seekable stdin.
60560
60561 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60562
60563         * build-aux/bootstrap (source_base, m4_base)
60564         (doc_base, tests_base): New variables.
60565         (gnulib_tool_options): Do not hardcode base directories, use
60566         the above variables instead.
60567
60568 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60569
60570         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60571
60572 2008-02-28  Bruno Haible  <bruno@clisp.org>
60573
60574         * modules/freadptr-tests: New file.
60575         * tests/test-freadptr.sh: New file.
60576         * tests/test-freadptr.c: New file.
60577
60578         New module 'freadptr'.
60579         * modules/freadptr: New file.
60580         * lib/freadptr.h: New file.
60581         * lib/freadptr.c: New file.
60582         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60583
60584 2008-02-26  Karl Berry  <karl@freefriends.org>
60585
60586         Sync from Libtool:
60587         * libltdl/argz.c (argz_add, argz_count): New functions.
60588         * libltdl/argz.in.h: Declare them.
60589         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60590
60591 2008-02-22  Bruno Haible  <bruno@clisp.org>
60592
60593         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60594         is a pointer type.  Needed for HP-UX 10.
60595         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60596         * doc/posix-functions/gmtime_r.texi: Likewise.
60597         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60598
60599 2008-02-24  Bruno Haible  <bruno@clisp.org>
60600
60601         * modules/environ-tests: New file.
60602         * tests/test-environ.c: New file.
60603
60604         New module 'environ'.
60605         * modules/environ: New file.
60606         * lib/unistd.in.h (environ): New declaration.
60607         * m4/environ.m4: New file.
60608         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60609         after use.
60610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60611         HAVE_DECL_ENVIRON.
60612         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60613         HAVE_DECL_ENVIRON.
60614         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60615         wrong claim that 'environ' is missing on some systems.
60616         * modules/execute (Depends-on): Add environ.
60617         * lib/execute.c (environ): Remove fallback declaration.
60618         * modules/pipe (Depends-on): Add environ.
60619         * lib/pipe.c (environ): Remove fallback declaration.
60620         * modules/setenv (Depends-on): Add environ.
60621         * lib/setenv.c (environ): Remove fallback declaration.
60622         * modules/unsetenv (Depends-on): Add environ.
60623         * lib/unsetenv.c (environ): Remove fallback declaration.
60624         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60625         m4/environ.m4.
60626         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60627         (gl_PREREQ_UNSETENV): Likewise.
60628
60629 2008-02-24  Bruno Haible  <bruno@clisp.org>
60630
60631         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60632
60633 2008-02-20  Bob Proulx  <bob@proulx.com>
60634
60635         Enable use of older two part flavor 'git describe'.
60636         * build-aux/git-version-gen: If using the older two part flavor of
60637         git version then recreate the third part now present in the
60638         newer three part flavor of git describe.
60639
60640 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60641
60642         * lib/fts.c (fts_build): Typo correction to comment.
60643
60644 2008-02-17  Bruno Haible  <bruno@clisp.org>
60645
60646         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60647         generating no-op conflicts.
60648
60649 2008-02-17  Bruno Haible  <bruno@clisp.org>
60650
60651         Speed up by 10%.
60652         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60653         result_entries, rather than an index-based loop.
60654
60655 2008-02-17  Bruno Haible  <bruno@clisp.org>
60656
60657         Speed up by 25%.
60658         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60659         'hashcode_cached'.
60660         (entry_create): New function.
60661         (entry_hashcode): Use the cached hashcode if possible.
60662         (read_changelog_file, try_split_merged_entry): Use entry_create.
60663
60664 2008-02-17  Bruno Haible  <bruno@clisp.org>
60665
60666         Speed up from O(n^2) to O(n) for long ChangeLog files.
60667         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60668         (read_changelog_file): Change implementation of entries_reversed list
60669         to rbtreehash.
60670         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60671
60672 2008-02-17  Bruno Haible  <bruno@clisp.org>
60673
60674         New option --split-merged-entry.
60675         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60676         (find_paragraph_end, try_split_merged_entry): New functions.
60677         (long_options): Add option --split-merged-entry.
60678         (usage): Document option --split-merged-entry.
60679         (main): Implement option --split-merged-entry.
60680         Reported by Eric Blake.
60681
60682 2008-02-17  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/git-merge-changelog.c: Include c-strstr.h.
60685         (main): Support the "git pull --rebase" situation.
60686         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60687         Reported by Eric Blake.
60688
60689 2008-02-16  Eric Blake  <ebb9@byu.net>
60690
60691         Avoid doubling \ in common case of "c-maybe" quoting style.
60692         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60693         eliding outer quotes.
60694         * lib/quotearg.h: Document this.
60695         * tests/test-quotearg.c (result_strings, inputs, results_g)
60696         (flag_results, locale_results): Test it by adding a new string to
60697         each test group.
60698         (compare_strings): Test new string.
60699
60700 2008-02-13  Eric Blake  <ebb9@byu.net>
60701
60702         Avoid trigraph quoting in default output.
60703         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60704         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60705         unless explicitly requested.
60706         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60707
60708 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60709
60710         Don't rely on signed integer overflowing to negative value.
60711         * lib/getugroups.c (getugroups): Include <limits.h>.
60712         Instead, compare against INT_MAX, and increment only if the test passes.
60713
60714 2008-02-13  Jim Meyering  <meyering@redhat.com>
60715         and Eric Blake  <ebb9@byu.net>
60716
60717         Avoid shadowing warning and compile errors on Linux.
60718         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60719         forwarding macros on Linux.
60720         (dcgettext): Define a stub, for Linux.
60721         (results_g, main): Avoid warnings.
60722
60723 2008-02-12  Eric Blake  <ebb9@byu.net>
60724
60725         Silence warning in last patch.
60726         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60727
60728         Quotearg part 4: add tests, fix c-maybe colon quoting.
60729         * lib/quotearg.h: Improve documentation.
60730         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60731         escapes when adding outer quotes.  When quoting trigraphs, use
60732         valid C notation.  When quoting NUL, omit extra characters if next
60733         character is not digit.  Alter prototype.
60734         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60735         callers.
60736         * modules/quotearg-tests: New module.
60737         * tests/test-quotearg.c: New test.
60738
60739 2008-02-07  Eric Blake  <ebb9@byu.net>
60740
60741         Quotearg part 3: add flag to control outer quote elision.
60742         * lib/quotearg.h (c_maybe_quoting_style): New style.
60743         (enum quoting_flags): Better documentation of flags.
60744         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60745         c-maybe style.
60746         (quotearg_buffer_restyled): Handle new flag to elide outer
60747         quotes.
60748
60749         Quotearg part 2: add flag that can control NUL elision.
60750         * lib/quotearg.h (set_quoting_flags): New prototype.
60751         * lib/quotearg.c (struct quoting_options): Add flag field.
60752         (set_quoting_flags): New function.
60753         (quotearg_buffer_restyled): Add flags parameter.
60754         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60755         (quotearg_n_options): Set the flag, since length cannot be
60756         returned.
60757         (quoting_options_from_style): Default flags correctly.
60758
60759         Quotearg part 1: more wrappers, restore quotearg_char state.
60760         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60761         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60762         (quotearg_colon_mem): New wrappers.
60763         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60764         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60765         functions.
60766         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60767         (quotearg_colon_mem): New functions.
60768
60769 2008-02-11  Bruno Haible  <bruno@clisp.org>
60770
60771         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60772         library in the current directory: it does not work with parallel make.
60773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60774
60775 2008-02-11  Bruno Haible  <bruno@clisp.org>
60776
60777         * .gitattributes: New file.
60778
60779 2008-02-11  Jim Meyering  <meyering@redhat.com>
60780
60781         useless-if-before-free: Fix reversed exit values.
60782         * build-aux/useless-if-before-free: Use correct values
60783         for EXIT_MATCH and EXIT_NO_MATCH.
60784
60785         * build-aux/useless-if-before-free: Close stdout carefully.
60786
60787 2008-02-10  Bruno Haible  <bruno@clisp.org>
60788
60789         New module 'git-merge-changelog'.
60790         * modules/git-merge-changelog: New file.
60791         * lib/git-merge-changelog.c: New file.
60792
60793 2008-02-10  Jim Meyering  <meyering@redhat.com>
60794
60795         useless-if-before-free: New option: --list (-l).
60796
60797         useless-if-before-free: Don't exit immediately upon open failure.
60798         * build-aux/useless-if-before-free: Exit 2 for errors.
60799         Upon failure to open a file, don't exit immediately.
60800         Rather, just warn and continue with any remaining files.
60801
60802 2008-02-10  Bruno Haible  <bruno@clisp.org>
60803
60804         New abstract list operation 'node_set_value'.
60805         * lib/gl_list.h (gl_list_node_set_value): New function.
60806         (struct gl_list_implementation): New field node_set_value.
60807         * lib/gl_list.c (gl_list_node_set_value): New function.
60808         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60809         (gl_array_list_implementation): Update.
60810         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60811         (gl_carray_list_implementation): Update.
60812         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60813         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60814         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60815         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60816         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60817         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60818         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60819         Update.
60820         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60821         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60822         (gl_sublist_list_implementation): Update.
60823
60824 2008-02-10  Bruno Haible  <bruno@clisp.org>
60825
60826         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60827         Needed when ELEMENT is #defined to 'some_type *'.
60828
60829 2008-02-10  Jim Meyering  <meyering@redhat.com>
60830
60831         New script and module: useless-if-before-free
60832         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60833         * build-aux/useless-if-before-free: New file.
60834         * modules/useless-if-before-free: New file.
60835
60836         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60837
60838         xstrtol_error: Fix typo.
60839         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60840         s/exit_failure/exit_status/.
60841
60842 2008-02-09  Jim Meyering  <meyering@redhat.com>
60843
60844         New script and module: gitlog-to-changelog
60845         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60846         * modules/gitlog-to-changelog: New file.
60847         * build-aux/gitlog-to-changelog: New file.
60848
60849 2008-02-08  Jim Meyering  <meyering@redhat.com>
60850
60851         Avoid two "parameter unused" warnings.
60852         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60853         Mark "st" as used.
60854
60855         Use "git COMMAND", not "git-COMMAND".
60856         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60857         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60858         * build-aux/git-version-gen: Use "git status", not "git-status".
60859
60860 2008-02-07  Bruno Haible  <bruno@clisp.org>
60861
60862         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60863         Avoids a crash on Windows Vista.
60864         Reported by Adam Strzelecki <ono@java.pl> via
60865         Simon Josefsson <simon@josefsson.org>.
60866
60867 2008-02-06  Bruno Haible  <bruno@clisp.org>
60868
60869         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60870         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60871         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60873         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60874         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60875         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60876         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60877         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60878         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60879         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60884         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60885         left-adjust flag.
60886         * tests/test-snprintf-posix.h (test_function): Likewise.
60887         * tests/test-sprintf-posix.h (test_function): Likewise.
60888         * tests/test-vasprintf-posix.c (test_function): Likewise.
60889         * doc/posix-functions/fprintf.texi: Update.
60890         * doc/posix-functions/printf.texi: Update.
60891         * doc/posix-functions/snprintf.texi: Update.
60892         * doc/posix-functions/sprintf.texi: Update.
60893         * doc/posix-functions/vfprintf.texi: Update.
60894         * doc/posix-functions/vprintf.texi: Update.
60895         * doc/posix-functions/vsnprintf.texi: Update.
60896         * doc/posix-functions/vsprintf.texi: Update.
60897         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60898
60899 2008-02-06  Bruno Haible  <bruno@clisp.org>
60900
60901         Fix bug introduced on 2008-01-26.
60902         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60903
60904 2008-02-06  Bruno Haible  <bruno@clisp.org>
60905
60906         Fix bug introduced on 2007-06-10.
60907         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60908         !NEED_PRINTF_FLAG_ZERO.
60909
60910 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60911
60912         getloadavg: use libperfstat on AIX5
60913         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60914
60915 2008-02-03  Bruno Haible  <bruno@clisp.org>
60916
60917         * lib/diffseq.h: Add comments about required #includes.
60918         Reported by Michael Biggs <gnulib@doubleplum.net>.
60919
60920 2008-02-01  Bruno Haible  <bruno@clisp.org>
60921
60922         * users.txt: Add gnuit.
60923
60924 2008-01-31  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/md4.c (set_uint32): Mark as inline.
60927         * lib/md5.c (set_uint32): Likewise.
60928         * lib/sha1.c (set_uint32): Likewise.
60929         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60930         * m4/md5.m4 (gl_MD5): Likewise.
60931         * m4/sha1.m4 (gl_SHA1): Likewise.
60932
60933 2008-01-31  Jim Meyering  <meyering@redhat.com>
60934
60935         Use "sizeof VAR", rather than a literal "4".
60936         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60937         * lib/md4.c (md4_read_ctx): Likewise.
60938         * lib/sha1.c (sha1_read_ctx): Likewise.
60939
60940 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60941
60942         * tests/test-sha1.c: New file, based on test-md5.c.
60943
60944         * modules/crypto/sha1-tests: New file.
60945
60946 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60947
60948         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60949
60950 2008-01-31  Jim Meyering  <meyering@redhat.com>
60951
60952         Prefer "sizeof v" over the equivalent "4".
60953         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60954         * lib/md5.c (set_uint32): Likewise.
60955         * lib/sha1.c (set_uint32): Likewise.
60956
60957 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60958
60959         * lib/sha1.c (set_uint32): Mark function as static.
60960
60961 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60962
60963         md2: clarify comments to say that alignment is not required.
60964         * lib/md2.h: Remove warning about alignment in comment.
60965         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60966         never been required.
60967
60968 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60969
60970         md4: adapt alignment constraint fix from sha1.
60971         * lib/md4.c (set_uint32): New function, from sha1.c
60972         (md4_read_ctx): Use it.
60973         (md4_finish_ctx): Doc fix.
60974         * lib/md4.h: Doc fix.
60975
60976 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60977
60978         md5: adapt alignment constraint fix from sha1.
60979         * lib/md5.c (set_uint32): New function, from sha1.c
60980         (md5_read_ctx): Use it.
60981         (md5_finish_ctx): Doc fix.
60982         * lib/md5.h: Doc fix.
60983
60984 2008-01-30  Peter Palfrader  <weasel@debian.org>
60985
60986         sha1: remove the result buffer alignment constraint
60987         * lib/sha1.c (set_uint32): New function.
60988         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60989         constraint.
60990         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60991         * lib/sha1.h: Likewise.
60992
60993 2008-01-30  Andreas Schwab  <schwab@suse.de>
60994             Bruno Haible  <bruno@clisp.org>
60995
60996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60997         correct definition of LDBL_MIN_EXP.
60998
60999 2008-01-30  Karl Berry  <karl@gnu.org>
61000
61001         * config/srclist-update: try to preserve x bit on updates.
61002         * config/srclistvars.sh: update for karl.
61003
61004 2008-01-29  Jim Meyering  <meyering@redhat.com>
61005
61006         vasnprintf.c: Avoid warning about unused label
61007         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61008         "overflow" label definition and associated code with the
61009         same cpp condition that guards the sole use of that label.
61010
61011 2008-01-26  Bruno Haible  <bruno@clisp.org>
61012
61013         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61014         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61015         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61016         * lib/isnanl-nolibm.h (isnanl): Likewise.
61017         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61018
61019 2008-01-26  Bruno Haible  <bruno@clisp.org>
61020
61021         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61022         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61023
61024 2008-01-26  Bruno Haible  <bruno@clisp.org>
61025
61026         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61027         GCC >= 4.0 built-in.
61028         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61029
61030 2008-01-26  Bruno Haible  <bruno@clisp.org>
61031
61032         Rename isnan, applicable to 'double' only, to isnand.
61033         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61034         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61035         (configure.ac): Update.
61036         (Include): Replace "isnan.h" with "isnand.h".
61037         * m4/isnand.m4: Renamed from m4/isnan.m4.
61038         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61039         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61040         instead of isnan.c.
61041         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61042         instead of HAVE_ISNAN_IN_LIBC.
61043         (isnand): Renamed from isnan.
61044         * lib/isnand.c: New file.
61045         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61046         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61047         (Makefile.am): Update.
61048         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61049         Include isnand.h instead of isnan.h.
61050         (main): Test isnand instead of isnan.
61051         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61052         isnan-nolibm.
61053         * modules/frexp (Depends-on): Likewise.
61054         * modules/frexp-tests (Depends-on): Likewise.
61055         * modules/frexp-nolibm (Depends-on): Likewise.
61056         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61057         * modules/isfinite (Depends-on): Likewise.
61058         * modules/round-tests (Depends-on): Likewise.
61059         * modules/signbit (Depends-on): Likewise.
61060         * modules/signbit-tests (Depends-on): Likewise.
61061         * modules/snprintf-posix (Depends-on): Likewise.
61062         * modules/sprintf-posix (Depends-on): Likewise.
61063         * modules/trunc-tests (Depends-on): Likewise.
61064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61071         * modules/vasnprintf-posix (Depends-on): Likewise.
61072         * modules/vasprintf-posix (Depends-on): Likewise.
61073         * modules/vfprintf-posix (Depends-on): Likewise.
61074         * modules/vsnprintf-posix (Depends-on): Likewise.
61075         * modules/vsprintf-posix (Depends-on): Likewise.
61076         * lib/frexp.c: Include isnand.h instead of isnan.h.
61077         (ISNAN): Set to isnand instead of isnan.
61078         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61079         (gl_isfinited): Use isnand instead of isnan.
61080         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61081         (gl_signbitd): Use isnand instead of isnan.
61082         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61083         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61084         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61085         (main): Use isnand instead of isnan.
61086         * tests/test-round1.c: Include isnand.h.
61087         (main): Use isnand instead of isnan.
61088         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61089         (ISNAN): Set to isnand instead of isnan.
61090         * tests/test-trunc1.c: Include isnand.h.
61091         (main): Use isnand instead of isnan.
61092         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61093         (equal): Use isnand instead of isnan.
61094         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61095         isnand-nolibm.
61096         * NEWS: Mention the change.
61097
61098 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61099             Bruno Haible  <bruno@clisp.org>
61100
61101         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61102         the GCC builtins for signbits are present and set
61103         REPLACE_SIGNBIT_USING_GCC if so.
61104         * lib/math.in.h (signbit): Define using GCC builtins if
61105         REPLACE_SIGNBIT_USING_GCC is set.
61106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61107         REPLACE_SIGNBIT_USING_GCC.
61108         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61109
61110 2008-01-25  Jim Meyering  <meyering@redhat.com>
61111
61112         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61113         * lib/poll.c: Include <config.h>, not "config.h".
61114         * tests/test-getaddrinfo.c: Likewise.
61115
61116 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61117
61118         * modules/sockets-tests: New file.
61119
61120 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61121
61122         * modules/sockets: New module, can be used to call WSA_Startup and
61123         WSA_Cleanup when needed.
61124
61125         * lib/sockets.h, lib/sockets.c: New files.
61126
61127         * m4/sockets.m4: New file.
61128
61129         * tests/test-sockets.c: New file.
61130
61131 2008-01-19  Bruno Haible  <bruno@clisp.org>
61132
61133         * doc/posix-headers: Renamed from doc/headers.
61134         * doc/posix-functions: Renamed from doc/functions.
61135         * doc/gnulib.texi: Update.
61136
61137 2008-01-19  Bruno Haible  <bruno@clisp.org>
61138
61139         * doc/glibc-functions/strcasestr.texi: Include contents of
61140         doc/functions/strcasestr.texi, fixing the list of platforms.
61141         * doc/functions/strcasestr.texi: Remove file.
61142
61143 2008-01-19  Bruno Haible  <bruno@clisp.org>
61144
61145         * doc/glibc-functions/memmem.texi: Include contents of
61146         doc/functions/memmem.texi.
61147         * doc/functions/memmem.texi: Remove file.
61148
61149 2008-01-18  Bruno Haible  <bruno@clisp.org>
61150
61151         * doc/glibc-functions/*.texi: New files.
61152         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61153         to use the new files.
61154
61155 2008-01-17  Bruno Haible  <bruno@clisp.org>
61156
61157         * tests/test-gethostname.c (main): Fix printf statement.
61158
61159 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61160
61161         * modules/gethostname-tests: New file.
61162
61163         * tests/test-gethostname.c: New file.
61164
61165 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61166
61167         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61168         used by the UNAME case.  Reported by Bruno Haible
61169         <bruno@clisp.org>.
61170
61171 2008-01-17  Eric Blake  <ebb9@byu.net>
61172
61173         Convert c-strcasestr to be more efficient.
61174         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61175         (Depends-on): Add c-strcase, remove malloca, strnlen.
61176         * tests/test-c-strcasestr.c (main): Enhance test.
61177         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61178
61179 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61180
61181         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61182         Use it in creating po/Makevars.
61183
61184 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61185
61186         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61187         Applications that requires it should initialize libgcrypt
61188         manually.
61189
61190 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61191
61192         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61193
61194 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61195
61196         Fix problem with getdate on mingw32 reported by Simon Josefsson
61197         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61198         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61199         tzname", when deciding whether to declare tzname.
61200         * lib/strftime.c (tzname): Likewise.
61201
61202 2008-01-15  Bruno Haible  <bruno@clisp.org>
61203
61204         Work around a MacOS X 10.5 bug in frexpl().
61205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61206         * doc/functions/frexpl.texi: Document the bug.
61207         Reported by Elias Pipping <pipping@gentoo.org>.
61208
61209 2008-01-14  Eric Blake  <ebb9@byu.net>
61210
61211         Touch up previous patch.
61212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61213         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61214
61215         Convert strcasestr module to use Two-Way algorithm.
61216         * modules/strcasestr-simple: New module, based on the old
61217         strcasestr, but with Two-Way rather than KMP.
61218         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61219         * lib/string.in.h (rpl_strcasestr): Declare.
61220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61221         performance.
61222         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61223         * modules/string (Makefile.am): Support strcasestr.
61224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61225         * modules/strcasestr-tests (Depends-on): Check for alarm.
61226         * tests/test-strcasestr.c: Augment test.
61227         * lib/str-two-way.h: Clean up stray macro.
61228         * NEWS: Document new module.
61229         * MODULES.html.sh (string handling): Likewise.
61230         * doc/functions/strcasestr.texi: New file.
61231         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61232         here, since it is not a POSIX function.
61233
61234 2008-01-14  Colin Watson  <cjwatson@debian.org>
61235             Bruno Haible  <bruno@clisp.org>
61236
61237         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61238         works fine; if not, set REPLACE_STRSIGNAL.
61239         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61241         REPLACE_STRSIGNAL.
61242         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61243         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61244         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61245
61246 2008-01-14  Bruno Haible  <bruno@clisp.org>
61247
61248         * modules/strsignal (Include): Change to <string.h>.
61249
61250 2008-01-14  Colin Watson  <cjwatson@debian.org>
61251
61252         * modules/argp (Notice): Add a notice recommending to change
61253         XGETTEXT_OPTIONS.
61254         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61255
61256 2008-01-13  Colin Watson  <cjwatson@debian.org>
61257
61258         * modules/strsignal-tests: New file.
61259         * tests/test-strsignal.c: New file.
61260
61261         * lib/strsignal.c: New file, from glibc with modifications.
61262         * lib/siglist.h: New file, from glibc with modifications.
61263         * lib/string.in.h (strsignal): New declaration.
61264         * m4/strsignal.m4: New file.
61265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61266         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61267         * modules/strsignal: New file.
61268         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61269         HAVE_DECL_STRSIGNAL.
61270
61271 2008-01-13  Bruno Haible  <bruno@clisp.org>
61272
61273         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61274         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61277
61278 2008-01-13  Bruno Haible  <bruno@clisp.org>
61279
61280         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61281         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61282         * lib/argp.h (__attribute__): Likewise.
61283         * lib/c-stack.c (__attribute__): Likewise.
61284         * lib/error.h (__attribute__): Likewise.
61285         * lib/fts.c (__attribute__): Likewise.
61286         * lib/openat.h (__attribute__): Likewise.
61287         * lib/stdio.in.h (__attribute__): Likewise.
61288         * lib/string.in.h (__attribute__): Likewise.
61289         * lib/utimens.c (__attribute__): Likewise.
61290         * lib/vasnprintf.h (__attribute__): Likewise.
61291         * lib/xalloc.h (__attribute__): Likewise.
61292         * lib/xprintf.h (__attribute__): Likewise.
61293         * lib/xstrtol.h (__attribute__): Likewise.
61294         * lib/xvasprintf.h (__attribute__): Likewise.
61295
61296 2008-01-12  Bruno Haible  <bruno@clisp.org>
61297
61298         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61299         * doc/glibc-headers/a.out.texi: New file.
61300         * doc/glibc-headers/aliases.texi: New file.
61301         * doc/glibc-headers/alloca.texi: New file.
61302         * doc/glibc-headers/ar.texi: New file.
61303         * doc/glibc-headers/argp.texi: New file.
61304         * doc/glibc-headers/argz.texi: New file.
61305         * doc/glibc-headers/byteswap.texi: New file.
61306         * doc/glibc-headers/crypt.texi: New file.
61307         * doc/glibc-headers/endian.texi: New file.
61308         * doc/glibc-headers/envz.texi: New file.
61309         * doc/glibc-headers/err.texi: New file.
61310         * doc/glibc-headers/error.texi: New file.
61311         * doc/glibc-headers/execinfo.texi: New file.
61312         * doc/glibc-headers/fpu_control.texi: New file.
61313         * doc/glibc-headers/fstab.texi: New file.
61314         * doc/glibc-headers/fts.texi: New file.
61315         * doc/glibc-headers/getopt.texi: New file.
61316         * doc/glibc-headers/ieee754.texi: New file.
61317         * doc/glibc-headers/ifaddrs.texi: New file.
61318         * doc/glibc-headers/libintl.texi: New file.
61319         * doc/glibc-headers/mcheck.texi: New file.
61320         * doc/glibc-headers/mntent.texi: New file.
61321         * doc/glibc-headers/obstack.texi: New file.
61322         * doc/glibc-headers/paths.texi: New file.
61323         * doc/glibc-headers/printf.texi: New file.
61324         * doc/glibc-headers/pty.texi: New file.
61325         * doc/glibc-headers/resolv.texi: New file.
61326         * doc/glibc-headers/shadow.texi: New file.
61327         * doc/glibc-headers/sysexits.texi: New file.
61328         * doc/glibc-headers/ttyent.texi: New file.
61329
61330 2008-01-12  Jim Meyering  <meyering@redhat.com>
61331
61332         announce-gen: emit Gnulib's git-based version string.
61333         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61334         New option --gnulib-version=V, where V is expected to be
61335         the output of running git describe in the gnulib directory.
61336         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61337         not useful, and plan to stop publishing an xdelta file with each
61338         coreutils release.
61339
61340         * build-aux/announce-gen: Also check for lzma-compressed files.
61341
61342 2008-01-11  Bruno Haible  <bruno@clisp.org>
61343
61344         * tests/test-memmem.c (main): Increase maximum allowed time.
61345         * tests/test-strstr.c (main): Likewise.
61346
61347 2008-01-11  Bruno Haible  <bruno@clisp.org>
61348
61349         * doc/functions/memmem.texi: Add more precisions about platforms.
61350         * doc/functions/strstr.texi: Likewise.
61351
61352 2008-01-10  Eric Blake  <ebb9@byu.net>
61353
61354         * m4/strstr.m4: Delete cruft from copy-n-paste.
61355         Reported by Bruno Haible.
61356
61357 2008-01-10  Bruno Haible  <bruno@clisp.org>
61358
61359         Make c-strstr rely on strstr.
61360         * lib/c-strstr.c: Don't include str-kmp.h.
61361         (c_strstr): Define in terms of strstr.
61362         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61363         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61364
61365 2008-01-10  Bruno Haible  <bruno@clisp.org>
61366
61367         * doc/gnulib.texi (String Functions in C Locale): New section.
61368         * doc/c-ctype.texi: New file.
61369         * doc/c-strcase.texi: New file.
61370         * doc/c-strcaseeq.texi: New file.
61371         * doc/c-strcasestr.texi: New file.
61372         * doc/c-strstr.texi: New file.
61373         * doc/c-strtod.texi: New file.
61374         * doc/c-strtold.texi: New file.
61375
61376 2008-01-10  Eric Blake  <ebb9@byu.net>
61377
61378         * lib/relocatable.h: Fix a comment.
61379
61380 2008-01-10  Eric Blake  <ebb9@byu.net>
61381
61382         Share two-way algorithm.
61383         * lib/str-two-way.h: New file, merged from...
61384         * lib/memmem.c: ...here...
61385         * lib/strstr.c: ...and here.
61386         * modules/memmem (Files): Use it.
61387         * modules/strstr (Files): Likewise.
61388
61389         Avoid quadratic strstr implementations.
61390         * lib/strstr.c: New file.
61391         * m4/strstr.m4: Likewise.
61392         * modules/strstr: Likewise.
61393         * modules/strstr-tests: Likewise.
61394         * tests/test-strstr.c: Likewise.
61395         * lib/string.in.h (rpl_strstr): Declare.
61396         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61398         * modules/string (Makefile.am): Likewise.
61399         * MODULES.html.sh (string handling): Mention new module.
61400         * doc/functions/strstr.texi (strstr): Document the bug.
61401
61402 2008-01-10  Bruno Haible  <bruno@clisp.org>
61403
61404         * lib/relocatable.h (relocate): State whether result is freshly
61405         allocated or not.
61406         * lib/relocatable.c (relocate): Return a freshly allocated string
61407         instead of a pointer to a privately held string.
61408         Reported by Sylvain Beucler <beuc@gnu.org>.
61409
61410 2008-01-10  Colin Watson  <cjwatson@debian.org>
61411
61412         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61413         s/S_ISNLK/S_ISLNK/.
61414
61415 2008-01-09  Bruno Haible  <bruno@clisp.org>
61416
61417         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61418         and other files.
61419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61420         if it's only a guess.
61421         * modules/memmem: Simplify by depending on memmem-simple.
61422
61423 2008-01-09  Bruno Haible  <bruno@clisp.org>
61424
61425         Work around OpenBSD 4.0 tdelete() bug.
61426         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61427         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61428         macros and don't redefine the enum values.
61429         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61430         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61431         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61432
61433 2008-01-09  Bruno Haible  <bruno@clisp.org>
61434
61435         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61436         (main): Don't perform the tests if setlocale did not install a UTF-8
61437         locale. Needed on OpenBSD 4.0.
61438         * modules/wcwidth-tests (Depends-on): Add localcharset.
61439
61440 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61441
61442         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61443         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61444         * NEWS: announce this.
61445         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61446
61447 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61448         and Eric Blake  <ebb9@byu.net>
61449
61450         Add memmem-simple module.
61451         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61452         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61453         * modules/memmem-simple: New file.
61454         * modules/memmem (Description): Tweak.
61455         * MODULES.html.sh (string handling): Mention new module.
61456         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61457         addressed by memmem-simple.
61458         * NEWS: Document the difference.
61459
61460 2008-01-09  Eric Blake  <ebb9@byu.net>
61461
61462         Give gcc some memmem optimization hints.
61463         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61464         (strcasestr): Declare as pure.
61465         * modules/memmem (Maintainer): Claim my implementation.
61466
61467 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61468
61469         Support AIX 6.1 and higher.
61470         * build-aux/config.libpath: Likewise.
61471         * build-aux/config.rpath: Likewise.
61472
61473 2008-01-08  Jim Meyering  <meyering@redhat.com>
61474             Bruno Haible  <bruno@clisp.org>
61475
61476         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61477         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61478         Reported by Peter Fales in
61479         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61480
61481 2008-01-08  Bruno Haible  <bruno@clisp.org>
61482
61483         * modules/unictype/category-of (Depends-on): Add
61484         unictype/category-none.
61485         * modules/unictype/category-and-tests (Depends-on): Add
61486         unictype/category-{L,N,Lu,Nd}.
61487         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61488         * modules/unictype/category-or-tests (Depends-on): Add
61489         unictype/category-{L,N}.
61490         * modules/unictype/category-name-tests (Depends-on): Add
61491         unictype/category-{Z,Nl}.
61492         Reported by Simon Josefsson.
61493
61494 2008-01-08  Bruno Haible  <bruno@clisp.org>
61495
61496         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61497         convention better.
61498         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61499         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61500         Reported by Peter Miller <millerp@canb.auug.org.au>.
61501
61502 2008-01-08  Eric Blake  <ebb9@byu.net>
61503
61504         Rewrite memmem to guarantee linear complexity without malloc.
61505         * lib/memmem.c (memmem): Use Two-Way rather than
61506         Knuth-Morris-Pratt, to allow O(1) space usage.
61507         (critical_factorization, two_way_short_needle)
61508         (two_way_long_needle): New functions.
61509         (knuth_morris_pratt): Delete.
61510         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61511         Add stdint.
61512         * tests/test-memmem.c (main): Add tests for periodic needle and
61513         sublinear performance.
61514         * doc/functions/memmem.texi (memmem): Document other deficiencies
61515         in cygwin and older glibc.
61516
61517 2008-01-08  Bruno Haible  <bruno@clisp.org>
61518
61519         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61520         augmentation.
61521
61522 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61523
61524         Add a configure time option: --disable-acl.
61525         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61526         AC_ARG_ENABLE(acl).
61527
61528 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61529
61530         * tests/test-localename.c: Don't include obsolete "setenv.h".
61531
61532         * modules/localename-tests (Depends-on): Need unsetenv.
61533
61534 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61535
61536         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61537
61538 2008-01-06  Colin Watson  <cjwatson@debian.org>
61539
61540         * users.txt: Add man-db.
61541
61542 2008-01-07  Bruno Haible  <bruno@clisp.org>
61543
61544         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61545         previous section name.
61546
61547 2008-01-07  Bruno Haible  <bruno@clisp.org>
61548
61549         * lib/progname.c (set_program_name): Don't strip off a leading
61550         "lt-" prefix outside a .libs directory.
61551         Suggested by Paul Eggert.
61552
61553 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61554             Bruno Haible  <bruno@clisp.org>
61555
61556         Improve memory cleanup in 'relocatable' module.
61557         * lib/relocatable.h (compute_curr_prefix): Change return type to
61558         'char *'.
61559         * lib/relocatable.c (compute_curr_prefix): Change return type to
61560         'char *'. Free curr_installdir after use.
61561         (relocate): Free curr_prefix_better after use.
61562         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61563
61564 2008-01-01  Bruno Haible  <bruno@clisp.org>
61565
61566         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61567         failure on older glibc systems.
61568         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61569
61570 2008-01-05  Eric Blake  <ebb9@byu.net>
61571
61572         Avoid quadratic system memmem.
61573         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61574         Reported by Ralf Wildenhues.
61575
61576         Fix memmem test for mingw.
61577         * modules/memmem-tests (configure.ac): Check for alarm.
61578         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61579         it.
61580         * doc/functions/memmem.texi: New file.
61581         * doc/gnulib.texi (Function Substitutes): Add memmem.
61582         Reported by Bruno Haible.
61583
61584 2008-01-04  Bruno Haible  <bruno@clisp.org>
61585
61586         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61587         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61588         gl_HEADER_STRING_H_DEFAULTS.
61589
61590 2008-01-04  Eric Blake  <ebb9@byu.net>
61591
61592         Shorten duration of memmem test.
61593         * tests/test-memmem.c (main): Use alarm to declare failure if test
61594         is taking too long.
61595         Reported by Ralf Wildenhues.
61596
61597 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61598
61599         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61600         string, needed by strerror.
61601
61602 2008-01-03  Colin Watson  <cjwatson@debian.org>
61603             Bruno Haible  <bruno@clisp.org>
61604
61605         * doc/gnulib-tool.texi (Localization): New section.
61606
61607 2008-01-02  Bruno Haible  <bruno@clisp.org>
61608
61609         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61610         variables to 'unsigned char *' type.
61611         Reported by Paul Eggert.
61612
61613 2008-01-02  Jim Meyering  <jim@meyering.net>
61614
61615         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61616
61617 2007-12-31  Jim Meyering  <jim@meyering.net>
61618
61619         Avoid use of private FTS type name.
61620         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61621
61622 2007-12-30  Karl Berry  <karl@gnu.org>
61623
61624         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61625         work around defect in Texinfo and/or the standalone Info browser.
61626
61627 2007-12-30  Bruno Haible  <bruno@clisp.org>
61628
61629         Unify 5 copies of the KMP code.
61630         * lib/str-kmp.h: New file.
61631         * lib/c-strcasestr.c: Include str-kmp.h.
61632         (knuth_morris_pratt): Remove function.
61633         (c_strcasestr): Update.
61634         * lib/c-strstr.c: Include str-kmp.h.
61635         (knuth_morris_pratt): Remove function.
61636         (c_strcasestr): Update.
61637         * lib/mbscasestr.c: Include str-kmp.h.
61638         (knuth_morris_pratt_unibyte): Remove function.
61639         * lib/mbsstr.c: Include str-kmp.h.
61640         (knuth_morris_pratt_unibyte): Remove function.
61641         * lib/strcasestr.c: Include str-kmp.h.
61642         (knuth_morris_pratt): Remove function.
61643         (strcasestr): Update.
61644         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61645         * modules/c-strstr (Files): Likewise.
61646         * modules/mbscasestr (Files): Likewise.
61647         * modules/mbsstr (Files): Likewise.
61648         * modules/strcasestr (Files): Likewise.
61649         Suggested by Paul Eggert.
61650
61651 2007-12-30  Bruno Haible  <bruno@clisp.org>
61652
61653         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61654         defined.
61655
61656 2007-12-30  Bruno Haible  <bruno@clisp.org>
61657
61658         * lib/xmalloca.h: Include xalloc.h.
61659         (xnmalloca): New macro.
61660
61661 2007-12-30  Bruno Haible  <bruno@clisp.org>
61662
61663         * lib/malloca.h (nmalloca): New macro.
61664         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61665         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61666         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61667         knuth_morris_pratt_multibyte): Likewise.
61668         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61669         knuth_morris_pratt_multibyte): Likewise.
61670         * lib/memmem.c (knuth_morris_pratt): Likewise.
61671         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61672
61673 2007-12-25  Bruno Haible  <bruno@clisp.org>
61674
61675         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61676         * lib/glob.c: Don't include openat.h.
61677         (link_exists2_p): Add back the code that deals with the
61678         !GLOB_ALTDIRFUNC case.
61679         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61680         let it do the filename concatenation.
61681         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61682         * modules/glob (Depends-on): Remove openat.
61683
61684 2007-12-31  Bruno Haible  <bruno@clisp.org>
61685
61686         * modules/dirfd (License): Change to LGPLv2+.
61687         Approved by Jim Meyering.
61688
61689 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61690
61691         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61692         when multiplying M by sizeof (size_t).
61693
61694 2007-12-10  Martin Lambers  <marlam@marlam.de>
61695
61696         Override getpagesize on mingw.
61697         * lib/getpagesize.c: New file.
61698         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61699         * modules/getpagesize (Files): Add lib/getpagesize.c.
61700         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61702         REPLACE_GETPAGESIZE.
61703         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61704
61705 2007-12-25  Bruno Haible  <bruno@clisp.org>
61706
61707         * modules/localcharset (Notice): New field.
61708         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61709         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61710
61711 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61712             Bruno Haible  <bruno@clisp.org>
61713
61714         Avoid using the syntax symbol() in formatted documentation.
61715         * MODULES.html.sh (func_module): When replacing symbol() with a
61716         hyperlink, remove the parentheses. Show an error if some remain.
61717         Recognize and render the '...' syntax.
61718         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61719         Rework. Add paragraph about GCC's inlining.
61720         * doc/alloca.texi: Likewise.
61721         * doc/error.texi: Remove parentheses from symbol reference.
61722         * doc/gnulib-intro.texi: Likewise.
61723         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61724         * modules/fnmatch (Description): Reword to say "the ... function".
61725         * modules/full-read (Description): Likewise.
61726         * modules/full-write (Description): Likewise.
61727         * modules/safe-read (Description): Likewise.
61728         * modules/safe-write (Description): Likewise.
61729         * modules/strchrnul (Description): Likewise.
61730         * modules/trim (Description): Likewise.
61731         * modules/error (Description): Remove parentheses from symbol
61732         references.
61733         * modules/verror (Description): Likewise.
61734         Reported by Karl Berry.
61735
61736 2007-12-25  Bruno Haible  <bruno@clisp.org>
61737
61738         Fixup after 2007-10-16 commit.
61739         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61740
61741 2007-12-24  Bruno Haible  <bruno@clisp.org>
61742
61743         Make --enable-relocatable work with DESTDIR.
61744         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61745         to compute installdir from destprog.
61746         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61747         also set the RELOC_DESTDIR variable.
61748         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61749
61750 2007-12-24  Bruno Haible  <bruno@clisp.org>
61751
61752         Fix link error due to xalloc_die().
61753         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61754         of xreadlink.
61755         * lib/relocwrapper.c: Update comments.
61756         * build-aux/install-reloc: Remove xreadlink.c from file list.
61757         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61758         xreadlink.c.
61759         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61760
61761 2007-12-24  Bruno Haible  <bruno@clisp.org>
61762
61763         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61764         * lib/setenv.h: Remove file.
61765         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61766         lib/setenv.h.
61767         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61768         (Depends-on): Add stdlib.
61769         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61770         gl_FUNC_UNSETENV.
61771         (Include): Replace setenv.h with <stdlib.h>.
61772         * modules/unsetenv: New file.
61773         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61774         * lib/unsetenv.c: Include <stdlib.h> first.
61775         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61776         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61777         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61778         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61779         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61780         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61782         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61783         * doc/functions/unsetenv.texi: Update.
61784         * modules/xsetenv (Depends-on): Add unsetenv.
61785         * modules/getdate (Depends-on): Likewise.
61786         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61787         * lib/xsetenv.c: Don't include setenv.h.
61788         * lib/getdate.y: Likewise.
61789         * lib/relocwrapper.c: Likewise.
61790         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61791         (Depends-on): Add stdlib.
61792         * NEWS: Mention the changes.
61793         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61794
61795 2007-12-23  Bruno Haible  <bruno@clisp.org>
61796
61797         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61798         indentation.
61799
61800 2007-12-23  Bruno Haible  <bruno@clisp.org>
61801
61802         * lib/c-strcasestr.c: Add more comments.
61803         * lib/c-strstr.c: Likewise.
61804         * lib/mbscasestr.c: Likewise.
61805         * lib/mbsstr.c: Likewise.
61806         * lib/strcasestr.c: Likewise.
61807         * lib/memmem.c: Likewise.
61808
61809 2007-12-23  Bruno Haible  <bruno@clisp.org>
61810
61811         * tests/test-memmem.c: Include <string.h> first.
61812
61813 2007-12-22  Bruno Haible  <bruno@clisp.org>
61814
61815         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61816         the contents of $testsbase.
61817         Reported by Ralf Wildenhues.
61818
61819 2007-12-22  Bruno Haible  <bruno@clisp.org>
61820
61821         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61822         two variables local_ldadd_before, local_ldadd_last.
61823
61824 2007-12-20  Eric Blake  <ebb9@byu.net>
61825
61826         Work around circular library issue when cross-compiling.
61827         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61828         that progname.o does not need to pull in rpl_memcmp.
61829
61830 2007-12-19  Eric Blake  <ebb9@byu.net>
61831
61832         Fix memmem to avoid O(n^2) worst-case complexity.
61833         * lib/memmem.c (knuth_morris_pratt): New function.
61834         (memmem): Use it if first few naive iterations fail.
61835         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61836         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61837         * modules/memchr (License): Likewise.
61838         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61839         malloca.
61840         * tests/test-memmem.c: Rewrite, borrowing ideas from
61841         test-mbsstr1.c; the old version wouldn't even compile!
61842         * modules/memmem-tests: New file.
61843         * lib/string.in.h (rpl_memmem): Add declaration.
61844         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61846         REPLACE_MEMMEM.
61847
61848 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61849
61850         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61851         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61852         before any system include files, and undef after them all.  This
61853         should fix a problem on VMS reported by John E. Malmberg in
61854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61855
61856 2007-12-17  Eric Blake  <ebb9@byu.net>
61857
61858         Revert addition of verify, for BSD/OS.
61859         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61860         can't handle large files, for the sake of obsolete platforms.
61861         * modules/fseeko (Depends-on): Remove verify.
61862         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61863         * doc/functions/ftello.texi (ftello): Likewise.
61864         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61865         Reported by Larry Jones.
61866
61867 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61868
61869         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61870         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61871
61872 2007-12-17  Jim Meyering  <meyering@redhat.com>
61873
61874         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61875         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61876         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61877         * modules/getcwd (Depends-on): Add openat.
61878         Reported by Petr Salinger.
61879
61880 2007-12-17  Bruno Haible  <bruno@clisp.org>
61881
61882         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61883         avoid a segmentation fault of the configure test on x86_64 systems.
61884
61885 2007-12-15  Jim Meyering  <meyering@redhat.com>
61886
61887         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61888
61889 2007-12-13  Eric Blake  <ebb9@byu.net>
61890
61891         Another fseek test.
61892         * tests/test-fseek.c (main): Also test ungetc handling.
61893         * tests/test-fseeko.c (main): Likewise.
61894         * modules/fseeko (Depends-on): Add verify.
61895         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61896         large.
61897         Reported by Larry Jones.
61898
61899         Fix fseeko on mingw.
61900         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61901         seek.
61902
61903         Beef up fseek tests.
61904         * tests/test-fseek.c (main): Also test eof handling.
61905         * tests/test-fseeko.c (main): Likewise.
61906         Reported by Larry Jones.
61907
61908 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61909
61910         Fix fseeko on BSD-based platforms.
61911         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61912         successful seek.
61913
61914 2007-12-12  Eric Blake  <ebb9@byu.net>
61915
61916         Allow circular dependency of separate libtests.a
61917         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61918         when use_libtests.
61919
61920 2007-12-11  Eric Blake  <ebb9@byu.net>
61921
61922         Fix bug with -0.0L in previous patch.
61923         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61924         * tests/test-isnan.c (main): Also test on zeroes.
61925         * tests/test-isnanf.c (main): Likewise.
61926         * tests/test-isnanl.h (main): Likewise.
61927
61928         Detect pseudo-denormals on x86 even when cross-compiling.
61929         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61930         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61931         invalid bit patterns that happen to satisfy ==.
61932
61933         Avoid link failures with separate libtests.a.
61934         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61935         last, to satisfy circular dependencies.
61936
61937 2007-12-11  Eric Blake  <ebb9@byu.net>
61938         and Bruno Haible  <bruno@clisp.org>
61939
61940         Fix OpenBSD 4.0 <float.h> handling of long double.
61941         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61942         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61943         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61944
61945 2007-12-11  Jim Meyering  <meyering@redhat.com>
61946
61947         * users.txt: Add libvirt.
61948
61949         Support versions of autoconf prior to 2.59c.
61950         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61951         if it is not already defined.
61952
61953 2007-12-09  Bruno Haible  <bruno@clisp.org>
61954
61955         Let 'gnulib-tool --import' collect sources needed for the tests in
61956         tests/ rather than in lib/.
61957         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61958         argument. If true, add rules to generate libtests.a, and put libtests.a
61959         into $(LDADD). Consider source files in subdirectories and set
61960         uses_subdirs.
61961         (func_emit_initmacro_start, func_emit_initmacro_end,
61962         func_emit_initmacro_done): Pass all arguments explicitly.
61963         (func_import): Determine two module lists main_modules,
61964         testsrelated_modules. Determine use_libtests. Determine two variables
61965         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61966         instead of just sed_transform_lib_file. Determine two variables
61967         main_files and testsrelated_files. Compute 'files' as the union of
61968         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61969         func_add_or_update. In the generated gnulib-comp.m4, collect the
61970         object files for tests/ in different variables than those for lib/.
61971         Substitute LIBTESTS_LIBDEPS.
61972         (func_create_testdir): Combine the uses_subdirs results from
61973         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61974
61975 2007-12-09  Bruno Haible  <bruno@clisp.org>
61976
61977         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61978         the build-aux directory.
61979
61980 2007-12-09  Bruno Haible  <bruno@clisp.org>
61981
61982         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61983         introduced on 2006-09-09.
61984
61985 2007-12-07  Jim Meyering  <meyering@redhat.com>
61986
61987         Let these macros work also with autoconf-2.59.
61988         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61989         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61990         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61991
61992 2007-12-06  Jim Meyering  <meyering@redhat.com>
61993
61994         Avoid a configure-time syntax error in gl_FUNC_ACL.
61995         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61996         function in each branch, before testing the cache variable.
61997
61998 2007-12-04  Eric Blake  <ebb9@byu.net>
61999
62000         Make scripts executable.
62001         * build-aux/config.guess: Add execute permissions.
62002         * build-aux/config.sub: Likewise.
62003         * build-aux/gendocs.sh: Likewise.
62004
62005         Fix frexp on mingw.
62006         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62007         cross-compiling.
62008         * doc/functions/frexp.texi (frexp): Document the bug.
62009
62010         Make cygwin fseeko check more reliable.
62011         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62012         version numbers, rather than unrelated feature check.
62013         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62014         * doc/functions/ftello.texi (ftello): Likewise.
62015         Reported by Bruno Haible.
62016
62017         * m4/strerror.m4: Bump version number.
62018
62019 2007-12-03  Bruno Haible  <bruno@clisp.org>
62020
62021         * doc/functions/mprotect.texi: Mention the mingw problem.
62022
62023 2007-12-03  Eric Blake  <ebb9@byu.net>
62024
62025         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62026         REPLACE_STRERROR is initialized before this macro.
62027
62028 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62029
62030         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62031         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62032         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62033         put -lsec in even for programs other than 'ls'.  This fixes a problem
62034         for gettext reported by Bruno Haible in
62035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62036         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62037         Add support for Solaris 10.  This isn't efficient, but should get the
62038         job done for now.
62039
62040 2007-12-03  James Youngman  <jay@gnu.org>
62041
62042         * doc/regexprops-generic.texi: change "an close-group" to "a
62043         close-group" and "illegal" to "not allowed".
62044
62045 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62046
62047         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62048         pr_byname.h. Needed for the rare case when the maintainer has done
62049         "make maintainer-clean" in the source directory and then attempts a
62050         build outside the source directory.
62051         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62052         scripts_byname.h.
62053
62054 2007-12-02  Martin Lambers <marlam@marlam.de>
62055             Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/getpagesize.h: Remove file.
62058         * lib/unistd.in.h: Include declaration of getpagesize here.
62059         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62060         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62061         HAVE_SYS_PARAM_H.
62062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62063         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62064         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62065         (Depends-on): Add unistd.
62066         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62067         (Include): Use <unistd.h> instead of getpagesize.h.
62068         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62069         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62070         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62071         gl_GETPAGESIZE invocation, already handled by module dependency.
62072         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62073
62074 2007-12-02  Bruno Haible  <bruno@clisp.org>
62075
62076         * modules/strings-tests: New file.
62077         * tests/test-strings.c: New file.
62078
62079         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62080         * lib/strings.in.h: New file.
62081         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62082         * m4/strings_h.m4: New file.
62083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62084         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62085         * modules/strings: New file.
62086         * modules/string (Makefile.am): Update.
62087         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62088         Reported by Karl Berry.
62089
62090 2007-12-01  Eric Blake  <ebb9@byu.net>
62091
62092         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62093         accommodate fix in cygwin 1.5.25.
62094
62095 2007-12-01  Jim Meyering  <meyering@redhat.com>
62096
62097         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62098         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62099         that would inhibit utf8-optimization of a regexp containing line-
62100         or buffer-anchors, e.g., `^', `$'.
62101
62102 2007-11-30  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62105         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62106         glthread_recursive_lock_init.
62107         * lib/lock.c (glthread_recursive_lock_init)
62108         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62109         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62110
62111 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62112
62113         New function qset_acl, like set_acl but with syscall semantics.
62114         * lib/acl.h (qset_acl): New decl.
62115         * lib/acl.c (qset_acl): New function.
62116         (set_acl): Use new function.  Use more-consistent diagnostics.
62117
62118 2007-11-28  Jim Meyering  <meyering@redhat.com>
62119
62120         * modules/physmem (License): Change from GPL to LGPLv2+.
62121
62122 2007-11-26  Bruno Haible  <bruno@clisp.org>
62123
62124         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62125         'long double' type has excess precision.
62126         Reported by Jim Meyering in
62127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62128
62129 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62130
62131         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62132         Sync from <http://gnu.org/licenses>.
62133         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62134         with license text from same location.
62135         * doc/maintain.texi, doc/standards.texi:  Sync from
62136         <http://savannah.gnu.org/projects/gnustandards>.
62137
62138 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62139         and Jim Meyering  <meyering@redhat.com>
62140
62141         Adjust getdate' grammar to accept a slightly more regular language.
62142         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62143         Before, the former was rejected.
62144         * lib/getdate.y (digits_to_date_time): New function, factored
62145         out of ...
62146         (number): ...here.  Just call digits_to_date_time.
62147         (hybrid): New non-terminal to handle an <unsigned number,
62148         signed relative offset> sequence consistently.
62149
62150 2007-11-18  Jim Meyering  <meyering@redhat.com>
62151
62152         Pull my changes from coreutils:
62153         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62154         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62155         use of $gnulib_tool_option_extras, so that it's separated from the
62156         preceding argument.
62157
62158         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62159         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62160         parent destination directories before copying a file into place.
62161
62162 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62163
62164         bootstrap: work also with 4-argument variant of AC_INIT
62165         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62166
62167 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         Port test-getaddrinfo to Solaris.
62170         Problem reported by Bruno Haible in
62171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62172         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62173         explanation of setting 'hints'.
62174         Don't reject an implementation merely because it returns EAI_SERVICE.
62175         (EAI_SERVICE): Define to 0 if not defined.
62176
62177 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62178
62179         The license of gnu-make and posix-shell is now "GPLed build tool".
62180         * modules/gnu-make (License): Likewise.
62181         * modules/posix-shell (License): Likewise.
62182
62183         New module posix-shell, for determining a POSIX shell
62184         or perhaps something that is close enough to a POSIX shell.
62185         * m4/posix-shell.m4: New file.
62186         * modules/posix-shell: New file.
62187
62188         * MODULES.html.sh: Mention new module.
62189
62190         New module gnu-make, for determining whether we're using GNU Make.
62191         * m4/gnu-make.m4: New file.
62192         * modules/gnu-make: New file.
62193         * MODULES.html.sh: Mention new module.
62194
62195 2007-11-14  Jim Meyering  <meyering@redhat.com>
62196
62197         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62198         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62199         use this macro to create a function _definition_.
62200         Remove useless "#undef ARGMATCH_DIE".
62201
62202 2007-11-14  Bruno Haible  <bruno@clisp.org>
62203
62204         * lib/config.charset: Update for OpenBSD 4.1.
62205         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62206
62207 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62208
62209         Document 64-bit #if problems in stdint.texi.
62210         * doc/headers/stdint.texi (stdint.h): Mention problems with
62211         64-bit-#if, and how to work around them.
62212
62213         Don't insist on 'long long int' support in the preprocessor.  It
62214         breaks too many things.  For example, PRIdMAX still uses a 'long
62215         long int' format with the latest Sun compiler, even though
62216         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62217         preprocessor problem.  This causes the latest coreutils to dump
62218         core on Solaris 10 sparc with the Sun C compiler.
62219         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62220         the troublesome expressions at configure-time, not at #if-time.
62221         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62222         preprocessor.
62223         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62224         compile-time C checks, done at 'configure'-time.
62225         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62226         * modules/inttypes (Makefile): Substitute the new symbols that
62227         gl_INTTYPES_H now generates.
62228         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62229
62230 2007-11-12  Bruno Haible  <bruno@clisp.org>
62231
62232         Tests for Unicode character classification functions.
62233
62234         * modules/unictype/bidicategory-byname-tests: New file.
62235         * modules/unictype/bidicategory-name-tests: New file.
62236         * modules/unictype/bidicategory-of-tests: New file.
62237         * modules/unictype/bidicategory-test-tests: New file.
62238         * modules/unictype/block-list-tests: New file.
62239         * modules/unictype/block-of-tests: New file.
62240         * modules/unictype/block-test-tests: New file.
62241         * modules/unictype/category-C-tests: New file.
62242         * modules/unictype/category-Cc-tests: New file.
62243         * modules/unictype/category-Cf-tests: New file.
62244         * modules/unictype/category-Cn-tests: New file.
62245         * modules/unictype/category-Co-tests: New file.
62246         * modules/unictype/category-Cs-tests: New file.
62247         * modules/unictype/category-L-tests: New file.
62248         * modules/unictype/category-Ll-tests: New file.
62249         * modules/unictype/category-Lm-tests: New file.
62250         * modules/unictype/category-Lo-tests: New file.
62251         * modules/unictype/category-Lt-tests: New file.
62252         * modules/unictype/category-Lu-tests: New file.
62253         * modules/unictype/category-M-tests: New file.
62254         * modules/unictype/category-Mc-tests: New file.
62255         * modules/unictype/category-Me-tests: New file.
62256         * modules/unictype/category-Mn-tests: New file.
62257         * modules/unictype/category-N-tests: New file.
62258         * modules/unictype/category-Nd-tests: New file.
62259         * modules/unictype/category-Nl-tests: New file.
62260         * modules/unictype/category-No-tests: New file.
62261         * modules/unictype/category-P-tests: New file.
62262         * modules/unictype/category-Pc-tests: New file.
62263         * modules/unictype/category-Pd-tests: New file.
62264         * modules/unictype/category-Pe-tests: New file.
62265         * modules/unictype/category-Pf-tests: New file.
62266         * modules/unictype/category-Pi-tests: New file.
62267         * modules/unictype/category-Po-tests: New file.
62268         * modules/unictype/category-Ps-tests: New file.
62269         * modules/unictype/category-S-tests: New file.
62270         * modules/unictype/category-Sc-tests: New file.
62271         * modules/unictype/category-Sk-tests: New file.
62272         * modules/unictype/category-Sm-tests: New file.
62273         * modules/unictype/category-So-tests: New file.
62274         * modules/unictype/category-Z-tests: New file.
62275         * modules/unictype/category-Zl-tests: New file.
62276         * modules/unictype/category-Zp-tests: New file.
62277         * modules/unictype/category-Zs-tests: New file.
62278         * modules/unictype/category-and-not-tests: New file.
62279         * modules/unictype/category-and-tests: New file.
62280         * modules/unictype/category-byname-tests: New file.
62281         * modules/unictype/category-name-tests: New file.
62282         * modules/unictype/category-none-tests: New file.
62283         * modules/unictype/category-of-tests: New file.
62284         * modules/unictype/category-or-tests: New file.
62285         * modules/unictype/category-test-withtable-tests: New file.
62286         * modules/unictype/combining-class-tests: New file.
62287         * modules/unictype/ctype-alnum-tests: New file.
62288         * modules/unictype/ctype-alpha-tests: New file.
62289         * modules/unictype/ctype-blank-tests: New file.
62290         * modules/unictype/ctype-cntrl-tests: New file.
62291         * modules/unictype/ctype-digit-tests: New file.
62292         * modules/unictype/ctype-graph-tests: New file.
62293         * modules/unictype/ctype-lower-tests: New file.
62294         * modules/unictype/ctype-print-tests: New file.
62295         * modules/unictype/ctype-punct-tests: New file.
62296         * modules/unictype/ctype-space-tests: New file.
62297         * modules/unictype/ctype-upper-tests: New file.
62298         * modules/unictype/ctype-xdigit-tests: New file.
62299         * modules/unictype/decimal-digit-tests: New file.
62300         * modules/unictype/digit-tests: New file.
62301         * modules/unictype/mirror-tests: New file.
62302         * modules/unictype/numeric-tests: New file.
62303         * modules/unictype/property-alphabetic-tests: New file.
62304         * modules/unictype/property-ascii-hex-digit-tests: New file.
62305         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62306         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62307         * modules/unictype/property-bidi-block-separator-tests: New file.
62308         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62309         * modules/unictype/property-bidi-common-separator-tests: New file.
62310         * modules/unictype/property-bidi-control-tests: New file.
62311         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62312         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62313         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62314         * modules/unictype/property-bidi-european-digit-tests: New file.
62315         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62316         * modules/unictype/property-bidi-left-to-right-tests: New file.
62317         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62318         * modules/unictype/property-bidi-other-neutral-tests: New file.
62319         * modules/unictype/property-bidi-pdf-tests: New file.
62320         * modules/unictype/property-bidi-segment-separator-tests: New file.
62321         * modules/unictype/property-bidi-whitespace-tests: New file.
62322         * modules/unictype/property-byname-tests: New file.
62323         * modules/unictype/property-combining-tests: New file.
62324         * modules/unictype/property-composite-tests: New file.
62325         * modules/unictype/property-currency-symbol-tests: New file.
62326         * modules/unictype/property-dash-tests: New file.
62327         * modules/unictype/property-decimal-digit-tests: New file.
62328         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62329         * modules/unictype/property-deprecated-tests: New file.
62330         * modules/unictype/property-diacritic-tests: New file.
62331         * modules/unictype/property-extender-tests: New file.
62332         * modules/unictype/property-format-control-tests: New file.
62333         * modules/unictype/property-grapheme-base-tests: New file.
62334         * modules/unictype/property-grapheme-extend-tests: New file.
62335         * modules/unictype/property-grapheme-link-tests: New file.
62336         * modules/unictype/property-hex-digit-tests: New file.
62337         * modules/unictype/property-hyphen-tests: New file.
62338         * modules/unictype/property-id-continue-tests: New file.
62339         * modules/unictype/property-id-start-tests: New file.
62340         * modules/unictype/property-ideographic-tests: New file.
62341         * modules/unictype/property-ids-binary-operator-tests: New file.
62342         * modules/unictype/property-ids-trinary-operator-tests: New file.
62343         * modules/unictype/property-ignorable-control-tests: New file.
62344         * modules/unictype/property-iso-control-tests: New file.
62345         * modules/unictype/property-join-control-tests: New file.
62346         * modules/unictype/property-left-of-pair-tests: New file.
62347         * modules/unictype/property-line-separator-tests: New file.
62348         * modules/unictype/property-logical-order-exception-tests: New file.
62349         * modules/unictype/property-lowercase-tests: New file.
62350         * modules/unictype/property-math-tests: New file.
62351         * modules/unictype/property-non-break-tests: New file.
62352         * modules/unictype/property-not-a-character-tests: New file.
62353         * modules/unictype/property-numeric-tests: New file.
62354         * modules/unictype/property-other-alphabetic-tests: New file.
62355         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62356         * modules/unictype/property-other-grapheme-extend-tests: New file.
62357         * modules/unictype/property-other-id-continue-tests: New file.
62358         * modules/unictype/property-other-id-start-tests: New file.
62359         * modules/unictype/property-other-lowercase-tests: New file.
62360         * modules/unictype/property-other-math-tests: New file.
62361         * modules/unictype/property-other-uppercase-tests: New file.
62362         * modules/unictype/property-paired-punctuation-tests: New file.
62363         * modules/unictype/property-paragraph-separator-tests: New file.
62364         * modules/unictype/property-pattern-syntax-tests: New file.
62365         * modules/unictype/property-pattern-white-space-tests: New file.
62366         * modules/unictype/property-private-use-tests: New file.
62367         * modules/unictype/property-punctuation-tests: New file.
62368         * modules/unictype/property-quotation-mark-tests: New file.
62369         * modules/unictype/property-radical-tests: New file.
62370         * modules/unictype/property-sentence-terminal-tests: New file.
62371         * modules/unictype/property-soft-dotted-tests: New file.
62372         * modules/unictype/property-space-tests: New file.
62373         * modules/unictype/property-terminal-punctuation-tests: New file.
62374         * modules/unictype/property-test-tests: New file.
62375         * modules/unictype/property-titlecase-tests: New file.
62376         * modules/unictype/property-unassigned-code-value-tests: New file.
62377         * modules/unictype/property-unified-ideograph-tests: New file.
62378         * modules/unictype/property-uppercase-tests: New file.
62379         * modules/unictype/property-variation-selector-tests: New file.
62380         * modules/unictype/property-white-space-tests: New file.
62381         * modules/unictype/property-xid-continue-tests: New file.
62382         * modules/unictype/property-xid-start-tests: New file.
62383         * modules/unictype/property-zero-width-tests: New file.
62384         * modules/unictype/scripts-tests: New file.
62385         * modules/unictype/syntax-c-ident-tests: New file.
62386         * modules/unictype/syntax-c-whitespace-tests: New file.
62387         * modules/unictype/syntax-java-ident-tests: New file.
62388         * modules/unictype/syntax-java-whitespace-tests: New file.
62389         * tests/unictype/test-bidi_byname.c: New file.
62390         * tests/unictype/test-bidi_name.c: New file.
62391         * tests/unictype/test-bidi_of.c: New file.
62392         * tests/unictype/test-bidi_test.c: New file.
62393         * tests/unictype/test-block_list.c: New file.
62394         * tests/unictype/test-block_of.c: New file.
62395         * tests/unictype/test-block_test.c: New file.
62396         * tests/unictype/test-categ_and.c: New file.
62397         * tests/unictype/test-categ_and_not.c: New file.
62398         * tests/unictype/test-categ_byname.c: New file.
62399         * tests/unictype/test-categ_name.c: New file.
62400         * tests/unictype/test-categ_none.c: New file.
62401         * tests/unictype/test-categ_of.c: New file.
62402         * tests/unictype/test-categ_or.c: New file.
62403         * tests/unictype/test-categ_test_withtable.c: New file.
62404         * tests/unictype/test-combining.c: New file.
62405         * tests/unictype/test-decdigit.c: New file.
62406         * tests/unictype/test-digit.c: New file.
62407         * tests/unictype/test-mirror.c: New file.
62408         * tests/unictype/test-numeric.c: New file.
62409         * tests/unictype/test-pr_byname.c: New file.
62410         * tests/unictype/test-pr_test.c: New file.
62411         * tests/unictype/test-predicate-part1.h: New file.
62412         * tests/unictype/test-predicate-part2.h: New file.
62413         * tests/unictype/test-scripts.c: New file.
62414         * tests/unictype/test-sy_c_ident.c: New file.
62415         * tests/unictype/test-sy_java_ident.c: New file.
62416
62417         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62418         for Unicode 5.0.0.
62419         * tests/unictype/test-categ_Cc.c: Likewise.
62420         * tests/unictype/test-categ_Cf.c: Likewise.
62421         * tests/unictype/test-categ_Cn.c: Likewise.
62422         * tests/unictype/test-categ_Co.c: Likewise.
62423         * tests/unictype/test-categ_Cs.c: Likewise.
62424         * tests/unictype/test-categ_L.c: Likewise.
62425         * tests/unictype/test-categ_Ll.c: Likewise.
62426         * tests/unictype/test-categ_Lm.c: Likewise.
62427         * tests/unictype/test-categ_Lo.c: Likewise.
62428         * tests/unictype/test-categ_Lt.c: Likewise.
62429         * tests/unictype/test-categ_Lu.c: Likewise.
62430         * tests/unictype/test-categ_M.c: Likewise.
62431         * tests/unictype/test-categ_Mc.c: Likewise.
62432         * tests/unictype/test-categ_Me.c: Likewise.
62433         * tests/unictype/test-categ_Mn.c: Likewise.
62434         * tests/unictype/test-categ_N.c: Likewise.
62435         * tests/unictype/test-categ_Nd.c: Likewise.
62436         * tests/unictype/test-categ_Nl.c: Likewise.
62437         * tests/unictype/test-categ_No.c: Likewise.
62438         * tests/unictype/test-categ_P.c: Likewise.
62439         * tests/unictype/test-categ_Pc.c: Likewise.
62440         * tests/unictype/test-categ_Pd.c: Likewise.
62441         * tests/unictype/test-categ_Pe.c: Likewise.
62442         * tests/unictype/test-categ_Pf.c: Likewise.
62443         * tests/unictype/test-categ_Pi.c: Likewise.
62444         * tests/unictype/test-categ_Po.c: Likewise.
62445         * tests/unictype/test-categ_Ps.c: Likewise.
62446         * tests/unictype/test-categ_S.c: Likewise.
62447         * tests/unictype/test-categ_Sc.c: Likewise.
62448         * tests/unictype/test-categ_Sk.c: Likewise.
62449         * tests/unictype/test-categ_Sm.c: Likewise.
62450         * tests/unictype/test-categ_So.c: Likewise.
62451         * tests/unictype/test-categ_Z.c: Likewise.
62452         * tests/unictype/test-categ_Zl.c: Likewise.
62453         * tests/unictype/test-categ_Zp.c: Likewise.
62454         * tests/unictype/test-categ_Zs.c: Likewise.
62455         * tests/unictype/test-ctype_alnum.c: Likewise.
62456         * tests/unictype/test-ctype_alpha.c: Likewise.
62457         * tests/unictype/test-ctype_blank.c: Likewise.
62458         * tests/unictype/test-ctype_cntrl.c: Likewise.
62459         * tests/unictype/test-ctype_digit.c: Likewise.
62460         * tests/unictype/test-ctype_graph.c: Likewise.
62461         * tests/unictype/test-ctype_lower.c: Likewise.
62462         * tests/unictype/test-ctype_print.c: Likewise.
62463         * tests/unictype/test-ctype_punct.c: Likewise.
62464         * tests/unictype/test-ctype_space.c: Likewise.
62465         * tests/unictype/test-ctype_upper.c: Likewise.
62466         * tests/unictype/test-ctype_xdigit.c: Likewise.
62467         * tests/unictype/test-decdigit.h: Likewise.
62468         * tests/unictype/test-digit.h: Likewise.
62469         * tests/unictype/test-numeric.h: Likewise.
62470         * tests/unictype/test-pr_alphabetic.c: Likewise.
62471         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62472         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62473         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62474         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62475         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62476         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62477         * tests/unictype/test-pr_bidi_control.c: Likewise.
62478         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62479         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62480         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62481         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62482         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62483         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62484         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62485         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62486         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62487         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62488         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62489         * tests/unictype/test-pr_combining.c: Likewise.
62490         * tests/unictype/test-pr_composite.c: Likewise.
62491         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62492         * tests/unictype/test-pr_dash.c: Likewise.
62493         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62494         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62495         * tests/unictype/test-pr_deprecated.c: Likewise.
62496         * tests/unictype/test-pr_diacritic.c: Likewise.
62497         * tests/unictype/test-pr_extender.c: Likewise.
62498         * tests/unictype/test-pr_format_control.c: Likewise.
62499         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62500         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62501         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62502         * tests/unictype/test-pr_hex_digit.c: Likewise.
62503         * tests/unictype/test-pr_hyphen.c: Likewise.
62504         * tests/unictype/test-pr_id_continue.c: Likewise.
62505         * tests/unictype/test-pr_id_start.c: Likewise.
62506         * tests/unictype/test-pr_ideographic.c: Likewise.
62507         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62508         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62509         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62510         * tests/unictype/test-pr_iso_control.c: Likewise.
62511         * tests/unictype/test-pr_join_control.c: Likewise.
62512         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62513         * tests/unictype/test-pr_line_separator.c: Likewise.
62514         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62515         * tests/unictype/test-pr_lowercase.c: Likewise.
62516         * tests/unictype/test-pr_math.c: Likewise.
62517         * tests/unictype/test-pr_non_break.c: Likewise.
62518         * tests/unictype/test-pr_not_a_character.c: Likewise.
62519         * tests/unictype/test-pr_numeric.c: Likewise.
62520         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62521         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62522         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62523         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62524         * tests/unictype/test-pr_other_id_start.c: Likewise.
62525         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62526         * tests/unictype/test-pr_other_math.c: Likewise.
62527         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62528         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62529         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62530         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62531         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62532         * tests/unictype/test-pr_private_use.c: Likewise.
62533         * tests/unictype/test-pr_punctuation.c: Likewise.
62534         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62535         * tests/unictype/test-pr_radical.c: Likewise.
62536         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62537         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62538         * tests/unictype/test-pr_space.c: Likewise.
62539         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62540         * tests/unictype/test-pr_titlecase.c: Likewise.
62541         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62542         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62543         * tests/unictype/test-pr_uppercase.c: Likewise.
62544         * tests/unictype/test-pr_variation_selector.c: Likewise.
62545         * tests/unictype/test-pr_white_space.c: Likewise.
62546         * tests/unictype/test-pr_xid_continue.c: Likewise.
62547         * tests/unictype/test-pr_xid_start.c: Likewise.
62548         * tests/unictype/test-pr_zero_width.c: Likewise.
62549         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62550         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62551
62552 2007-11-12  Bruno Haible  <bruno@clisp.org>
62553
62554         Unicode character classification functions.
62555         * lib/unictype.h: New file.
62556         * modules/unictype/base: New file.
62557         * modules/unictype/category-L: New file.
62558         * modules/unictype/category-Lu: New file.
62559         * modules/unictype/category-Ll: New file.
62560         * modules/unictype/category-Lt: New file.
62561         * modules/unictype/category-Lm: New file.
62562         * modules/unictype/category-Lo: New file.
62563         * modules/unictype/category-M: New file.
62564         * modules/unictype/category-Mn: New file.
62565         * modules/unictype/category-Mc: New file.
62566         * modules/unictype/category-Me: New file.
62567         * modules/unictype/category-N: New file.
62568         * modules/unictype/category-Nd: New file.
62569         * modules/unictype/category-Nl: New file.
62570         * modules/unictype/category-No: New file.
62571         * modules/unictype/category-P: New file.
62572         * modules/unictype/category-Pc: New file.
62573         * modules/unictype/category-Pd: New file.
62574         * modules/unictype/category-Ps: New file.
62575         * modules/unictype/category-Pe: New file.
62576         * modules/unictype/category-Pi: New file.
62577         * modules/unictype/category-Pf: New file.
62578         * modules/unictype/category-Po: New file.
62579         * modules/unictype/category-S: New file.
62580         * modules/unictype/category-Sm: New file.
62581         * modules/unictype/category-Sc: New file.
62582         * modules/unictype/category-Sk: New file.
62583         * modules/unictype/category-So: New file.
62584         * modules/unictype/category-Z: New file.
62585         * modules/unictype/category-Zs: New file.
62586         * modules/unictype/category-Zl: New file.
62587         * modules/unictype/category-Zp: New file.
62588         * modules/unictype/category-C: New file.
62589         * modules/unictype/category-Cc: New file.
62590         * modules/unictype/category-Cf: New file.
62591         * modules/unictype/category-Cs: New file.
62592         * modules/unictype/category-Co: New file.
62593         * modules/unictype/category-Cn: New file.
62594         * modules/unictype/category-or: New file.
62595         * modules/unictype/category-of: New file.
62596         * modules/unictype/category-test: New file.
62597         * modules/unictype/category-test-withtable: New file.
62598         * modules/unictype/category-byname: New file.
62599         * modules/unictype/category-none: New file.
62600         * modules/unictype/category-and: New file.
62601         * modules/unictype/category-and-not: New file.
62602         * modules/unictype/category-name: New file.
62603         * modules/unictype/combining-class: New file.
62604         * modules/unictype/category-all: New file.
62605         * modules/unictype/bidicategory-all: New file.
62606         * modules/unictype/bidicategory-byname: New file.
62607         * modules/unictype/bidicategory-name: New file.
62608         * modules/unictype/bidicategory-of: New file.
62609         * modules/unictype/bidicategory-test: New file.
62610         * modules/unictype/decimal-digit: New file.
62611         * modules/unictype/digit: New file.
62612         * modules/unictype/numeric: New file.
62613         * modules/unictype/mirror: New file.
62614         * modules/unictype/property-white-space: New file.
62615         * modules/unictype/property-alphabetic: New file.
62616         * modules/unictype/property-other-alphabetic: New file.
62617         * modules/unictype/property-not-a-character: New file.
62618         * modules/unictype/property-default-ignorable-code-point: New file.
62619         * modules/unictype/property-other-default-ignorable-code-point: New
62620         file.
62621         * modules/unictype/property-deprecated: New file.
62622         * modules/unictype/property-logical-order-exception: New file.
62623         * modules/unictype/property-variation-selector: New file.
62624         * modules/unictype/property-private-use: New file.
62625         * modules/unictype/property-unassigned-code-value: New file.
62626         * modules/unictype/property-uppercase: New file.
62627         * modules/unictype/property-other-uppercase: New file.
62628         * modules/unictype/property-lowercase: New file.
62629         * modules/unictype/property-other-lowercase: New file.
62630         * modules/unictype/property-titlecase: New file.
62631         * modules/unictype/property-soft-dotted: New file.
62632         * modules/unictype/property-id-start: New file.
62633         * modules/unictype/property-other-id-start: New file.
62634         * modules/unictype/property-id-continue: New file.
62635         * modules/unictype/property-other-id-continue: New file.
62636         * modules/unictype/property-xid-start: New file.
62637         * modules/unictype/property-xid-continue: New file.
62638         * modules/unictype/property-pattern-white-space: New file.
62639         * modules/unictype/property-pattern-syntax: New file.
62640         * modules/unictype/property-join-control: New file.
62641         * modules/unictype/property-grapheme-base: New file.
62642         * modules/unictype/property-grapheme-extend: New file.
62643         * modules/unictype/property-other-grapheme-extend: New file.
62644         * modules/unictype/property-grapheme-link: New file.
62645         * modules/unictype/property-bidi-control: New file.
62646         * modules/unictype/property-bidi-left-to-right: New file.
62647         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62648         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62649         * modules/unictype/property-bidi-european-digit: New file.
62650         * modules/unictype/property-bidi-eur-num-separator: New file.
62651         * modules/unictype/property-bidi-eur-num-terminator: New file.
62652         * modules/unictype/property-bidi-arabic-digit: New file.
62653         * modules/unictype/property-bidi-common-separator: New file.
62654         * modules/unictype/property-bidi-block-separator: New file.
62655         * modules/unictype/property-bidi-segment-separator: New file.
62656         * modules/unictype/property-bidi-whitespace: New file.
62657         * modules/unictype/property-bidi-non-spacing-mark: New file.
62658         * modules/unictype/property-bidi-boundary-neutral: New file.
62659         * modules/unictype/property-bidi-pdf: New file.
62660         * modules/unictype/property-bidi-embedding-or-override: New file.
62661         * modules/unictype/property-bidi-other-neutral: New file.
62662         * modules/unictype/property-hex-digit: New file.
62663         * modules/unictype/property-ascii-hex-digit: New file.
62664         * modules/unictype/property-ideographic: New file.
62665         * modules/unictype/property-unified-ideograph: New file.
62666         * modules/unictype/property-radical: New file.
62667         * modules/unictype/property-ids-binary-operator: New file.
62668         * modules/unictype/property-ids-trinary-operator: New file.
62669         * modules/unictype/property-zero-width: New file.
62670         * modules/unictype/property-space: New file.
62671         * modules/unictype/property-non-break: New file.
62672         * modules/unictype/property-iso-control: New file.
62673         * modules/unictype/property-format-control: New file.
62674         * modules/unictype/property-dash: New file.
62675         * modules/unictype/property-hyphen: New file.
62676         * modules/unictype/property-punctuation: New file.
62677         * modules/unictype/property-line-separator: New file.
62678         * modules/unictype/property-paragraph-separator: New file.
62679         * modules/unictype/property-quotation-mark: New file.
62680         * modules/unictype/property-sentence-terminal: New file.
62681         * modules/unictype/property-terminal-punctuation: New file.
62682         * modules/unictype/property-currency-symbol: New file.
62683         * modules/unictype/property-math: New file.
62684         * modules/unictype/property-other-math: New file.
62685         * modules/unictype/property-paired-punctuation: New file.
62686         * modules/unictype/property-left-of-pair: New file.
62687         * modules/unictype/property-combining: New file.
62688         * modules/unictype/property-composite: New file.
62689         * modules/unictype/property-decimal-digit: New file.
62690         * modules/unictype/property-numeric: New file.
62691         * modules/unictype/property-diacritic: New file.
62692         * modules/unictype/property-extender: New file.
62693         * modules/unictype/property-ignorable-control: New file.
62694         * modules/unictype/property-test: New file.
62695         * modules/unictype/property-byname: New file.
62696         * modules/unictype/property-all: New file.
62697         * modules/unictype/scripts: New file.
62698         * modules/unictype/scripts-all: New file.
62699         * modules/unictype/block-of: New file.
62700         * modules/unictype/block-test: New file.
62701         * modules/unictype/block-list: New file.
62702         * modules/unictype/block-all: New file.
62703         * modules/unictype/syntax-c-whitespace: New file.
62704         * modules/unictype/syntax-java-whitespace: New file.
62705         * modules/unictype/syntax-c-ident: New file.
62706         * modules/unictype/syntax-java-ident: New file.
62707         * modules/unictype/ctype-alnum: New file.
62708         * modules/unictype/ctype-alpha: New file.
62709         * modules/unictype/ctype-cntrl: New file.
62710         * modules/unictype/ctype-digit: New file.
62711         * modules/unictype/ctype-graph: New file.
62712         * modules/unictype/ctype-lower: New file.
62713         * modules/unictype/ctype-print: New file.
62714         * modules/unictype/ctype-punct: New file.
62715         * modules/unictype/ctype-space: New file.
62716         * modules/unictype/ctype-upper: New file.
62717         * modules/unictype/ctype-xdigit: New file.
62718         * modules/unictype/ctype-blank: New file.
62719         * lib/unictype/bidi_byname.c: New file.
62720         * lib/unictype/bidi_name.c: New file.
62721         * lib/unictype/bidi_of.c: New file.
62722         * lib/unictype/bidi_test.c: New file.
62723         * lib/unictype/bitmap.h: New file.
62724         * lib/unictype/block_test.c: New file.
62725         * lib/unictype/blocks.c: New file.
62726         * lib/unictype/categ_C.c: New file.
62727         * lib/unictype/categ_Cc.c: New file.
62728         * lib/unictype/categ_Cf.c: New file.
62729         * lib/unictype/categ_Cn.c: New file.
62730         * lib/unictype/categ_Co.c: New file.
62731         * lib/unictype/categ_Cs.c: New file.
62732         * lib/unictype/categ_L.c: New file.
62733         * lib/unictype/categ_Ll.c: New file.
62734         * lib/unictype/categ_Lm.c: New file.
62735         * lib/unictype/categ_Lo.c: New file.
62736         * lib/unictype/categ_Lt.c: New file.
62737         * lib/unictype/categ_Lu.c: New file.
62738         * lib/unictype/categ_M.c: New file.
62739         * lib/unictype/categ_Mc.c: New file.
62740         * lib/unictype/categ_Me.c: New file.
62741         * lib/unictype/categ_Mn.c: New file.
62742         * lib/unictype/categ_N.c: New file.
62743         * lib/unictype/categ_Nd.c: New file.
62744         * lib/unictype/categ_Nl.c: New file.
62745         * lib/unictype/categ_No.c: New file.
62746         * lib/unictype/categ_P.c: New file.
62747         * lib/unictype/categ_Pc.c: New file.
62748         * lib/unictype/categ_Pd.c: New file.
62749         * lib/unictype/categ_Pe.c: New file.
62750         * lib/unictype/categ_Pf.c: New file.
62751         * lib/unictype/categ_Pi.c: New file.
62752         * lib/unictype/categ_Po.c: New file.
62753         * lib/unictype/categ_Ps.c: New file.
62754         * lib/unictype/categ_S.c: New file.
62755         * lib/unictype/categ_Sc.c: New file.
62756         * lib/unictype/categ_Sk.c: New file.
62757         * lib/unictype/categ_Sm.c: New file.
62758         * lib/unictype/categ_So.c: New file.
62759         * lib/unictype/categ_Z.c: New file.
62760         * lib/unictype/categ_Zl.c: New file.
62761         * lib/unictype/categ_Zp.c: New file.
62762         * lib/unictype/categ_Zs.c: New file.
62763         * lib/unictype/categ_and.c: New file.
62764         * lib/unictype/categ_and_not.c: New file.
62765         * lib/unictype/categ_byname.c: New file.
62766         * lib/unictype/categ_name.c: New file.
62767         * lib/unictype/categ_none.c: New file.
62768         * lib/unictype/categ_of.c: New file.
62769         * lib/unictype/categ_or.c: New file.
62770         * lib/unictype/categ_test.c: New file.
62771         * lib/unictype/combining.c: New file.
62772         * lib/unictype/ctype_alnum.c: New file.
62773         * lib/unictype/ctype_alpha.c: New file.
62774         * lib/unictype/ctype_blank.c: New file.
62775         * lib/unictype/ctype_cntrl.c: New file.
62776         * lib/unictype/ctype_digit.c: New file.
62777         * lib/unictype/ctype_graph.c: New file.
62778         * lib/unictype/ctype_lower.c: New file.
62779         * lib/unictype/ctype_print.c: New file.
62780         * lib/unictype/ctype_punct.c: New file.
62781         * lib/unictype/ctype_space.c: New file.
62782         * lib/unictype/ctype_upper.c: New file.
62783         * lib/unictype/ctype_xdigit.c: New file.
62784         * lib/unictype/decdigit.c: New file.
62785         * lib/unictype/digit.c: New file.
62786         * lib/unictype/identsyntaxmap.h: New file.
62787         * lib/unictype/mirror.c: New file.
62788         * lib/unictype/numeric.c: New file.
62789         * lib/unictype/pr_alphabetic.c: New file.
62790         * lib/unictype/pr_ascii_hex_digit.c: New file.
62791         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62792         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62793         * lib/unictype/pr_bidi_block_separator.c: New file.
62794         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62795         * lib/unictype/pr_bidi_common_separator.c: New file.
62796         * lib/unictype/pr_bidi_control.c: New file.
62797         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62798         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62799         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62800         * lib/unictype/pr_bidi_european_digit.c: New file.
62801         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62802         * lib/unictype/pr_bidi_left_to_right.c: New file.
62803         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62804         * lib/unictype/pr_bidi_other_neutral.c: New file.
62805         * lib/unictype/pr_bidi_pdf.c: New file.
62806         * lib/unictype/pr_bidi_segment_separator.c: New file.
62807         * lib/unictype/pr_bidi_whitespace.c: New file.
62808         * lib/unictype/pr_byname.c: New file.
62809         * lib/unictype/pr_byname.gperf: New file.
62810         * lib/unictype/pr_combining.c: New file.
62811         * lib/unictype/pr_composite.c: New file.
62812         * lib/unictype/pr_currency_symbol.c: New file.
62813         * lib/unictype/pr_dash.c: New file.
62814         * lib/unictype/pr_decimal_digit.c: New file.
62815         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62816         * lib/unictype/pr_deprecated.c: New file.
62817         * lib/unictype/pr_diacritic.c: New file.
62818         * lib/unictype/pr_extender.c: New file.
62819         * lib/unictype/pr_format_control.c: New file.
62820         * lib/unictype/pr_grapheme_base.c: New file.
62821         * lib/unictype/pr_grapheme_extend.c: New file.
62822         * lib/unictype/pr_grapheme_link.c: New file.
62823         * lib/unictype/pr_hex_digit.c: New file.
62824         * lib/unictype/pr_hyphen.c: New file.
62825         * lib/unictype/pr_id_continue.c: New file.
62826         * lib/unictype/pr_id_start.c: New file.
62827         * lib/unictype/pr_ideographic.c: New file.
62828         * lib/unictype/pr_ids_binary_operator.c: New file.
62829         * lib/unictype/pr_ids_trinary_operator.c: New file.
62830         * lib/unictype/pr_ignorable_control.c: New file.
62831         * lib/unictype/pr_iso_control.c: New file.
62832         * lib/unictype/pr_join_control.c: New file.
62833         * lib/unictype/pr_left_of_pair.c: New file.
62834         * lib/unictype/pr_line_separator.c: New file.
62835         * lib/unictype/pr_logical_order_exception.c: New file.
62836         * lib/unictype/pr_lowercase.c: New file.
62837         * lib/unictype/pr_math.c: New file.
62838         * lib/unictype/pr_non_break.c: New file.
62839         * lib/unictype/pr_not_a_character.c: New file.
62840         * lib/unictype/pr_numeric.c: New file.
62841         * lib/unictype/pr_other_alphabetic.c: New file.
62842         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62843         * lib/unictype/pr_other_grapheme_extend.c: New file.
62844         * lib/unictype/pr_other_id_continue.c: New file.
62845         * lib/unictype/pr_other_id_start.c: New file.
62846         * lib/unictype/pr_other_lowercase.c: New file.
62847         * lib/unictype/pr_other_math.c: New file.
62848         * lib/unictype/pr_other_uppercase.c: New file.
62849         * lib/unictype/pr_paired_punctuation.c: New file.
62850         * lib/unictype/pr_paragraph_separator.c: New file.
62851         * lib/unictype/pr_pattern_syntax.c: New file.
62852         * lib/unictype/pr_pattern_white_space.c: New file.
62853         * lib/unictype/pr_private_use.c: New file.
62854         * lib/unictype/pr_punctuation.c: New file.
62855         * lib/unictype/pr_quotation_mark.c: New file.
62856         * lib/unictype/pr_radical.c: New file.
62857         * lib/unictype/pr_sentence_terminal.c: New file.
62858         * lib/unictype/pr_soft_dotted.c: New file.
62859         * lib/unictype/pr_space.c: New file.
62860         * lib/unictype/pr_terminal_punctuation.c: New file.
62861         * lib/unictype/pr_test.c: New file.
62862         * lib/unictype/pr_titlecase.c: New file.
62863         * lib/unictype/pr_unassigned_code_value.c: New file.
62864         * lib/unictype/pr_unified_ideograph.c: New file.
62865         * lib/unictype/pr_uppercase.c: New file.
62866         * lib/unictype/pr_variation_selector.c: New file.
62867         * lib/unictype/pr_white_space.c: New file.
62868         * lib/unictype/pr_xid_continue.c: New file.
62869         * lib/unictype/pr_xid_start.c: New file.
62870         * lib/unictype/pr_zero_width.c: New file.
62871         * lib/unictype/scripts.c: New file.
62872         * lib/unictype/sy_c_ident.c: New file.
62873         * lib/unictype/sy_c_whitespace.c: New file.
62874         * lib/unictype/sy_java_ident.c: New file.
62875         * lib/unictype/sy_java_whitespace.c: New file.
62876
62877         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62878         Unicode 5.0.0.
62879         * lib/unictype/blocks.h: Likewise.
62880         * lib/unictype/categ_C.h: Likewise.
62881         * lib/unictype/categ_Cc.h: Likewise.
62882         * lib/unictype/categ_Cf.h: Likewise.
62883         * lib/unictype/categ_Cn.h: Likewise.
62884         * lib/unictype/categ_Co.h: Likewise.
62885         * lib/unictype/categ_Cs.h: Likewise.
62886         * lib/unictype/categ_L.h: Likewise.
62887         * lib/unictype/categ_Ll.h: Likewise.
62888         * lib/unictype/categ_Lm.h: Likewise.
62889         * lib/unictype/categ_Lo.h: Likewise.
62890         * lib/unictype/categ_Lt.h: Likewise.
62891         * lib/unictype/categ_Lu.h: Likewise.
62892         * lib/unictype/categ_M.h: Likewise.
62893         * lib/unictype/categ_Mc.h: Likewise.
62894         * lib/unictype/categ_Me.h: Likewise.
62895         * lib/unictype/categ_Mn.h: Likewise.
62896         * lib/unictype/categ_N.h: Likewise.
62897         * lib/unictype/categ_Nd.h: Likewise.
62898         * lib/unictype/categ_Nl.h: Likewise.
62899         * lib/unictype/categ_No.h: Likewise.
62900         * lib/unictype/categ_P.h: Likewise.
62901         * lib/unictype/categ_Pc.h: Likewise.
62902         * lib/unictype/categ_Pd.h: Likewise.
62903         * lib/unictype/categ_Pe.h: Likewise.
62904         * lib/unictype/categ_Pf.h: Likewise.
62905         * lib/unictype/categ_Pi.h: Likewise.
62906         * lib/unictype/categ_Po.h: Likewise.
62907         * lib/unictype/categ_Ps.h: Likewise.
62908         * lib/unictype/categ_S.h: Likewise.
62909         * lib/unictype/categ_Sc.h: Likewise.
62910         * lib/unictype/categ_Sk.h: Likewise.
62911         * lib/unictype/categ_Sm.h: Likewise.
62912         * lib/unictype/categ_So.h: Likewise.
62913         * lib/unictype/categ_Z.h: Likewise.
62914         * lib/unictype/categ_Zl.h: Likewise.
62915         * lib/unictype/categ_Zp.h: Likewise.
62916         * lib/unictype/categ_Zs.h: Likewise.
62917         * lib/unictype/categ_of.h: Likewise.
62918         * lib/unictype/combining.h: Likewise.
62919         * lib/unictype/ctype_alnum.h: Likewise.
62920         * lib/unictype/ctype_alpha.h: Likewise.
62921         * lib/unictype/ctype_blank.h: Likewise.
62922         * lib/unictype/ctype_cntrl.h: Likewise.
62923         * lib/unictype/ctype_digit.h: Likewise.
62924         * lib/unictype/ctype_graph.h: Likewise.
62925         * lib/unictype/ctype_lower.h: Likewise.
62926         * lib/unictype/ctype_print.h: Likewise.
62927         * lib/unictype/ctype_punct.h: Likewise.
62928         * lib/unictype/ctype_space.h: Likewise.
62929         * lib/unictype/ctype_upper.h: Likewise.
62930         * lib/unictype/ctype_xdigit.h: Likewise.
62931         * lib/unictype/decdigit.h: Likewise.
62932         * lib/unictype/digit.h: Likewise.
62933         * lib/unictype/mirror.h: Likewise.
62934         * lib/unictype/numeric.h: Likewise.
62935         * lib/unictype/pr_alphabetic.h: Likewise.
62936         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62937         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62938         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62939         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62940         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62941         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62942         * lib/unictype/pr_bidi_control.h: Likewise.
62943         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62944         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62945         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62946         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62947         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62948         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62949         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62950         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62951         * lib/unictype/pr_bidi_pdf.h: Likewise.
62952         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62953         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62954         * lib/unictype/pr_combining.h: Likewise.
62955         * lib/unictype/pr_composite.h: Likewise.
62956         * lib/unictype/pr_currency_symbol.h: Likewise.
62957         * lib/unictype/pr_dash.h: Likewise.
62958         * lib/unictype/pr_decimal_digit.h: Likewise.
62959         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62960         * lib/unictype/pr_deprecated.h: Likewise.
62961         * lib/unictype/pr_diacritic.h: Likewise.
62962         * lib/unictype/pr_extender.h: Likewise.
62963         * lib/unictype/pr_format_control.h: Likewise.
62964         * lib/unictype/pr_grapheme_base.h: Likewise.
62965         * lib/unictype/pr_grapheme_extend.h: Likewise.
62966         * lib/unictype/pr_grapheme_link.h: Likewise.
62967         * lib/unictype/pr_hex_digit.h: Likewise.
62968         * lib/unictype/pr_hyphen.h: Likewise.
62969         * lib/unictype/pr_id_continue.h: Likewise.
62970         * lib/unictype/pr_id_start.h: Likewise.
62971         * lib/unictype/pr_ideographic.h: Likewise.
62972         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62973         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62974         * lib/unictype/pr_ignorable_control.h: Likewise.
62975         * lib/unictype/pr_iso_control.h: Likewise.
62976         * lib/unictype/pr_join_control.h: Likewise.
62977         * lib/unictype/pr_left_of_pair.h: Likewise.
62978         * lib/unictype/pr_line_separator.h: Likewise.
62979         * lib/unictype/pr_logical_order_exception.h: Likewise.
62980         * lib/unictype/pr_lowercase.h: Likewise.
62981         * lib/unictype/pr_math.h: Likewise.
62982         * lib/unictype/pr_non_break.h: Likewise.
62983         * lib/unictype/pr_not_a_character.h: Likewise.
62984         * lib/unictype/pr_numeric.h: Likewise.
62985         * lib/unictype/pr_other_alphabetic.h: Likewise.
62986         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62987         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62988         * lib/unictype/pr_other_id_continue.h: Likewise.
62989         * lib/unictype/pr_other_id_start.h: Likewise.
62990         * lib/unictype/pr_other_lowercase.h: Likewise.
62991         * lib/unictype/pr_other_math.h: Likewise.
62992         * lib/unictype/pr_other_uppercase.h: Likewise.
62993         * lib/unictype/pr_paired_punctuation.h: Likewise.
62994         * lib/unictype/pr_paragraph_separator.h: Likewise.
62995         * lib/unictype/pr_pattern_syntax.h: Likewise.
62996         * lib/unictype/pr_pattern_white_space.h: Likewise.
62997         * lib/unictype/pr_private_use.h: Likewise.
62998         * lib/unictype/pr_punctuation.h: Likewise.
62999         * lib/unictype/pr_quotation_mark.h: Likewise.
63000         * lib/unictype/pr_radical.h: Likewise.
63001         * lib/unictype/pr_sentence_terminal.h: Likewise.
63002         * lib/unictype/pr_soft_dotted.h: Likewise.
63003         * lib/unictype/pr_space.h: Likewise.
63004         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63005         * lib/unictype/pr_titlecase.h: Likewise.
63006         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63007         * lib/unictype/pr_unified_ideograph.h: Likewise.
63008         * lib/unictype/pr_uppercase.h: Likewise.
63009         * lib/unictype/pr_variation_selector.h: Likewise.
63010         * lib/unictype/pr_white_space.h: Likewise.
63011         * lib/unictype/pr_xid_continue.h: Likewise.
63012         * lib/unictype/pr_xid_start.h: Likewise.
63013         * lib/unictype/pr_zero_width.h: Likewise.
63014         * lib/unictype/scripts.h: Likewise.
63015         * lib/unictype/scripts_byname.gperf: Likewise.
63016         * lib/unictype/sy_c_ident.h: Likewise.
63017         * lib/unictype/sy_c_whitespace.h: Likewise.
63018         * lib/unictype/sy_java_ident.h: Likewise.
63019         * lib/unictype/sy_java_whitespace.h: Likewise.
63020
63021         * lib/unictype/Makefile: New file.
63022         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63023         glibc.
63024         * lib/unictype/3level.h: New file, copied from glibc.
63025         * lib/unictype/3levelbit.h: New file.
63026
63027 2007-11-11  Bruno Haible  <bruno@clisp.org>
63028
63029         * modules/gperf: New file.
63030         * modules/iconv_open (Depends-on): Add it.
63031         (Makefile.am): Remove the GPERF definition.
63032
63033 2007-11-11  Bruno Haible  <bruno@clisp.org>
63034
63035         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63036         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63037
63038 2007-11-11  Bruno Haible  <bruno@clisp.org>
63039
63040         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63041         (usage): Remove function.
63042
63043 2007-11-11  Bruno Haible  <bruno@clisp.org>
63044
63045         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63046         gl_FUNC_CEILF_LIBS.
63047         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63048         gl_FUNC_CEIL_LIBS.
63049         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63050         gl_FUNC_CEILL_LIBS.
63051         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63052         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63053         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63054
63055 2007-11-11  Bruno Haible  <bruno@clisp.org>
63056
63057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63058         roundf were declared but do not exist on functions.
63059         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63060         roundl were declared but do not exist on functions.
63061         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63062         HAVE_FLOORL_AND_CEILL, respectively.
63063         Needed for Sun C on Solaris 10.
63064
63065 2007-11-11  Bruno Haible  <bruno@clisp.org>
63066
63067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63068         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63069         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63070         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63071         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63072         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63073         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63074         HAVE_DECL_ROUNDF.
63075         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63076         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63078         of HAVE_DECL_ROUND*.
63079         * modules/math (Makefile.am): Update.
63080
63081 2007-11-10  Bruno Haible  <bruno@clisp.org>
63082
63083         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63084         ptrdiff_t as m4/intl.m4.
63085
63086 2007-11-10  Jim Meyering  <meyering@redhat.com>
63087
63088         Avoid link failure for the argmatch test.
63089         * tests/test-argmatch.c (usage): Define function to avoid a link
63090         failure: argmatch_die requires a usage function.
63091
63092 2007-11-09  Bruno Haible  <bruno@clisp.org>
63093
63094         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63095         * doc/functions/vsnprintf.texi: Likewise.
63096         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63097         with a size argument < 2.
63098
63099 2007-11-09  Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63102         buffer. Fixes an inefficiency introduced on 2007-11-03.
63103
63104 2007-11-09  Bruno Haible  <bruno@clisp.org>
63105
63106         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63107         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63108
63109 2007-11-08  Jim Meyering  <meyering@redhat.com>
63110
63111         Change cache variable name prefix "jm_" to "gl_" everywhere.
63112         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63113         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63114         * m4/uptime.m4: s/gl_/jm_/
63115
63116 2007-11-07  Bruno Haible  <bruno@clisp.org>
63117
63118         Update to GNU gettext 0.17.
63119         * m4/intl.m4: Update to GNU gettext 0.17.
63120         * m4/po.m4: Likewise.
63121         * modules/gettext (Files): Remove m4/ulonglong.m4.
63122         (configure.ac): Require gettext infrastructure from version 0.17.
63123
63124 2007-11-06  Bruno Haible  <bruno@clisp.org>
63125
63126         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63127         symbolic values are not defined in a public header.
63128         * lib/freadable.c (freadable) [QNX]: Likewise.
63129         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63130         * lib/freading.c (freading) [QNX]: Likewise.
63131         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63132         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63133         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63134         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63135         Reported by Alain Magloire.
63136
63137         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63138
63139 2007-11-05  Bruno Haible  <bruno@clisp.org>
63140
63141         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63142         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63143         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63144         Reported by Eric Blake.
63145
63146 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63147             Bruno Haible  <bruno@clisp.org>
63148
63149         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63150         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63151         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63152         (malloc): Undefine also before including <stdlib.h>.
63153         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63154         Needed on OSF/1 4.0.
63155
63156 2007-11-05  Jim Meyering  <meyering@redhat.com>
63157
63158         git-version-gen: sync from coreutils.
63159         * build-aux/git-version-gen: Add comments.
63160         Change the first '-' to '.' in the snapshot version string,
63161         e.g., 6.9-377-08144 -> 6.9.377-08144
63162         Remove first parameter.
63163         Don't declare a version "-dirty" merely because a time
63164         stamp has changed.
63165
63166 2007-11-04  Bruno Haible  <bruno@clisp.org>
63167
63168         * lib/lock.h: Protect all macro definitions containing an 'if'
63169         statement through a "do { ... } while (0)".
63170         * lib/tls.h: Likewise.
63171
63172 2007-11-04  Bruno Haible  <bruno@clisp.org>
63173
63174         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63175
63176 2007-11-04  Bruno Haible  <bruno@clisp.org>
63177
63178         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63179         * modules/fprintf-posix (Depends-on): Add nocrash.
63180         * modules/snprintf-posix (Depends-on): Likewise.
63181         * modules/sprintf-posix (Depends-on): Likewise.
63182         * modules/vasnprintf-posix (Depends-on): Likewise.
63183         * modules/vasprintf-posix (Depends-on): Likewise.
63184         * modules/vfprintf-posix (Depends-on): Likewise.
63185         * modules/vsnprintf-posix (Depends-on): Likewise.
63186         * modules/vsprintf-posix (Depends-on): Likewise.
63187         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63188         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63189         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63190         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63191         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63192         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63193         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63194
63195 2007-11-04  Bruno Haible  <bruno@clisp.org>
63196
63197         * modules/nocrash: New file.
63198         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63199         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63200
63201 2007-11-04  Bruno Haible  <bruno@clisp.org>
63202
63203         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63204         precision handling.
63205         * tests/test-vasprintf-posix.c (test_function): Likewise.
63206         * tests/test-snprintf-posix.h (test_function): Likewise.
63207         * tests/test-sprintf-posix.h (test_function): Likewise.
63208
63209         Fix *printf behaviour for large precisions on mingw and BeOS.
63210         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63211         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63213         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63215         gl_PRINTF_PRECISION and test its result. Invoke
63216         gl_PREREQ_VASNPRINTF_PRECISION.
63217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63218         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63221         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63222         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63223         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63224         * doc/functions/fprintf.texi: Update.
63225         * doc/functions/printf.texi: Update.
63226         * doc/functions/snprintf.texi: Update.
63227         * doc/functions/sprintf.texi: Update.
63228         * doc/functions/vfprintf.texi: Update.
63229         * doc/functions/vprintf.texi: Update.
63230         * doc/functions/vsnprintf.texi: Update.
63231         * doc/functions/vsprintf.texi: Update.
63232
63233 2007-11-04  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63236
63237 2007-11-04  Bruno Haible  <bruno@clisp.org>
63238
63239         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63240         Reported by Sylvain Beucler <beuc@gnu.org>.
63241
63242 2007-11-03  Bruno Haible  <bruno@clisp.org>
63243
63244         * tests/test-fprintf-posix2.sh: New file.
63245         * tests/test-fprintf-posix2.c: New file.
63246         * modules/fprintf-posix-tests (Files): Add them.
63247         (TESTS): Add test-fprintf-posix2.sh.
63248         (configure.ac): Check for getrlimit and setrlimit.
63249         (check_PROGRAMS): Add test-fprintf-posix2.
63250
63251         * tests/test-printf-posix2.sh: New file.
63252         * tests/test-printf-posix2.c: New file.
63253         * modules/printf-posix-tests (Files): Add them.
63254         (TESTS): Add test-printf-posix2.sh.
63255         (configure.ac): Check for getrlimit and setrlimit.
63256         (check_PROGRAMS): Add test-printf-posix2.
63257
63258         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63259         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63260         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63261         (decode_double): New function, copied from decode_long_double.
63262         (scale10_round_decimal_decoded): New function, extracted from
63263         scale10_round_decimal_long_double.
63264         (scale10_round_decimal_long_double): Use it.
63265         (scale10_round_decimal_double): New function.
63266         (floorlog10): New function.
63267         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63269         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63271         gl_PRINTF_ENOMEM and test its result. Invoke
63272         gl_PREREQ_VASNPRINTF_ENOMEM.
63273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63280         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63281         * modules/snprintf-posix (Depends-on): Likewise.
63282         * modules/sprintf-posix (Depends-on): Likewise.
63283         * modules/vasnprintf-posix (Depends-on): Likewise.
63284         * modules/vasprintf-posix (Depends-on): Likewise.
63285         * modules/vfprintf-posix (Depends-on): Likewise.
63286         * modules/vsnprintf-posix (Depends-on): Likewise.
63287         * modules/vsprintf-posix (Depends-on): Likewise.
63288         * doc/functions/fprintf.texi: Update.
63289         * doc/functions/printf.texi: Update.
63290         * doc/functions/snprintf.texi: Update.
63291         * doc/functions/sprintf.texi: Update.
63292         * doc/functions/vfprintf.texi: Update.
63293         * doc/functions/vprintf.texi: Update.
63294         * doc/functions/vsnprintf.texi: Update.
63295         * doc/functions/vsprintf.texi: Update.
63296
63297 2007-11-03  Bruno Haible  <bruno@clisp.org>
63298
63299         * modules/frexp-nolibm-tests: New file.
63300
63301         * modules/frexp-nolibm: New file.
63302         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63303
63304 2007-11-03  Bruno Haible  <bruno@clisp.org>
63305
63306         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63307         value is C99 compliant.
63308         Needed for OSF/1 5.1.
63309
63310 2007-11-03  Bruno Haible  <bruno@clisp.org>
63311
63312         Fix out-of-memory handling of vasnprintf.
63313         * lib/printf-parse.c: Include <errno.h>.
63314         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63315         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63316         is already set.
63317
63318 2007-11-02  Eric Blake  <ebb9@byu.net>
63319
63320         Fix tests on cygwin.
63321         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63322
63323 2007-11-01  Bruno Haible  <bruno@clisp.org>
63324
63325         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63326         warning.
63327         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63328         needed for POSIX compatibility.
63329
63330 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63331
63332         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63333         for compatibility with GNU.
63334
63335 2007-11-01  Bruno Haible  <bruno@clisp.org>
63336
63337         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63338         (putenv): Renamed from rpl_putenv. Change argument type from
63339         'const char *' to 'char *'.
63340         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63341         of defining putenv in config.h, just set REPLACE_PUTENV.
63342         * modules/putenv (Depends-on): Add stdlib.
63343         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63344         (Include): Use <stdlib.h>.
63345         * lib/stdlib.in.h (putenv): New declaration.
63346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63347         REPLACE_PUTENV.
63348         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63349         REPLACE_PUTENV.
63350         Needed for MacOS X 10.5.0.
63351         Reported by Peter O'Gorman <peter@pogma.com>.
63352
63353 2007-11-01  Jim Meyering  <meyering@redhat.com>
63354
63355         Treat an empty date string exactly like "0".
63356         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63357         if the remaining date string (to be parsed) is empty, use "0".
63358         Reported by Mischa Molhoek and discussed in this thread:
63359         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63360
63361 2007-10-31  Bruno Haible  <bruno@clisp.org>
63362
63363         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63364         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63365         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63366         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63367         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63368         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63369
63370 2007-10-31  Bruno Haible  <bruno@clisp.org>
63371
63372         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63373         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63374         (AC_TYPE_LONG_LONG_INT): Use it.
63375         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63376         it as well.
63377         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63378         to m4/longlong.m4.
63379         * modules/stdint (Files): Remove m4/ulonglong.m4.
63380         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63381         m4/ulonglong.m4.
63382         * modules/strtoumax (Files): Likewise.
63383
63384 2007-10-30  Bruno Haible  <bruno@clisp.org>
63385
63386         * modules/xvasprintf-posix: New file.
63387         Suggested by Eric Blake.
63388
63389 2007-10-30  Bruno Haible  <bruno@clisp.org>
63390
63391         * modules/xprintf-posix-tests: New file.
63392         * tests/test-xprintf-posix.sh: New file.
63393         * tests/test-xprintf-posix.c: New file.
63394         * tests/test-xfprintf-posix.c: New file.
63395
63396         * modules/xprintf-posix: New file.
63397
63398 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63399
63400         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63401         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63402         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63403
63404 2007-10-29  Bruno Haible  <bruno@clisp.org>
63405
63406         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63407         contain the special marker '_cv_'.
63408         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63409         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63410         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63411         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63412         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63413         Reported by Ralf Wildenhues.
63414
63415 2007-10-29  Bruno Haible  <bruno@clisp.org>
63416
63417         * gnulib-tool (func_import): When --lgpl is not specified, set
63418         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63419         GPLv3.
63420         Reported by Simon Josefsson.
63421
63422 2007-10-28  Bruno Haible  <bruno@clisp.org>
63423
63424         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63425         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63426         HAVE_DECL_ISFINITE.
63427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63428         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63429         HAVE_DECL_ISFINITE.
63430
63431 2007-10-28  Bruno Haible  <bruno@clisp.org>
63432
63433         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63434         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63435
63436 2007-10-28  Bruno Haible  <bruno@clisp.org>
63437
63438         Fix link errors with Sun C 5.0 on Solaris 10.
63439         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63440         function is declared but not present in the compiler's libm.
63441         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63442         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63443         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63444         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63445         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63446         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63447         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63449         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63450         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63451         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63452         HAVE_DECL_FLOORL.
63453
63454 2007-10-28  Bruno Haible  <bruno@clisp.org>
63455
63456         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63457         gl_FUNC_FLOORL. Cache the result.
63458         (gl_FUNC_FLOORL): Use it.
63459         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63460         gl_FUNC_CEILL. Cache the result.
63461         (gl_FUNC_CEILL): Use it.
63462
63463         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63464         gl_FUNC_FLOOR. Cache the result.
63465         (gl_FUNC_FLOOR): Use it.
63466         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63467         gl_FUNC_CEIL. Cache the result.
63468         (gl_FUNC_CEIL): Use it.
63469
63470         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63471         gl_FUNC_FLOORF. Cache the result.
63472         (gl_FUNC_FLOORF): Use it.
63473         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63474         gl_FUNC_CEILF. Cache the result.
63475         (gl_FUNC_CEILF): Use it.
63476
63477 2007-10-28  Bruno Haible  <bruno@clisp.org>
63478
63479         * gnulib-tool: Allow specifying the LGPL version number through
63480         --lgpl=2 or --lgpl=3.
63481         (func_usage): Document --lgpl with argument.
63482         Handle --lgpl=... arguments.
63483         (func_import): Recognize also gl_LGPL calls with an argument. When
63484         --lgpl=2 is used and the module's license is just LGPL, report an
63485         error. Set sed_transform_lib_file according to the lgpl variable. In
63486         the generated files, use --lgpl or gl_LGPL invocations with argument,
63487         if necessary.
63488         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63489         an LGPv2+ license.
63490         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63491         gl_LGPL macro.
63492
63493 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63494             Bruno Haible  <bruno@clisp.org>
63495
63496         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63497         (u16_uctomb_aux): Likewise.
63498         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63499         !HAVE_INLINE.
63500         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63501
63502 2007-10-28  Bruno Haible  <bruno@clisp.org>
63503
63504         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63505         Invoke AM_GETTEXT_OPTION if it exists.
63506         * modules/vasprintf: Likewise.
63507         * modules/verror: Likewise.
63508         * modules/xprintf: Likewise.
63509         * modules/xvasprintf: Likewise.
63510
63511 2007-10-27  Ben Pfaff  <blp@gnu.org>
63512
63513         * lib/math.in.h: Define isfinite macro and prototypes for
63514         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63515         implementations.
63516         * m4/math_h.m4: New substitutions for isfinite module.
63517         * lib/isfinite.c: New file.
63518         * m4/isfinite.m4: New file.
63519         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63520         * modules/isfinite: New file.
63521         * modules/isfinite-tests: New file.
63522         * tests/tests-isfinite.c: New file.
63523         * doc/functions/isfinite.texi: Mention isfinite module.
63524         * MODULES.html.sh: Mention new module.
63525
63526 2007-10-27  Ben Pfaff  <blp@gnu.org>
63527
63528         Ralf Wildenhues reported that Tru64 4.0D declares the round
63529         functions but does not have definitions.
63530         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63531         cannot be found in any library, set the output variable to
63532         "missing" instead of "".
63533         * m4/round.m4: Also use our substitute if we cannot find round in
63534         any library, even if it is declared.
63535         * m4/roundf.m4: Likewise for roundf.
63536         * m4/roundl.m4: Likewise for roundl.
63537         * lib/math.in.h: Undefine roundf, round, roundl before defining
63538         their replacements, to allow for hypothetical systems where these
63539         may be defined as macros but not available in libraries.
63540
63541 2007-10-27  Bruno Haible  <bruno@clisp.org>
63542
63543         * doc/gnulib.texi: Invoke @firstparagraphindent.
63544         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63545         changes in gnulib.
63546         (Source changes): New section.
63547
63548 2007-10-26  Bruno Haible  <bruno@clisp.org>
63549
63550         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63551         borrowed from autoconf.
63552
63553 2007-10-26  Bruno Haible  <bruno@clisp.org>
63554
63555         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63556         strerror returned the empty string. Needed on HP-UX 11.00.
63557
63558 2007-10-24  Micah Cowan  <micah@cowan.name>
63559
63560         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63561         * build-aux/bootstrap: Remove support for now-unnecessary option,
63562         --cvs-user, and envvars CVS_USER, CVS_RSH.
63563
63564 2007-10-24  Jim Meyering  <meyering@redhat.com>
63565
63566         Avoid diagnostics from sha1sum when there is no cached checksum.
63567         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63568         if the po.s1 file hasn't been created yet.
63569
63570         * build-aux/bootstrap: Sync from coreutils:
63571         2007-10-24  Jim Meyering  <meyering@redhat.com>
63572         Get gnulib from the git repository, not from an obsolete cvs one.
63573         * build-aux/bootstrap: Suggestion from Micah Cowan.
63574         2007-10-04  Jim Meyering  <jim@meyering.net>
63575         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63576         (update_po_files): Work also when there are no .po files in po/.
63577
63578 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63579
63580         * README: Append ".git" to git and cg examples.
63581         Problem reported by Benoit Sigoure.
63582
63583 2007-10-23  Micah Cowan  <micah@cowan.name>
63584
63585         * users.txt: Add wget.
63586
63587 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63588
63589         Fix linking of some unistdio tests on FreeBSD.
63590         * modules/unistdio/u16-vsnprintf-tests
63591         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63592         * modules/unistdio/u16-vsprintf-tests
63593         (test_u16_vsnprintf1_LDADD): Likewise.
63594         * modules/unistdio/u32-vsnprintf-tests
63595         (test_u32_vsnprintf1_LDADD): Likewise.
63596         * modules/unistdio/u32-vsprintf-tests
63597         (test_u32_vsprintf1_LDADD): Likewise.
63598         * modules/unistdio/u8-vsnprintf-tests
63599         (test_u8_vsnprintf1_LDADD): Likewise.
63600         * modules/unistdio/u8-vsprintf-tests
63601         (test_u8_vsprintf1_LDADD): Likewise.
63602         * modules/unistdio/ulc-vsnprintf-tests
63603         (test_ulc_vsnprintf1_LDADD): Likewise.
63604         * modules/unistdio/ulc-vsprintf-tests
63605         (test_ulc_vsprintf1_LDADD): Likewise.
63606
63607         Fix linking of some uniconv tests on FreeBSD.
63608         * modules/uniconv/u16-conv-from-enc-tests
63609         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63610         * modules/uniconv/u16-conv-to-enc-tests
63611         (test_u16_conv_to_enc_LDADD): Likewise.
63612         * modules/uniconv/u16-strconv-from-enc-tests
63613         (test_u16_strconv_from_enc_LDADD): Likewise.
63614         * modules/uniconv/u16-strconv-to-enc-tests
63615         (test_u16_strconv_to_enc_LDADD): Likewise.
63616         * modules/uniconv/u32-conv-from-enc-tests
63617         (test_u32_conv_from_enc_LDADD): Likewise.
63618         * modules/uniconv/u32-conv-to-enc-tests
63619         (test_u32_conv_to_enc_LDADD): Likewise.
63620         * modules/uniconv/u32-strconv-from-enc-tests
63621         (test_u32_strconv_from_enc_LDADD): Likewise.
63622         * modules/uniconv/u32-strconv-to-enc-tests
63623         (test_u32_strconv_to_enc_LDADD): Likewise.
63624         * modules/uniconv/u8-conv-from-enc-tests
63625         (test_u8_conv_from_enc_LDADD): Likewise.
63626         * modules/uniconv/u8-conv-to-enc-tests
63627         (test_u8_conv_to_enc_LDADD): Likewise.
63628         * modules/uniconv/u8-strconv-from-enc-tests
63629         (test_u8_strconv_from_enc_LDADD): Likewise.
63630         * modules/uniconv/u8-strconv-to-enc-tests
63631         (test_u8_strconv_to_enc_LDADD): Likewise.
63632
63633 2007-10-22  Bruno Haible  <bruno@clisp.org>
63634
63635         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63636         size.
63637
63638 2007-10-22  Eric Blake  <ebb9@byu.net>
63639
63640         Tweak x*printf documentation.
63641         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63642         variable name and comments.
63643         Suggested by Bruno Haible.
63644
63645 2007-10-22  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/acl.c (copy_acl): Fix file name in comment.
63648
63649 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63650
63651         Fix Tru64 problem with stdbool.h.
63652         * lib/stdbool.in.h (false, true):
63653         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63654         Don't declare as an enum in this situation; it runs afoul of Tru64.
63655         Problem reported by Steven M. Schweda in
63656         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63657
63658 2007-10-22  Eric Blake  <ebb9@byu.net>
63659
63660         Also wrap vf?printf.
63661         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63662         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63663         (xvprintf, xvfprintf): New functions.
63664
63665 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63666
63667         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63668         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63669
63670         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63671         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63672
63673 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63674
63675         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63676         by Bruno Haible.
63677
63678 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63679
63680         * lib/getloadavg.c
63681         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63682         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63683
63684         * tests/test-i-ring.c: Work for C89.
63685
63686 2007-10-22  Bruno Haible  <bruno@clisp.org>
63687
63688         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63689         -1u, in preprocessor expression, so that we don't test for the bug
63690         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63692
63693 2007-10-22  Eric Blake  <ebb9@byu.net>
63694
63695         * tests/test-yesno.sh: Silence stderr during test.
63696
63697 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63698
63699         * modules/crypto/gc-camellia: New file.
63700
63701         * m4/gc-camellia.m4: New file.
63702
63703         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63704
63705         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63706
63707 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63708
63709         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63710         --help to stdout.  Reported by sms@antinode.org (Steven
63711         M. Schweda).
63712
63713 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63714
63715         * users.txt: Fix link to libksba.
63716
63717 2007-10-21  Ben Pfaff  <blp@gnu.org>
63718
63719         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63720         round.c roundf implementation that depends on floorf and ceilf to
63721         be tested unconditionally.
63722
63723 2007-10-21  Ben Pfaff  <blp@gnu.org>
63724
63725         * m4/check-libm-func.m4: Removed.
63726         * m4/check-math-lib.m4: New file.
63727         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63728         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63729         definition and lack of AC_LIBOBJ([roundf]).
63730         * m4/roundl.m4: Ditto, and similarly for roundl.
63731         * modules/round: Reference new m4 file.
63732         * modules/roundf: Ditto.
63733         * modules/roundl: Ditto.
63734         * tests/test-round2.c (main): Use ROUND instead of round.
63735         Bug report from Bruno Haible.
63736
63737 2007-10-21  Bruno Haible  <bruno@clisp.org>
63738
63739         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63740         context.
63741
63742 2007-10-21  Bruno Haible  <bruno@clisp.org>
63743
63744         * tests/test-wcwidth.c (main): Allow negative result for some control
63745         characters.
63746
63747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63748         Needed on OSF/1 5.1.
63749
63750 2007-10-21  Bruno Haible  <bruno@clisp.org>
63751
63752         * tests/test-floorf1.c: Include isnanf.h.
63753         (main): Use isnanf() instead of isnan().
63754         * tests/test-ceilf1.c: Include isnanf.h.
63755         (main): Use isnanf() instead of isnan().
63756         * tests/test-truncf1.c: Include isnanf.h.
63757         (main): Use isnanf() instead of isnan().
63758         * tests/test-roundf1.c: Include isnanf.h.
63759         (main): Use isnanf() instead of isnan().
63760
63761 2007-10-21  Eric Blake  <ebb9@byu.net>
63762
63763         * users.txt: Update URL for m4.
63764
63765 2007-10-21  Bruno Haible  <bruno@clisp.org>
63766
63767         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63768
63769 2007-10-21  Bruno Haible  <bruno@clisp.org>
63770
63771         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63772         Git's management files if the CVS files are not present.
63773
63774 2007-10-20  Bruno Haible  <bruno@clisp.org>
63775
63776         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63777         gcc-3.4.x.
63778
63779 2007-10-20  Ben Pfaff  <blp@gnu.org>
63780
63781         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63782         implementations.
63783         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63784         * lib/round.c: New file.
63785         * lib/roundf.c: New file.
63786         * lib/roundl.c: New file.
63787         * m4/round.m4: New file.
63788         * m4/roundf.m4: New file.
63789         * m4/roundl.m4: New file.
63790         * m4/check-libm-func-m4: New file.
63791         * modules/math: Replace round, roundf, roundl related @VARS@ in
63792         math.in.h.
63793         * modules/round: New file.
63794         * modules/round-tests: New file.
63795         * modules/roundf: New file.
63796         * modules/roundf-tests: New file.
63797         * modules/roundl: New file.
63798         * modules/roundl-tests: New file.
63799         * tests/test-round1.c: New file.
63800         * tests/test-round2.c: New file.
63801         * tests/test-roundf1.c: New file.
63802         * tests/test-roundf2.c: New file.
63803         * tests/test-roundl.c: New file.
63804         * doc/functions/round.texi: Mention round module.
63805         * doc/functions/roundf.texi: Mention roundf module.
63806         * doc/functions/roundl.texi: Mention roundl module.
63807         * MODULES.html.sh: Mention new modules.
63808         Thanks to Bruno Haible for suggestions.
63809
63810 2007-10-20  Jim Meyering  <meyering@redhat.com>
63811
63812         * lib/xprintf.c: Include <config.h> unconditionally.
63813
63814         Change xprintf's license to GPL.
63815         * modules/xprintf (License): s/LGPL/GPL/, since this module
63816         depends on modules (exit and exitfail) which are GPL.
63817         Suggestion from Bruno Haible.
63818
63819         xprintf fixes.
63820         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63821         Use a clearer diagnostic.
63822         Patch from Bruno Haible.
63823
63824 2007-10-20  Bruno Haible  <bruno@clisp.org>
63825
63826         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63827         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63829
63830 2007-10-20  Bruno Haible  <bruno@clisp.org>
63831
63832         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63833         precision in the comparison result > x - 1 or similar.
63834         * tests/test-ceilf2.c (correct_result_p): Likewise.
63835         * tests/test-truncf2.c (correct_result_p): Likewise.
63836         * tests/test-trunc2.c (correct_result_p): Likewise.
63837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63838
63839 2007-10-20  Bruno Haible  <bruno@clisp.org>
63840
63841         * modules/ceil: New file.
63842         * m4/ceil.m4: New file.
63843         * doc/functions/ceil.texi: Mention the 'ceil' module.
63844
63845 2007-10-20  Bruno Haible  <bruno@clisp.org>
63846
63847         * modules/floor: New file.
63848         * m4/floor.m4: New file.
63849         * doc/functions/floor.texi: Mention the 'floor' module.
63850
63851 2007-10-20  Bruno Haible  <bruno@clisp.org>
63852
63853         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63854         of %a.
63855         * modules/floorf-tests (Depends-on): Likewise.
63856         * modules/truncf-tests (Depends-on): Likewise.
63857         * modules/trunc-tests (Depends-on): Likewise.
63858         Reported by Ben Pfaff.
63859
63860 2007-10-19  Jim Meyering  <meyering@redhat.com>
63861
63862         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63863         Don't bother testing specific errno values.  Just test ferror.
63864
63865         New module: xprintf
63866         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63867
63868 2007-10-19  Bruno Haible  <bruno@clisp.org>
63869
63870         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63871         syntax.
63872         * modules/javaexec (Makefile.am): Likewise.
63873         * modules/relocatable-prog (Makefile.am): Likewise.
63874         Suggested by Jim Meyering.
63875
63876 2007-10-18  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63879         Reported by Jim Meyering.
63880
63881 2007-10-18  Eric Blake  <ebb9@byu.net>
63882
63883         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63884
63885 2007-10-18  Bruno Haible  <bruno@clisp.org>
63886
63887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63888         the format string into writable memory. Needed in Fortify conditions.
63889
63890 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63891             Bruno Haible  <bruno@clisp.org>
63892
63893         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63894         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63895         * modules/trim (Depends-on): Add mbchar.
63896         (configure.ac): Add gl_FUNC_MBRTOWC.
63897         (Makefile.am): Augment lib_SOURCES.
63898
63899 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63900
63901         Modify glob.c to use fstatat and dirfd, to simplify it.
63902         Suggested by Eric Blake.
63903         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63904         Don't include <stdbool.h>; not used.
63905         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63906         (link_exists_p): Simplify implementation, since we can now assume
63907         dirfd and fstatat.
63908         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63909
63910 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63911
63912         * gnulib-tool (func_get_dependencies): Fix sed script to
63913         match only tests.
63914
63915 2007-10-17  Bruno Haible  <bruno@clisp.org>
63916
63917         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63918         allow locale names without encoding suffix.
63919         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63920         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63921
63922 2007-10-16  Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63925         * lib/getgroups.c (getgroups): Likewise.
63926         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63927
63928 2007-10-16  Bruno Haible  <bruno@clisp.org>
63929
63930         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63931         * modules/malloc-posix (License): Likewise.
63932         * modules/realloc-posix (License): Likewise.
63933         * modules/calloc-posix (License): Likewise.
63934         * modules/intprops (License): Change from GPL to LGPL, with
63935         Paul Eggert's approval.
63936
63937 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63938
63939         Merge glibc changes into lib/glob.c.
63940
63941         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63942         2007-10-15 04:59:03 UTC.  Here are the changes:
63943
63944         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63945
63946         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63947
63948         * lib/glob.c: Add some branch prediction throughout.
63949
63950         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63951
63952         [BZ #5103]
63953         * lib/glob.c (glob): Recognize patterns starting \/.
63954
63955         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63956
63957         [BZ #3996]
63958         * lib/glob.c (attribute_hidden): Define if not defined.
63959         (glob): Unescape dirname, filename or username when needed and not
63960         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63961         is NULL.  Handle unescaped [ in pattern without closing ].
63962         Don't pass GLOB_CHECK down to recursive glob for directories.
63963         (__glob_pattern_type): New function.
63964         (__glob_pattern_p): Implement using __glob_pattern_type.
63965         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63966         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63967         Remove unreachable code.
63968
63969         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63970
63971         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63972         explain why there are no leaks.
63973
63974         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63975
63976         [BZ #3253]
63977         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63978         time, rather allocate increasingly bigger arrays of pointers, if
63979         possible with alloca, if too large with malloc.
63980
63981 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63982
63983         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63984         Problem reported by H.Merijn Brand in
63985         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63987         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63988
63989 2007-10-15  Bruno Haible  <bruno@clisp.org>
63990
63991         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63992         with explicit rpl_ prefix.
63993         * lib/fopen.c (fopen): Likewise.
63994         * lib/freopen.c (freopen): Likewise.
63995         * lib/iconv.c (iconv): Likewise.
63996         * lib/iconv_close.c (iconv_close): Likewise.
63997
63998 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63999
64000         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64001
64002 2007-10-15  Bruno Haible  <bruno@clisp.org>
64003
64004         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64005         <stddef.h> instead of <stdlib.h> since we only need NULL.
64006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64007
64008 2007-10-15  Bruno Haible  <bruno@clisp.org>
64009
64010         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64011         Replace paragraph talking about LIBOBJS.
64012         Reported by Colin Watson <cjwatson@debian.org>.
64013
64014 2007-10-15  Bruno Haible  <bruno@clisp.org>
64015
64016         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64017         <stdlib.h> before using NULL.
64018
64019 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64020
64021         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64022         Reported by Albert Chin <china@thewrittenword.com>.
64023
64024 2007-10-14  Bruno Haible  <bruno@clisp.org>
64025
64026         * modules/iconv_open-utf-tests: New file.
64027         * tests/test-iconv-utf.c: New file.
64028
64029         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64030         * modules/iconv_open-utf: New file.
64031         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64032         (iconv, iconv_close): New declarations.
64033         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64034         be defined.
64035         (iconv_open): Add special handling of conversion between UTF-8 and
64036         UTF-{16,32}{BE,LE}.
64037         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64038         * lib/iconv_close.c: New file.
64039         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64040         gl_FUNC_ICONV_OPEN.
64041         (gl_FUNC_ICONV_OPEN): Use it.
64042         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64043         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64044         and REPLACE_ICONV_UTF.
64045         * modules/iconv_open (Depends-on): Add c-strcase.
64046         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64047         ICONV_CONST.
64048         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64049
64050 2007-10-13  Albert Chin  <china@thewrittenword.com>
64051             Bruno Haible  <bruno@clisp.org>
64052
64053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64054         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64055
64056 2007-10-13  Bruno Haible  <bruno@clisp.org>
64057
64058         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64059         defined, use the ISO C99 inline semantics.
64060         * lib/argp.h (ARGP_EI): Likewise.
64061
64062 2007-10-13  Bruno Haible  <bruno@clisp.org>
64063
64064         Handle 'inline' change in gcc 4.3.0.
64065         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64066         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64067         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64068         argp_fmtstream_point): Disable 'extern' declaration if the function
64069         definition is going to be provided inline.
64070         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64071         semantics, not the ISO C99 inline semantics.
64072         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64073         'extern' declaration if the function definition is going to be provided
64074         inline.
64075         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64076         the GNU C inline semantics, not the ISO C99 inline semantics. With
64077         GCC 4.2, avoid a warning.
64078
64079 2007-10-13  Bruno Haible  <bruno@clisp.org>
64080
64081         * lib/freading.h (freading): Enable the use of __freading for
64082         glibc >= 2.7.
64083         * lib/freading.c (freading): Likewise.
64084
64085 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64086
64087         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64088         "warning: C99 inline functions are not supported; using GNU89".
64089
64090 2007-10-12  Bruno Haible  <bruno@clisp.org>
64091
64092         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64093         of 2.
64094         * tests/test-ceilf2.c: New file.
64095         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64096
64097         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64098         * modules/ceilf-tests: Update.
64099
64100 2007-10-12  Bruno Haible  <bruno@clisp.org>
64101
64102         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64103         of 2.
64104         * tests/test-floorf2.c: New file.
64105         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64106
64107         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64108         * modules/floorf-tests: Update.
64109
64110 2007-10-12  Bruno Haible  <bruno@clisp.org>
64111
64112         * tests/test-trunc2.c: New file.
64113         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64114
64115         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64116         * modules/trunc-tests: Update.
64117
64118 2007-10-12  Bruno Haible  <bruno@clisp.org>
64119
64120         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64121         of 2.
64122         * tests/test-truncf2.c: New file.
64123         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64124
64125         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64126         * modules/truncf-tests: Update.
64127
64128 2007-10-11  Eric Blake  <ebb9@byu.net>
64129
64130         Don't claim strerror is broken on Interix.
64131         * doc/functions/strerror.texi (strerror): Known broken systems are
64132         now Solaris 8, and not Interix.
64133         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64134         Interix on cross-compile.
64135         Reported by Martin Koeppe in
64136         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64137
64138 2007-10-11  Bruno Haible  <bruno@clisp.org>
64139
64140         * modules/i-ring-tests: New file.
64141         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64142         instead of assert.
64143
64144 2007-10-11  Bruno Haible  <bruno@clisp.org>
64145
64146         * modules/filenamecat-tests: New file.
64147         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64148         * lib/filenamecat.c: Remove test code.
64149
64150 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64151
64152         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64153
64154         * lib/strerror.c: Include <string.h> always, to test interface,
64155         and to remove the need for the dummy.
64156         Include intprops.h to compute width instead of doing it ourselves
64157         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64158         (strerror): Define it to return NULL if there's no system strerror.
64159         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64160         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64161         ancient pre-strerror Unix systems well any more.  Saying "unknown
64162         system error" is enough.
64163         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64164         simpler strerror.c implementation.
64165         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64166         Simplify the tests to reflect the simpler strerror implementation.
64167         * modules/strerror (Depends-on): Add intprops.
64168
64169 2007-10-09  Eric Blake  <ebb9@byu.net>
64170
64171         Silence test-fpending.
64172         * modules/fpending-tests (Files): Add wrapper script.
64173         * tests/test-fpending.sh: New file.
64174
64175 2007-10-09  Bruno Haible  <bruno@clisp.org>
64176
64177         * MODULES.html.sh (func_module): Don't create a hyperlink for
64178         function names like 'printf_frexp'.
64179         (Misc): Add crc, memxor.
64180         (Characteristics of floating types): New section.
64181         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64182         isnanf-nolibm, signbit, trunc, truncf, truncl.
64183         (Enhancements for ISO C 99 functions): New subsection Input/output.
64184         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64185         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64186         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64187         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64188         (Enhancements for POSIX:2001 functions): Add chdir-long.
64189         (File system functions): Add areadlink, chdir-safer, read-file.
64190         Remove cycle-check.
64191         (File system as inode set): New section.
64192         (Date and time): Add gethrxtime.
64193         (Multithreading): Add openmp.
64194         (Internationalization functions): Add localename.
64195         (Unicode string functions): Add unistr/u*-mbsnlen.
64196         (Support for maintaining and releasing projects): Add git-version-gen.
64197         (Lone files): Remove directories.
64198
64199 2007-10-08  Ben Pfaff  <blp@gnu.org>
64200
64201         * lib/xmalloca.h: Fix typo in comment.
64202
64203 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64204
64205         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64206         when avoiding problems with integer overflow.  Use a portable test
64207         instead.
64208
64209 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64210
64211         * modules/dummy (License): Change to LGPLv2+.
64212         * modules/float (License): Likewise
64213         * modules/realloc (License): Likewise
64214         * modules/stdlib (License): Likewise
64215
64216 2007-10-07  Bruno Haible  <bruno@clisp.org>
64217
64218         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64219         * floor.c (TWO_MANT_DIG): Likewise.
64220         * ceil.c (TWO_MANT_DIG): Likewise.
64221         Reported by Ben Pfaff.
64222
64223 2007-10-07  Bruno Haible  <bruno@clisp.org>
64224
64225         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64226         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64227         * lib/frexp.c (FUNC): Likewise.
64228         * lib/printf-frexp.h (printf_frexp): Likewise.
64229         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64230         * lib/printf-frexp.c (FUNC): Likewise.
64231         Suggested by Jim Meyering.
64232
64233 2007-10-07  Jim Meyering  <meyering@redhat.com>
64234
64235         Make xnanosleep's integer overflow test more robust.
64236         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64237         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64238
64239 2007-10-07  Bruno Haible  <bruno@clisp.org>
64240
64241         * NEWS: Mention the license change.
64242
64243         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64244         abbreviations in the modules files.
64245
64246         Change copyright notice from GPLv2+ to GPLv3+.
64247         * README: Change copyright notice.
64248         * MODULES.html.sh: Likewise.
64249         * build-aux/bootstrap.conf: Likewise.
64250         * build-aux/config.libpath: Likewise.
64251         * build-aux/csharpcomp.sh.in: Likewise.
64252         * build-aux/csharpexec.sh.in: Likewise.
64253         * build-aux/install-reloc: Likewise.
64254         * build-aux/javacomp.sh.in: Likewise.
64255         * build-aux/javaexec.sh.in: Likewise.
64256         * build-aux/ldd.sh.in: Likewise.
64257         * build-aux/reloc-ldflags: Likewise.
64258         * build-aux/relocatable.sh.in: Likewise.
64259         * build-aux/x-to-1.in: Likewise.
64260         * check-module: Likewise.
64261         * config/srclistvars.sh: Likewise.
64262         * gnulib-tool: Likewise.
64263         * lib/acl-internal.h: Likewise.
64264         * lib/acl.c: Likewise.
64265         * lib/acl.h: Likewise.
64266         * lib/acl_entries.c: Likewise.
64267         * lib/areadlink-with-size.c: Likewise.
64268         * lib/areadlink.c: Likewise.
64269         * lib/areadlink.h: Likewise.
64270         * lib/argmatch.c: Likewise.
64271         * lib/argmatch.h: Likewise.
64272         * lib/argp-ba.c: Likewise.
64273         * lib/argp-eexst.c: Likewise.
64274         * lib/argp-fmtstream.c: Likewise.
64275         * lib/argp-fmtstream.h: Likewise.
64276         * lib/argp-fs-xinl.c: Likewise.
64277         * lib/argp-help.c: Likewise.
64278         * lib/argp-namefrob.h: Likewise.
64279         * lib/argp-parse.c: Likewise.
64280         * lib/argp-pin.c: Likewise.
64281         * lib/argp-pv.c: Likewise.
64282         * lib/argp-pvh.c: Likewise.
64283         * lib/argp-xinl.c: Likewise.
64284         * lib/argp.h: Likewise.
64285         * lib/at-func.c: Likewise.
64286         * lib/atanl.c: Likewise.
64287         * lib/backupfile.c: Likewise.
64288         * lib/backupfile.h: Likewise.
64289         * lib/basename.c: Likewise.
64290         * lib/binary-io.h: Likewise.
64291         * lib/byteswap.in.h: Likewise.
64292         * lib/c-stack.c: Likewise.
64293         * lib/c-stack.h: Likewise.
64294         * lib/c-strcasestr.c: Likewise.
64295         * lib/c-strcasestr.h: Likewise.
64296         * lib/c-strstr.c: Likewise.
64297         * lib/c-strstr.h: Likewise.
64298         * lib/c-strtod.c: Likewise.
64299         * lib/calloc.c: Likewise.
64300         * lib/canon-host.c: Likewise.
64301         * lib/canon-host.h: Likewise.
64302         * lib/canonicalize-lgpl.c: Likewise.
64303         * lib/canonicalize.c: Likewise.
64304         * lib/canonicalize.h: Likewise.
64305         * lib/ceil.c: Likewise.
64306         * lib/ceilf.c: Likewise.
64307         * lib/ceill.c: Likewise.
64308         * lib/chdir-long.c: Likewise.
64309         * lib/chdir-long.h: Likewise.
64310         * lib/chdir-safer.c: Likewise.
64311         * lib/chdir-safer.h: Likewise.
64312         * lib/chown.c: Likewise.
64313         * lib/classpath.c: Likewise.
64314         * lib/classpath.h: Likewise.
64315         * lib/clean-temp.c: Likewise.
64316         * lib/clean-temp.h: Likewise.
64317         * lib/cloexec.c: Likewise.
64318         * lib/close-stream.c: Likewise.
64319         * lib/closein.c: Likewise.
64320         * lib/closein.h: Likewise.
64321         * lib/closeout.c: Likewise.
64322         * lib/closeout.h: Likewise.
64323         * lib/concat-filename.c: Likewise.
64324         * lib/copy-file.c: Likewise.
64325         * lib/copy-file.h: Likewise.
64326         * lib/count-one-bits.h: Likewise.
64327         * lib/crc.c: Likewise.
64328         * lib/crc.h: Likewise.
64329         * lib/creat-safer.c: Likewise.
64330         * lib/csharpcomp.c: Likewise.
64331         * lib/csharpcomp.h: Likewise.
64332         * lib/csharpexec.c: Likewise.
64333         * lib/csharpexec.h: Likewise.
64334         * lib/cycle-check.c: Likewise.
64335         * lib/cycle-check.h: Likewise.
64336         * lib/diacrit.c: Likewise.
64337         * lib/diacrit.h: Likewise.
64338         * lib/diffseq.h: Likewise.
64339         * lib/dirchownmod.c: Likewise.
64340         * lib/dirent.in.h: Likewise.
64341         * lib/dirfd.c: Likewise.
64342         * lib/dirfd.h: Likewise.
64343         * lib/dirname.c: Likewise.
64344         * lib/dirname.h: Likewise.
64345         * lib/dummy.c: Likewise.
64346         * lib/dup-safer.c: Likewise.
64347         * lib/dup2.c: Likewise.
64348         * lib/eealloc.h: Likewise.
64349         * lib/error.c: Likewise.
64350         * lib/error.h: Likewise.
64351         * lib/euidaccess.c: Likewise.
64352         * lib/exclude.c: Likewise.
64353         * lib/exclude.h: Likewise.
64354         * lib/execute.c: Likewise.
64355         * lib/execute.h: Likewise.
64356         * lib/exitfail.c: Likewise.
64357         * lib/exitfail.h: Likewise.
64358         * lib/expl.c: Likewise.
64359         * lib/fatal-signal.c: Likewise.
64360         * lib/fatal-signal.h: Likewise.
64361         * lib/fbufmode.c: Likewise.
64362         * lib/fbufmode.h: Likewise.
64363         * lib/fchdir.c: Likewise.
64364         * lib/fchmodat.c: Likewise.
64365         * lib/fchownat.c: Likewise.
64366         * lib/fcntl--.h: Likewise.
64367         * lib/fcntl-safer.h: Likewise.
64368         * lib/fcntl.in.h: Likewise.
64369         * lib/fd-safer.c: Likewise.
64370         * lib/fflush.c: Likewise.
64371         * lib/file-has-acl.c: Likewise.
64372         * lib/file-set.c: Likewise.
64373         * lib/file-type.c: Likewise.
64374         * lib/file-type.h: Likewise.
64375         * lib/fileblocks.c: Likewise.
64376         * lib/filemode.c: Likewise.
64377         * lib/filemode.h: Likewise.
64378         * lib/filename.h: Likewise.
64379         * lib/filenamecat.c: Likewise.
64380         * lib/filenamecat.h: Likewise.
64381         * lib/findprog.c: Likewise.
64382         * lib/findprog.h: Likewise.
64383         * lib/float.in.h: Likewise.
64384         * lib/floor.c: Likewise.
64385         * lib/floorf.c: Likewise.
64386         * lib/floorl.c: Likewise.
64387         * lib/fopen-safer.c: Likewise.
64388         * lib/fopen.c: Likewise.
64389         * lib/fpending.c: Likewise.
64390         * lib/fpending.h: Likewise.
64391         * lib/fprintf.c: Likewise.
64392         * lib/fprintftime.h: Likewise.
64393         * lib/fpucw.h: Likewise.
64394         * lib/fpurge.c: Likewise.
64395         * lib/fpurge.h: Likewise.
64396         * lib/freadable.c: Likewise.
64397         * lib/freadable.h: Likewise.
64398         * lib/freadahead.c: Likewise.
64399         * lib/freadahead.h: Likewise.
64400         * lib/freading.c: Likewise.
64401         * lib/freading.h: Likewise.
64402         * lib/free.c: Likewise.
64403         * lib/freopen.c: Likewise.
64404         * lib/frexp.c: Likewise.
64405         * lib/frexpl.c: Likewise.
64406         * lib/fseek.c: Likewise.
64407         * lib/fseterr.c: Likewise.
64408         * lib/fseterr.h: Likewise.
64409         * lib/fstatat.c: Likewise.
64410         * lib/fstrcmp.c: Likewise.
64411         * lib/fstrcmp.h: Likewise.
64412         * lib/fsusage.c: Likewise.
64413         * lib/fsusage.h: Likewise.
64414         * lib/ftell.c: Likewise.
64415         * lib/ftello.c: Likewise.
64416         * lib/fts-cycle.c: Likewise.
64417         * lib/fts.c: Likewise.
64418         * lib/fts_.h: Likewise.
64419         * lib/full-read.c: Likewise.
64420         * lib/full-read.h: Likewise.
64421         * lib/full-write.c: Likewise.
64422         * lib/full-write.h: Likewise.
64423         * lib/fwritable.c: Likewise.
64424         * lib/fwritable.h: Likewise.
64425         * lib/fwriteerror.c: Likewise.
64426         * lib/fwriteerror.h: Likewise.
64427         * lib/fwriting.c: Likewise.
64428         * lib/fwriting.h: Likewise.
64429         * lib/gcd.c: Likewise.
64430         * lib/gcd.h: Likewise.
64431         * lib/getcwd.c: Likewise.
64432         * lib/getdate.h: Likewise.
64433         * lib/getdate.y: Likewise.
64434         * lib/getdomainname.c: Likewise.
64435         * lib/getdomainname.h: Likewise.
64436         * lib/getgroups.c: Likewise.
64437         * lib/gethostname.c: Likewise.
64438         * lib/gethrxtime.c: Likewise.
64439         * lib/gethrxtime.h: Likewise.
64440         * lib/getloadavg.c: Likewise.
64441         * lib/getndelim2.c: Likewise.
64442         * lib/getndelim2.h: Likewise.
64443         * lib/getnline.c: Likewise.
64444         * lib/getnline.h: Likewise.
64445         * lib/getopt.c: Likewise.
64446         * lib/getopt.in.h: Likewise.
64447         * lib/getopt1.c: Likewise.
64448         * lib/getopt_int.h: Likewise.
64449         * lib/getpagesize.h: Likewise.
64450         * lib/getsubopt.c: Likewise.
64451         * lib/gettime.c: Likewise.
64452         * lib/getugroups.c: Likewise.
64453         * lib/getugroups.h: Likewise.
64454         * lib/getusershell.c: Likewise.
64455         * lib/gl_anyavltree_list1.h: Likewise.
64456         * lib/gl_anyavltree_list2.h: Likewise.
64457         * lib/gl_anyhash_list1.h: Likewise.
64458         * lib/gl_anyhash_list2.h: Likewise.
64459         * lib/gl_anylinked_list1.h: Likewise.
64460         * lib/gl_anylinked_list2.h: Likewise.
64461         * lib/gl_anyrbtree_list1.h: Likewise.
64462         * lib/gl_anyrbtree_list2.h: Likewise.
64463         * lib/gl_anytree_list1.h: Likewise.
64464         * lib/gl_anytree_list2.h: Likewise.
64465         * lib/gl_anytree_oset.h: Likewise.
64466         * lib/gl_anytreehash_list1.h: Likewise.
64467         * lib/gl_anytreehash_list2.h: Likewise.
64468         * lib/gl_array_list.c: Likewise.
64469         * lib/gl_array_list.h: Likewise.
64470         * lib/gl_array_oset.c: Likewise.
64471         * lib/gl_array_oset.h: Likewise.
64472         * lib/gl_avltree_list.c: Likewise.
64473         * lib/gl_avltree_list.h: Likewise.
64474         * lib/gl_avltree_oset.c: Likewise.
64475         * lib/gl_avltree_oset.h: Likewise.
64476         * lib/gl_avltreehash_list.c: Likewise.
64477         * lib/gl_avltreehash_list.h: Likewise.
64478         * lib/gl_carray_list.c: Likewise.
64479         * lib/gl_carray_list.h: Likewise.
64480         * lib/gl_linked_list.c: Likewise.
64481         * lib/gl_linked_list.h: Likewise.
64482         * lib/gl_linkedhash_list.c: Likewise.
64483         * lib/gl_linkedhash_list.h: Likewise.
64484         * lib/gl_list.c: Likewise.
64485         * lib/gl_list.h: Likewise.
64486         * lib/gl_oset.c: Likewise.
64487         * lib/gl_oset.h: Likewise.
64488         * lib/gl_rbtree_list.c: Likewise.
64489         * lib/gl_rbtree_list.h: Likewise.
64490         * lib/gl_rbtree_oset.c: Likewise.
64491         * lib/gl_rbtree_oset.h: Likewise.
64492         * lib/gl_rbtreehash_list.c: Likewise.
64493         * lib/gl_rbtreehash_list.h: Likewise.
64494         * lib/gl_sublist.c: Likewise.
64495         * lib/gl_sublist.h: Likewise.
64496         * lib/group-member.c: Likewise.
64497         * lib/group-member.h: Likewise.
64498         * lib/hard-locale.c: Likewise.
64499         * lib/hard-locale.h: Likewise.
64500         * lib/hash-pjw.c: Likewise.
64501         * lib/hash-pjw.h: Likewise.
64502         * lib/hash-triple.c: Likewise.
64503         * lib/hash.c: Likewise.
64504         * lib/hash.h: Likewise.
64505         * lib/human.c: Likewise.
64506         * lib/human.h: Likewise.
64507         * lib/i-ring.c: Likewise.
64508         * lib/i-ring.h: Likewise.
64509         * lib/idcache.c: Likewise.
64510         * lib/imaxabs.c: Likewise.
64511         * lib/imaxdiv.c: Likewise.
64512         * lib/inet_pton.c: Likewise.
64513         * lib/inet_pton.h: Likewise.
64514         * lib/intprops.h: Likewise.
64515         * lib/inttostr.c: Likewise.
64516         * lib/inttostr.h: Likewise.
64517         * lib/inttypes.in.h: Likewise.
64518         * lib/isapipe.c: Likewise.
64519         * lib/isdir.c: Likewise.
64520         * lib/isnan.c: Likewise.
64521         * lib/isnan.h: Likewise.
64522         * lib/isnanf.c: Likewise.
64523         * lib/isnanf.h: Likewise.
64524         * lib/isnanl-nolibm.h: Likewise.
64525         * lib/isnanl.c: Likewise.
64526         * lib/isnanl.h: Likewise.
64527         * lib/javacomp.c: Likewise.
64528         * lib/javacomp.h: Likewise.
64529         * lib/javaexec.c: Likewise.
64530         * lib/javaexec.h: Likewise.
64531         * lib/javaversion.c: Likewise.
64532         * lib/javaversion.h: Likewise.
64533         * lib/javaversion.java: Likewise.
64534         * lib/lbrkprop.h: Likewise.
64535         * lib/lchmod.h: Likewise.
64536         * lib/lchown.c: Likewise.
64537         * lib/ldexpl.c: Likewise.
64538         * lib/linebreak.c: Likewise.
64539         * lib/linebreak.h: Likewise.
64540         * lib/linebuffer.c: Likewise.
64541         * lib/linebuffer.h: Likewise.
64542         * lib/locale.in.h: Likewise.
64543         * lib/logl.c: Likewise.
64544         * lib/long-options.c: Likewise.
64545         * lib/long-options.h: Likewise.
64546         * lib/lstat.c: Likewise.
64547         * lib/lstat.h: Likewise.
64548         * lib/math.in.h: Likewise.
64549         * lib/mbchar.c: Likewise.
64550         * lib/mbchar.h: Likewise.
64551         * lib/mbfile.h: Likewise.
64552         * lib/mbiter.h: Likewise.
64553         * lib/mbscasecmp.c: Likewise.
64554         * lib/mbscasestr.c: Likewise.
64555         * lib/mbschr.c: Likewise.
64556         * lib/mbscspn.c: Likewise.
64557         * lib/mbslen.c: Likewise.
64558         * lib/mbsncasecmp.c: Likewise.
64559         * lib/mbsnlen.c: Likewise.
64560         * lib/mbspbrk.c: Likewise.
64561         * lib/mbspcasecmp.c: Likewise.
64562         * lib/mbsrchr.c: Likewise.
64563         * lib/mbssep.c: Likewise.
64564         * lib/mbsspn.c: Likewise.
64565         * lib/mbsstr.c: Likewise.
64566         * lib/mbstok_r.c: Likewise.
64567         * lib/mbswidth.c: Likewise.
64568         * lib/mbswidth.h: Likewise.
64569         * lib/mbuiter.h: Likewise.
64570         * lib/memcasecmp.c: Likewise.
64571         * lib/memcasecmp.h: Likewise.
64572         * lib/memchr.c: Likewise.
64573         * lib/memcmp.c: Likewise.
64574         * lib/memcoll.c: Likewise.
64575         * lib/memcoll.h: Likewise.
64576         * lib/memcpy.c: Likewise.
64577         * lib/memrchr.c: Likewise.
64578         * lib/mkancesdirs.c: Likewise.
64579         * lib/mkdir-p.c: Likewise.
64580         * lib/mkdir-p.h: Likewise.
64581         * lib/mkdir.c: Likewise.
64582         * lib/mkdirat.c: Likewise.
64583         * lib/mkdtemp.c: Likewise.
64584         * lib/mkstemp-safer.c: Likewise.
64585         * lib/mkstemp.c: Likewise.
64586         * lib/modechange.c: Likewise.
64587         * lib/modechange.h: Likewise.
64588         * lib/mountlist.c: Likewise.
64589         * lib/mountlist.h: Likewise.
64590         * lib/mpsort.c: Likewise.
64591         * lib/nanosleep.c: Likewise.
64592         * lib/obstack.c: Likewise.
64593         * lib/obstack.h: Likewise.
64594         * lib/open-safer.c: Likewise.
64595         * lib/open.c: Likewise.
64596         * lib/openat-die.c: Likewise.
64597         * lib/openat-priv.h: Likewise.
64598         * lib/openat-proc.c: Likewise.
64599         * lib/openat.c: Likewise.
64600         * lib/openat.h: Likewise.
64601         * lib/pagealign_alloc.c: Likewise.
64602         * lib/pagealign_alloc.h: Likewise.
64603         * lib/physmem.c: Likewise.
64604         * lib/physmem.h: Likewise.
64605         * lib/pipe-safer.c: Likewise.
64606         * lib/pipe.c: Likewise.
64607         * lib/pipe.h: Likewise.
64608         * lib/posixtm.c: Likewise.
64609         * lib/posixtm.h: Likewise.
64610         * lib/posixver.c: Likewise.
64611         * lib/printf-frexp.c: Likewise.
64612         * lib/printf-frexp.h: Likewise.
64613         * lib/printf-frexpl.c: Likewise.
64614         * lib/printf-frexpl.h: Likewise.
64615         * lib/printf.c: Likewise.
64616         * lib/progname.c: Likewise.
64617         * lib/progname.h: Likewise.
64618         * lib/progreloc.c: Likewise.
64619         * lib/putenv.c: Likewise.
64620         * lib/quote.c: Likewise.
64621         * lib/quote.h: Likewise.
64622         * lib/quotearg.c: Likewise.
64623         * lib/quotearg.h: Likewise.
64624         * lib/raise.c: Likewise.
64625         * lib/readline.c: Likewise.
64626         * lib/readline.h: Likewise.
64627         * lib/readlink.c: Likewise.
64628         * lib/readtokens.c: Likewise.
64629         * lib/readtokens.h: Likewise.
64630         * lib/readtokens0.c: Likewise.
64631         * lib/readtokens0.h: Likewise.
64632         * lib/readutmp.c: Likewise.
64633         * lib/readutmp.h: Likewise.
64634         * lib/realloc.c: Likewise.
64635         * lib/relocwrapper.c: Likewise.
64636         * lib/rename-dest-slash.c: Likewise.
64637         * lib/rename.c: Likewise.
64638         * lib/rmdir.c: Likewise.
64639         * lib/rpmatch.c: Likewise.
64640         * lib/safe-read.c: Likewise.
64641         * lib/safe-read.h: Likewise.
64642         * lib/safe-write.c: Likewise.
64643         * lib/safe-write.h: Likewise.
64644         * lib/same-inode.h: Likewise.
64645         * lib/same.c: Likewise.
64646         * lib/same.h: Likewise.
64647         * lib/save-cwd.c: Likewise.
64648         * lib/save-cwd.h: Likewise.
64649         * lib/savedir.c: Likewise.
64650         * lib/savedir.h: Likewise.
64651         * lib/savewd.c: Likewise.
64652         * lib/savewd.h: Likewise.
64653         * lib/search.in.h: Likewise.
64654         * lib/setenv.c: Likewise.
64655         * lib/setenv.h: Likewise.
64656         * lib/settime.c: Likewise.
64657         * lib/sh-quote.c: Likewise.
64658         * lib/sh-quote.h: Likewise.
64659         * lib/sig2str.c: Likewise.
64660         * lib/sig2str.h: Likewise.
64661         * lib/signal.in.h: Likewise.
64662         * lib/signbitd.c: Likewise.
64663         * lib/signbitf.c: Likewise.
64664         * lib/signbitl.c: Likewise.
64665         * lib/sigprocmask.c: Likewise.
64666         * lib/sincosl.c: Likewise.
64667         * lib/sleep.c: Likewise.
64668         * lib/sprintf.c: Likewise.
64669         * lib/sqrtl.c: Likewise.
64670         * lib/stat-time.h: Likewise.
64671         * lib/stdio--.h: Likewise.
64672         * lib/stdio-safer.h: Likewise.
64673         * lib/stdlib--.h: Likewise.
64674         * lib/stdlib-safer.h: Likewise.
64675         * lib/stdlib.in.h: Likewise.
64676         * lib/stpcpy.c: Likewise.
64677         * lib/stpncpy.c: Likewise.
64678         * lib/strchrnul.c: Likewise.
64679         * lib/strcspn.c: Likewise.
64680         * lib/strerror.c: Likewise.
64681         * lib/strftime.c: Likewise.
64682         * lib/strftime.h: Likewise.
64683         * lib/striconveh.c: Likewise.
64684         * lib/striconveh.h: Likewise.
64685         * lib/striconveha.c: Likewise.
64686         * lib/striconveha.h: Likewise.
64687         * lib/stripslash.c: Likewise.
64688         * lib/strnlen1.c: Likewise.
64689         * lib/strnlen1.h: Likewise.
64690         * lib/strtod.c: Likewise.
64691         * lib/strtoimax.c: Likewise.
64692         * lib/strtok_r.c: Likewise.
64693         * lib/strtol.c: Likewise.
64694         * lib/strtoll.c: Likewise.
64695         * lib/strtoul.c: Likewise.
64696         * lib/strtoull.c: Likewise.
64697         * lib/sysexits.in.h: Likewise.
64698         * lib/tempname.c: Likewise.
64699         * lib/tempname.h: Likewise.
64700         * lib/timespec.h: Likewise.
64701         * lib/tls.c: Likewise.
64702         * lib/tls.h: Likewise.
64703         * lib/tmpdir.c: Likewise.
64704         * lib/tmpdir.h: Likewise.
64705         * lib/tmpfile-safer.c: Likewise.
64706         * lib/tmpfile.c: Likewise.
64707         * lib/trigl.c: Likewise.
64708         * lib/trigl.h: Likewise.
64709         * lib/trim.c: Likewise.
64710         * lib/trim.h: Likewise.
64711         * lib/trunc.c: Likewise.
64712         * lib/truncf.c: Likewise.
64713         * lib/truncl.c: Likewise.
64714         * lib/tsearch.c: Likewise.
64715         * lib/unicodeio.c: Likewise.
64716         * lib/unicodeio.h: Likewise.
64717         * lib/unistd--.h: Likewise.
64718         * lib/unistd-safer.h: Likewise.
64719         * lib/unistdio/ulc-fprintf.c: Likewise.
64720         * lib/unistdio/ulc-vfprintf.c: Likewise.
64721         * lib/unlinkdir.c: Likewise.
64722         * lib/unlinkdir.h: Likewise.
64723         * lib/unlocked-io.h: Likewise.
64724         * lib/unsetenv.c: Likewise.
64725         * lib/userspec.c: Likewise.
64726         * lib/utime.c: Likewise.
64727         * lib/utimecmp.c: Likewise.
64728         * lib/utimecmp.h: Likewise.
64729         * lib/utimens.c: Likewise.
64730         * lib/verify.h: Likewise.
64731         * lib/verror.c: Likewise.
64732         * lib/verror.h: Likewise.
64733         * lib/version-etc-fsf.c: Likewise.
64734         * lib/version-etc.c: Likewise.
64735         * lib/version-etc.h: Likewise.
64736         * lib/vfprintf.c: Likewise.
64737         * lib/vprintf.c: Likewise.
64738         * lib/vsprintf.c: Likewise.
64739         * lib/w32spawn.h: Likewise.
64740         * lib/wait-process.c: Likewise.
64741         * lib/wait-process.h: Likewise.
64742         * lib/wcwidth.c: Likewise.
64743         * lib/write-any-file.c: Likewise.
64744         * lib/xalloc-die.c: Likewise.
64745         * lib/xalloc.h: Likewise.
64746         * lib/xasprintf.c: Likewise.
64747         * lib/xgetcwd.c: Likewise.
64748         * lib/xgetcwd.h: Likewise.
64749         * lib/xgetdomainname.c: Likewise.
64750         * lib/xgetdomainname.h: Likewise.
64751         * lib/xgethostname.c: Likewise.
64752         * lib/xmalloc.c: Likewise.
64753         * lib/xmalloca.c: Likewise.
64754         * lib/xmalloca.h: Likewise.
64755         * lib/xmemcoll.c: Likewise.
64756         * lib/xnanosleep.c: Likewise.
64757         * lib/xreadlink.c: Likewise.
64758         * lib/xreadlink.h: Likewise.
64759         * lib/xsetenv.c: Likewise.
64760         * lib/xsetenv.h: Likewise.
64761         * lib/xstriconv.c: Likewise.
64762         * lib/xstriconv.h: Likewise.
64763         * lib/xstrndup.c: Likewise.
64764         * lib/xstrndup.h: Likewise.
64765         * lib/xstrtod.c: Likewise.
64766         * lib/xstrtod.h: Likewise.
64767         * lib/xstrtol-error.c: Likewise.
64768         * lib/xstrtol.c: Likewise.
64769         * lib/xstrtol.h: Likewise.
64770         * lib/xtime.h: Likewise.
64771         * lib/xvasprintf.c: Likewise.
64772         * lib/xvasprintf.h: Likewise.
64773         * lib/yesno.c: Likewise.
64774         * lib/yesno.h: Likewise.
64775         * posix-modules: Likewise.
64776         * tests/test-alloca-opt.c: Likewise.
64777         * tests/test-arcfour.c: Likewise.
64778         * tests/test-arctwo.c: Likewise.
64779         * tests/test-argmatch.c: Likewise.
64780         * tests/test-argp-2.sh: Likewise.
64781         * tests/test-argp.c: Likewise.
64782         * tests/test-arpa_inet.c: Likewise.
64783         * tests/test-array_list.c: Likewise.
64784         * tests/test-array_oset.c: Likewise.
64785         * tests/test-atexit.c: Likewise.
64786         * tests/test-avltree_list.c: Likewise.
64787         * tests/test-avltree_oset.c: Likewise.
64788         * tests/test-avltreehash_list.c: Likewise.
64789         * tests/test-base64.c: Likewise.
64790         * tests/test-binary-io.c: Likewise.
64791         * tests/test-byteswap.c: Likewise.
64792         * tests/test-c-ctype.c: Likewise.
64793         * tests/test-c-strcasecmp.c: Likewise.
64794         * tests/test-c-strcasestr.c: Likewise.
64795         * tests/test-c-strncasecmp.c: Likewise.
64796         * tests/test-c-strstr.c: Likewise.
64797         * tests/test-canonicalize-lgpl.c: Likewise.
64798         * tests/test-canonicalize.c: Likewise.
64799         * tests/test-carray_list.c: Likewise.
64800         * tests/test-ceilf.c: Likewise.
64801         * tests/test-ceill.c: Likewise.
64802         * tests/test-count-one-bits.c: Likewise.
64803         * tests/test-crc.c: Likewise.
64804         * tests/test-dirname.c: Likewise.
64805         * tests/test-fbufmode.c: Likewise.
64806         * tests/test-fcntl.c: Likewise.
64807         * tests/test-fflush.c: Likewise.
64808         * tests/test-floorf.c: Likewise.
64809         * tests/test-floorl.c: Likewise.
64810         * tests/test-fopen.c: Likewise.
64811         * tests/test-fprintf-posix.c: Likewise.
64812         * tests/test-fprintf-posix.h: Likewise.
64813         * tests/test-fpurge.c: Likewise.
64814         * tests/test-freadable.c: Likewise.
64815         * tests/test-freadahead.c: Likewise.
64816         * tests/test-freading.c: Likewise.
64817         * tests/test-freopen.c: Likewise.
64818         * tests/test-frexp.c: Likewise.
64819         * tests/test-frexpl.c: Likewise.
64820         * tests/test-fseek.c: Likewise.
64821         * tests/test-fseeko.c: Likewise.
64822         * tests/test-fseterr.c: Likewise.
64823         * tests/test-fstrcmp.c: Likewise.
64824         * tests/test-ftell.c: Likewise.
64825         * tests/test-ftello.c: Likewise.
64826         * tests/test-fwritable.c: Likewise.
64827         * tests/test-fwriting.c: Likewise.
64828         * tests/test-getaddrinfo.c: Likewise.
64829         * tests/test-getpass.c: Likewise.
64830         * tests/test-gettimeofday.c: Likewise.
64831         * tests/test-hmac-md5.c: Likewise.
64832         * tests/test-hmac-sha1.c: Likewise.
64833         * tests/test-iconv.c: Likewise.
64834         * tests/test-iconvme.c: Likewise.
64835         * tests/test-inttypes.c: Likewise.
64836         * tests/test-isnan.c: Likewise.
64837         * tests/test-isnanf.c: Likewise.
64838         * tests/test-isnanl-nolibm.c: Likewise.
64839         * tests/test-isnanl.c: Likewise.
64840         * tests/test-isnanl.h: Likewise.
64841         * tests/test-ldexpl.c: Likewise.
64842         * tests/test-linked_list.c: Likewise.
64843         * tests/test-linkedhash_list.c: Likewise.
64844         * tests/test-locale.c: Likewise.
64845         * tests/test-localename.c: Likewise.
64846         * tests/test-lock.c: Likewise.
64847         * tests/test-lseek.c: Likewise.
64848         * tests/test-malloca.c: Likewise.
64849         * tests/test-math.c: Likewise.
64850         * tests/test-mbscasecmp.c: Likewise.
64851         * tests/test-mbscasestr1.c: Likewise.
64852         * tests/test-mbscasestr2.c: Likewise.
64853         * tests/test-mbscasestr3.c: Likewise.
64854         * tests/test-mbscasestr4.c: Likewise.
64855         * tests/test-mbschr.c: Likewise.
64856         * tests/test-mbscspn.c: Likewise.
64857         * tests/test-mbsncasecmp.c: Likewise.
64858         * tests/test-mbspbrk.c: Likewise.
64859         * tests/test-mbspcasecmp.c: Likewise.
64860         * tests/test-mbsrchr.c: Likewise.
64861         * tests/test-mbsspn.c: Likewise.
64862         * tests/test-mbsstr1.c: Likewise.
64863         * tests/test-mbsstr2.c: Likewise.
64864         * tests/test-mbsstr3.c: Likewise.
64865         * tests/test-md5.c: Likewise.
64866         * tests/test-memmem.c: Likewise.
64867         * tests/test-netinet_in.c: Likewise.
64868         * tests/test-open.c: Likewise.
64869         * tests/test-printf-frexp.c: Likewise.
64870         * tests/test-printf-frexpl.c: Likewise.
64871         * tests/test-printf-posix.c: Likewise.
64872         * tests/test-printf-posix.h: Likewise.
64873         * tests/test-rbtree_list.c: Likewise.
64874         * tests/test-rbtree_oset.c: Likewise.
64875         * tests/test-rbtreehash_list.c: Likewise.
64876         * tests/test-read-file.c: Likewise.
64877         * tests/test-rijndael.c: Likewise.
64878         * tests/test-search.c: Likewise.
64879         * tests/test-signbit.c: Likewise.
64880         * tests/test-sleep.c: Likewise.
64881         * tests/test-snprintf-posix.c: Likewise.
64882         * tests/test-snprintf-posix.h: Likewise.
64883         * tests/test-snprintf.c: Likewise.
64884         * tests/test-sprintf-posix.c: Likewise.
64885         * tests/test-sprintf-posix.h: Likewise.
64886         * tests/test-stat-time.c: Likewise.
64887         * tests/test-stdbool.c: Likewise.
64888         * tests/test-stdint.c: Likewise.
64889         * tests/test-stdio.c: Likewise.
64890         * tests/test-stdlib.c: Likewise.
64891         * tests/test-stpncpy.c: Likewise.
64892         * tests/test-strcasestr.c: Likewise.
64893         * tests/test-striconv.c: Likewise.
64894         * tests/test-striconveh.c: Likewise.
64895         * tests/test-striconveha.c: Likewise.
64896         * tests/test-string.c: Likewise.
64897         * tests/test-sys_select.c: Likewise.
64898         * tests/test-sys_socket.c: Likewise.
64899         * tests/test-sys_stat.c: Likewise.
64900         * tests/test-sys_time.c: Likewise.
64901         * tests/test-sysexits.c: Likewise.
64902         * tests/test-time.c: Likewise.
64903         * tests/test-tls.c: Likewise.
64904         * tests/test-trunc.c: Likewise.
64905         * tests/test-truncf.c: Likewise.
64906         * tests/test-truncl.c: Likewise.
64907         * tests/test-unistd.c: Likewise.
64908         * tests/test-vasnprintf-posix.c: Likewise.
64909         * tests/test-vasnprintf-posix2.c: Likewise.
64910         * tests/test-vasnprintf.c: Likewise.
64911         * tests/test-vasprintf-posix.c: Likewise.
64912         * tests/test-vasprintf.c: Likewise.
64913         * tests/test-verify.c: Likewise.
64914         * tests/test-vfprintf-posix.c: Likewise.
64915         * tests/test-vprintf-posix.c: Likewise.
64916         * tests/test-vsnprintf-posix.c: Likewise.
64917         * tests/test-vsnprintf.c: Likewise.
64918         * tests/test-vsprintf-posix.c: Likewise.
64919         * tests/test-wchar.c: Likewise.
64920         * tests/test-wctype.c: Likewise.
64921         * tests/test-wcwidth.c: Likewise.
64922         * tests/test-xstrtol.c: Likewise.
64923         * tests/test-xvasprintf.c: Likewise.
64924         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64925         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64926         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64927         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64928         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64929         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64930         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64931         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64932         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64933         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64934         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64935         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64936         * tests/uniname/test-uninames.c: Likewise.
64937         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64938         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64939         * tests/unistdio/test-u16-printf1.h: Likewise.
64940         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64941         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64942         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64943         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64944         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64945         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64946         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64947         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64948         * tests/unistdio/test-u32-printf1.h: Likewise.
64949         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64950         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64951         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64952         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64953         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64954         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64955         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64956         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64957         * tests/unistdio/test-u8-printf1.h: Likewise.
64958         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64959         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64960         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64961         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64962         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64963         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64964         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64965         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64966         * tests/unistdio/test-ulc-printf1.h: Likewise.
64967         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64968         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64969         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64970         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64971         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64972         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64973         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64974         * tests/uniwidth/test-u16-width.c: Likewise.
64975         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64976         * tests/uniwidth/test-u32-width.c: Likewise.
64977         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64978         * tests/uniwidth/test-u8-width.c: Likewise.
64979         * tests/uniwidth/test-uc_width.c: Likewise.
64980         * config/srclist-update: Likewise.
64981         (fixlicense): Update to GPLv3+.
64982
64983         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64984         * tests/test-tsearch.c: Change copyright notice.
64985
64986         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64987         * lib/c-strcaseeq.h: Change copyright notice.
64988         * lib/streq.h: Likewise.
64989         * lib/uniconv.h: Likewise.
64990         * lib/uniconv/u-conv-from-enc.h: Likewise.
64991         * lib/uniconv/u-conv-to-enc.h: Likewise.
64992         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64993         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64994         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64995         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64996         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64997         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64998         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64999         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65000         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65001         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65002         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65003         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65004         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65005         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65006         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65007         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65008         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65009         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65010         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65011         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65012         * lib/uniname.h: Likewise.
65013         * lib/uniname/uniname.c: Likewise.
65014         * lib/unistdio.h: Likewise.
65015         * lib/unistdio/u-asnprintf.h: Likewise.
65016         * lib/unistdio/u-asprintf.h: Likewise.
65017         * lib/unistdio/u-printf-args.c: Likewise.
65018         * lib/unistdio/u-printf-args.h: Likewise.
65019         * lib/unistdio/u-printf-parse.h: Likewise.
65020         * lib/unistdio/u-snprintf.h: Likewise.
65021         * lib/unistdio/u-sprintf.h: Likewise.
65022         * lib/unistdio/u-vasprintf.h: Likewise.
65023         * lib/unistdio/u-vsnprintf.h: Likewise.
65024         * lib/unistdio/u-vsprintf.h: Likewise.
65025         * lib/unistdio/u16-asnprintf.c: Likewise.
65026         * lib/unistdio/u16-asprintf.c: Likewise.
65027         * lib/unistdio/u16-printf-parse.c: Likewise.
65028         * lib/unistdio/u16-snprintf.c: Likewise.
65029         * lib/unistdio/u16-sprintf.c: Likewise.
65030         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65031         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65032         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65033         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65034         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65035         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65036         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65037         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65038         * lib/unistdio/u16-vasnprintf.c: Likewise.
65039         * lib/unistdio/u16-vasprintf.c: Likewise.
65040         * lib/unistdio/u16-vsnprintf.c: Likewise.
65041         * lib/unistdio/u16-vsprintf.c: Likewise.
65042         * lib/unistdio/u32-asnprintf.c: Likewise.
65043         * lib/unistdio/u32-asprintf.c: Likewise.
65044         * lib/unistdio/u32-printf-parse.c: Likewise.
65045         * lib/unistdio/u32-snprintf.c: Likewise.
65046         * lib/unistdio/u32-sprintf.c: Likewise.
65047         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65048         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65049         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65050         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65051         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65052         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65053         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65054         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65055         * lib/unistdio/u32-vasnprintf.c: Likewise.
65056         * lib/unistdio/u32-vasprintf.c: Likewise.
65057         * lib/unistdio/u32-vsnprintf.c: Likewise.
65058         * lib/unistdio/u32-vsprintf.c: Likewise.
65059         * lib/unistdio/u8-asnprintf.c: Likewise.
65060         * lib/unistdio/u8-asprintf.c: Likewise.
65061         * lib/unistdio/u8-printf-parse.c: Likewise.
65062         * lib/unistdio/u8-snprintf.c: Likewise.
65063         * lib/unistdio/u8-sprintf.c: Likewise.
65064         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65065         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65066         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65067         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65068         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65069         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65070         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65071         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65072         * lib/unistdio/u8-vasnprintf.c: Likewise.
65073         * lib/unistdio/u8-vasprintf.c: Likewise.
65074         * lib/unistdio/u8-vsnprintf.c: Likewise.
65075         * lib/unistdio/u8-vsprintf.c: Likewise.
65076         * lib/unistdio/ulc-asnprintf.c: Likewise.
65077         * lib/unistdio/ulc-asprintf.c: Likewise.
65078         * lib/unistdio/ulc-printf-parse.c: Likewise.
65079         * lib/unistdio/ulc-snprintf.c: Likewise.
65080         * lib/unistdio/ulc-sprintf.c: Likewise.
65081         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65082         * lib/unistdio/ulc-vasprintf.c: Likewise.
65083         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65084         * lib/unistdio/ulc-vsprintf.c: Likewise.
65085         * lib/unistr.h: Likewise.
65086         * lib/unistr/u-cpy-alloc.h: Likewise.
65087         * lib/unistr/u-cpy.h: Likewise.
65088         * lib/unistr/u-endswith.h: Likewise.
65089         * lib/unistr/u-move.h: Likewise.
65090         * lib/unistr/u-set.h: Likewise.
65091         * lib/unistr/u-startswith.h: Likewise.
65092         * lib/unistr/u-stpcpy.h: Likewise.
65093         * lib/unistr/u-stpncpy.h: Likewise.
65094         * lib/unistr/u-strcat.h: Likewise.
65095         * lib/unistr/u-strcpy.h: Likewise.
65096         * lib/unistr/u-strcspn.h: Likewise.
65097         * lib/unistr/u-strdup.h: Likewise.
65098         * lib/unistr/u-strlen.h: Likewise.
65099         * lib/unistr/u-strncat.h: Likewise.
65100         * lib/unistr/u-strncpy.h: Likewise.
65101         * lib/unistr/u-strnlen.h: Likewise.
65102         * lib/unistr/u-strpbrk.h: Likewise.
65103         * lib/unistr/u-strspn.h: Likewise.
65104         * lib/unistr/u-strstr.h: Likewise.
65105         * lib/unistr/u-strtok.h: Likewise.
65106         * lib/unistr/u16-check.c: Likewise.
65107         * lib/unistr/u16-chr.c: Likewise.
65108         * lib/unistr/u16-cmp.c: Likewise.
65109         * lib/unistr/u16-cpy-alloc.c: Likewise.
65110         * lib/unistr/u16-cpy.c: Likewise.
65111         * lib/unistr/u16-endswith.c: Likewise.
65112         * lib/unistr/u16-mblen.c: Likewise.
65113         * lib/unistr/u16-mbsnlen.c: Likewise.
65114         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65115         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65116         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65117         * lib/unistr/u16-mbtouc.c: Likewise.
65118         * lib/unistr/u16-mbtoucr.c: Likewise.
65119         * lib/unistr/u16-move.c: Likewise.
65120         * lib/unistr/u16-next.c: Likewise.
65121         * lib/unistr/u16-prev.c: Likewise.
65122         * lib/unistr/u16-set.c: Likewise.
65123         * lib/unistr/u16-startswith.c: Likewise.
65124         * lib/unistr/u16-stpcpy.c: Likewise.
65125         * lib/unistr/u16-stpncpy.c: Likewise.
65126         * lib/unistr/u16-strcat.c: Likewise.
65127         * lib/unistr/u16-strchr.c: Likewise.
65128         * lib/unistr/u16-strcmp.c: Likewise.
65129         * lib/unistr/u16-strcpy.c: Likewise.
65130         * lib/unistr/u16-strcspn.c: Likewise.
65131         * lib/unistr/u16-strdup.c: Likewise.
65132         * lib/unistr/u16-strlen.c: Likewise.
65133         * lib/unistr/u16-strmblen.c: Likewise.
65134         * lib/unistr/u16-strmbtouc.c: Likewise.
65135         * lib/unistr/u16-strncat.c: Likewise.
65136         * lib/unistr/u16-strncmp.c: Likewise.
65137         * lib/unistr/u16-strncpy.c: Likewise.
65138         * lib/unistr/u16-strnlen.c: Likewise.
65139         * lib/unistr/u16-strpbrk.c: Likewise.
65140         * lib/unistr/u16-strrchr.c: Likewise.
65141         * lib/unistr/u16-strspn.c: Likewise.
65142         * lib/unistr/u16-strstr.c: Likewise.
65143         * lib/unistr/u16-strtok.c: Likewise.
65144         * lib/unistr/u16-to-u32.c: Likewise.
65145         * lib/unistr/u16-to-u8.c: Likewise.
65146         * lib/unistr/u16-uctomb-aux.c: Likewise.
65147         * lib/unistr/u16-uctomb.c: Likewise.
65148         * lib/unistr/u32-check.c: Likewise.
65149         * lib/unistr/u32-chr.c: Likewise.
65150         * lib/unistr/u32-cmp.c: Likewise.
65151         * lib/unistr/u32-cpy-alloc.c: Likewise.
65152         * lib/unistr/u32-cpy.c: Likewise.
65153         * lib/unistr/u32-endswith.c: Likewise.
65154         * lib/unistr/u32-mblen.c: Likewise.
65155         * lib/unistr/u32-mbsnlen.c: Likewise.
65156         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65157         * lib/unistr/u32-mbtouc.c: Likewise.
65158         * lib/unistr/u32-mbtoucr.c: Likewise.
65159         * lib/unistr/u32-move.c: Likewise.
65160         * lib/unistr/u32-next.c: Likewise.
65161         * lib/unistr/u32-prev.c: Likewise.
65162         * lib/unistr/u32-set.c: Likewise.
65163         * lib/unistr/u32-startswith.c: Likewise.
65164         * lib/unistr/u32-stpcpy.c: Likewise.
65165         * lib/unistr/u32-stpncpy.c: Likewise.
65166         * lib/unistr/u32-strcat.c: Likewise.
65167         * lib/unistr/u32-strchr.c: Likewise.
65168         * lib/unistr/u32-strcmp.c: Likewise.
65169         * lib/unistr/u32-strcpy.c: Likewise.
65170         * lib/unistr/u32-strcspn.c: Likewise.
65171         * lib/unistr/u32-strdup.c: Likewise.
65172         * lib/unistr/u32-strlen.c: Likewise.
65173         * lib/unistr/u32-strmblen.c: Likewise.
65174         * lib/unistr/u32-strmbtouc.c: Likewise.
65175         * lib/unistr/u32-strncat.c: Likewise.
65176         * lib/unistr/u32-strncmp.c: Likewise.
65177         * lib/unistr/u32-strncpy.c: Likewise.
65178         * lib/unistr/u32-strnlen.c: Likewise.
65179         * lib/unistr/u32-strpbrk.c: Likewise.
65180         * lib/unistr/u32-strrchr.c: Likewise.
65181         * lib/unistr/u32-strspn.c: Likewise.
65182         * lib/unistr/u32-strstr.c: Likewise.
65183         * lib/unistr/u32-strtok.c: Likewise.
65184         * lib/unistr/u32-to-u16.c: Likewise.
65185         * lib/unistr/u32-to-u8.c: Likewise.
65186         * lib/unistr/u32-uctomb.c: Likewise.
65187         * lib/unistr/u8-check.c: Likewise.
65188         * lib/unistr/u8-chr.c: Likewise.
65189         * lib/unistr/u8-cmp.c: Likewise.
65190         * lib/unistr/u8-cpy-alloc.c: Likewise.
65191         * lib/unistr/u8-cpy.c: Likewise.
65192         * lib/unistr/u8-endswith.c: Likewise.
65193         * lib/unistr/u8-mblen.c: Likewise.
65194         * lib/unistr/u8-mbsnlen.c: Likewise.
65195         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65196         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65197         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65198         * lib/unistr/u8-mbtouc.c: Likewise.
65199         * lib/unistr/u8-mbtoucr.c: Likewise.
65200         * lib/unistr/u8-move.c: Likewise.
65201         * lib/unistr/u8-next.c: Likewise.
65202         * lib/unistr/u8-prev.c: Likewise.
65203         * lib/unistr/u8-set.c: Likewise.
65204         * lib/unistr/u8-startswith.c: Likewise.
65205         * lib/unistr/u8-stpcpy.c: Likewise.
65206         * lib/unistr/u8-stpncpy.c: Likewise.
65207         * lib/unistr/u8-strcat.c: Likewise.
65208         * lib/unistr/u8-strchr.c: Likewise.
65209         * lib/unistr/u8-strcmp.c: Likewise.
65210         * lib/unistr/u8-strcpy.c: Likewise.
65211         * lib/unistr/u8-strcspn.c: Likewise.
65212         * lib/unistr/u8-strdup.c: Likewise.
65213         * lib/unistr/u8-strlen.c: Likewise.
65214         * lib/unistr/u8-strmblen.c: Likewise.
65215         * lib/unistr/u8-strmbtouc.c: Likewise.
65216         * lib/unistr/u8-strncat.c: Likewise.
65217         * lib/unistr/u8-strncmp.c: Likewise.
65218         * lib/unistr/u8-strncpy.c: Likewise.
65219         * lib/unistr/u8-strnlen.c: Likewise.
65220         * lib/unistr/u8-strpbrk.c: Likewise.
65221         * lib/unistr/u8-strrchr.c: Likewise.
65222         * lib/unistr/u8-strspn.c: Likewise.
65223         * lib/unistr/u8-strstr.c: Likewise.
65224         * lib/unistr/u8-strtok.c: Likewise.
65225         * lib/unistr/u8-to-u16.c: Likewise.
65226         * lib/unistr/u8-to-u32.c: Likewise.
65227         * lib/unistr/u8-uctomb-aux.c: Likewise.
65228         * lib/unistr/u8-uctomb.c: Likewise.
65229         * lib/unitypes.h: Likewise.
65230         * lib/uniwidth.h: Likewise.
65231         * lib/uniwidth/cjk.h: Likewise.
65232         * lib/uniwidth/u16-strwidth.c: Likewise.
65233         * lib/uniwidth/u16-width.c: Likewise.
65234         * lib/uniwidth/u32-strwidth.c: Likewise.
65235         * lib/uniwidth/u32-width.c: Likewise.
65236         * lib/uniwidth/u8-strwidth.c: Likewise.
65237         * lib/uniwidth/u8-width.c: Likewise.
65238         * lib/uniwidth/width.c: Likewise.
65239
65240 2007-10-07  Bruno Haible  <bruno@clisp.org>
65241
65242         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65243         The file is still under LGPL (see modules/inttypes).
65244
65245 2007-10-06  Bruno Haible  <bruno@clisp.org>
65246
65247         * modules/trunc (Dependencies): Add 'extensions'.
65248         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65249         Reported by Ben Pfaff <blp@gnu.org>.
65250
65251 2007-10-06  Bruno Haible  <bruno@clisp.org>
65252
65253         * modules/freopen-tests: New file.
65254         * tests/test-freopen.c: New file.
65255
65256         * modules/fopen-tests: New file.
65257         * tests/test-fopen.c: New file.
65258
65259         * modules/fopen: New file.
65260         * lib/fopen.c: New file.
65261         * m4/fopen.m4: New file.
65262         * modules/freopen: New file.
65263         * lib/freopen.c: New file.
65264         * m4/freopen.m4: New file.
65265         * lib/stdio.in.h (fopen, freopen): New declarations.
65266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65267         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65268         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65269         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65270         * doc/functions/fopen.texi: Mention the 'fopen' module.
65271         * doc/functions/freopen.texi: Mention the 'freopen' module.
65272
65273 2007-10-06  Bruno Haible  <bruno@clisp.org>
65274
65275         * modules/open-tests: New file.
65276         * tests/test-open.c: New file.
65277
65278         * modules/open: New file.
65279         * lib/open.c: New file.
65280         * m4/open.m4: New file.
65281         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65282         lib/open.c does.
65283         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65284         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65285         macros.
65286         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65287         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65288         REPLACE_OPEN.
65289         * doc/functions/open.texi: Mention the 'open' module.
65290
65291 2007-10-04  Bruno Haible  <bruno@clisp.org>
65292
65293         * modules/ceill-tests: New file.
65294         * tests/test-ceill.c: New file.
65295
65296         * modules/ceill: New file.
65297         * lib/ceill.c: Replace entire file.
65298         * m4/ceill.m4: New file.
65299         * lib/math.in.h (ceill): Replace declaration.
65300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65301         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65302         * doc/functions/ceill.texi: Mention the 'ceill' module.
65303         * modules/mathl (Files): Remove lib/ceill.c.
65304         (Depends-on): Add ceill.
65305
65306 2007-10-04  Bruno Haible  <bruno@clisp.org>
65307
65308         * modules/ceilf-tests: New file.
65309         * tests/test-ceilf.c: New file.
65310
65311         * modules/ceilf: New file.
65312         * lib/ceil.c: New file.
65313         * lib/ceilf.c: New file.
65314         * m4/ceilf.m4: New file.
65315         * lib/math.in.h (ceilf): New declaration.
65316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65317         HAVE_DECL_CEILF.
65318         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65319         HAVE_DECL_CEILF.
65320         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65321
65322 2007-10-04  Bruno Haible  <bruno@clisp.org>
65323
65324         * modules/floorl-tests: New file.
65325         * tests/test-floorl.c: New file.
65326
65327         * modules/floorl: New file.
65328         * lib/floorl.c: Replace entire file.
65329         * m4/floorl.m4: New file.
65330         * lib/math.in.h (floorl): Replace declaration.
65331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65332         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65333         * doc/functions/floorl.texi: Mention the 'floorl' module.
65334         * modules/mathl (Files): Remove lib/floorl.c.
65335         (Depends-on): Add floorl.
65336
65337 2007-10-04  Bruno Haible  <bruno@clisp.org>
65338
65339         * modules/floorf-tests: New file.
65340         * tests/test-floorf.c: New file.
65341
65342         * modules/floorf: New file.
65343         * lib/floor.c: New file.
65344         * lib/floorf.c: New file.
65345         * m4/floorf.m4: New file.
65346         * lib/math.in.h (floorf): New declaration.
65347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65348         HAVE_DECL_FLOORF.
65349         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65350         HAVE_DECL_FLOORF.
65351         * doc/functions/floorf.texi: Mention the 'floorf' module.
65352
65353 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65354             Bruno Haible  <bruno@clisp.org>
65355
65356         Advertise for the Git server instead of the CVS server.
65357         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65358         repository instead of the CVS one.
65359         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65360         about all VCS systems generically.
65361         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65362
65363 2007-10-04  Bruno Haible  <bruno@clisp.org>
65364
65365         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65366         means.
65367         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65368
65369 2007-10-04  Bruno Haible  <bruno@clisp.org>
65370
65371         * modules/truncl-tests: New file.
65372         * tests/test-truncl.c: New file.
65373
65374         * modules/truncl: New file.
65375         * lib/truncl.c: New file.
65376         * m4/truncl.m4: New file.
65377         * lib/math.in.h (truncl): New declaration.
65378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65379         HAVE_DECL_TRUNCL.
65380         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65381         HAVE_DECL_TRUNCL.
65382         * doc/functions/truncl.texi: Mention the 'truncl' module.
65383
65384 2007-10-04  Bruno Haible  <bruno@clisp.org>
65385
65386         * modules/truncf-tests: New file.
65387         * tests/test-truncf.c: New file.
65388
65389         * modules/truncf: New file.
65390         * lib/trunc.c: Make paramerizable through USE_* macros.
65391         * lib/truncf.c: New file.
65392         * m4/truncf.m4: New file.
65393         * lib/math.in.h (truncf): New declaration.
65394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65395         HAVE_DECL_TRUNCF.
65396         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65397         HAVE_DECL_TRUNCF.
65398         * doc/functions/truncf.texi: Mention the 'truncf' module.
65399
65400 2007-10-03  Bruno Haible  <bruno@clisp.org>
65401
65402         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65403         augmentation also for tests modules.
65404         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65405         * modules/atexit-tests (Makefile.am): Likewise.
65406         * modules/binary-io-tests (Makefile.am): Likewise.
65407         * modules/c-strcase-tests (Makefile.am): Likewise.
65408         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65409         * modules/canonicalize-tests (Makefile.am): Likewise.
65410         * modules/closein-tests (Makefile.am): Likewise.
65411         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65412         * modules/freadahead-tests (Makefile.am): Likewise.
65413         * modules/fseek-tests (Makefile.am): Likewise.
65414         * modules/fseeko-tests (Makefile.am): Likewise.
65415         * modules/ftell-tests (Makefile.am): Likewise.
65416         * modules/ftello-tests (Makefile.am): Likewise.
65417         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65418         * modules/isnanl-tests (Makefile.am): Likewise.
65419         * modules/lseek-tests (Makefile.am): Likewise.
65420         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65421         * modules/mbscasestr-tests (Makefile.am): Likewise.
65422         * modules/mbschr-tests (Makefile.am): Likewise.
65423         * modules/mbscspn-tests (Makefile.am): Likewise.
65424         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65425         * modules/mbspbrk-tests (Makefile.am): Likewise.
65426         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65427         * modules/mbsrchr-tests (Makefile.am): Likewise.
65428         * modules/mbsspn-tests (Makefile.am): Likewise.
65429         * modules/mbsstr-tests (Makefile.am): Likewise.
65430         * modules/printf-posix-tests (Makefile.am): Likewise.
65431         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65432         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65433         * modules/tsearch-tests (Makefile.am): Likewise.
65434         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65435         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65436         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65437         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65438         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65439         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65440         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65441         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65442         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65443         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65444         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65445         * modules/xstrtol-tests (Makefile.am): Likewise.
65446         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65447         * modules/yesno-tests (Makefile.am): Likewise.
65448
65449 2007-10-03  Bruno Haible  <bruno@clisp.org>
65450
65451         * modules/trunc-tests: New file.
65452         * tests/test-trunc.c: New file.
65453
65454         * modules/trunc: New file.
65455         * lib/trunc.c: New file.
65456         * m4/trunc.m4: New file.
65457         * lib/math.in.h (trunc): New declaration.
65458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65459         HAVE_DECL_TRUNC.
65460         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65461         HAVE_DECL_TRUNC.
65462         * doc/functions/trunc.texi: Mention the 'trunc' module.
65463
65464 2007-10-03  Bruno Haible  <bruno@clisp.org>
65465
65466         * tests/test-fpending.c: New file, mostly copied
65467         from coreutils/lib/t-fpending.c.
65468         * modules/fpending-tests: New file.
65469
65470 2007-10-03  Bruno Haible  <bruno@clisp.org>
65471
65472         Port the stdio extensions to QNX (untested).
65473         * lib/fseterr.c (fseterr): Add support for QNX.
65474         * lib/fbufmode.c (fbufmode): Likewise.
65475         * lib/freadable.c (freadable): Likewise.
65476         * lib/fwritable.c (fwritable): Likewise.
65477         * lib/freading.c (freading): Likewise.
65478         * lib/fwriting.c (fwriting): Likewise.
65479         * lib/freadahead.c (freadahed): Likewise.
65480         * lib/fpurge.c (fpurge): Likewise.
65481         * lib/fseeko.c (rpl_fseeko): Likewise.
65482
65483 2007-10-03  Bruno Haible  <bruno@clisp.org>
65484             Jim Meyering  <jim@meyering.net>
65485             Eric Blake  <ebb9@byu.net>
65486
65487         * doc/relocatable.texi: Use @command instead of @program.
65488
65489 2007-10-02  Jim Meyering  <jim@meyering.net>
65490
65491         Perform one more "_.h" -> ".in.h" substitution.
65492         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65493         instead of unistd_.h here, too.
65494
65495 2007-10-01  Bruno Haible  <bruno@clisp.org>
65496
65497         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65498         Needed for the alloca-opt module.
65499
65500 2007-09-30  Bruno Haible  <bruno@clisp.org>
65501
65502         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65503         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65504         alloca_.h.
65505         * lib/argz.in.h: Renamed from lib/argz_.h.
65506         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65507         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65508         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65509         byteswap_.h.
65510         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65511         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65512         dirent_.h.
65513         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65514         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65515         fcntl_.h.
65516         * lib/float.in.h: Renamed from lib/float_.h.
65517         * modules/float (Files, Makefile.am): Use float.in.h instead of
65518         float_.h.
65519         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65520         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65521         fnmatch_.h.
65522         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65523         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65524         getopt_.h.
65525         * lib/glob.in.h: Renamed from lib/glob_.h.
65526         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65527         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65528         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65529         iconv_.h.
65530         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65531         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65532         inttypes_.h.
65533         * lib/locale.in.h: Renamed from lib/locale_.h.
65534         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65535         locale_.h.
65536         * lib/math.in.h: Renamed from lib/math_.h.
65537         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65538         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65539         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65540         of netinet_in_.h. Add dependency.
65541         * lib/poll.in.h: Renamed from lib/poll_.h.
65542         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65543         * lib/search.in.h: Renamed from lib/search_.h.
65544         * modules/search (Files, Makefile.am): Use search.in.h instead of
65545         search_.h.
65546         * lib/signal.in.h: Renamed from lib/signal_.h.
65547         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65548         _signal.h.
65549         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65550         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65551         stdbool_.h.
65552         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65553         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65554         stdint_.h.
65555         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65556         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65557         stdio_.h.
65558         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65559         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65560         stdlib_.h.
65561         * lib/string.in.h: Renamed from lib/string_.h.
65562         * modules/string (Files, Makefile.am): Use string.in.h instead of
65563         string_.h.
65564         * doc/gnulib-tool.texi (Initial import): Update.
65565         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65566         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65567         of sys_select_.h. Add dependency.
65568         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65569         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65570         of sys_socket_.h.
65571         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65572         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65573         sys_stat_.h.
65574         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65575         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65576         sys_time_.h.
65577         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65578         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65579         sysexits_.h.
65580         * lib/time.in.h: Renamed from lib/time_.h.
65581         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65582         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65583         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65584         unistd_.h.
65585         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65586         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65587         wchar_.h.
65588         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65589         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65590         wctype_.h.
65591         * build-aux/bootstrap (slurp): Update.
65592         * lib/.cppi-disable: Update.
65593
65594 2007-09-30  Bruno Haible  <bruno@clisp.org>
65595
65596         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65597         Needed on BeOS.
65598
65599 2007-09-30  Bruno Haible  <bruno@clisp.org>
65600
65601         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65602
65603 2007-09-29  Bruno Haible  <bruno@clisp.org>
65604
65605         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65606
65607 2007-09-29  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65610         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65611         * build-aux/install-reloc: Compile also areadlink.c.
65612         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65613
65614 2007-09-29  Bruno Haible  <bruno@clisp.org>
65615
65616         * gnulib-tool (func_emit_initmacro_done): Indentation.
65617
65618 2007-09-29  Bruno Haible  <bruno@clisp.org>
65619
65620         * README: Add CVS checkout update instructions.
65621         Info from Bob Proulx <bob@proulx.com>.
65622
65623 2007-09-28  Eric Blake  <ebb9@byu.net>
65624
65625         Provide move-if-change.
65626         * build-aux/move-if-change: New file, based on best practice
65627         rather than any canonical upstream location.
65628
65629 2007-09-28  Jim Meyering  <jim@meyering.net>
65630
65631         Fix canonicalize loop-detection corner case.
65632         Do not attempt to stat the symlink values stored via seen_triple.
65633         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65634         on linux-2.6.18, (but not 2.6.22).
65635         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65636         triple_compare.  The former compares dev,ino,filename, while the latter
65637         would actually stat dirname(filename) when dev and ino were equal.
65638         * lib/hash-triple.c: Install <string.h>.
65639         (STREQ): Define.
65640         (triple_compare_ino_str): New function.
65641         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65642
65643 2007-09-28  Eric Blake  <ebb9@byu.net>
65644
65645         Enforce that AC_REPLACE_FUNCS files exist.
65646         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65647         override check for typos.
65648
65649         Fix test-closein on Solaris 10.
65650         * tests/test-closein.c (main): Don't assume stdin can be inherited
65651         closed on all systems.
65652         * tests/test-closein.sh: Likewise.
65653         Reported by Piotr Tarnowski.
65654
65655 2007-09-28  Jim Meyering  <jim@meyering.net>
65656
65657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65658
65659 2007-09-27  Jim Meyering  <jim@meyering.net>
65660
65661         canonicalize: Avoid a false-positive cycle failure.
65662         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65663         Sort.  Remove cycle-check.
65664         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65665         not cycle-check.h.
65666         (seen_triple): New function.
65667         (canonicalize_filename_mode): Use it instead of cycle-check.
65668         * tests/test-canonicalize.c: Add a test for this bug.
65669         * tests/test-canonicalize.sh: Set up and run the test.
65670
65671         New module, file-set, from coreutils.
65672         * modules/file-set: Define it.
65673         * lib/file-set.c, lib/file-set.h: Implement.
65674
65675         New module, hash-triple, from coreutils.
65676         * modules/hash-triple: Define it.
65677         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65678
65679 2007-09-25  Eric Blake  <ebb9@byu.net>
65680
65681         Fix strerror on Interix.
65682         * lib/string_.h (strerror): Declare replacement.
65683         * doc/functions/strerror.texi (strerror): Document the Interix
65684         shortcoming.
65685         * modules/string (Makefile.am): Support new hooks.
65686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65687         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65688         gl_FUNC_STRERROR_SEPARATE.
65689         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65690         * lib/strerror.c (rpl_strerror): Provide replacement.
65691         * modules/strerror (Depends-on): Add string.
65692         (configure.ac): Detect use of module.
65693         * tests/test-strerror.c: New file.
65694         * modules/strerror-tests: New test module.
65695         * modules/argp (Depends-on): Add strerror.
65696         * modules/error (Depends-on): Likewise.
65697         Reported by Martin Koeppe.
65698
65699 2007-09-24  Bruno Haible  <bruno@clisp.org>
65700
65701         * README: Update git instructions.
65702
65703 2007-09-24  Eric Blake  <ebb9@byu.net>
65704
65705         Revert fpending breakage from 2007-09-08.
65706         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65707         __fpending.c.
65708
65709 2007-09-24  Jim Meyering  <jim@meyering.net>
65710
65711         filenamecat.c: Add a test.
65712         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65713         showing how the function works when DIR is the empty string.
65714
65715 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65716
65717         * tests/test-canonicalize.sh: Turn on executable bit.
65718
65719 2007-09-19  Eric Blake  <ebb9@byu.net>
65720
65721         * README: Update CVS instructions.
65722
65723 2007-09-18  Bruno Haible  <bruno@clisp.org>
65724
65725         * modules/areadlink: New file.
65726         * lib/areadlink.h (areadlink): New declaration.
65727         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65728
65729 2007-09-17  Jim Meyering  <jim@meyering.net>
65730
65731         * lib/savewd.c (ESTALE) [!defined]: Define.
65732         Reported to be required on Interix by Martin Koeppe.
65733
65734 2007-09-17  Bruno Haible  <bruno@clisp.org>
65735
65736         * gnulib-tool (func_version): Use $version.
65737
65738 2007-09-16  Bruno Haible  <bruno@clisp.org>
65739
65740         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65741         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65742         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65743         Reported by Greg Schafer <gschafer@zip.com.au>.
65744
65745 2007-09-15  Bruno Haible  <bruno@clisp.org>
65746
65747         * gnulib-tool (sed): Try a little harder to make bash understand the
65748         alias.
65749         Reported by Bruce Korb <bruce.korb@gmail.com>.
65750
65751 2007-09-13  Eric Blake  <ebb9@byu.net>
65752
65753         * ChangeLog: Remove conflict markers.
65754
65755 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65756
65757         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65758         Reported by Bruno Haible <bruno@clisp.org>.
65759
65760 2007-09-12  Bruno Haible  <bruno@clisp.org>
65761
65762         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65763         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65764         is not defined.
65765
65766 2007-09-12  Eric Blake  <ebb9@byu.net>
65767
65768         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65769         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65770         Autoconf definition.
65771         * modules/euidaccess (Depends-on): Add extensions, for
65772         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65773         * modules/fnmatch (Depends-on): Likewise.
65774         * modules/getaddrinfo (Depends-on): Likewise.
65775         * modules/getdelim (Depends-on): Likewise.
65776         * modules/getline (Depends-on): Likewise.
65777         * modules/getsubopt (Depends-on): Likewise.
65778         * modules/gettext (Depends-on): Likewise.
65779         * modules/group-member (Depends-on): Likewise.
65780         * modules/mbchar (Depends-on): Likewise.
65781         * modules/memmem (Depends-on): Likewise.
65782         * modules/mempcpy (Depends-on): Likewise.
65783         * modules/memrchr (Depends-on): Likewise.
65784         * modules/pagealign_alloc (Depends-on): Likewise.
65785         * modules/readutmp (Depends-on): Likewise.
65786         * modules/stpcpy (Depends-on): Likewise.
65787         * modules/stpncpy (Depends-on): Likewise.
65788         * modules/strchrnul (Depends-on): Likewise.
65789         * modules/strndup (Depends-on): Likewise.
65790         * modules/strsep (Depends-on): Likewise.
65791         * modules/strverscmp (Depends-on): Likewise.
65792         * modules/vasprintf (Depends-on): Likewise.
65793         * modules/wcwidth (Depends-on): Likewise.
65794         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65795         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65796         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65797         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65798         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65799         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65800         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65801         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65802         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65803         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65804         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65805         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65807         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65808         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65809         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65810         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65811         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65813         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65814         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65815         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65816         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65817         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65818         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65820         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65821         so that lock.m4 can be used in gettext without extensions module.
65822
65823 2007-09-11  Bruno Haible  <bruno@clisp.org>
65824
65825         * m4/isc-posix.m4: Remove file.
65826         Suggested by Eric Blake.
65827
65828 2007-09-11  Eric Blake  <ebb9@byu.net>
65829
65830         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65831
65832 2007-09-10  Bruno Haible  <bruno@clisp.org>
65833
65834         * posix-modules: Fix typo in error message.
65835         Reported by Matt <mkraai@beckman.com>.
65836
65837 2007-09-09  Bruno Haible  <bruno@clisp.org>
65838
65839         * doc/functions/getdelim.texi: Update list of platforms lacking the
65840         function.
65841         * doc/functions/getline.texi: Likewise.
65842
65843 2007-09-09  Jim Meyering  <jim@meyering.net>
65844
65845         * lib/hash.c (hash_initialize): Detect calloc failure.
65846         Reported by Bruno Haible.
65847
65848 2007-09-09  Bruno Haible  <bruno@clisp.org>
65849
65850         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65851         malloc or realloc fails.
65852
65853 2007-09-09  Bruno Haible  <bruno@clisp.org>
65854
65855         * modules/getcwd (Depends-on): Add malloc-posix.
65856         * modules/glob (Depends-on): Likewise.
65857         * modules/putenv (Depends-on): Likewise.
65858         * modules/strdup (Depends-on): Likewise.
65859         * modules/getdelim (Depends-on): Add realloc-posix.
65860         * modules/read-file (Depends-on): Likewise.
65861
65862 2007-09-09  Bruno Haible  <bruno@clisp.org>
65863
65864         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65865         (gl_FUNC_MALLOC_POSIX): Require it.
65866         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65867         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65868         * modules/realloc (Files): Add m4/malloc.m4.
65869         * modules/calloc (Files): Likewise.
65870
65871 2007-09-09  Bruno Haible  <bruno@clisp.org>
65872
65873         * modules/malloc-posix: New file.
65874         * modules/malloc (Depends-on): Add malloc-posix.
65875         * lib/malloc.c: Include errno.h.
65876         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65877         and a POSIX-compatible malloc into a single function. Set ENOMEM
65878         when returning NULL.
65879         * m4/malloc.m4: New file.
65880         * doc/functions/malloc.texi: Mention the malloc-posix module.
65881         * lib/stdlib_.h (malloc): New declaration.
65882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65883         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65884         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65885         and HAVE_MALLOC_POSIX.
65886
65887 2007-09-09  Bruno Haible  <bruno@clisp.org>
65888
65889         * modules/realloc-posix: New file.
65890         * modules/realloc (Depends-on): Add realloc-posix.
65891         * lib/realloc.c: Include errno.h.
65892         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65893         and a POSIX-compatible realloc into a single function. Set ENOMEM
65894         when returning NULL.
65895         * m4/realloc.m4: New file.
65896         * doc/functions/realloc.texi: Mention the realloc-posix module.
65897         * lib/stdlib_.h (realloc): New declaration.
65898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65899         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65900         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65901         and HAVE_REALLOC_POSIX.
65902
65903 2007-09-09  Bruno Haible  <bruno@clisp.org>
65904
65905         * modules/calloc-posix: New file.
65906         * modules/calloc (Depends-on): Add calloc-posix.
65907         * lib/calloc.c: Include errno.h.
65908         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65909         and a POSIX-compatible calloc into a single function. Set ENOMEM
65910         when returning NULL.
65911         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65912         * doc/functions/calloc.texi: Mention the calloc-posix module.
65913         * lib/stdlib_.h (calloc): New declaration.
65914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65915         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65916         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65917         and HAVE_CALLOC_POSIX.
65918
65919 2007-09-09  Bruno Haible  <bruno@clisp.org>
65920
65921         Allow for modules to show an arbitrary notice.
65922         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65923         * gnulib-tool: New option --extract-notice.
65924         (func_usage): Document it.
65925         (sed_extract_prog): Update.
65926         (func_get_notice): New function.
65927         (func_modules_notice): New function.
65928         (func_import, func_create_testdir): Invoke it.
65929         Suggested by Jim Meyering.
65930
65931 2007-09-09  Bruno Haible  <bruno@clisp.org>
65932
65933         * gnulib-tool: New options --verbose, --quiet.
65934         (func_usage): Document them.
65935         (verbose): New variable.
65936         (func_execute_command): New function.
65937         (func_import): Don't show the module list and the file list if
65938         $verbose < 0.
65939         (func_create_testdir): Likewise. Use func_execute_command.
65940         (func_create_megatestdir): Use func_execute_command.
65941
65942 2007-09-08  Bruno Haible  <bruno@clisp.org>
65943
65944         * gnulib-tool (func_import): Prefer rsync over wget when available,
65945         for fetching the PO files.
65946
65947 2007-09-08  Bruno Haible  <bruno@clisp.org>
65948
65949         * posix-modules: New file. Portions copied from gnulib-tool.
65950         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65951
65952 2007-09-08  Jim Meyering  <jim@meyering.net>
65953
65954         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65955         * lib/fpending.h: Rename from __fpending.h.
65956         * lib/fpending.c: Rename from __fpending.c.
65957         Include "fpending.h", not "__fpending.h".
65958         * lib/__fpending.h, lib/__fpending.c: Remove files.
65959         * modules/fpending (Files): Reflect new file names.
65960         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65961
65962 2007-09-08  Bruno Haible  <bruno@clisp.org>
65963
65964         * m4/inttypes-h.m4: Remove stub file.
65965
65966 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65967
65968         * doc/headers/stdint.texi: Discuss #include_next issue.
65969
65970 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65973
65974 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65975
65976         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65977         in variable name.
65978
65979 2007-09-03  Jim Meyering  <jim@meyering.net>
65980
65981         New module: git-version-gen.
65982         * modules/git-version-gen: New file.
65983
65984         Import changes from coreutils for bootstrap script.
65985
65986         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65987
65988         bootstrap: uses rsync to download the .po files
65989         * build-aux/bootstrap (po_download_command_format): New global.
65990         (download_po_files): Use rsync.
65991         (update_po_files): Don't remove .po files after download,
65992         so future rsync runs can take advantage of the copies.
65993
65994         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65995
65996         Solve the unnecessary-.po-file-regeneration problem once and for all.
65997         * build-aux/bootstrap (download_po_files): New function, renamed from
65998         get_translations.  Now, downloads, but doesn't update LINGUAS.
65999         (update_po_files): New function.
66000
66001         bootstrap: Ignore more.
66002         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66003         uniwidth to e.g., lib/.gitignore.
66004         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66005
66006         * build-aux/bootstrap: New setting: vc_ignore.
66007         (insert_sorted_if_absent): Create $file if absent.
66008         Adapt to new, possibly empty, list: $vc_ignore.
66009
66010         bootstrap: generate more ignorable names
66011         * build-aux/bootstrap (slurp): When generating ignorable names,
66012         also map .sin to .sed, .gperf to .c, and .y to .c.
66013
66014 2007-09-03  Jim Meyering  <jim@meyering.net>
66015
66016         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66017         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66018
66019 2007-09-02  Bruno Haible  <bruno@clisp.org>
66020
66021         Fix mis-recognition of 'mcs' on QNX 6.
66022         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66023         output contains the string "Mono".
66024         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66025         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66026
66027 2007-09-01  Bruno Haible  <bruno@clisp.org>
66028
66029         Fix collision between uniwidth/* and linebreak modules.
66030         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66031         u32_width): Remove declarations.
66032         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66033         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66034         streq3, streq2, streq1, streq0): Remove functions.
66035         (STREQ): Remove macro.
66036         (is_cjk_encoding): Remove function.
66037         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66038         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66039         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66040         * NEWS: Document the change.
66041
66042 2007-09-01  Bruno Haible  <bruno@clisp.org>
66043
66044         * lib/streq.h: Add double-inclusion guard.
66045
66046 2007-09-01  Karl Berry  <karl@gnu.org>
66047
66048         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66049
66050 2007-08-28  Jim Meyering  <jim@meyering.net>
66051
66052         Rename mreadlink_with_size to areadlink_with_size.
66053         * NEWS: Document the change.
66054         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66055         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66056         * lib/mreadlink.h: Rename this to...
66057         * lib/areadlink.h: ...this.
66058         * modules/mreadlink-with-size: Rename this to...
66059         * modules/areadlink-with-size: ...this.
66060         * lib/canonicalize.c: Reflect the renaming.
66061         * modules/canonicalize: Likewise.
66062
66063 2007-08-26  Bruno Haible  <bruno@clisp.org>
66064
66065         * gnulib-tool (func_import): When deciding which files to remove,
66066         consider also dangling symbolic links.
66067         Reported by Eric Blake.
66068
66069 2007-08-26  Bruno Haible  <bruno@clisp.org>
66070
66071         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66072
66073 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66074
66075         * lib/readline.c: Don't include getline.h, the prototype is now
66076         found in stdio.h.
66077
66078 2007-08-23  Jim Meyering  <jim@meyering.net>
66079
66080         Getdelim touchup.
66081         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66082         around the funlockfile call, since funlockfile never sets errno.
66083         Don't set errno upon failed realloc.
66084
66085 2007-08-22  Eric Blake  <ebb9@byu.net>
66086
66087         Getline touchups.
66088         * lib/getdelim.c (getdelim): Revert regression that required *n to
66089         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66090         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66091         getdelim, rather than whether implementation is missing.
66092         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66093         * lib/stdio_.h (getline): Also declare if replacement is
66094         required.
66095         * doc/functions/getdelim.texi: New file.
66096         * doc/functions/getline.texi: Likewise.
66097         * doc/gnulib.texi (Function Substitutes): Add new files.
66098         Reported by Bruno Haible.
66099
66100 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66101
66102         * users.txt: Add Guile.
66103
66104 2007-08-22  Eric Blake  <ebb9@byu.net>
66105
66106         * tests/test-getdelim.c (main): Use remove, not unlink.
66107         * tests/test-getline.c (main): Likewise.
66108
66109         Move getline and getdelim into stdio.h, per POSIX 200x.
66110         * modules/getline (Files): Remove getline.h.
66111         (Depends-on): Add stdio.
66112         (configure.ac): Add module indicator.
66113         * modules/getdelim (Files): Remove getdelim.h.
66114         (Depends-on): Add stdio.
66115         (configure.ac): Add module indicator.
66116         * modules/stdio (Makefile.am): Work with new indicators.
66117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66120         * lib/getdelim.h: Delete.
66121         * lib/getline.h: Delete.
66122         * lib/stdio_.h (getdelim, getline): Declare.
66123         * modules/getdelim-tests: New module.
66124         * modules/getline-tests: Likewise.
66125         * tests/test-getdelim.c: New file.
66126         * tests/test-getline.c: Likewise.
66127         * NEWS: Document the change.
66128         * lib/getline.c: Update choice of header.
66129         * lib/csharpcomp.c: Likewise.
66130         * lib/getpass.c: Likewise.
66131         * lib/javacomp.c: Likewise.
66132         * lib/javaversion.c: Likewise.
66133         * lib/yesno.c: Likewise.
66134         * lib/getdelim.c: Likewise.
66135         (getdelim): Set errno on failure, and avoid memory leak.
66136
66137 2007-08-19  Bruno Haible  <bruno@clisp.org>
66138
66139         * modules/closein (Depends-on): Add freadahead.
66140         * lib/closein.c: Include freadahead.h.
66141         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66142         is zero.
66143
66144 2007-08-19  Bruno Haible  <bruno@clisp.org>
66145
66146         * modules/freadahead-tests: New file.
66147         * tests/test-freadahead.sh: New file.
66148         * tests/test-freadahead.c: New file.
66149
66150         * modules/freadahead: New file.
66151         * lib/freadahead.h: New file.
66152         * lib/freadahead.c: New file.
66153         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66154         fbufmode, fpurge, freadable, fwritable.
66155
66156 2007-08-19  Eric Blake  <ebb9@byu.net>
66157
66158         Test yesno in combination with closein.
66159         * lib/yesno.c (yesno): Document use of stdin.
66160         * modules/yesno-tests (Files): New module.
66161         * tests/test-yesno.c (main): New file.
66162         * tests/test-yesno.sh: Likewise.
66163
66164 2007-08-19  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66167         * lib/fseeko.c (rpl_fseeko): Likewise.
66168         * lib/fseterr.c (fseterr): Likewise.
66169
66170 2007-08-19  Bruno Haible  <bruno@clisp.org>
66171
66172         * tests/test-lseek.c (main): Disable a test for BeOS.
66173         * doc/functions/lseek.texi: Document the BeOS bug.
66174
66175 2007-08-19  Bruno Haible  <bruno@clisp.org>
66176             Eric Blake  <ebb9@byu.net>
66177
66178         * lib/lseek.c: Include <sys/stat.h>.
66179         (rpl_lseek): Add workaround code also for Unix platforms.
66180         Needed for BeOS.
66181         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66182         * doc/functions/lseek.texi: Document BeOS definiency.
66183
66184 2007-08-18  Bruno Haible  <bruno@clisp.org>
66185
66186         * modules/fstrcmp-tests: New file.
66187         * tests/test-fstrcmp.c: New file.
66188
66189 2007-08-18  Bruno Haible  <bruno@clisp.org>
66190
66191         * modules/fstrcmp: New file, from GNU gettext with modifications.
66192         * lib/fstrcmp.h: New file, from GNU gettext.
66193         * lib/fstrcmp.c: New file, from GNU gettext.
66194         * MODULES.html.sh (String handling): Add fstrcmp.
66195
66196 2007-08-18  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66199         'bool'.
66200         (diag, compareseq): Remove const from the ctxt argument.
66201         (USE_HEURISTIC): Undefine at the end.
66202
66203 2007-08-18  Jim Meyering  <jim@meyering.net>
66204
66205         New file: lib/idcache.h
66206         * NEWS: Mention the addition.
66207         * modules/idcache (Files): Add lib/idcache.h
66208         * lib/idcache.c: Include "idcache.h".
66209         Don't include <sys/types.h>.
66210         Add a FIXME comment.
66211         Move file-scoped "static" declarations to the top.
66212         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66213
66214 2007-08-17  Bruno Haible  <bruno@clisp.org>
66215         and Paul Eggert  <eggert@cs.ucla.edu>
66216
66217         * MODULES.html.sh: Add diffseq.
66218         * modules/diffseq: New file.
66219         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66220         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66221
66222 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66223
66224         Import changes from coreutils for bootstrap script.
66225
66226         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66227
66228         * build-aux/bootstrap (slurp): Work even in environments where
66229         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66230         current code does not slurp files whose names start with ".", and
66231         this looks like it might be a troublesome area.
66232
66233         2007-07-11  Jim Meyering  <jim@meyering.net>
66234
66235         If there's a GPL vN copyright comment, require that N == 3.
66236
66237         2007-07-08  Jim Meyering  <jim@meyering.net>
66238
66239         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66240         * build-aux/bootstrap (mam_template): Move definition out of loop.
66241
66242         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66243
66244         * build-aux/bootstrap (symlink_to_dir): Rename function from
66245         symlink_to_gnulib.  Add a directory parameter.  Update all
66246         callers.
66247         (cp_mark_as_generated): Also check for -- and link to -- files in
66248         gl/.
66249
66250         2007-07-08  Jim Meyering  <jim@meyering.net>
66251
66252         Adapt to deeper hierarchy in gnulib.
66253         * build-aux/bootstrap (symlink_to_dir): If the destination
66254         directory doesn't exist, create it. This is required at least for
66255         "lib/uniwidth/cjk.h".
66256
66257         2007-05-15  Jim Meyering  <jim@meyering.net>
66258
66259         * build-aux/bootstrap: Now that generated Makefile.am files
66260         are no longer under version control, they must be created at
66261         bootstrap time.
66262
66263 2007-08-14  Ben Pfaff  <blp@gnu.org>
66264
66265         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66266
66267 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66270         given the changes below.
66271         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66272         even on hosts that have padding bits beyond the supported 64.
66273
66274 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66277         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66278         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66279         depends on it.
66280         (xstrtol_error): Remove.
66281         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66282         but with a different signature.
66283         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66284         * lib/xstrtol-error.c: Include exitfail.h.
66285         (xstrtol_fatal): New function, with a different signature from the
66286         old xstrtol_error, so that the caller need not worry about passing
66287         in an exit status, or about storage management of the option argument.
66288         (xstrtol_error): Now a static function.  Redo signature to
66289         implement xstrtol_fatal.  Output the correct number of hyphens in
66290         front of the option so that the caller need not worry about
66291         storage management.
66292         (N_): New macro.
66293         (_): Remove; not used now.
66294         * modules/xstrtol: Depend on getopt.
66295         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66296         of old STRTOL_FATAL_ERROR macro.
66297         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66298         of test program.
66299         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66300         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66301
66302 2007-08-08  Eric Blake  <ebb9@byu.net>
66303
66304         * lib/xstrtol-error.c: Add missing include.
66305
66306         Move xstrtol messages into gnulib domain, when --pobase is used.
66307         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66308         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66309         * modules/xstrtol (Files): Distribute new file.
66310         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66311         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66312         * tests/test-xstrtol.c: ...into new file.
66313         * tests/test-xstrtoul.c: Also test xstrtoul.
66314         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66315         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66316         * tests/test-xstrtol.sh: Drive the tests.
66317         * tests/test-xstrtoimax.sh: Likewise.
66318         * tests/test-xstrtoumax.sh: Likewise.
66319         * modules/xstrtol-tests: New module.
66320         * modules/xstrtoimax-tests: Likewise.
66321         * modules/xstrtoumax-tests: Likewise.
66322
66323 2007-08-08  Jim Meyering  <jim@meyering.net>
66324
66325         New function: mfile_name_concat.
66326         * lib/filenamecat.c (mfile_name_concat): New function, just like
66327         file_name_concat, but return NULL upon failure rather than exiting
66328         with a diagnostic.
66329         * lib/filenamecat.h: Declare it.
66330
66331 2007-08-07  Bruno Haible  <bruno@clisp.org>
66332
66333         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66334         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66335         warning from gcc.
66336         Reported by Eric Blake.
66337
66338 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66339
66340         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66341         * modules/crypto/arcfour (License): Likewise.
66342         * modules/crypto/des-tests (License): Likewise.
66343         * modules/crypto/gc-arctwo-tests (License): Likewise.
66344         * modules/crypto/gc-des-tests (License): Likewise.
66345         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66346         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66347         * modules/crypto/gc-md2-tests (License): Likewise.
66348         * modules/crypto/gc-md4-tests (License): Likewise.
66349         * modules/crypto/gc-md5-tests (License): Likewise.
66350         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66351         * modules/crypto/gc-rijndael-tests (License): Likewise.
66352         * modules/crypto/gc-sha1-tests (License): Likewise.
66353         * modules/crypto/gc-tests (License): Likewise.
66354         * modules/crypto/hmac-md5 (License): Likewise.
66355         * modules/crypto/hmac-sha1 (License): Likewise.
66356         * modules/crypto/md2-tests (License): Likewise.
66357         * modules/crypto/md4-tests (License): Likewise.
66358         * modules/crypto/md5 (License): Likewise.
66359         * modules/crypto/rijndael (License): Likewise.
66360         * modules/crypto/sha1 (License): Likewise.
66361         * modules/memxor (License): Likewise.
66362
66363 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66364         and Bruno Haible  <bruno@clisp.org>
66365
66366         * NEWS: Describe interface changes to human, xstrtol.
66367         * lib/human.h: Include <xstrtol.h>.
66368         (human_options): Return enum strtol_error, not int.  Remove
66369         bool arg; take int * instead.
66370         * lib/human.c: Don't include "gettext.h".
66371         (_): Remove; no longer used.
66372         Don't include <xstrtol.h>, since human.h does it.
66373         (human_options): Adjust to abovementioned interface changes.
66374         Do not report error to stderr; that's now the caller's
66375         responsibility.
66376         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66377         interface change.
66378         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66379         Str, Argument_type_string.  All uses changed.  Put " argument"
66380         in diagnostics to make them clearer.  Change wording of suffix
66381         message for clarity.
66382         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66383         Argument_type_string.
66384         (STRTOL_FATAL_WARN): Remove; no longer used.
66385         * modules/human (Depends-on): Remove gettext-h.
66386
66387 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66388
66389         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66390
66391 2007-07-31  Bruno Haible  <bruno@clisp.org>
66392
66393         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66394         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66395         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66396
66397 2007-07-31  Bruno Haible  <bruno@clisp.org>
66398
66399         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66400         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66401
66402 2007-07-30  Bruno Haible  <bruno@clisp.org>
66403
66404         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66405         * modules/c-ctype (License): Likewise.
66406         * modules/c-strcase (License): Likewise.
66407         * modules/check-version (License): Likewise.
66408         * modules/iconv (License): Likewise.
66409         * modules/iconv_open (License): Likewise.
66410         * modules/read-file (License): Likewise.
66411         * modules/striconv (License): Likewise.
66412         * modules/strverscmp (License): Likewise.
66413         * modules/vasprintf (License): Likewise.
66414         * modules/crypto/des (License): Likewise.
66415         * modules/crypto/gc (License): Likewise.
66416         * modules/crypto/gc-arcfour (License): Likewise.
66417         * modules/crypto/gc-arctwo (License): Likewise.
66418         * modules/crypto/gc-des (License): Likewise.
66419         * modules/crypto/gc-hmac-md5 (License): Likewise.
66420         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66421         * modules/crypto/gc-md2 (License): Likewise.
66422         * modules/crypto/gc-md4 (License): Likewise.
66423         * modules/crypto/gc-md5 (License): Likewise.
66424         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66425         * modules/crypto/gc-random (License): Likewise.
66426         * modules/crypto/gc-rijndael (License): Likewise.
66427         * modules/crypto/gc-sha1 (License): Likewise.
66428         * modules/crypto/md2 (License): Likewise.
66429         * modules/crypto/md4 (License): Likewise.
66430
66431 2007-07-30  Jim Meyering  <jim@meyering.net>
66432
66433         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66434         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66435         it has valid stat data.  This bug would cause du not to count the
66436         sizes of inaccessible directories.
66437         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66438         in <http://bugzilla.redhat.com/250077>.
66439
66440 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66441             Bruno Haible  <bruno@clisp.org>
66442
66443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66444         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66445         #include_next, gives a diagnostic about it, but reports no error in
66446         the exit code.
66447         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66448
66449 2007-07-24  Ben Pfaff  <blp@gnu.org>
66450
66451         Improve name: "count-one-bits" is better than "popcount".
66452         * MODULES.html.sh: Update name.
66453         * lib/popcount.h: Renamed lib/count-one-bits.h.
66454         (popcount): Renamed count_one_bits.
66455         (popcountl): Renamed count_one_bits_l.
66456         (popcountll): Renamed count_one_bits_ll.
66457         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66458         * modules/popcount: Renamed module/count-one-bits.
66459         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66460         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66461
66462 2007-07-23  Ben Pfaff  <blp@gnu.org>
66463
66464         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66465         better code generation, and add U to large constants to avoid
66466         warnings, in non-GCC case.
66467         Suggested by Bruno Haible.
66468
66469 2007-07-23  Ben Pfaff  <blp@gnu.org>
66470
66471         * lib/popcount.h: Use verify_true instead of if...abort.
66472         * modules/popcount: Depend on verify module.
66473         Suggested by Jim Meyering.
66474
66475 2007-07-23  Bruno Haible  <bruno@clisp.org>
66476
66477         * gnulib-tool (func_import): Create a .cvsignore file also when the
66478         directory is not yet in CVS but the toplevel directory is. When
66479         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66480         Reported by Karl Berry.
66481
66482 2007-07-22  Ben Pfaff  <blp@gnu.org>
66483
66484         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66485         case.
66486         Suggested by Eric Blake.
66487
66488 2007-07-22  Ben Pfaff  <blp@gnu.org>
66489
66490         New module: popcount.
66491         * MODULES.html.sh: Add popcount.
66492         * modules/popcount: New file.
66493         * modules/popcount-tests: New file.
66494         * tests/test-popcount.c: New file.
66495         * lib/popcount.h: New file.
66496         * m4/popcount.m4: New file.
66497
66498 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66499
66500         * build-aux/announce-gen: Update to GPLv3.
66501
66502         * build-aux/config.guess: Update from config.
66503
66504 2007-07-21  Bruno Haible  <bruno@clisp.org>
66505
66506         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66507         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66508
66509 2007-07-20  Jim Meyering  <jim@meyering.net>
66510
66511         * check-module: Diagnose a self-dependency.
66512
66513 2007-07-19  Bruno Haible  <bruno@clisp.org>
66514
66515         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66516         empty.
66517         Reported by Eric Blake.
66518
66519 2007-07-18  Bruno Haible  <bruno@clisp.org>
66520
66521         * gnulib-tool: New options --po-base, --po-domain.
66522         (func_usage): Document them.
66523         (pobase, po_domain): New variables.
66524         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66525         DEFAULT_TEXT_DOMAIN.
66526         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66527         (func_import): Consider pobase and po_domain. Create a po/ directory.
66528         (func_create_testdir): Set pobase and po_domain to empty.
66529         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66530         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66531
66532 2007-07-18  Bruno Haible  <bruno@clisp.org>
66533
66534         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66535         EXTRA_DIST augmentation for files in build-aux/.
66536
66537 2007-07-16  Bruno Haible  <bruno@clisp.org>
66538
66539         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66540         * modules/getdelim (License): Likewise.
66541
66542 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66543
66544         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66545         * modules/d-type (License): Likewise.
66546         * modules/extensions (License): Likewise.
66547         * modules/fnmatch (License): Likewise.
66548         * modules/fseeko (License): Likewise.
66549         * modules/getaddrinfo (License): Likewise.
66550         * modules/getline (License): Likewise.
66551         * modules/getlogin_r (License): Likewise.
66552         * modules/getpass (License): Likewise.
66553         * modules/gettimeofday (License): Likewise.
66554         * modules/glob (License): Likewise.
66555         * modules/inet_ntop (License): Likewise.
66556         * modules/malloc (License): Likewise.
66557         * modules/malloca (License): Likewise.
66558         * modules/memmem (License): Likewise.
66559         * modules/mempcpy (License): Likewise.
66560         * modules/memset (License): Likewise.
66561         * modules/minmax (License): Likewise.
66562         * modules/mktime (License): Likewise.
66563         * modules/netinet_in (License): Likewise.
66564         * modules/pathmax (License): Likewise.
66565         * modules/poll (License): Likewise.
66566         * modules/regex (License): Likewise.
66567         * modules/snprintf (License): Likewise.
66568         * modules/stdbool (License): Likewise.
66569         * modules/stdint (License): Likewise.
66570         * modules/stdio (License): Likewise.
66571         * modules/strcase (License): Likewise.
66572         * modules/strcasestr (License): Likewise.
66573         * modules/strdup (License): Likewise.
66574         * modules/string (License): Likewise.
66575         * modules/strndup (License): Likewise.
66576         * modules/strnlen (License): Likewise.
66577         * modules/strpbrk (License): Likewise.
66578         * modules/strptime (License): Likewise.
66579         * modules/strsep (License): Likewise.
66580         * modules/sys_select (License): Likewise.
66581         * modules/sys_socket (License): Likewise.
66582         * modules/sys_stat (License): Likewise.
66583         * modules/sys_time (License): Likewise.
66584         * modules/time (License): Likewise.
66585         * modules/time_r (License): Likewise.
66586         * modules/timegm (License): Likewise.
66587         * modules/unistd (License): Likewise.
66588         * modules/vsnprintf (License): Likewise.
66589         * modules/wctype (License): Likewise.
66590
66591 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66592
66593         * modules/argz (License): LGPLv2+.
66594
66595 2007-07-15  Karl Berry  <karl@gnu.org>
66596
66597         * doc/gnulib.texi: revise node structure per new fdl.texi.
66598
66599 2007-07-14  Bruno Haible  <bruno@clisp.org>
66600
66601         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66602         the output file.
66603         * lib/uniname/uninames.h: Regenerated.
66604
66605 2007-07-14  Karl Berry  <karl@gnu.org>
66606
66607         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66608         omitting sectioning and index commands.
66609
66610 2007-07-13  Bruno Haible  <bruno@clisp.org>
66611
66612         New gnulib-tool option --more-symlinks.
66613         * gnulib-tool (func_usage): Document --more-symlinks.
66614         (do_copyrights): New variable.
66615         Recognize option --more-symlinks.
66616         (func_import): Don't add a copyright notice transform to
66617         sed_transform_lib_file if do_copyrights is empty.
66618
66619 2007-07-13  Bruno Haible  <bruno@clisp.org>
66620
66621         * lib/vasnprintf.c (decimal_point_char): Define also if
66622         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66623         && !NEED_PRINTF_DIRECTIVE_A.
66624         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66625         Gary V. Vaughan <gary@gnu.org>.
66626
66627 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66628
66629         * lib/inttypes_.h: Undo previous change, since it was fixed
66630         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66631
66632 2007-07-13  Bruno Haible  <bruno@clisp.org>
66633
66634         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66635         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66636
66637 2007-07-13  Jim Meyering  <jim@meyering.net>
66638
66639         df: Don't fail for Tru64's "file-on-file mount".
66640         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66641         so we fall through and use statfs instead.  Details here:
66642         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66643         Reported by Albert Chin.
66644
66645 2007-07-13  Bruno Haible  <bruno@clisp.org>
66646
66647         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66648         * modules/configmake (License): Likewise.
66649         * modules/gettext (License): Likewise.
66650         * modules/gettext-h (License): Likewise.
66651         * modules/include_next (License): Likewise.
66652         * modules/link-warning (License): Likewise.
66653         * modules/localcharset (License): Likewise.
66654         * modules/localename (License): Likewise.
66655         * modules/lock (License): Likewise.
66656         * modules/relocatable-lib-lgpl (License): Likewise.
66657         * modules/size_max (License): Likewise.
66658         * modules/vasnprintf (License): Likewise.
66659         * modules/wchar (License): Likewise.
66660         * modules/xsize (License): Likewise.
66661
66662 2007-07-13  Bruno Haible  <bruno@clisp.org>
66663
66664         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66665         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66666
66667 2007-07-12  Bruno Haible  <bruno@clisp.org>
66668
66669         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66670         in the modules files.
66671
66672 2007-07-11  Karl Berry  <karl@gnu.org>
66673
66674         * MODULES.html.sh (func_module): use
66675          sed -e '\|^'"${includefile}"'$|d'
66676          instead of /.../d, to avoid errors on $includefile's containing /.
66677
66678 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66679
66680         * gnulib-tool (func_import): Avoid duplication of --avoid
66681         statements
66682         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66683         names to `_' in variable names.
66684
66685 2007-07-10  Eric Blake  <ebb9@byu.net>
66686
66687         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66688         * NEWS: Document this change.
66689
66690 2007-07-08  Bruno Haible  <bruno@clisp.org>
66691
66692         Update to Unicode 5.0.
66693         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66694         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66695         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66696         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66697         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66698         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66699         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66700         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66701         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66702         U+10A3F, U+1D242..U+1D244.
66703         (nonspacing_table_ind): Update.
66704         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66705         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66706
66707 2007-07-08  Bruno Haible  <bruno@clisp.org>
66708
66709         Update to Unicode 5.0.
66710         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66711         code transform. Extend the name index field of unicode_name_to_code and
66712         unicode_code_to_name from 16 to 24 bits.
66713         * lib/uniname/uniname.c (unicode_character_name,
66714         unicode_name_character): Add the range 0x12xxx to the code transform.
66715         * lib/uniname/uninames.h: Regenerated.
66716         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66717
66718 2007-07-07  Bruno Haible  <bruno@clisp.org>
66719
66720         * modules/wcwidth-tests: New file.
66721         * tests/test-wcwidth.c: New file.
66722
66723         Work around MacOS X wcwidth() bug.
66724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66725         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66726         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66727         original wcwidth in non-UTF-8 locales.
66728         * modules/wcwidth (Depends-on): Add localcharset, streq,
66729         uniwidth/width.
66730         * doc/functions/wcwidth.texi: Update.
66731
66732 2007-07-07  Bruno Haible  <bruno@clisp.org>
66733
66734         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66735         (wcwidth): New declaration.
66736         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66737         macros.
66738         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66739         here. Prepare for creating <wchar.h> unconditionally.
66740         * modules/wchar (Depends-on): Add link-warning.
66741         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66742         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66743         * lib/wcwidth.h: Remove file.
66744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66745         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66746         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66747         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66748         (Include): Replace wcwidth.h with <wchar.h>.
66749         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66750         * lib/mbchar.h: Don't include wcwidth.h.
66751         * lib/mbswidth.c: Likewise.
66752         * NEWS: Mention the change.
66753
66754 2007-07-07  Bruno Haible  <bruno@clisp.org>
66755
66756         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66757         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66758         definition with an external declaration.
66759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66760         defined as a function. Remove AC_C_INLINE requirement.
66761         * modules/wcwidth (Files): Add lib/wcwidth.c.
66762         (Makefile.am): Remove redundant statement.
66763
66764 2007-07-07  Bruno Haible  <bruno@clisp.org>
66765
66766         * MODULES.html.sh (Unicode string functions): Add the new modules.
66767
66768         * tests/uniwidth/test-u32-strwidth.c: New file.
66769         * modules/uniwidth/u32-strwidth-tests: New file.
66770
66771         * lib/uniwidth/u32-strwidth.c: New file.
66772         * modules/uniwidth/u32-strwidth: New file.
66773
66774         * tests/uniwidth/test-u16-strwidth.c: New file.
66775         * modules/uniwidth/u16-strwidth-tests: New file.
66776
66777         * lib/uniwidth/u16-strwidth.c: New file.
66778         * modules/uniwidth/u16-strwidth: New file.
66779
66780         * tests/uniwidth/test-u8-strwidth.c: New file.
66781         * modules/uniwidth/u8-strwidth-tests: New file.
66782
66783         * lib/uniwidth/u8-strwidth.c: New file.
66784         * modules/uniwidth/u8-strwidth: New file.
66785
66786         * tests/uniwidth/test-u32-width.c: New file.
66787         * modules/uniwidth/u32-width-tests: New file.
66788
66789         * lib/uniwidth/u32-width.c: New file.
66790         * modules/uniwidth/u32-width: New file.
66791
66792         * tests/uniwidth/test-u16-width.c: New file.
66793         * modules/uniwidth/u16-width-tests: New file.
66794
66795         * lib/uniwidth/u16-width.c: New file.
66796         * modules/uniwidth/u16-width: New file.
66797
66798         * tests/uniwidth/test-u8-width.c: New file.
66799         * modules/uniwidth/u8-width-tests: New file.
66800
66801         * lib/uniwidth/u8-width.c: New file.
66802         * modules/uniwidth/u8-width: New file.
66803
66804         * tests/uniwidth/test-uc_width.c: New file.
66805         * modules/uniwidth/width-tests: New file.
66806
66807         * lib/uniwidth/width.c: New file, from GNU libiconv.
66808         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66809         * modules/uniwidth/width: New file.
66810
66811         * lib/uniwidth.h: New file, from GNU libiconv.
66812         * modules/uniwidth/base: New file.
66813
66814 2007-07-07  Bruno Haible  <bruno@clisp.org>
66815
66816         * lib/uniname.h: New file, from GNU gettext.
66817         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66818         * lib/uniname/uninames.h: New file, from GNU gettext.
66819         * lib/uniname/uniname.c: New file, from GNU gettext.
66820         * tests/uniname/test-uninames.sh: New file.
66821         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66822         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66823         * modules/uniname/base: New file.
66824         * modules/uniname/uniname: New file.
66825         * modules/uniname/uniname-tests: New file.
66826         * MODULES.html.sh (Unicode string functions): Add the new modules.
66827
66828 2007-07-06  Bruno Haible  <bruno@clisp.org>
66829
66830         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66831
66832 2007-07-06  Bruno Haible  <bruno@clisp.org>
66833
66834         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66835         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66836         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66837         include <sys/time.h>.
66838         Reported by Eric Blake.
66839
66840 2007-07-06  Eric Blake  <ebb9@byu.net>
66841
66842         Fix testing canonicalize on cygwin.
66843         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66844         Revert patch from 2007-06-19.
66845         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66846         canonicalize module is also in use.
66847         * tests/test-canonicalize.c: New file.
66848         * tests/test-canonicalize.sh: Likewise.
66849         * modules/canonicalize-tests: Likewise.
66850
66851 2007-07-06  Jim Meyering  <jim@meyering.net>
66852
66853         * lib/getugroups.c (getugroups): Detect getgrent failure.
66854         Adjust comment to reflect reality: this function may return -1.
66855
66856 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66857
66858         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66859         the new TP address.
66860         (usage): Fix typo
66861         (gnulib_mk): New variable.
66862
66863 2007-07-05  Jim Meyering  <jim@meyering.net>
66864
66865         Don't let endgrent clobber errno, no matter how improbable.
66866         * lib/getugroups.c (getugroups): Save and restore errno around
66867         endgrent call.
66868
66869         Close the group DB even when failing with 2^31 or more members.
66870         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66871
66872 2007-07-04  Jim Meyering  <jim@meyering.net>
66873
66874         * lib/getugroups.h: New file.
66875         * lib/getugroups.c: Include "getugroups.h".
66876         Remove uses of "register" keyword.
66877         Move local variable, "cp", down into scope where used.
66878         Give "username" parameter the "const" attribute.
66879         * modules/getugroups (Files): Add lib/getugroups.h
66880
66881 2007-07-04  Karl Berry  <karl@gnu.org>
66882
66883         * MODULES.html.sh (func_all_modules): Complete rename of
66884         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66885
66886 2007-07-02  Bruno Haible  <bruno@clisp.org>
66887
66888         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66889         mode, when inttypes.h comes from gnulib.
66890         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66891
66892 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66893
66894         * NEWS: Mention lgpl module name change.
66895
66896         * modules/lgpl-2.1: Renamed from lgpl.
66897
66898         * NEWS: Mention gpl module name change.
66899
66900         * modules/gpl-3.0: New file, based on gpl-2.0.
66901
66902         * modules/gpl-2.0: Renamed from gpl.
66903
66904         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66905         doc/gpl-2.0.texi.
66906
66907 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66908
66909         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66910         #define __STDC_LIMIT_MACROS temporarily while including
66911         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66912         Problem reported by Joel E. Denny in
66913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66914
66915 2007-07-01  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/unistdio.h: New file.
66918         * lib/unistdio/u-asnprintf.h: New file.
66919         * lib/unistdio/u-asprintf.h: New file.
66920         * lib/unistdio/u-printf-args.c: New file.
66921         * lib/unistdio/u-printf-args.h: New file.
66922         * lib/unistdio/u-printf-parse.h: New file.
66923         * lib/unistdio/u-snprintf.h: New file.
66924         * lib/unistdio/u-sprintf.h: New file.
66925         * lib/unistdio/u-vasprintf.h: New file.
66926         * lib/unistdio/u-vsnprintf.h: New file.
66927         * lib/unistdio/u-vsprintf.h: New file.
66928         * lib/unistdio/ulc-asnprintf.c: New file.
66929         * lib/unistdio/ulc-asprintf.c: New file.
66930         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66931         * lib/unistdio/ulc-printf-parse.c: New file.
66932         * lib/unistdio/ulc-snprintf.c: New file.
66933         * lib/unistdio/ulc-sprintf.c: New file.
66934         * lib/unistdio/ulc-vasnprintf.c: New file.
66935         * lib/unistdio/ulc-vasprintf.c: New file.
66936         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66937         * lib/unistdio/ulc-vsnprintf.c: New file.
66938         * lib/unistdio/ulc-vsprintf.c: New file.
66939         * lib/unistdio/u8-asnprintf.c: New file.
66940         * lib/unistdio/u8-asprintf.c: New file.
66941         * lib/unistdio/u8-printf-parse.c: New file.
66942         * lib/unistdio/u8-snprintf.c: New file.
66943         * lib/unistdio/u8-sprintf.c: New file.
66944         * lib/unistdio/u8-vasnprintf.c: New file.
66945         * lib/unistdio/u8-vasprintf.c: New file.
66946         * lib/unistdio/u8-vsnprintf.c: New file.
66947         * lib/unistdio/u8-vsprintf.c: New file.
66948         * lib/unistdio/u8-u8-asnprintf.c: New file.
66949         * lib/unistdio/u8-u8-asprintf.c: New file.
66950         * lib/unistdio/u8-u8-snprintf.c: New file.
66951         * lib/unistdio/u8-u8-sprintf.c: New file.
66952         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66953         * lib/unistdio/u8-u8-vasprintf.c: New file.
66954         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66955         * lib/unistdio/u8-u8-vsprintf.c: New file.
66956         * lib/unistdio/u16-asnprintf.c: New file.
66957         * lib/unistdio/u16-asprintf.c: New file.
66958         * lib/unistdio/u16-printf-parse.c: New file.
66959         * lib/unistdio/u16-snprintf.c: New file.
66960         * lib/unistdio/u16-sprintf.c: New file.
66961         * lib/unistdio/u16-vasnprintf.c: New file.
66962         * lib/unistdio/u16-vasprintf.c: New file.
66963         * lib/unistdio/u16-vsnprintf.c: New file.
66964         * lib/unistdio/u16-vsprintf.c: New file.
66965         * lib/unistdio/u16-u16-asnprintf.c: New file.
66966         * lib/unistdio/u16-u16-asprintf.c: New file.
66967         * lib/unistdio/u16-u16-snprintf.c: New file.
66968         * lib/unistdio/u16-u16-sprintf.c: New file.
66969         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66970         * lib/unistdio/u16-u16-vasprintf.c: New file.
66971         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66972         * lib/unistdio/u16-u16-vsprintf.c: New file.
66973         * lib/unistdio/u32-asnprintf.c: New file.
66974         * lib/unistdio/u32-asprintf.c: New file.
66975         * lib/unistdio/u32-printf-parse.c: New file.
66976         * lib/unistdio/u32-snprintf.c: New file.
66977         * lib/unistdio/u32-sprintf.c: New file.
66978         * lib/unistdio/u32-vasnprintf.c: New file.
66979         * lib/unistdio/u32-vasprintf.c: New file.
66980         * lib/unistdio/u32-vsnprintf.c: New file.
66981         * lib/unistdio/u32-vsprintf.c: New file.
66982         * lib/unistdio/u32-u32-asnprintf.c: New file.
66983         * lib/unistdio/u32-u32-asprintf.c: New file.
66984         * lib/unistdio/u32-u32-snprintf.c: New file.
66985         * lib/unistdio/u32-u32-sprintf.c: New file.
66986         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66987         * lib/unistdio/u32-u32-vasprintf.c: New file.
66988         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66989         * lib/unistdio/u32-u32-vsprintf.c: New file.
66990         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66991         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66992         * tests/unistdio/test-ulc-printf1.h: New file.
66993         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66994         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66995         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66996         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66997         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66998         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66999         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67000         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67001         * tests/unistdio/test-u8-asnprintf1.c: New file.
67002         * tests/unistdio/test-u8-asnprintf1.h: New file.
67003         * tests/unistdio/test-u8-printf1.h: New file.
67004         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67005         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67006         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67007         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67008         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67009         * tests/unistdio/test-u8-vasprintf1.c: New file.
67010         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67011         * tests/unistdio/test-u8-vsprintf1.c: New file.
67012         * tests/unistdio/test-u16-asnprintf1.c: New file.
67013         * tests/unistdio/test-u16-asnprintf1.h: New file.
67014         * tests/unistdio/test-u16-printf1.h: New file.
67015         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67016         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67017         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67018         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67019         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67020         * tests/unistdio/test-u16-vasprintf1.c: New file.
67021         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67022         * tests/unistdio/test-u16-vsprintf1.c: New file.
67023         * tests/unistdio/test-u32-asnprintf1.c: New file.
67024         * tests/unistdio/test-u32-asnprintf1.h: New file.
67025         * tests/unistdio/test-u32-printf1.h: New file.
67026         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67027         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67028         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67029         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67030         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67031         * tests/unistdio/test-u32-vasprintf1.c: New file.
67032         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67033         * tests/unistdio/test-u32-vsprintf1.c: New file.
67034         * modules/unistdio/base: New file.
67035         * modules/unistdio/u-printf-args: New file.
67036         * modules/unistdio/ulc-asnprintf: New file.
67037         * modules/unistdio/ulc-asprintf: New file.
67038         * modules/unistdio/ulc-fprintf: New file.
67039         * modules/unistdio/ulc-printf-parse: New file.
67040         * modules/unistdio/ulc-snprintf: New file.
67041         * modules/unistdio/ulc-sprintf: New file.
67042         * modules/unistdio/ulc-vasnprintf: New file.
67043         * modules/unistdio/ulc-vasprintf: New file.
67044         * modules/unistdio/ulc-vfprintf: New file.
67045         * modules/unistdio/ulc-vsnprintf: New file.
67046         * modules/unistdio/ulc-vsprintf: New file.
67047         * modules/unistdio/u8-asnprintf: New file.
67048         * modules/unistdio/u8-asprintf: New file.
67049         * modules/unistdio/u8-printf-parse: New file.
67050         * modules/unistdio/u8-snprintf: New file.
67051         * modules/unistdio/u8-sprintf: New file.
67052         * modules/unistdio/u8-vasnprintf: New file.
67053         * modules/unistdio/u8-vasprintf: New file.
67054         * modules/unistdio/u8-vsnprintf: New file.
67055         * modules/unistdio/u8-vsprintf: New file.
67056         * modules/unistdio/u8-u8-asnprintf: New file.
67057         * modules/unistdio/u8-u8-asprintf: New file.
67058         * modules/unistdio/u8-u8-snprintf: New file.
67059         * modules/unistdio/u8-u8-sprintf: New file.
67060         * modules/unistdio/u8-u8-vasnprintf: New file.
67061         * modules/unistdio/u8-u8-vasprintf: New file.
67062         * modules/unistdio/u8-u8-vsnprintf: New file.
67063         * modules/unistdio/u8-u8-vsprintf: New file.
67064         * modules/unistdio/u16-asnprintf: New file.
67065         * modules/unistdio/u16-asprintf: New file.
67066         * modules/unistdio/u16-printf-parse: New file.
67067         * modules/unistdio/u16-snprintf: New file.
67068         * modules/unistdio/u16-sprintf: New file.
67069         * modules/unistdio/u16-vasnprintf: New file.
67070         * modules/unistdio/u16-vasprintf: New file.
67071         * modules/unistdio/u16-vsnprintf: New file.
67072         * modules/unistdio/u16-vsprintf: New file.
67073         * modules/unistdio/u16-u16-asnprintf: New file.
67074         * modules/unistdio/u16-u16-asprintf: New file.
67075         * modules/unistdio/u16-u16-snprintf: New file.
67076         * modules/unistdio/u16-u16-sprintf: New file.
67077         * modules/unistdio/u16-u16-vasnprintf: New file.
67078         * modules/unistdio/u16-u16-vasprintf: New file.
67079         * modules/unistdio/u16-u16-vsnprintf: New file.
67080         * modules/unistdio/u16-u16-vsprintf: New file.
67081         * modules/unistdio/u32-asnprintf: New file.
67082         * modules/unistdio/u32-asprintf: New file.
67083         * modules/unistdio/u32-printf-parse: New file.
67084         * modules/unistdio/u32-snprintf: New file.
67085         * modules/unistdio/u32-sprintf: New file.
67086         * modules/unistdio/u32-vasnprintf: New file.
67087         * modules/unistdio/u32-vasprintf: New file.
67088         * modules/unistdio/u32-vsnprintf: New file.
67089         * modules/unistdio/u32-vsprintf: New file.
67090         * modules/unistdio/u32-u32-asnprintf: New file.
67091         * modules/unistdio/u32-u32-asprintf: New file.
67092         * modules/unistdio/u32-u32-snprintf: New file.
67093         * modules/unistdio/u32-u32-sprintf: New file.
67094         * modules/unistdio/u32-u32-vasnprintf: New file.
67095         * modules/unistdio/u32-u32-vasprintf: New file.
67096         * modules/unistdio/u32-u32-vsnprintf: New file.
67097         * modules/unistdio/u32-u32-vsprintf: New file.
67098         * modules/unistdio/ulc-asnprintf-tests: New file.
67099         * modules/unistdio/ulc-vasnprintf-tests: New file.
67100         * modules/unistdio/ulc-vasprintf-tests: New file.
67101         * modules/unistdio/ulc-vsnprintf-tests: New file.
67102         * modules/unistdio/ulc-vsprintf-tests: New file.
67103         * modules/unistdio/u8-asnprintf-tests: New file.
67104         * modules/unistdio/u8-vasnprintf-tests: New file.
67105         * modules/unistdio/u8-vasprintf-tests: New file.
67106         * modules/unistdio/u8-vsnprintf-tests: New file.
67107         * modules/unistdio/u8-vsprintf-tests: New file.
67108         * modules/unistdio/u16-asnprintf-tests: New file.
67109         * modules/unistdio/u16-vasnprintf-tests: New file.
67110         * modules/unistdio/u16-vasprintf-tests: New file.
67111         * modules/unistdio/u16-vsnprintf-tests: New file.
67112         * modules/unistdio/u16-vsprintf-tests: New file.
67113         * modules/unistdio/u32-asnprintf-tests: New file.
67114         * modules/unistdio/u32-vasnprintf-tests: New file.
67115         * modules/unistdio/u32-vasprintf-tests: New file.
67116         * modules/unistdio/u32-vsnprintf-tests: New file.
67117         * modules/unistdio/u32-vsprintf-tests: New file.
67118         * MODULES.html.sh (Unicode string functions): Add the new modules.
67119
67120 2007-07-01  Bruno Haible  <bruno@clisp.org>
67121
67122         * lib/sprintf.c (sprintf): Limit the available length estimation,
67123         to avoid address wraparound.
67124         * lib/vsprintf.c (vsprintf): Likewise.
67125         * modules/sprintf-posix (Dependencies): Add stdint.
67126         * modules/vsprintf-posix (Dependencies): Likewise.
67127
67128 2007-07-01  Bruno Haible  <bruno@clisp.org>
67129
67130         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67131         Windows PATH as well. Conservative double-quoting. Comments.
67132
67133 2007-07-01  Bruno Haible  <bruno@clisp.org>
67134             Eric Blake  <ebb9@byu.net>
67135             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67136
67137         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67138         empty components in $PATH, denoting '.'.
67139
67140 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67141
67142         * gnulib-tool: Fix indentation.
67143         (func_create_megatestdir): Likewise.
67144         Report by Bruno Haible.
67145
67146 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67147
67148         Sync from Automake.
67149         * build-aux/gnupload: Fix shell portability issues with for loops.
67150         Report by Karl Berry.
67151
67152 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67153
67154         * build-aux/maint.mk (POURL): Use translationproject.org.
67155
67156 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67157             Bruno Haible  <bruno@clisp.org>
67158
67159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67160         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67161         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67162         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67163         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67164
67165 2007-06-27  Bruno Haible  <bruno@clisp.org>
67166
67167         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67168         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67169
67170 2007-06-26  Karl Berry  <karl@gnu.org>
67171
67172         * MODULES.html.sh: remove xreadlink-with-size.
67173
67174 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67175
67176         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67177         method that I hope also handles the double-include problem noted
67178         by Bruno Haible in
67179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67180
67181 2007-06-23  Bruno Haible  <bruno@clisp.org>
67182
67183         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67184         Don't let the 'mostlyclean' target fail if the last subdirectory could
67185         not be removed.
67186         Reported by Karl Berry.
67187
67188 2007-06-23  Bruno Haible  <bruno@clisp.org>
67189
67190         * gnulib-tool (echo): Add a speedier workaround for ksh.
67191         * tests/test-echo.sh: Likewise.
67192
67193 2007-06-23  Bruno Haible  <bruno@clisp.org>
67194
67195         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67196         * tests/test-echo.sh: Likewise.
67197
67198 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67199
67200         * gnulib-tool (IFS): Initialize early, so we don't set it to
67201         empty later.
67202         (self_abspathname): Rewrite algorithm to set it, reindent.
67203         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67204         (func_create_megatestdir): Merge some sed scripts.
67205
67206 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67207
67208         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67209         exposed by Sun Studio 11 cc on Solaris 8.
67210
67211 2007-06-22  Bruno Haible  <bruno@clisp.org>
67212
67213         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67214         backslashes.
67215         * tests/test-echo.sh: New file.
67216
67217 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67218
67219         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67220         simplify `sed_replace_build_aux' scripts, they are portable but
67221         echoing them with `echo' is not.
67222         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67223
67224 2007-06-21  Karl Berry  <karl@gnu.org>
67225
67226         * config/srclist.txt: guess we can't handle the licenses via
67227         srclist at the moment.
67228
67229 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67230
67231         * MODULES.html.sh: Add include_next.
67232         * modules/include_next: New file.
67233
67234 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67237         INCLUDE_NEXT.
67238         (gl_CHECK_NEXT_HEADERS): New macro.
67239         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67240         the obsolescent gl_ABSOLUTE_HEADER.
67241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67242         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67243         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67244         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67245         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67246         * m4/math_h.m4 (gl_MATH_H): Likewise.
67247         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67248         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67249         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67250         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67251         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67252         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67253         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67255         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67256         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67257         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67258         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67259         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67260         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67261         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67262         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67263         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67264         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67265         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67266         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67267         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67268         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67269         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67270         * lib/float_.h: Likewise.
67271         * lib/inttypes_.h: Likewise.
67272         * lib/math_.h: Likewise.
67273         * lib/search_.h: Likewise.
67274         * lib/signal_.h: Likewise.
67275         * lib/stdint_.h: Likewise.
67276         * lib/stdio_.h: Likewise.
67277         * lib/stdlib_.h: Likewise.
67278         * lib/string_.h: Likewise.
67279         * lib/sys_stat_.h: Likewise.
67280         * lib/sys_time_.h: Likewise.
67281         * lib/time_.h: Likewise.
67282         * lib/unistd_.h: Likewise.
67283         * lib/wchar_.h: Likewise.
67284         * lib/wctype_.h: Likewise.
67285         * lib/dirent_.h: Likewise.
67286         * lib/iconv_.h: Likewise.
67287         * lib/locale_.h: Likewise.
67288         * lib/netinet_in_.h: Likewise.
67289         * lib/sys_select_.h: Likewise.
67290         * lib/sys_socket_.h: Likewise.
67291         * lib/sysexits_.h: Likewise.
67292         * modules/fcntl (Depends-on): Depend on include_next, not
67293         absolute_header.
67294         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67295         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67296         * modules/fchdir: Likewise.
67297         * modules/float: Likewise.
67298         * modules/iconv_open: Likewise.
67299         * modules/inttypes: Likewise.
67300         * modules/locale: Likewise.
67301         * modules/math: Likewise.
67302         * modules/netinet_in: Likewise.
67303         * modules/search: Likewise.
67304         * modules/signal: Likewise.
67305         * modules/stdint: Likewise.
67306         * modules/stdio: Likewise.
67307         * modules/stdlib: Likewise.
67308         * modules/string: Likewise.
67309         * modules/sys_select: Likewise.
67310         * modules/sys_socket: Likewise.
67311         * modules/sys_stat: Likewise.
67312         * modules/sys_time: Likewise.
67313         * modules/sysexits: Likewise.
67314         * modules/time: Likewise.
67315         * modules/unistd: Likewise.
67316         * modules/wchar: Likewise.
67317         * modules/wctype: Likewise.
67318         * modules/sys_stat: Change maintainer to "all".
67319         * modules/unistd: Likewise.
67320
67321 2007-06-20  Karl Berry  <karl@gnu.org>
67322
67323         * config/srclist.txt: track www changes in license files.
67324
67325 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67326
67327         * build-aux/bootstrap: Remove stray dot.
67328         Make sure build_aux settings are honored when linking
67329         gnulib_extra_files.
67330
67331 2007-06-19  Eric Blake  <ebb9@byu.net>
67332
67333         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67334         Allow compilation on cygwin.
67335
67336 2007-06-19  Jim Meyering  <jim@meyering.net>
67337
67338         xreadlink-with-size: Remove module.  No longer used.
67339         Ex-callers now use xreadlink or mreadlink-with-size.
67340         * modules/xreadlink-with-size: Remove module.
67341         * lib/xreadlink-with-size.c: Remove file.
67342         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67343         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67344         just before the function definition *is* accurate.
67345
67346         Eliminate one way canonicalize_filename_mode could exit.
67347         * lib/canonicalize.c (canonicalize_filename_mode):
67348         Use mreadlink_with_size, not xreadlink_with_size.
67349
67350 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         Detect porting problems to FreeBSD/arm, which has time_t wider than
67353         long int.  Original problem reported for GNU diff by Xin Li in
67354         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67355         * modules/getdate (Depends-on): Add intprops, verify.
67356         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67357         is an integer type no wider than long int.
67358
67359 2007-06-18  Jim Meyering  <jim@meyering.net>
67360
67361         New module: mreadlink-with-size.
67362         * MODULES.html.sh: Add mreadlink-with-size.
67363         * modules/mreadlink-with-size: New module
67364         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67365         not xreadlink-with-size.
67366         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67367
67368 2007-06-16  Bruno Haible  <bruno@clisp.org>
67369
67370         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67371         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67372         Reported by Gary V. Vaughan <gary@gnu.org>.
67373
67374 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67375
67376         Revamp lchown so that it lives in unistd.h where it belongs.
67377         * lib/lchown.h: Remove.
67378         * lib/dirchownmod.c: Don't include lib/lchown.h.
67379         * lib/fchownat.c: Likewise.
67380         * lib/openat.c: Likewise.
67381         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67382         does not follow symlinks.
67383         (EOPNOTSUPP): Define if not defined.
67384         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67385         is defined to 0.
67386         (lchown): New decl.
67387         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67388         Do not check for lchown decl.
67389         Set REPLACE_LCHOWN.
67390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67391         REPLACE_LCHOWN.
67392         * modules/chown: Make it clear it follows symlinks.
67393         * modules/lchown: Make it clear it doesn't follow symlinks.
67394         (Files): Remove lib/lchown.h
67395         (Depends-on): Add unistd.
67396         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67397         (Include): Include <unistd.h>, not "lchown.h".
67398         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67399         REPLACE_LCHOWN.
67400
67401 2007-06-15  Jim Meyering  <jim@meyering.net>
67402
67403         Change license (GPL to LGPL) of fsusage and dependents.
67404         * modules/fsusage (License): Change to LGPL.
67405         * modules/full-read (License): Likewise.
67406         * modules/full-write (License): Likewise.
67407         * modules/safe-read (License): Likewise.
67408         * modules/safe-write (License): Likewise.
67409
67410 2007-06-14  Ben Pfaff  <blp@gnu.org>
67411
67412         Missing part of allocsa -> malloca transition.
67413         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67414         gl_MALLOCA.
67415
67416 2007-06-12  Bruno Haible  <bruno@clisp.org>
67417
67418         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67419         to ia64, x86_64, i386.
67420         Reported by Eric Blake.
67421
67422 2007-06-12  Bruno Haible  <bruno@clisp.org>
67423
67424         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67425         cross-compiling to x86_64.
67426
67427 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67428
67429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67430         glitch reported by Ralf Wildenhues in
67431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67432
67433         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67434         Vin Shelton.
67435
67436 2007-06-11  Bruno Haible  <bruno@clisp.org>
67437
67438         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67439         replacement string.
67440         Reported by Eric Blake.
67441
67442 2007-06-10  Bruno Haible  <bruno@clisp.org>
67443
67444         Prepare vasnprintf code for use with Unicode strings.
67445         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67446         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67447         TYPE_U32_STRING.
67448         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67449         a_u32_string variants.
67450         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67451         * lib/printf-args.c: Don't include config.h and the specification
67452         header if PRINTF_FETCHARGS is already defined.
67453         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67454         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67455         TYPE_U16_STRING, TYPE_U32_STRING.
67456         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67457         u16_directive, u16_directives, u32_directive, u32_directives): New
67458         types.
67459         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67460         New declarations.
67461         * lib/printf-parse.c: Don't include config.h and the specification
67462         header if PRINTF_PARSE is already defined. Eliminate the set of
67463         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67464         them now. Include c-ctype.h.
67465         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67466         directive and CHAR_T_ONLY_ASCII.
67467         * lib/vasnprintf.c: Don't include config.h and the specification header
67468         if VASNPRINTF is already defined.
67469         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67470         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67471         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67472         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67473         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67474         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67475         code accordingly.
67476         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67477         pad_ourselves also in this case, with the 'c' and 's' directives, and
67478         with a different notion of "width".
67479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67480
67481 2007-06-10  Bruno Haible  <bruno@clisp.org>
67482
67483         * modules/unistr/u32-mbsnlen: New file.
67484         * lib/unistr/u32-mbsnlen.c: New file.
67485
67486         * modules/unistr/u16-mbsnlen: New file.
67487         * lib/unistr/u16-mbsnlen.c: New file.
67488
67489         * modules/unistr/u8-mbsnlen: New file.
67490         * lib/unistr/u8-mbsnlen.c: New file.
67491
67492         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67493         declarations.
67494
67495 2007-06-10  Bruno Haible  <bruno@clisp.org>
67496
67497         * lib/string_.h (mbsnlen): New declaration.
67498         * lib/mbsnlen.c: New file.
67499         * m4/mbsnlen.m4: New file.
67500         * modules/mbsnlen: New file.
67501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67502         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67503         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67504
67505 2007-06-10  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67508
67509 2007-06-10  Bruno Haible  <bruno@clisp.org>
67510
67511         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67512         * lib/mbuiter.h: Likewise.
67513
67514 2007-06-10  Bruno Haible  <bruno@clisp.org>
67515
67516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67517         declaration.
67518
67519 2007-06-10  Karl Berry  <karl@gnu.org>
67520
67521         * config/srclist.txt: remove gettext entries, Bruno prefers
67522         to update individually.
67523
67524 2007-06-10  Bruno Haible  <bruno@clisp.org>
67525
67526         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67527         'maxlen'. Ensure only length + width bytes are allocated, not
67528         length + 1 + width.
67529
67530 2007-06-09  Bruno Haible  <bruno@clisp.org>
67531
67532         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67533         (CHAR_T): Remove macro.
67534         (VASNPRINTF): Update.
67535
67536 2007-06-09  Bruno Haible  <bruno@clisp.org>
67537
67538         * MODULES.html.sh (Unicode string functions): Add the new modules.
67539
67540         * modules/uniconv/u32-conv-to-enc: New file.
67541         * lib/uniconv/u32-conv-to-enc.c: New file.
67542         * modules/uniconv/u32-conv-to-enc-tests: New file.
67543         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67544
67545         * modules/uniconv/u16-conv-to-enc: New file.
67546         * lib/uniconv/u16-conv-to-enc.c: New file.
67547         * lib/uniconv/u-conv-to-enc.h: New file.
67548         * modules/uniconv/u16-conv-to-enc-tests: New file.
67549         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67550
67551         * modules/uniconv/u8-conv-to-enc: New file.
67552         * lib/uniconv/u8-conv-to-enc.c: New file.
67553         * modules/uniconv/u8-conv-to-enc-tests: New file.
67554         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67555
67556         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67557         u32_conv_to_encoding): New declarations.
67558
67559 2007-06-09  Bruno Haible  <bruno@clisp.org>
67560
67561         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67562
67563 2007-06-09  Bruno Haible  <bruno@clisp.org>
67564
67565         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67566         * modules/malloca: Renamed from modules/allocsa, updated.
67567         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67568         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67569         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67570         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67571         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67572         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67573         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67574         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67575         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67576         * modules/c-strcasestr (Depends-on): Update.
67577         * lib/c-strcasestr.c: Update.
67578         * modules/c-strstr (Depends-on): Update.
67579         * lib/c-strstr.c: Update.
67580         * modules/canonicalize-lgpl (Depends-on): Update.
67581         * lib/canonicalize-lgpl.c: Update.
67582         * modules/clean-temp (Depends-on): Update.
67583         * lib/clean-temp.c: Update.
67584         * modules/csharpcomp (Depends-on): Update.
67585         * lib/csharpcomp.c: Update.
67586         * modules/csharpexec (Depends-on): Update.
67587         * lib/csharpexec.c: Update.
67588         * modules/javacomp (Depends-on): Update.
67589         * lib/javacomp.c: Update.
67590         * modules/javaexec (Depends-on): Update.
67591         * lib/javaexec.c: Update.
67592         * modules/mbscasestr (Depends-on): Update.
67593         * lib/mbscasestr.c: Update.
67594         * modules/mbsstr (Depends-on): Update.
67595         * lib/mbsstr.c: Update.
67596         * modules/setenv (Depends-on): Update.
67597         * lib/setenv.c: Update.
67598         * modules/strcasestr (Depends-on): Update.
67599         * lib/strcasestr.c: Update.
67600         * modules/striconveha (Depends-on): Update.
67601         * lib/striconveha.c: Update.
67602         * modules/relocatable-prog-wrapper (Files): Update.
67603         * lib/relocwrapper.c: Update.
67604         * build-aux/install-reloc: Update.
67605         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67606
67607 2007-06-08  Bruno Haible  <bruno@clisp.org>
67608
67609         Port to uClibc.
67610         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67611         * lib/fpurge.c (fpurge): Likewise.
67612         * lib/freading.c (freading): Likewise.
67613         * lib/fseeko.c (rpl_fseeko): Likewise.
67614         * lib/fseterr.c (fseterr): Likewise.
67615         * lib/fwriting.c (fwriting): Likewise.
67616         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67617
67618 2007-06-08  Bruno Haible  <bruno@clisp.org>
67619
67620         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67621         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67622         * modules/gettext (Files): Add m4/intlmacosx.m4.
67623
67624 2007-06-07  Bruno Haible  <bruno@clisp.org>
67625
67626         * modules/localename-tests: New file.
67627         * tests/test-localename.c: New file.
67628
67629         New module 'localename'.
67630         * lib/localename.h: New file.
67631         * lib/localename.c: New file, from GNU gettext.
67632         * m4/localename.m4: New file.
67633         * modules/localename: New file.
67634
67635 2007-06-07  Bruno Haible  <bruno@clisp.org>
67636
67637         Work around the lack of <wchar.h> on some builds of uClibc.
67638         * doc/headers/wchar.texi: Update.
67639         * lib/wchar_.h: Include <wchar.h> only if it exists.
67640         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67641         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67642         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67643         doesn't exist.
67644         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67645         * modules/mbfile (Depends-on): Add wchar.
67646         * modules/mbiter (Depends-on): Likewise.
67647         * modules/mbuiter (Depends-on): Likewise.
67648         Reported by Simon Josefsson.
67649
67650 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         Work around problem reported by Steven M. Schweda in
67653         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67654         Tru64 5.1B with the Compaq compiler environment installed declares
67655         an 'isblank' function but does not define it in the C library.
67656         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67657         * lib/regex_internal.h (isblank): Likewise.
67658         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67659         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67660
67661 2007-06-05  Bruno Haible  <bruno@clisp.org>
67662
67663         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67664         ia64.
67665         * modules/printf-safe: New file.
67666         * modules/fprintf-posix (Depends-on): Add printf-safe.
67667         * modules/printf-posix (Depends-on): Likewise.
67668         * modules/snprintf-posix (Depends-on): Likewise.
67669         * modules/sprintf-posix (Depends-on): Likewise.
67670         * modules/vasnprintf-posix (Depends-on): Likewise.
67671         * modules/vasprintf-posix (Depends-on): Likewise.
67672         * modules/vfprintf-posix (Depends-on): Likewise.
67673         * modules/vprintf-posix (Depends-on): Likewise.
67674         * modules/vsnprintf-posix (Depends-on): Likewise.
67675         * modules/vsprintf-posix (Depends-on): Likewise.
67676         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67677         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67678         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67679         "no" on i386, x86_64, ia64.
67680         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67681         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67682         on i386, x86_64, ia64.
67683         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67684         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67685         on i386, x86_64, ia64.
67686         * tests/test-vasnprintf-posix.c: Include float.h.
67687         (LDBL80_WORDS): New macro.
67688         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67689         on i386, x86_64, ia64.
67690         * tests/test-vasprintf-posix.c: Include float.h.
67691         (LDBL80_WORDS): New macro.
67692         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67693         on i386, x86_64, ia64.
67694         * tests/test-snprintf-posix.c: Include float.h.
67695         * tests/test-sprintf-posix.c: Likewise.
67696         * tests/test-vsnprintf-posix.c: Likewise.
67697         * tests/test-vsprintf-posix.c: Likewise.
67698
67699 2007-06-05  Bruno Haible  <bruno@clisp.org>
67700
67701         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67702         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67703         non-IEEE numbers on i386, x86_64, ia64.
67704         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67705         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67706         * tests/test-isnanl.h: Include float.h.
67707         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67708
67709 2007-06-05  Bruno Haible  <bruno@clisp.org>
67710
67711         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67712         also the %a / %A. Handle the %a / %A code before this extra handling.
67713
67714 2007-06-05  Bruno Haible  <bruno@clisp.org>
67715
67716         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67717         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67718
67719 2007-06-05  Bruno Haible  <bruno@clisp.org>
67720
67721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67722         typo in variable name.
67723
67724 2007-06-05  Eric Blake  <ebb9@byu.net>
67725
67726         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67727         Reported by Simon Josefsson.
67728
67729 2007-06-04  Bruno Haible  <bruno@clisp.org>
67730
67731         Avoid test failures on some PowerPC platforms.
67732         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67733         Define differently for PowerPC.
67734         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67735         Reported by Gary V. Vaughan <gary@gnu.org>.
67736
67737 2007-06-02  Bruno Haible  <bruno@clisp.org>
67738
67739         Fix test-stdint failure on FreeBSD/ia64.
67740         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67741         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67742         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67743         * doc/headers/stdint.texi: Update.
67744
67745 2007-06-01  Bruno Haible  <bruno@clisp.org>
67746
67747         * tests/test-binary-io.c (main): Pass a third argument to open().
67748         Reported by Gary V. Vaughan <gary@gnu.org>.
67749
67750 2007-06-01  Bruno Haible  <bruno@clisp.org>
67751
67752         * doc/functions/frexpl.texi: Update for mingw.
67753
67754 2007-06-01  Bruno Haible  <bruno@clisp.org>
67755
67756         * tests/test-lseek.c (main): Disable test of errno for invalid third
67757         argument.
67758         * doc/functions/lseek.texi: Update.
67759         Reported by Gary V. Vaughan <gary@gnu.org>.
67760
67761 2007-05-28  Bruno Haible  <bruno@clisp.org>
67762
67763         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67764
67765 2007-05-31  Eric Blake  <ebb9@byu.net>
67766
67767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67768         cross compiling.
67769
67770 2007-05-30  Eric Blake  <ebb9@byu.net>
67771         and Bruno Haible  <bruno@clisp.org>
67772
67773         Work around mingw test failures exposed by m4-1.4.9b.
67774         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67775         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67776         moment.
67777
67778 2007-05-30  Bruno Haible  <bruno@clisp.org>
67779
67780         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67781         assuming that they are closed. Needed on HP-UX 11.
67782
67783 2007-05-29  Bruno Haible  <bruno@clisp.org>
67784
67785         Fix a problem with #include_next.
67786         * lib/dirent_.h: Split the double-inclusion guard.
67787         * lib/fcntl_.h: Likewise.
67788         * lib/float_.h: Likewise.
67789         * lib/iconv_.h: Likewise.
67790         * lib/inttypes_.h: Likewise.
67791         * lib/locale_.h: Likewise.
67792         * lib/math_.h: Likewise.
67793         * lib/netinet_in_.h: Likewise.
67794         * lib/search_.h: Likewise.
67795         * lib/signal_.h: Likewise.
67796         * lib/stdint_.h: Likewise.
67797         * lib/stdio_.h: Likewise.
67798         * lib/stdlib_.h: Likewise.
67799         * lib/string_.h: Likewise.
67800         * lib/sys_select_.h: Likewise.
67801         * lib/sys_socket_.h: Likewise.
67802         * lib/sys_stat_.h: Likewise.
67803         * lib/sys_time_.h: Likewise.
67804         * lib/sysexits_.h: Likewise.
67805         * lib/time_.h: Likewise.
67806         * lib/unistd_.h: Likewise.
67807         * lib/wchar_.h: Likewise.
67808         * lib/wctype_.h: Likewise.
67809
67810 2007-05-29  Bruno Haible  <bruno@clisp.org>
67811
67812         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67813         for the moment.
67814
67815 2007-05-29  Bruno Haible  <bruno@clisp.org>
67816
67817         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67818         invocation.
67819         Reported by Eric Blake.
67820
67821 2007-05-29  Bruno Haible  <bruno@clisp.org>
67822
67823         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67824         compiling case.
67825
67826 2007-05-29  Eric Blake  <ebb9@byu.net>
67827             Bruno Haible  <bruno@clisp.org>
67828
67829         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67830         cross compiles.
67831
67832 2007-05-28  Eric Blake  <ebb9@byu.net>
67833
67834         * modules/closein-tests (test_closein_LDADD): Support test on
67835         cygwin with libtool.
67836
67837 2007-05-28  Bruno Haible  <bruno@clisp.org>
67838
67839         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67840         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67841         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67842         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67843         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67844         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67845         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67846         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67847         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67848
67849 2007-05-28  Eric Blake  <ebb9@byu.net>
67850
67851         Unconditionally include <config.h> in unit tests.
67852         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67853         * tests/test-allocsa.c, tests/test-arcfour.c,
67854         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67855         tests/test-array_list.c, tests/test-array_oset.c,
67856         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67857         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67858         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67859         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67860         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67861         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67862         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67863         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67864         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67865         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67866         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67867         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67868         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67869         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67870         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67871         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67872         test-md5.c, test-memmem.c, test-printf-posix.c,
67873         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67874         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67875         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67876         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67877         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67878         test-vasnprintf-posix2.c, test-vasnprintf.c,
67879         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67880         test-vfprintf-posix.c, test-vprintf-posix.c,
67881         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67882         test-xvasprintf.c: Likewise.
67883
67884 2007-05-28  Bruno Haible  <bruno@clisp.org>
67885
67886         * gnulib-tool (func_import): Remember the --with-tests command-line
67887         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67888         Reported by Eric Blake.
67889
67890 2007-05-28  Bruno Haible  <bruno@clisp.org>
67891
67892         * modules/ftell-tests: New file.
67893         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67894         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67895
67896         * lib/ftell.c: New file.
67897         * modules/ftell: New file.
67898         * m4/ftell.m4: New file.
67899         * doc/functions/ftell.texi: Update.
67900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67901         REPLACE_FTELL.
67902         * lib/stdio_.h (rpl_ftell): New declaration.
67903         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67904         REPLACE_FTELL.
67905
67906 2007-05-28  Eric Blake  <ebb9@byu.net>
67907
67908         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67909
67910 2007-05-28  Bruno Haible  <bruno@clisp.org>
67911
67912         * modules/fseek-tests: New file.
67913         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67914         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67915
67916         * lib/fseek.c: New file.
67917         * modules/fseek: New file.
67918         * m4/fseek.m4: New file.
67919         * doc/functions/fseek.texi: Update.
67920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67921         REPLACE_FSEEK.
67922         * lib/stdio_.h (rpl_fseek): New declaration.
67923         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67924         REPLACE_FSEEK.
67925
67926 2007-05-28  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/stdio_.h (fflush): More comments.
67929
67930 2007-05-28  Bruno Haible  <bruno@clisp.org>
67931
67932         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67933         runtime test.
67934
67935 2007-05-28  Eric Blake  <ebb9@byu.net>
67936
67937         Improve lseek module.
67938         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67939         * lib/unistd_.h (lseek): Scale back link warning message.
67940         * tests/test-lseek.c: Beef up test.
67941         * tests/test-lseek.sh: Exercise more facets of lseek.
67942         Reported by Bruno Haible.
67943
67944 2007-05-28  Bruno Haible  <bruno@clisp.org>
67945
67946         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67947         to define.
67948
67949 2007-05-27  Bruno Haible  <bruno@clisp.org>
67950
67951         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67952
67953 2007-05-27  Bruno Haible  <bruno@clisp.org>
67954
67955         * modules/openmp: New file.
67956         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67957         Noah Misch.
67958
67959 2007-05-26  Bruno Haible  <bruno@clisp.org>
67960
67961         * modules/chdir-long (Depends-on): Add fchdir.
67962         * modules/chdir-safer (Depends-on): Likewise.
67963         * modules/fts (Depends-on): Likewise.
67964         * modules/fts-lgpl (Depends-on): Likewise.
67965         * modules/openat (Depends-on): Likewise.
67966         * modules/savewd (Depends-on): Likewise.
67967
67968 2007-05-24  Eric Blake  <ebb9@byu.net>
67969
67970         Fix lseek on mingw.
67971         * modules/lseek: New module.
67972         * m4/lseek.m4: New file.
67973         * lib/lseek.c: New file.
67974         * modules/lseek-tests: New file.
67975         * tests/test-lseek.c: New file.
67976         * tests/test-lseek.sh: New file.
67977         * MODULES.html.sh: Document lseek module.
67978         * modules/fflush (Depends-on): Add lseek, fseeko.
67979         * modules/fseeko (Depends-on): Likewise.
67980         * modules/ftello (Depends-on): Likewise.
67981         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67982         broken.
67983         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67984         broken.
67985         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67986         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67987         * lib/ftello.c (rpl_ftello): Likewise.
67988         * tests/test-fseeko.c (main): Test this.
67989         * tests/test-fseeko.sh: Likewise.
67990         * tests/test-ftello.c (main): Likewise.
67991         * tests/test-ftello.sh: Likewise.
67992         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67993         implies replacing fseek.
67994         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67995         HAVE_FTELLO.
67996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67997         * modules/unistd (Makefile.am): Likewise.
67998         * lib/unistd_.h (lseek): Declare a replacement.
67999         * doc/functions/lseek.texi (lseek): Document this fix.
68000         * doc/functions/fseek.texi (fseek): Likewise.
68001         * doc/functions/ftell.texi (ftell): Likewise.
68002
68003 2007-05-24  Bruno Haible  <bruno@clisp.org>
68004
68005         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68006         in the printed representation of a NaN.
68007         * tests/test-vasprintf-posix.c (test_function): Likewise.
68008         * tests/test-snprintf-posix.h (test_function): Likewise.
68009         * tests/test-sprintf-posix.h (test_function): Likewise.
68010         Reported by Eric Blake.
68011
68012 2007-05-23  Eric Blake  <ebb9@byu.net>
68013
68014         Fix fseeko/ftello on cygwin 1.5.24.
68015         * doc/functions/fseeko.texi (fseeko): Document the fix.
68016         * doc/functions/ftello.texi (ftello): Document the fix.
68017         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68018         * doc/functions/stdout.text (stdout): New file.
68019         * doc/functions/stderr.text (stderr): New file.
68020         * doc/gnulib.texi (Function Substitutes): Use new files.
68021         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68022         prior to 1.7.0.
68023         * tests/test-ftello.c (main): Likewise for ftello.
68024         * tests/test-fseeko.sh: New file.
68025         * tests/test-ftello.sh: New file.
68026         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68027         with seekable stdin.
68028         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68029         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68030         (gl_REPLACE_FSEEKO): New macro.
68031         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68032         * modules/fseeko (Files): Distribute fseeko.c.
68033         * modules/ftello (Files): Distribute ftello.c.
68034         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68035         mode.
68036         * lib/ftello.c (rpl_ftello): New file.
68037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68038         fseeko, ftello.
68039         (gl_STDIN_LARGE_OFFSET): New macro.
68040         * modules/stdio (Makefile.am): Perform the replacement.
68041         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68042
68043 2007-05-23  Bruno Haible  <bruno@clisp.org>
68044
68045         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68046         GNULIB_POSIXCHECK is defined.
68047
68048 2007-05-21  Bruno Haible  <bruno@clisp.org>
68049
68050         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68051         Check also the output for NaN arguments. When cross-compiling, guess
68052         no on IRIX.
68053         * lib/vasnprintf.c: Update comments.
68054         * tests/test-vasnprintf-posix.c (strisnan): New function.
68055         (test_function): Use it.
68056         * tests/test-vasprintf-posix.c (strisnan): New function.
68057         (test_function): Use it.
68058         * tests/test-snprintf-posix.h (strisnan): New function.
68059         (test_function): Use it.
68060         * tests/test-sprintf-posix.h (strisnan): New function.
68061         (test_function): Use it.
68062         Reported by Eric Blake.
68063
68064 2007-05-20  Bruno Haible  <bruno@clisp.org>
68065
68066         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68067         numbers that fails on BeOS.
68068         * doc/functions/frexpl.texi: Update.
68069
68070 2007-05-20  Jim Meyering  <jim@meyering.net>
68071
68072         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68073         forced upon us by glibc-2.6.
68074
68075 2007-05-20  Bruno Haible  <bruno@clisp.org>
68076
68077         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68078         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68079         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68080         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68081         NEED_PRINTF_INFINITE.
68082         (is_infinitel): New function.
68083         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68085         gl_PREREQ_VASNPRINTF_INFINITE.
68086         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68088         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68089         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68090         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68091         gl_PREREQ_VASNPRINTF_INFINITE.
68092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68093         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68096         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68099         * doc/functions/fprintf.texi: Update.
68100         * doc/functions/printf.texi: Update.
68101         * doc/functions/snprintf.texi: Update.
68102         * doc/functions/sprintf.texi: Update.
68103         * doc/functions/vfprintf.texi: Update.
68104         * doc/functions/vprintf.texi: Update.
68105         * doc/functions/vsnprintf.texi: Update.
68106         * doc/functions/vsprintf.texi: Update.
68107
68108 2007-05-20  Bruno Haible  <bruno@clisp.org>
68109
68110         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68111         was not found in libc.
68112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68113
68114 2007-05-20  Bruno Haible  <bruno@clisp.org>
68115
68116         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68117         printed as "-nan" instead of "nan".
68118         * tests/test-vasprintf-posix.c (test_function): Likewise.
68119         * tests/test-snprintf-posix.h (test_function): Likewise.
68120         * tests/test-sprintf-posix.h (test_function): Likewise.
68121         Needed for HP-UX 11.
68122
68123 2007-05-20  Jim Meyering  <jim@meyering.net>
68124
68125         Fix buggy test for the fchownat-deref bug.
68126         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68127         symlink required for the run-test.  Without it, this test would
68128         always declare that fchownat doesn't work, and client code would
68129         unnecessarily use the replacement function with fixed libc.
68130         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68131         Reported by Greg Schafer.
68132
68133 2007-05-19  Bruno Haible  <bruno@clisp.org>
68134
68135         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68136         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68137         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68138         Needed for IRIX 6.5 and Solaris 2.5.1.
68139
68140 2007-05-19  Bruno Haible  <bruno@clisp.org>
68141
68142         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68143         (test_function): Skip tests involving -0.0 on platforms where
68144         -0.0 = 0.0.
68145         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68146         (test_function): Skip tests involving -0.0 on platforms where
68147         -0.0 = 0.0.
68148         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68149         (test_function): Skip tests involving -0.0 on platforms where
68150         -0.0 = 0.0.
68151         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68152         (test_function): Skip tests involving -0.0 on platforms where
68153         -0.0 = 0.0.
68154         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68155         tests.
68156         * tests/test-printf-posix.h (test_function): Likewise.
68157         * tests/test-printf-posix.output: Remove all -0.0 related results.
68158         Needed for IRIX 6.5.
68159
68160 2007-05-19  Bruno Haible  <bruno@clisp.org>
68161
68162         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68163         printed as "nan0x7fffffff" instead of "nan".
68164         * tests/test-vasprintf-posix.c (test_function): Likewise.
68165         * tests/test-snprintf-posix.h (test_function): Likewise.
68166         * tests/test-sprintf-posix.h (test_function): Likewise.
68167         * tests/test-fprintf-posix.h (NaN): Remove macro.
68168         (test_function): Remove all NaN related tests.
68169         * tests/test-printf-posix.h (NaN): Remove macro.
68170         (test_function): Remove all NaN related tests.
68171         * tests/test-printf-posix.output: Remove all NaN related results.
68172         Needed for IRIX 6.5.
68173
68174 2007-05-19  Bruno Haible  <bruno@clisp.org>
68175
68176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68178
68179 2007-05-19  Bruno Haible  <bruno@clisp.org>
68180
68181         * lib/float_.h: New file.
68182         * m4/float_h.m4: New file.
68183         * modules/float: New file.
68184         * modules/isnanl (Dependencies): Add float.
68185         * modules/isnanl-nolibm (Dependencies): Likewise.
68186         * modules/mathl (Dependencies): Likewise.
68187         * modules/printf-frexpl (Dependencies): Likewise.
68188         * modules/signbit (Dependencies): Likewise.
68189         * modules/vasnprintf (Dependencies): Likewise.
68190         * doc/headers/float.texi: Update.
68191
68192 2007-05-19  Jim Meyering  <jim@meyering.net>
68193
68194         * lib/utimens.c (gl_futimens): Rename from futimens,
68195         now that glibc-2.6 declares futimens.
68196         * lib/utimens.h: Likewise.
68197
68198 2007-05-19  Bruno Haible  <bruno@clisp.org>
68199
68200         Avoid test failures on mingw.
68201         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68202         * tests/test-printf-posix.sh: Likewise.
68203         * tests/test-vfprintf-posix.sh: Likewise.
68204         * tests/test-vprintf-posix.sh: Likewise.
68205
68206 2007-05-19  Bruno Haible  <bruno@clisp.org>
68207
68208         Fix *printf result for NaN, Inf, -0.0 on mingw.
68209         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68210         * lib/vasnprintf.c: Include math.h and isnan.h.
68211         (is_infinite_or_zero): New function.
68212         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68213         values in the %f, %F, %e, %E, %g, %G directives.
68214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68216         gl_PRINTF_INFINITE and test its result. Invoke
68217         gl_PREREQ_VASNPRINTF_INFINITE.
68218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68225         * doc/functions/fprintf.texi: Update.
68226         * doc/functions/printf.texi: Update.
68227         * doc/functions/snprintf.texi: Update.
68228         * doc/functions/sprintf.texi: Update.
68229         * doc/functions/vfprintf.texi: Update.
68230         * doc/functions/vprintf.texi: Update.
68231         * doc/functions/vsnprintf.texi: Update.
68232         * doc/functions/vsprintf.texi: Update.
68233
68234 2007-05-19  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68237         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68238         Instead of multiplying with 10^k, set extra_zeroes to k.
68239         (scale10_round_long_double): Remove function.
68240
68241 2007-05-18  Bruno Haible  <bruno@clisp.org>
68242
68243         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68244         introduced on 2007-05-06.
68245
68246 2007-05-18  Bruno Haible  <bruno@clisp.org>
68247
68248         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68249         %g directives.
68250         * tests/test-vasprintf-posix.c (test_function): Likewise.
68251         * tests/test-snprintf-posix.h (test_function): Likewise.
68252         * tests/test-sprintf-posix.h (test_function): Likewise.
68253
68254 2007-05-18  Bruno Haible  <bruno@clisp.org>
68255
68256         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68257         (strmatch): New function.
68258         (test_function): Test the %f directive on numbers of various exponents.
68259         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68260         (strmatch): New function.
68261         (test_function): Test the %f directive on numbers of various exponents.
68262         * tests/test-snprintf-posix.h (strmatch): New function.
68263         (test_function): Test the %f directive on numbers of various exponents.
68264         * tests/test-sprintf-posix.h (strmatch): New function.
68265         (test_function): Test the %f directive on numbers of various exponents.
68266         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68267         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68268         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68269         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68270
68271 2007-05-18  Bruno Haible  <bruno@clisp.org>
68272
68273         Add support for 'long double' number output.
68274         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68275         * lib/vasnprintf.c: Include math.h and float+.h.
68276         (mp_limb_t): New type.
68277         (GMP_LIMB_BITS): New macro.
68278         (mp_twolimb_t): New type.
68279         (GMP_TWOLIMB_BITS): New macro.
68280         (mpn_t): New type.
68281         (multiply, divide, convert_to_decimal, decode_long_double,
68282         scale10_round_long_double, scale10_round_decimal_long_double,
68283         floorlog10l): New functions.
68284         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68285         for the %f, %F, %e, %E, %g, %G directives.
68286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68288         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68289         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68297         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68298         * modules/snprintf-posix (Depends-on): Likewise.
68299         * modules/sprintf-posix (Depends-on): Likewise.
68300         * modules/vasnprintf-posix (Depends-on): Likewise.
68301         * modules/vasprintf-posix (Depends-on): Likewise.
68302         * modules/vfprintf-posix (Depends-on): Likewise.
68303         * modules/vsnprintf-posix (Depends-on): Likewise.
68304         * modules/vsprintf-posix (Depends-on): Likewise.
68305         * modules/vasnprintf (Files): Add lib/float+.h.
68306         * doc/functions/fprintf.texi: Update.
68307         * doc/functions/printf.texi: Update.
68308         * doc/functions/snprintf.texi: Update.
68309         * doc/functions/sprintf.texi: Update.
68310         * doc/functions/vfprintf.texi: Update.
68311         * doc/functions/vprintf.texi: Update.
68312         * doc/functions/vsnprintf.texi: Update.
68313         * doc/functions/vsprintf.texi: Update.
68314
68315 2007-05-18  Bruno Haible  <bruno@clisp.org>
68316
68317         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68318
68319 2007-05-18  Bruno Haible  <bruno@clisp.org>
68320
68321         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68322         for printing 64-bit integers. Needed for mingw.
68323
68324 2007-05-18  Bruno Haible  <bruno@clisp.org>
68325
68326         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68327         gl_FUNC_FREXPL_WORKS.
68328         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68329
68330 2007-05-18  Bruno Haible  <bruno@clisp.org>
68331
68332         * modules/frexpl-nolibm-tests: New file.
68333
68334         * modules/frexpl-nolibm: New file.
68335         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68336
68337 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68338
68339         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68340         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68341         GCC 4.2, which otherwise issues a lot of warnings.
68342         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68343         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68344         Likewise.
68345         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68346         * modules/iconv_open (iconv.h): Likewise.
68347         * modules/locale (locale.h): Likewise.
68348         * modules/netinet_in (netinet/in.h): Likewise.
68349         * modules/sys_select (sys_select.h): Likewise.
68350         * modules/sys_socket (sys/socket.h): Likewise.
68351         * modules/sys_stat (sys/stat.h): Likewise.
68352         * modules/sysexits (sysexits.h): Likewise.
68353         * modules/unistd (unistd.h): Likewise.
68354
68355 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68356
68357         * modules/closein-tests (Makefile.am): Distribute
68358         `test-closein.sh'.
68359
68360 2007-05-17  Bruno Haible  <bruno@clisp.org>
68361
68362         * tests/test-printf-posix.output: Renamed from
68363         tests/test-fprintf-posix.out.
68364         * modules/fprintf-posix-tests: Update.
68365         * modules/printf-posix-tests: Update.
68366         * modules/vfprintf-posix-tests: Update.
68367         * modules/vprintf-posix-tests: Update.
68368         * tests/test-fprintf-posix.sh: Update.
68369         * tests/test-printf-posix.sh: Update.
68370         * tests/test-vfprintf-posix.sh: Update.
68371         * tests/test-vprintf-posix.sh: Update.
68372         Reported by Ralf Wildenhues.
68373
68374 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68375
68376         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68377         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68378         GCC 4.2, which otherwise issues a lot of warnings.
68379         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68380         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68381         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68382         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68383         it should no longer be needed.
68384         * lib/string_.h: Likewise.
68385         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68386         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68387         * modules/inttypes (inttypes.h): Likewise.
68388         * modules/math (math.h): Likewise.
68389         * modules/search (search.h): Likewise.
68390         * modules/signal (signal.h): Likewise.
68391         * modules/stdint (stdint.h): Likewise.
68392         * modules/stdio (stdio.h): Likewise.
68393         * modules/stdlib (stdlib.h): Likewise.
68394         * modules/string (string.h): Likewise.
68395         * modules/sys_time (sys/time.h): Likewise.
68396         * modules/time (time.h): Likewise.
68397         * modules/wchar (wchar.h): Likewise.
68398         * modules/wctype (wtype.h): Likewise.
68399
68400 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68401
68402         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68403
68404 2007-05-13  Bruno Haible  <bruno@clisp.org>
68405
68406         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68407         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68408         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68409         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68410         (gl_PREREQ_STRTOK_R): Don't require it here.
68411
68412 2007-05-13  Bruno Haible  <bruno@clisp.org>
68413
68414         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68415         when used in C++ mode.
68416
68417 2007-05-12  Bruno Haible  <bruno@clisp.org>
68418
68419         * lib/linebuffer.h: Tweak doc.
68420         * lib/linebuffer.c: Likewise.
68421
68422 2007-05-12  James Youngman  <jay@gnu.org>
68423
68424         * lib/linebuffer.c (readlinebuffer_delim): New function,
68425         like readlinebuffer, but use a caller-specified delimiter.
68426         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68427         as the delimiter.
68428         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68429
68430 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68431
68432         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68433         * modules/openat (Files): Remove openat-die.c.
68434         (Depends-on): Add openat-die.
68435         * modules/openat-die: New module.
68436
68437 2007-05-06  Bruno Haible  <bruno@clisp.org>
68438
68439         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68440         Update with info about Cygwin.
68441         * doc/functions/fprintf.texi: Update.
68442         * doc/functions/printf.texi: Update.
68443         * doc/functions/snprintf.texi: Update.
68444         * doc/functions/sprintf.texi: Update.
68445         * doc/functions/vfprintf.texi: Update.
68446         * doc/functions/vprintf.texi: Update.
68447         * doc/functions/vsnprintf.texi: Update.
68448         * doc/functions/vsprintf.texi: Update.
68449         Reported by Eric Blake.
68450
68451 2007-05-06  Bruno Haible  <bruno@clisp.org>
68452
68453         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68454         padding ourselves for the floating-point directives.
68455         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68458         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68459         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68461         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68467         * tests/test-snprintf-posix.h (test_function): Also check the width
68468         and some flags in the %f directive.
68469         * tests/test-sprintf-posix.h (test_function): Likewise.
68470         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68471         * tests/test-vasprintf-posix.c (test_function): Likewise.
68472         * doc/functions/fprintf.texi: Update.
68473         * doc/functions/printf.texi: Update.
68474         * doc/functions/snprintf.texi: Update.
68475         * doc/functions/sprintf.texi: Update.
68476         * doc/functions/vfprintf.texi: Update.
68477         * doc/functions/vprintf.texi: Update.
68478         * doc/functions/vsnprintf.texi: Update.
68479         * doc/functions/vsprintf.texi: Update.
68480
68481 2007-05-06  Bruno Haible  <bruno@clisp.org>
68482
68483         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68484         pass the ' flag character to sprintf or snprintf.
68485         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68488         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68489         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68497         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68498         flag.
68499         * tests/test-sprintf-posix.h (test_function): Likewise.
68500         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68501         * tests/test-vasprintf-posix.c (test_function): Likewise.
68502         * doc/functions/fprintf.texi: Update.
68503         * doc/functions/printf.texi: Update.
68504         * doc/functions/snprintf.texi: Update.
68505         * doc/functions/sprintf.texi: Update.
68506         * doc/functions/vfprintf.texi: Update.
68507         * doc/functions/vprintf.texi: Update.
68508         * doc/functions/vsnprintf.texi: Update.
68509         * doc/functions/vsprintf.texi: Update.
68510
68511 2007-05-01  Bruno Haible  <bruno@clisp.org>
68512
68513         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68514
68515 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68518         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68519
68520 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68521
68522         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68523         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68525
68526 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68527
68528         * lib/argp-help.c (struct hol_entry): New member `ord'.
68529         (HOL_ENTRY_PTRCMP): Use ord for comparison
68530         (hol_sort): Initialize ord.
68531
68532 2007-05-01  Bruno Haible  <bruno@clisp.org>
68533
68534         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68535         Reported by Eric Blake.
68536         * doc/gnulib.texi (Function Substitutes): Update.
68537
68538 2007-05-01  Bruno Haible  <bruno@clisp.org>
68539
68540         * doc/functions.texi: Remove file, now redundant through
68541         doc/functions/*.texi.
68542
68543 2007-05-01  Bruno Haible  <bruno@clisp.org>
68544
68545         * modules/argp (Depends-on): Add sleep.
68546
68547 2007-05-01  Bruno Haible  <bruno@clisp.org>
68548
68549         * modules/sleep-tests: New file.
68550         * tests/test-sleep.c: New file.
68551
68552         * modules/sleep: New file.
68553         * lib/sleep.c: New file.
68554         * m4/sleep.m4: New file.
68555         * lib/unistd_.h (sleep): New declaration.
68556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68557         HAVE_SLEEP.
68558         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68559         * doc/functions/sleep.texi: Document the sleep module.
68560
68561 2007-05-01  Bruno Haible  <bruno@clisp.org>
68562
68563         * lib/sigprocmask.h: Remove file.
68564         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68565         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68566         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68567         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68568         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68569         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68570         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68571         HAVE_SIGSET_T as a shell variable.
68572         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68573         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68574         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68575         (Depends-on): Add signal. Remove verify.
68576         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68577         (Include): Mention <signal.h> instead of sigprocmask.h.
68578         * NEWS: Mention the change.
68579         * lib/fatal-signal.c: Don't include sigprocmask.h.
68580
68581 2007-05-01  Bruno Haible  <bruno@clisp.org>
68582
68583         * modules/signal: New file.
68584         * lib/signal_.h: New file.
68585         * m4/signal_h.m4: New file.
68586
68587 2007-05-01  Bruno Haible  <bruno@clisp.org>
68588
68589         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68590         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68591         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68592         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68593
68594 2007-05-01  Bruno Haible  <bruno@clisp.org>
68595
68596         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68597         configure time.
68598         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68599         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68600         * modules/sys_stat (Makefile.am): Substitute their values into
68601         sys/stat.h.
68602
68603 2007-05-01  Bruno Haible  <bruno@clisp.org>
68604
68605         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68606         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68607         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68608
68609 2007-05-01  Bruno Haible  <bruno@clisp.org>
68610
68611         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68612         'assert' module here.
68613
68614 2007-05-01  Bruno Haible  <bruno@clisp.org>
68615
68616         * doc/functions/*.texi: New files.
68617         * doc/functions/google-ranking.txt: New file.
68618         * doc/gnulib.texi (Function Substitutes): New chapter.
68619         (ctime, inet_ntoa): Remove sections.
68620         * doc/ctime.texi: Remove file.
68621         * doc/inet_ntoa.texi: Remove file.
68622         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68623         dependencies.
68624         (%.info): New rule, specifying a --reference-limit.
68625
68626 2007-05-01  Bruno Haible  <bruno@clisp.org>
68627
68628         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68629
68630 2007-05-01  Bruno Haible  <bruno@clisp.org>
68631
68632         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68633         the portability of 'mkdir' to mingw systems.
68634
68635 2007-05-01  Bruno Haible  <bruno@clisp.org>
68636
68637         * doc/headers/google-ranking.txt: New file.
68638
68639 2007-04-30  Eric Blake  <ebb9@byu.net>
68640
68641         Prefer fseeko to fseek.
68642         * modules/getpass (Depends-on): Add fseeko.
68643         * lib/getpass.c (getpass): Use fseeko, not fseek.
68644
68645 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68646
68647         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68648         assumes the sorting is stable, while most qsort implementations
68649         are not.  Use argument addresses to ensure they never compare as
68650         equal.
68651
68652         * tests/test-argp-2.sh (usage-indent test): Fix output
68653         (func_compare): Restore diff options
68654         * tests/test-argp.c: Restore #include "progname.h"
68655
68656 2007-04-29  Bruno Haible  <bruno@clisp.org>
68657
68658         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68660         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68662         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68663         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68664         (TESTS, check_PROGRAMS): Add test-snprintf.
68665         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68666         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68667         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68668         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68669         assertions that fail on HP-UX, OSF/1, or IRIX.
68670         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68671
68672 2007-04-29  Bruno Haible  <bruno@clisp.org>
68673
68674         * MODULES.html.sh (posix_functions): Remove 'contents'.
68675
68676 2007-04-29  Karl Berry  <karl@gnu.org>
68677
68678         * config/srclist.txt (gendocs_template_min): new entry.
68679
68680 2007-04-29  Bruno Haible  <bruno@clisp.org>
68681
68682         Work around fpurge bug on BSD systems.
68683         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68685         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68686         fpurge to rpl_fpurge if the system already has this function.
68687         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68688         the case where the system already has this function. Correct invariants
68689         on BSD systems.
68690         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68691         BSD systems.
68692
68693 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68694
68695         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68696         proposed by Sven Verdoolaege.
68697
68698         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68699         options.
68700         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68701         (usage and help tests): Update
68702
68703 2007-04-29  Bruno Haible  <bruno@clisp.org>
68704
68705         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68706         Print more information in case of failure. Disable a test on BeOS.
68707
68708 2007-04-29  Bruno Haible  <bruno@clisp.org>
68709
68710         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68711         This helps debugging on systems on which no gdb is available.
68712
68713 2007-04-29  Bruno Haible  <bruno@clisp.org>
68714
68715         * lib/freading.h: Improve comments.
68716         * lib/fwriting.h: Likewise.
68717         * tests/test-freading.c (main): Don't check freading immediately after
68718         repositioning. Needed for glibc.
68719
68720 2007-04-29  Bruno Haible  <bruno@clisp.org>
68721
68722         * lib/freading.c (freading): Trivial simplification.
68723
68724 2007-04-28  Bruno Haible  <bruno@clisp.org>
68725
68726         * tests/test-fwriting.c (main): Also test the interaction between
68727         fflush and fwriting.
68728         * modules/fwriting-tests (Depends-on): Add fflush.
68729
68730         * tests/test-freading.c (main): Also test the interaction between
68731         fflush and freading.
68732         * modules/freading-tests (Depends-on): Add fflush.
68733
68734 2007-04-28  Bruno Haible  <bruno@clisp.org>
68735
68736         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68737         fseeko and ftello.
68738         Suggested by Eric Blake.
68739
68740 2007-04-28  Jim Meyering  <jim@meyering.net>
68741
68742         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68743         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68744         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68745
68746 2007-04-27  Eric Blake  <ebb9@byu.net>
68747
68748         * doc/headers/assert.texi (assert.h): Document assert module use.
68749
68750 2007-04-27  Bruno Haible  <bruno@clisp.org>
68751
68752         * doc/headers/*.texi: New files.
68753         * doc/gnulib.texi (Header File Substitutes): New chapter.
68754         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68755         dependencies.
68756         (standards.info ,standards.html, standards.dvi): Update dependencies.
68757         (mostlyclean, clean): New targets.
68758
68759 2007-04-27  Bruno Haible  <bruno@clisp.org>
68760
68761         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68762         * modules/sysexits (Files, Makefile.am): Update.
68763
68764         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68765         * modules/sys_socket (Files, Makefile.am): Update.
68766
68767         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68768         * modules/sys_stat (Files, Makefile.am): Update.
68769
68770 2007-04-27  Eric Blake  <ebb9@byu.net>
68771
68772         * lib/freading.h: Improve comments.
68773         * lib/fwriting.h: Likewise.
68774         * lib/fflush.c: Likewise.
68775
68776         Fix closein for mingw.
68777         * modules/closein-tests: Add tests for closein.
68778         * tests/test-closein.c: New file.
68779         * tests/test-closein.sh: Likewise.
68780         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68781         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68782
68783 2007-04-27  Bruno Haible  <bruno@clisp.org>
68784
68785         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68786         version is < 6.
68787         * lib/math_.h [__DECC]: Likewise.
68788         * lib/stdio_.h [__DECC]: Likewise.
68789         * lib/stdlib_.h [__DECC]: Likewise.
68790         * lib/string_.h [__DECC]: Likewise.
68791         * lib/time_.h [__DECC]: Likewise.
68792         * lib/wchar_.h [__DECC]: Likewise.
68793         * lib/wctype_.h [__DECC]: Likewise.
68794
68795 2007-04-27  Bruno Haible  <bruno@clisp.org>
68796
68797         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68798
68799 2007-04-27  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/fflush.c: Add comments.
68802         * modules/fpurge-tests (Depends-on): Add fflush.
68803         * modules/freadable-tests (Depends-on): Likewise.
68804         * modules/fwritable-tests (Depends-on): Likewise.
68805
68806 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68807
68808         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68809         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68810         Report by Bruno Haible <bruno@clisp.org>.
68811
68812 2007-04-26  Eric Blake  <ebb9@byu.net>
68813
68814         Fix fflush on mingw.
68815         * modules/fflush (Depends-on): Add freading.
68816         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68817         but unread data.
68818
68819 2007-04-26  Eric Blake  <ebb9@byu.net>
68820         and Bruno Haible  <bruno@clisp.org>
68821
68822         Implement freading and fwriting.
68823         * lib/freading.c: New file.
68824         * lib/freading.h: Likewise.
68825         * m4/freading.m4: Likewise.
68826         * modules/freading: Likewise.
68827         * modules/freading-tests: Likewise.
68828         * tests/test-freading.c: Likewise.
68829         * lib/fwriting.c: New file.
68830         * lib/fwriting.h: Likewise.
68831         * m4/fwriting.m4: Likewise.
68832         * modules/fwriting: Likewise.
68833         * modules/fwriting-tests: Likewise.
68834         * tests/test-fwriting.c: Likewise.
68835         * MODULES.html.sh (File stream based Input/Output): Mention them.
68836
68837 2007-04-26  Bruno Haible  <bruno@clisp.org>
68838
68839         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68840         'long' when we assume it.
68841         Suggested by Eric Blake.
68842
68843 2007-04-26  Bruno Haible  <bruno@clisp.org>
68844
68845         Ensure fseeko, ftello are declared on glibc systems.
68846         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68847         * modules/fseeko (configure.ac-early): Likewise.
68848         * modules/ftello (configure.ac-early): Likewise.
68849         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68850         AC_FUNC_FSEEKO for this.
68851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68852         (gl_CHECK_FSEEKO): Remove macro.
68853
68854 2007-04-26  Bruno Haible  <bruno@clisp.org>
68855
68856         * tests/test-fflush.c (main): Also check the ftell result after
68857         fflush and fseek/fseeko.
68858         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68859         file descriptor position cache in the stream.
68860         * lib/fseeko.c (rpl_fseeko): Likewise.
68861
68862 2007-04-26  Bruno Haible  <bruno@clisp.org>
68863
68864         * modules/fflush-tests (Depends-on): Add fseeko.
68865
68866 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68867             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68868
68869         * lib/argz_.h: ensure error_t definition is obtained in same
68870         mechanism system argz.h would have.
68871         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68872         argz facilities are known bad.  Err on the side of caution if
68873         cross-compiling.
68874
68875 2007-04-25  Eric Blake  <ebb9@byu.net>
68876
68877         * lib/fpurge.c (includes): Use stdlib.h for free.
68878         * tests/test-fflush.c (main): Also test fflush-fseeko.
68879
68880 2007-04-25  Bruno Haible  <bruno@clisp.org>
68881
68882         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68883         * lib/fseeko.c: New file.
68884         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68885         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68886         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68887         gl_FUNC_FSEEKO.
68888         (gl_FUNC_FSEEKO): Invoke it.
68889         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68890         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68891         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68892
68893 2007-04-25  Bruno Haible  <bruno@clisp.org>
68894
68895         * modules/fflush (Depends-on): Add ftello.
68896
68897 2007-04-25  Bruno Haible  <bruno@clisp.org>
68898
68899         * modules/ftello-tests: New file.
68900         * tests/test-ftello.c: New file.
68901
68902         * modules/ftello: New file.
68903         * m4/ftello.m4: New file.
68904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68905         HAVE_FTELLO.
68906         * lib/stdio_.h (ftello): New declaration.
68907         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68908         HAVE_FTELLO.
68909
68910 2007-04-25  Bruno Haible  <bruno@clisp.org>
68911
68912         * modules/fseeko-tests: New file.
68913         * tests/test-fseeko.c: New file.
68914
68915         * modules/fseeko: New file.
68916         * m4/fseeko.m4: New file.
68917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68918         HAVE_FSEEKO.
68919         * lib/stdio_.h (fseeko): New declaration.
68920         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68921         HAVE_FSEEKO.
68922
68923 2007-04-25  Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68926
68927 2007-04-25  Bruno Haible  <bruno@clisp.org>
68928
68929         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68930         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68931         * tests/test-unistd.c: Likewise.
68932         * tests/test-fcntl.c: Likewise.
68933
68934 2007-04-23  Eric Blake  <ebb9@byu.net>
68935
68936         * lib/fflush.c: Fix missing include.
68937         Reported by Bruno Haible.
68938
68939 2007-04-23  Bruno Haible  <bruno@clisp.org>
68940
68941         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68942         Reported by Eric Blake.
68943
68944 2007-04-23  Bruno Haible  <bruno@clisp.org>
68945
68946         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68947
68948 2007-04-23  Bruno Haible  <bruno@clisp.org>
68949
68950         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68951
68952 2007-04-23  Bruno Haible  <bruno@clisp.org>
68953
68954         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68955         Needed on HP-UX 11.
68956
68957 2007-04-16  Eric Blake  <ebb9@byu.net>
68958
68959         Make fflush rely on fpurge.
68960         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68961         open coding all variants.
68962         * modules/fflush (Depends-on): Add fpurge and unistd.
68963         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68964         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68965
68966         Fix --with-tests compilation on cygwin.
68967         * modules/argmatch-tests (Makefile.am): List gnulib library first
68968         in LDADD.
68969         * modules/argp-tests (Makefile.am): Likewise.
68970         * modules/array-list-tests (Makefile.am): Likewise.
68971         * modules/array-oset-tests (Makefile.am): Likewise.
68972         * modules/avltree-list-tests (Makefile.am): Likewise.
68973         * modules/avltree-oset-tests (Makefile.am): Likewise.
68974         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68975         * modules/carray-list-tests (Makefile.am): Likewise.
68976         * modules/dirname-tests (Makefile.am): Likewise.
68977         * modules/frexp-tests (Makefile.am): Likewise.
68978         * modules/isnanl-tests (Makefile.am): Likewise.
68979         * modules/linked-list-tests (Makefile.am): Likewise.
68980         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68981         * modules/lock-tests (Makefile.am): Likewise.
68982         * modules/rbtree-list-tests (Makefile.am): Likewise.
68983         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68984         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68985         * modules/tls-tests (Makefile.am): Likewise.
68986         * modules/tsearch-tests (Makefile.am): Likewise.
68987         * modules/xvasprintf-tests (Makefile.am): Likewise.
68988
68989         Fix fpurge for cygwin.
68990         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68991         value.
68992         * modules/fpurge-tests (Depends-on): Clean up trash.
68993
68994 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68995
68996         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68997
68998         * m4/autobuild.m4: Re-indent.
68999
69000 2007-04-13  Bruno Haible  <bruno@clisp.org>
69001
69002         * modules/fpurge-tests: New file.
69003         * tests/test-fpurge.c: New file.
69004
69005         * modules/fpurge: New file.
69006         * lib/fpurge.h: New file.
69007         * lib/fpurge.c: New file.
69008         * m4/fpurge.m4: New file.
69009
69010 2007-04-13  Bruno Haible  <bruno@clisp.org>
69011
69012         * modules/fbufmode-tests: New file.
69013         * tests/test-fbufmode.c: New file.
69014
69015         * modules/fbufmode: New file.
69016         * lib/fbufmode.h: New file.
69017         * lib/fbufmode.c: New file.
69018         * m4/fbufmode.m4: New file.
69019
69020 2007-04-13  Bruno Haible  <bruno@clisp.org>
69021
69022         * modules/fwritable-tests: New file.
69023         * tests/test-fwritable.c: New file.
69024
69025         * modules/fwritable: New file.
69026         * lib/fwritable.h: New file.
69027         * lib/fwritable.c: New file.
69028         * m4/fwritable.m4: New file.
69029
69030 2007-04-13  Bruno Haible  <bruno@clisp.org>
69031
69032         * modules/freadable-tests: New file.
69033         * tests/test-freadable.c: New file.
69034
69035         * modules/freadable: New file.
69036         * lib/freadable.h: New file.
69037         * lib/freadable.c: New file.
69038         * m4/freadable.m4: New file.
69039
69040 2007-04-13  Bruno Haible  <bruno@clisp.org>
69041
69042         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69043         MOSTLYCLEANFILES.
69044
69045 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69048         gzip bootstrap.conf to avoid dragging in i18n machinery.
69049         (gnulib_tool_option): Use it.
69050
69051 2007-04-13  Bruno Haible  <bruno@clisp.org>
69052
69053         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69054         %F directives.
69055         * tests/test-vasprintf-posix.c (test_function): Likewise.
69056         * tests/test-snprintf-posix.h (test_function): Likewise.
69057         * tests/test-sprintf-posix.h (test_function): Likewise.
69058         * tests/test-fprintf-posix.h (test_function): Likewise.
69059         * tests/test-printf-posix.h (test_function): Likewise.
69060         * tests/test-fprintf-posix.out: Likewise.
69061
69062 2007-04-13  Bruno Haible  <bruno@clisp.org>
69063
69064         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69065         * modules/tls-tests (configure.ac): Likewise.
69066         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69067
69068 2007-04-13  Bruno Haible  <bruno@clisp.org>
69069
69070         * lib/tls.c (glthread_tls_get): Fix return type.
69071         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69072
69073 2007-04-12  Eric Blake  <ebb9@byu.net>
69074
69075         * modules/gettime (Depends-on): Remove gettime.
69076         Reported by Dmitry V. Levin.
69077
69078 2007-04-12  Bruno Haible  <bruno@clisp.org>
69079
69080         * modules/fflush (Include): Mention <stdio.h>.
69081         * modules/strtoimax (Include): Mention <inttypes.h>.
69082         * modules/strtoumax (Include): Likewise.
69083
69084 2007-04-12  Eric Blake  <ebb9@byu.net>
69085
69086         * .cvsignore: New file.
69087         * .gitignore: Likewise.
69088
69089 2007-04-12  Bruno Haible  <bruno@clisp.org>
69090
69091         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69092         not before, since $(LDADD) often contains libgnu.a.
69093         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69094         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69095         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69096         Needed on Cygwin.
69097
69098 2007-04-12  Eric Blake  <ebb9@byu.net>
69099
69100         Work around glibc's failure to flush stdin on fclose.
69101         * lib/closein.c (close_stdin): Flush stdin before closing.
69102
69103         Work around glibc's failure to reset seekable stdin on exit.
69104         * modules/closein: New module.
69105         * lib/closein.c: New file.
69106         * lib/closein.h: Likewise.
69107         * m4/closein.m4: Likewise.
69108         * MODULES.html.sh (File stream based Input/Output): Document it.
69109
69110 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69111
69112         * gnulib-tool: Rename generated 'autobuild' script to
69113         'do-autobuild' in --create-megatestdir output.
69114
69115         * doc/gnulib.texi (Build robot for gnulib): Fix.
69116
69117 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69118
69119         * modules/sysexits (Depends-on): Add absolute-header.
69120
69121 2007-04-12  Eric Blake  <ebb9@byu.net>
69122
69123         No need to preserve errno on success.
69124         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69125         Reported by Bruno Haible.
69126
69127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69128
69129         * MODULES.html.sh (Support for maintaining and releasing
69130         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69131
69132 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69133
69134         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69135
69136 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69137
69138         * modules/autobuild: New module.
69139
69140         * m4/autobuild.m4: New file.
69141
69142 2007-04-11  Bruno Haible  <bruno@clisp.org>
69143
69144         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69145         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69146         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69149         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69150         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69160         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69172         Reported by Eric Blake.
69173
69174 2007-04-11  Bruno Haible  <bruno@clisp.org>
69175
69176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69177
69178 2007-04-10  Bruno Haible  <bruno@clisp.org>
69179
69180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69181         for NaN and Infinity. Needed on FreeBSD 6.1.
69182         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69183         regarding results for "%010a" of Infinity and NaN.
69184         * tests/test-vasprintf-posix.c (test_function): Likewise.
69185         * tests/test-snprintf-posix.h (test_function): Likewise.
69186         * tests/test-sprintf-posix.h (test_function): Likewise.
69187         * tests/test-fprintf-posix.h (test_function): Likewise.
69188         * tests/test-printf-posix.h (test_function): Likewise.
69189         * tests/test-fprintf-posix.out: Likewise.
69190
69191 2007-04-10  Bruno Haible  <bruno@clisp.org>
69192
69193         * modules/locale-tests: New file.
69194         * tests/test-locale.c: New file.
69195
69196         * modules/locale: New file.
69197         * lib/locale_.h: New file.
69198         * m4/locale_h.m4: New file.
69199
69200 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69201             Bruno Haible  <bruno@clisp.org>
69202
69203         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69204         be determined, test for availability of the copysignf, copysign,
69205         copysignl functions.
69206         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69207         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69208         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69209
69210 2007-04-09  Eric Blake  <ebb9@byu.net>
69211
69212         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69213         * modules/stdio (Makefile.am): Support fflush.
69214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69215         * modules/fflush: New file.
69216         * lib/fflush.c: Likewise.
69217         * m4/fflush.m4: Likewise.
69218         * modules/fflush-tests: New test.
69219         * tests/test-fflush.c: Likewise.
69220         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69221
69222 2007-04-06  Bruno Haible  <bruno@clisp.org>
69223
69224         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69225         (VASNPRINTF): Use signbit for faster determination whether to print a
69226         minus sign.
69227         * modules/vasnprintf (Files): Remove lib/float+.h.
69228         * modules/fprintf-posix (Depends-on): Add signbit.
69229         * modules/snprintf-posix (Depends-on): Likewise.
69230         * modules/sprintf-posix (Depends-on): Likewise.
69231         * modules/vasnprintf-posix (Depends-on): Likewise.
69232         * modules/vasprintf-posix (Depends-on): Likewise.
69233         * modules/vfprintf-posix (Depends-on): Likewise.
69234         * modules/vsnprintf-posix (Depends-on): Likewise.
69235         * modules/vsprintf-posix (Depends-on): Likewise.
69236
69237 2007-04-06  Bruno Haible  <bruno@clisp.org>
69238
69239         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69240         * tests/test-frexpl.c (main): Likewise.
69241         * tests/test-ldexpl.c (main): Likewise.
69242         * modules/frexp-tests (Depends-on): Add signbit.
69243         * modules/frexpl-tests (Depdends-on): Likewise.
69244         * modules/ldexpl-tests (Depdends-on): Likewise.
69245
69246 2007-04-06  Bruno Haible  <bruno@clisp.org>
69247
69248         * modules/signbit-tests: New file.
69249         * tests/test-signbit.c: New file.
69250
69251         * modules/signbit: New file.
69252         * lib/signbitf.c: New file.
69253         * lib/signbitd.c: New file.
69254         * lib/signbitl.c: New file.
69255         * m4/signbit.m4: New file.
69256         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69257         (signbit): New macro.
69258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69259         REPLACE_SIGNBIT.
69260         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69261         REPLACE_FREXPL into math.h.
69262
69263 2007-04-06  Bruno Haible  <bruno@clisp.org>
69264
69265         * modules/isnanf-nolibm-tests: New file.
69266         * tests/test-isnanf.c: New file.
69267
69268         * modules/isnanf-nolibm: New file.
69269         * lib/isnanf.h: New file.
69270         * lib/isnanf.c: New file.
69271         * lib/isnan.c: Consider the USE_FLOAT macro.
69272         * m4/isnanf.m4: New file.
69273
69274 2007-04-06  Bruno Haible  <bruno@clisp.org>
69275
69276         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69277         (Link): New section.
69278
69279         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69280
69281 2007-04-06  Bruno Haible  <bruno@clisp.org>
69282
69283         Assume the 'long double' type.
69284         * m4/longdouble.m4: Remove file.
69285         * config/srclist.txt: Don't mention longdouble.m4.
69286         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69287         * lib/float+.h: Likewise.
69288         * lib/frexp.c: Likewise.
69289         * lib/printf-args.h: Likewise.
69290         * lib/printf-args.c: Likewise.
69291         * lib/printf-frexp.c: Likewise.
69292         * lib/printf-parse.c: Likewise.
69293         * lib/vasnprintf.c: Likewise.
69294         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69295         * m4/intl.m4: Likewise.
69296         * m4/isnanl.m4: Likewise.
69297         * m4/printf.m4: Likewise.
69298         * m4/printf-frexpl.m4: Likewise.
69299         * m4/vasnprintf.m4: Likewise.
69300         * modules/allocsa (Files): Remove m4/longdouble.m4.
69301         * modules/gettext (Files): Likewise.
69302         * modules/relocatable-prog-wrapper (Files): Likewise.
69303         * modules/vasnprintf (Files): Likewise.
69304         * modules/isnanl (Files): Likewise.
69305         (Include): Simplify.
69306         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69307         (Include): Simplify.
69308         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69309         (Include): Simplify.
69310         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69311         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69312         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69313         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69314         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69315         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69316         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69317         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69318         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69319         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69320         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69321         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69322         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69323         * tests/test-isnanl.c: Likewise.
69324         * tests/test-snprintf-posix.h: Likewise.
69325         * tests/test-sprintf-posix.h: Likewise.
69326         * tests/test-vasnprintf-posix.c: Likewise.
69327         * tests/test-vasnprintf-posix2.c: Likewise.
69328         * tests/test-vasprintf-posix.c: Likewise.
69329
69330 2007-04-06  Bruno Haible  <bruno@clisp.org>
69331
69332         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69333         * lib/math_.h [__DECC]: Include the overridden include file through
69334         #include_next, outside the double-inclusion guard.
69335         * lib/stdio_.h [__DECC]: Likewise.
69336         * lib/stdlib_.h [__DECC]: Likewise.
69337         * lib/string_.h [__DECC]: Likewise.
69338         * lib/time_.h [__DECC]: Likewise.
69339         * lib/wchar_.h [__DECC]: Likewise.
69340         * lib/wctype_.h [__DECC]: Likewise.
69341         * lib/inttypes_.h [__DECC]: Likewise.
69342         Reported by Albert Chin <china@thewrittenword.com> in
69343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69344
69345 2007-04-04  Eric Blake  <ebb9@byu.net>
69346
69347         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69348         1.5.x.
69349
69350 2007-04-04  Bruno Haible  <bruno@clisp.org>
69351
69352         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69353         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69354
69355 2007-04-04  Bruno Haible  <bruno@clisp.org>
69356
69357         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69358         results for "%010a" of Infinity and NaN.
69359         * tests/test-vasprintf-posix.c (test_function): Likewise.
69360         * tests/test-snprintf-posix.h (test_function): Likewise.
69361         * tests/test-sprintf-posix.h (test_function): Likewise.
69362         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69363         * tests/test-printf-posix.h (test_function): Likewise.
69364         * tests/test-fprintf-posix.out: Update.
69365         Needed for FreeBSD 6.1.
69366
69367 2007-04-04  Bruno Haible  <bruno@clisp.org>
69368
69369         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69370         directly used by the gnulib modules nor by gnulib-tool.
69371
69372 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69373
69374         * DEPENDENCIES: Give overall description of version dependency
69375         desirability.  Use more-typical names for apps.
69376         Add shell, coreutils, diffutils, grep, tar, gzip.
69377
69378 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69379
69380         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69381
69382 2007-04-04  Karl Berry  <karl@gnu.org>
69383
69384         * MODULES.html.sh (func_module): missing '.
69385
69386 2007-04-03  Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/argmatch-tests (Makefile.am): New variable
69389         test_argmatch_LDADD.
69390         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69391         * modules/array-list-tests (Makefile.am): New variable
69392         test_array_list_LDADD.
69393         * modules/array-oset-tests (Makefile.am): New variable
69394         test_array_oset_LDADD.
69395         * modules/avltree-list-tests (Makefile.am): New variable
69396         test_avltree_list_LDADD.
69397         * modules/avltree-oset-tests (Makefile.am): New variable
69398         test_avltree_oset_LDADD.
69399         * modules/avltreehash-list-tests (Makefile.am): New variable
69400         test_avltreehash_list_LDADD.
69401         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69402         test_canonicalize_lgpl_LDADD.
69403         * modules/carray-list-tests (Makefile.am): New variable
69404         test_carray_list_LDADD.
69405         * modules/dirname-tests (Makefile.am): New variable
69406         test_dirname_LDADD.
69407         * modules/linked-list-tests (Makefile.am): New variable
69408         test_linked_list_LDADD.
69409         * modules/linkedhash-list-tests (Makefile.am): New variable
69410         test_linkedhash_list_LDADD.
69411         * modules/rbtree-list-tests (Makefile.am): New variable
69412         test_rbtree_list_LDADD.
69413         * modules/rbtree-oset-tests (Makefile.am): New variable
69414         test_rbtree_oset_LDADD.
69415         * modules/rbtreehash-list-tests (Makefile.am): New variable
69416         test_rbtreehash_list_LDADD.
69417         * modules/xvasprintf-tests (Makefile.am): New variable
69418         test_xvasprintf_LDADD.
69419         Reported by Eric Blake.
69420
69421 2007-04-03  Eric Blake  <ebb9@byu.net>
69422
69423         * DEPENDENCIES: Weaken m4 requirements.
69424
69425 2007-04-03  Bruno Haible  <bruno@clisp.org>
69426
69427         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69428         * modules/isnanl-tests (configure.ac): Likewise.
69429
69430 2007-04-03  Ben Pfaff  <blp@gnu.org>
69431
69432         * modules/iconv_open: Add $(srcdir)/ to source directory
69433         references in Makefile fragments that call gperf, to fix VPATH
69434         builds.
69435
69436 2007-04-03  Bruno Haible  <bruno@clisp.org>
69437
69438         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69439         * lib/ldexpl.c: Undo last change.
69440
69441 2007-04-03  Bruno Haible  <bruno@clisp.org>
69442
69443         * modules/printf-frexpl (Depends-on): Undo last change.
69444         (Files): Add m4/ldexpl.m4.
69445
69446 2007-04-03  Bruno Haible  <bruno@clisp.org>
69447
69448         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69449         * modules/isnanl (Link): New section.
69450
69451         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69452         * modules/frexp (Link): New section.
69453
69454         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69455         * modules/frexpl (Link): New section.
69456
69457         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69458         * modules/ldexpl (Link): New section.
69459
69460 2007-04-03  Bruno Haible  <bruno@clisp.org>
69461
69462         * modules/TEMPLATE-EXTENDED: New file.
69463         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69464
69465 2007-04-03  Bruno Haible  <bruno@clisp.org>
69466
69467         * DEPENDENCIES: New file.
69468         Suggested by Simon Josefsson.
69469
69470 2007-04-03  Bruno Haible  <bruno@clisp.org>
69471
69472         * doc/gnulib.texi: Escape @.
69473
69474 2007-04-03  James Youngman  <jay@gnu.org>
69475         and Paul Eggert  <eggert@cs.ucla.edu>
69476
69477         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69478         birthtime on all systems that have birthtime, not just those which
69479         use st_birthtimensec rather than st_birthtim.  Putting zero in
69480         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69481         that the birth time is not available for files on an NFS mount.
69482
69483 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69484
69485         * modules/memxor: Move back from crypto/, suggested by Bruno.
69486         * modules/crypto/hmac-sha1: Fix memxor dependency.
69487
69488         * modules/crypto/gc: Moved from ../.
69489
69490 2007-04-02  Eric Blake  <ebb9@byu.net>
69491
69492         * lib/ldexpl.c (includes): Avoid libm.
69493
69494         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69495
69496 2007-04-02  Bruno Haible  <bruno@clisp.org>
69497
69498         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69499         on IRIX.
69500
69501 2007-04-02  Bruno Haible  <bruno@clisp.org>
69502
69503         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69504         x86 or x86_64 platforms running MacOS X.
69505         Reported by Ryan Schmidt <@ryandesign.com>.
69506
69507 2007-04-02  Bruno Haible  <bruno@clisp.org>
69508
69509         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69510         i386.
69511
69512 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69513
69514         * modules/crypto/arcfour: Moved from ../.
69515         * modules/crypto/arcfour-tests: Moved from ../.
69516         * modules/crypto/arctwo: Moved from ../.
69517         * modules/crypto/arctwo-tests: Moved from ../.
69518         * modules/crypto/des: Moved from ../.
69519         * modules/crypto/des-tests: Moved from ../.
69520         * modules/crypto/gc-arcfour: Moved from ../.
69521         * modules/crypto/gc-arcfour-tests: Moved from ../.
69522         * modules/crypto/gc-arctwo: Moved from ../.
69523         * modules/crypto/gc-arctwo-tests: Moved from ../.
69524         * modules/crypto/gc-des: Moved from ../.
69525         * modules/crypto/gc-des-tests: Moved from ../.
69526         * modules/crypto/gc-hmac-md5: Moved from ../.
69527         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69528         * modules/crypto/gc-hmac-sha1: Moved from ../.
69529         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69530         * modules/crypto/gc-md2: Moved from ../.
69531         * modules/crypto/gc-md2-tests: Moved from ../.
69532         * modules/crypto/gc-md4: Moved from ../.
69533         * modules/crypto/gc-md4-tests: Moved from ../.
69534         * modules/crypto/gc-md5: Moved from ../.
69535         * modules/crypto/gc-md5-tests: Moved from ../.
69536         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69537         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69538         * modules/crypto/gc-random: Moved from ../.
69539         * modules/crypto/gc-rijndael: Moved from ../.
69540         * modules/crypto/gc-rijndael-tests: Moved from ../.
69541         * modules/crypto/gc-sha1: Moved from ../.
69542         * modules/crypto/gc-sha1-tests: Moved from ../.
69543         * modules/crypto/gc-tests: Moved from ../.
69544         * modules/crypto/hmac-md5: Moved from ../.
69545         * modules/crypto/hmac-md5-tests: Moved from ../.
69546         * modules/crypto/hmac-sha1: Moved from ../.
69547         * modules/crypto/hmac-sha1-tests: Moved from ../.
69548         * modules/crypto/md2: Moved from ../.
69549         * modules/crypto/md2-tests: Moved from ../.
69550         * modules/crypto/md4: Moved from ../.
69551         * modules/crypto/md4-tests: Moved from ../.
69552         * modules/crypto/md5: Moved from ../.
69553         * modules/crypto/md5-tests: Moved from ../.
69554         * modules/crypto/memxor: Moved from ../.
69555         * modules/crypto/rijndael: Moved from ../.
69556         * modules/crypto/rijndael-tests: Moved from ../.
69557         * modules/crypto/sha1: Moved from ../.
69558
69559 2007-03-30  James Youngman  <jay@gnu.org>
69560
69561         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69562         rename() to change the ctime of a file (because ctime is unaffected
69563         by rename on jfs2 on AIX 5.1).
69564         (main): Start by doing cleanup, in case a previous run failed leaving
69565         test files behind.
69566
69567 2007-03-31  Bruno Haible  <bruno@clisp.org>
69568
69569         Support old proprietary implementations of iconv.
69570         * modules/iconv_open: New file.
69571         * lib/iconv_.h: New file.
69572         * m4/iconv_h.m4: New file.
69573         * lib/iconv_open.c: New file.
69574         * lib/iconv_open-aix.gperf: New file.
69575         * lib/iconv_open-hpux.gperf: New file.
69576         * lib/iconv_open-irix.gperf: New file.
69577         * lib/iconv_open-osf.gperf: New file.
69578         * m4/iconv_open.m4: New file.
69579         * modules/linebreak (Depends-on): Add iconv_open.
69580         * modules/striconv (Depends-on): Likewise.
69581         * modules/striconveh (Depends-on): Likewise.
69582         * modules/unicodeio (Depends-on): Likewise.
69583         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69584         (iconv_t)(-1).
69585         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69586         conversion if cd is (iconv_t)(-1).
69587         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69588         is not possible.
69589
69590 2007-03-31  Bruno Haible  <bruno@clisp.org>
69591
69592         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69593         work on Solaris either. Protect also second use of "autodetect_jp".
69594
69595 2007-03-31  Bruno Haible  <bruno@clisp.org>
69596
69597         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69598         the function is not present.
69599
69600 2007-03-31  Bruno Haible  <bruno@clisp.org>
69601
69602         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69603         the function is not present.
69604
69605 2007-03-31  Bruno Haible  <bruno@clisp.org>
69606
69607         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69608         a bug in HP-UX iconv_open().
69609
69610 2007-03-31  Bruno Haible  <bruno@clisp.org>
69611
69612         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69613         (Mathematics <math.h>): New section, add fpieee.
69614         (Input/output <stdio.h>): Add fseterr.
69615         (Mathematics <math.h>): New section, add printf-frexp.
69616         (Container data structures): Add sublist.
69617         (Core language properties): Add fpucw, inline.
69618         (Functions for greatest-width integer types <inttypes.h>): Add
69619         imaxabs, imaxdiv, inttypes.
69620         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69621         isnanl-nolibm, ldexp.
69622         (Mathematics <math.h>): New section, add printf-frexpl.
69623         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69624         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69625         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69626         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69627         (Unicode string functions): Add unistr/u*-mbtoucr.
69628         (Java): Add javacomp-script, javaexec-script.
69629         (C#): Add csharpcomp-script, csharpexec-script.
69630         (Support for building libraries and executables): Add havelib,
69631         relocatable-*.
69632         (Support for maintaining and releasing projects): Renamed from
69633         'Support for maintaining and release projects'. Add announce-gen.
69634
69635 2007-03-31  Bruno Haible  <bruno@clisp.org>
69636
69637         * README: Talk primarily about git.
69638         (git and CVS): Renamed from CVS.
69639         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69640         gnulib is available through git.
69641         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69642
69643 2007-03-30  Bruno Haible  <bruno@clisp.org>
69644
69645         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69646         * lib/poll_.h: Likewise.
69647         * lib/stat_.h: Likewise.
69648         * lib/sys_time_.h: Likewise.
69649         * lib/sysexit_.h: Likewise.
69650         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69651         * lib/stdbool_.h: Likewise.
69652         * lib/byteswap_.h: Add double-inclusion guard.
69653
69654 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69655
69656         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69657
69658 2007-03-30  Karl Berry  <karl@gnu.org>
69659
69660         * config/srclist-update: double space after USA in the license
69661         substitution, since that's how it's usually (?) written.
69662
69663 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69664
69665         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69666         reported by Bruno Haible.
69667
69668 2007-03-29  Bruno Haible  <bruno@clisp.org>
69669
69670         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69671         a bug in AIX iconv().
69672
69673 2007-03-29  Bruno Haible  <bruno@clisp.org>
69674
69675         * modules/ldexpl-tests: New file.
69676         * tests/test-ldexpl.c: New file.
69677
69678 2007-03-29  Bruno Haible  <bruno@clisp.org>
69679
69680         * lib/ldexpl.c: Include fpucw.h.
69681         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69682         multiplication.
69683         * modules/ldexpl (Depends-on): Add fpucw.
69684
69685 2007-03-29  Bruno Haible  <bruno@clisp.org>
69686
69687         * modules/ldexpl: New file.
69688         * m4/ldexpl.m4: New file.
69689         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69690         set.
69691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69692         REPLACE_LDEXPL.
69693         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69694         REPLACE_LDEXPL.
69695         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69696         gl_FUNC_LDEXPL_WORKS.
69697         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69698         * modules/mathl (Files): Remove lib/ldexpl.c.
69699         (Depends-on): Add ldexpl.
69700
69701 2007-03-29  Bruno Haible  <bruno@clisp.org>
69702
69703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69704
69705 2007-03-29  Bruno Haible  <bruno@clisp.org>
69706
69707         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69708         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69709         and possibly also HP-UX.
69710         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69711         work on AIX, IRIX, HP-UX, OSF/1.
69712         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69713         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69714         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69715         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69716         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69717         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69718
69719 2007-03-29  Bruno Haible  <bruno@clisp.org>
69720
69721         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69722
69723 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69724
69725         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69726         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69727
69728 2007-03-29  Eric Blake  <ebb9@byu.net>
69729
69730         * lib/acl-internal.h: Remove redundant include.
69731         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69732         Cygwin when a file is locked.
69733
69734 2007-03-29  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69737         file.
69738         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69739
69740 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69743         try to remove a parent directory if the child couldn't be removed
69744         (except for the first rmdir, which could fail because the child
69745         doesn't exist).  Problem reported by Jeff Blaine in
69746         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69747
69748 2007-03-28  Bruno Haible  <bruno@clisp.org>
69749
69750         * lib/striconveh.c (utf8conv_carefully): New function.
69751         (mem_cd_iconveh_internal): Invoke it.
69752
69753 2007-03-28  Bruno Haible  <bruno@clisp.org>
69754
69755         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69756         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69757         input.
69758         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69759         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69760         unistr/u8-uctomb.
69761
69762 2007-03-28  Bruno Haible  <bruno@clisp.org>
69763
69764         * modules/unistr/u8-mbtoucr: New file.
69765         * lib/unistr/u8-mbtoucr.c: New file.
69766         * modules/unistr/u16-mbtoucr: New file.
69767         * lib/unistr/u16-mbtoucr.c: New file.
69768         * modules/unistr/u16-mbtoucr: New file.
69769         * lib/unistr/u16-mbtoucr.c: New file.
69770         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69771
69772 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69773             Bruno Haible  <bruno@clisp.org>
69774
69775         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69776         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69777         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69778
69779         * m4/stdio_h.m4: Add stubs for vasprintf too.
69780
69781         * modules/stdio: Support vasprintf in sed command.
69782
69783         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69784         vasprintf.h.  Add stdio module indicator.
69785
69786         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69787         vasprintf.h.
69788
69789         * lib/vasprintf.h: File removed.
69790
69791         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69792         * lib/vasprintf.c: Ditto.
69793         * lib/xvasprintf.c: Ditto.
69794         * tests/test-vasprintf-posix.c: Ditto.
69795         * tests/test-vasprintf.c: Ditto.
69796
69797 2007-03-27  Bruno Haible  <bruno@clisp.org>
69798
69799         Make vasnprintf multithread-safe.
69800         * lib/vasnprintf.c (decimal_point_char): New function.
69801         (VASNPRINTF): Use it.
69802         Suggested by Simon Josefsson.
69803
69804 2007-03-27  Eric Blake  <ebb9@byu.net>
69805
69806         Support sub-second birthtime on cygwin.
69807         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69808         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69809         (get_stat_birthtime): Also work with st_birthtim.
69810
69811 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69814         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69815         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69816         (get_stat_birthtime_ns): Simplify compile-time tests.
69817         (get_stat_birthtime): Change the API to look like
69818         get_stat_mtime etc., except return a negative tv_nsec on error.
69819         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69820         Don't check for "spare" fields.
69821         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69822         or for struct stat.st_birthtime, as these tests aren't used.
69823         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69824
69825 2007-03-27  Bruno Haible  <bruno@clisp.org>
69826
69827         * lib/stat-time.h: Include <sys/stat.h>.
69828
69829 2007-03-27  James Youngman  <jay@gnu.org>
69830
69831         * lib/stat-time.h (get_stat_birthtime): New function for
69832           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69833         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69834           and its variants.
69835         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69836         * modules/stat-time-test: New file.
69837         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69838
69839 2007-03-26  Bruno Haible  <bruno@clisp.org>
69840
69841         Better support of signalling NaNs.
69842         * lib/atanl.c: Include isnanl.h.
69843         (atanl): Perform test for NaN at the beginning of the function and
69844         through a call to isnanl.
69845         * lib/cosl.c: Include isnanl.h.
69846         (cosl): Perform test for NaN at the beginning of the function and
69847         through a call to isnanl.
69848         * lib/ldexpl.c: Include isnanl.h.
69849         (ldexpl): Perform test for NaN through a call to isnanl.
69850         * lib/logl.c: Include isnanl.h.
69851         (logl): Perform test for NaN at the beginning of the function and
69852         through a call to isnanl.
69853         * lib/sinl.c: Include isnanl.h.
69854         (sinl): Perform test for NaN at the beginning of the function and
69855         through a call to isnanl.
69856         * lib/sqrtl.c: Include isnanl.h.
69857         (sqrtl): Perform test for NaN at the beginning of the function and
69858         through a call to isnanl.
69859         * lib/tanl.c: Include isnanl.h.
69860         (tanl): Perform test for NaN at the beginning of the function and
69861         through a call to isnanl.
69862         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69863         * modules/mathl (Depends-on): Add isnanl.
69864
69865 2007-03-26  Eric Blake  <ebb9@byu.net>
69866
69867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69868         regression in logic sense of previous patch.
69869
69870 2007-03-26  Bruno Haible  <bruno@clisp.org>
69871
69872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69873         unportable shell command "if ! ...".
69874         Reported by Ralf Wildenhues.
69875
69876 2007-03-25  Bruno Haible  <bruno@clisp.org>
69877
69878         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69879         <sysexits.h> file, and only add EX_CONFIG.
69880         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69881         absolute file name and whether it is sufficient. Substitute also
69882         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69883         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69884         ABSOLUTE_SYSEXITS_H into sysexits.h.
69885
69886 2007-03-25  Bruno Haible  <bruno@clisp.org>
69887
69888         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69889         hints is NULL.
69890
69891 2007-03-25  Bruno Haible  <bruno@clisp.org>
69892
69893         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69894         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69895
69896 2007-03-25  Bruno Haible  <bruno@clisp.org>
69897
69898         * lib/vasnprintf.c: Include langinfo.h.
69899         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69900         multithread-safe.
69901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69906         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69907         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69910         Reported by Simon Josefsson.
69911
69912 2007-03-25  Bruno Haible  <bruno@clisp.org>
69913
69914         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69915         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69916         * modules/vasnprintf (Depends-on): Add stdint.
69917
69918 2007-03-25  Bruno Haible  <bruno@clisp.org>
69919
69920         * modules/fpieee: New file.
69921         * m4/fpieee.m4: New file.
69922         * modules/isnan-nolibm (Depends-on): Add fpieee.
69923         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69924         * modules/isnanl (Depends-on): Add fpieee.
69925
69926 2007-03-25  Bruno Haible  <bruno@clisp.org>
69927
69928         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69929
69930 2007-03-25  Bruno Haible  <bruno@clisp.org>
69931
69932         Avoid test failures on IRIX 6.5.
69933         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69934         (main): Use it.
69935         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69936         macros.
69937         (main): Use them.
69938
69939 2007-03-25  Bruno Haible  <bruno@clisp.org>
69940
69941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69942         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69943         exists but doesn't work.
69944         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69945         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69947         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69948         math.h.
69949
69950 2007-03-25  Bruno Haible  <bruno@clisp.org>
69951
69952         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69953         returns inf. Needed on IRIX 6.5.
69954
69955 2007-03-25  Bruno Haible  <bruno@clisp.org>
69956
69957         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69958         (main): Use isnanl instead of x != x idiom.
69959         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69960
69961         * tests/test-frexp.c: Include isnan.h.
69962         (main): Use isnan instead of x != x idiom.
69963         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69964
69965 2007-03-25  Bruno Haible  <bruno@clisp.org>
69966
69967         * tests/test-frexp.c (NaN): New function/macro.
69968         (main): Use it instead of 0.0 / 0.0.
69969         * tests/test-isnan.c (NaN): New function/macro.
69970         (main): Use it instead of 0.0 / 0.0.
69971         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69972         (test_function): Use it instead of 0.0 / 0.0.
69973         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69974         (test_function): Use it instead of 0.0 / 0.0.
69975         * tests/test-snprintf-posix.h (NaN): New function/macro.
69976         (test_function): Use it instead of 0.0 / 0.0.
69977         * tests/test-sprintf-posix.h (NaN): New function/macro.
69978         (test_function): Use it instead of 0.0 / 0.0.
69979         * tests/test-fprintf-posix.h (NaN): New function/macro.
69980         (test_function): Use it instead of 0.0 / 0.0.
69981         * tests/test-printf-posix.h (NaN): New function/macro.
69982         (test_function): Use it instead of 0.0 / 0.0.
69983
69984         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69985
69986 2007-03-25  Bruno Haible  <bruno@clisp.org>
69987
69988         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69989
69990 2007-03-25  Bruno Haible  <bruno@clisp.org>
69991
69992         * lib/regexec.c (merge_state_with_log): Make static.
69993
69994 2007-03-25  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/trigl.c (kernel_rem_pio2): Make static.
69997
69998 2007-03-25  Bruno Haible  <bruno@clisp.org>
69999
70000         * lib/sincosl.c (sincosl_table): Make static.
70001
70002 2007-03-25  Bruno Haible  <bruno@clisp.org>
70003
70004         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70005         if the compiler does not support C99.
70006
70007 2007-03-25  Bruno Haible  <bruno@clisp.org>
70008
70009         * modules/time (Makefile.am): Ensure all rule action lines start with a
70010         tab.
70011
70012 2007-03-24  Bruno Haible  <bruno@clisp.org>
70013
70014         * modules/tsearch-tests: New file.
70015         * tests/test-tsearch.sh: New file.
70016         * tests/test-tsearch.c: New file, mostly copied from glibc.
70017
70018         * modules/search-tests: New file.
70019         * tests/test-search.c: New file.
70020
70021         * modules/search: New file.
70022         * lib/search_.h: New file, incorporating lib/tsearch.h.
70023         * m4/search_h.m4: New file.
70024         * lib/tsearch.h: Remove file.
70025         * lib/tsearch.c: Include search.h instead of tsearch.h.
70026         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70027         HAVE_TSEARCH.
70028         * modules/tsearch (Files): Remove lib/tsearch.h.
70029         (Depends-on): Add search.
70030         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70031         (Include): Change tsearch.h into search.h.
70032
70033 2007-03-24  Bruno Haible  <bruno@clisp.org>
70034
70035         * modules/fpucw: New file.
70036         * lib/fpucw.h: New file.
70037         * lib/frexp.c: Include fpucw.h.
70038         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70039         (FUNC): Use them.
70040         * lib/printf-frexp.c: Include fpucw.h.
70041         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70042         (FUNC): Use them.
70043         * lib/vasnprintf.c: Include fpucw.h.
70044         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70045         'long double' calculations.
70046         * tests/test-frexpl.c: Include fpucw.h.
70047         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70048         * tests/test-printf-frexpl.c: Include fpucw.h.
70049         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70050         * modules/frexpl (Depends-on): Add fpucw.
70051         * modules/printf-frexpl (Depends-on): Likewise.
70052         * modules/fprintf-posix (Depends-on): Likewise.
70053         * modules/snprintf-posix (Depends-on): Likewise.
70054         * modules/sprintf-posix (Depends-on): Likewise.
70055         * modules/vasnprintf-posix (Depends-on): Likewise.
70056         * modules/vasprintf-posix (Depends-on): Likewise.
70057         * modules/vfprintf-posix (Depends-on): Likewise.
70058         * modules/vsnprintf-posix (Depends-on): Likewise.
70059         * modules/vsprintf-posix (Depends-on): Likewise.
70060         * modules/frexpl-tests (Depends-on): Likewise.
70061         * modules/printf-frexpl-tests (Depends-on): Likewise.
70062
70063 2007-03-24  Bruno Haible  <bruno@clisp.org>
70064
70065         * lib/float+.h: New file.
70066         * lib/isnan.c: Include float+.h.
70067         (SIZE): New macro.
70068         (FUNC): Compare only SIZE bytes of the value.
70069         * lib/vasnprintf.c: Include float+.h.
70070         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70071         SIZEOF_LDBL or SIZEOF_DBL bytes.
70072         * modules/isnan-nolibm (Files): Add lib/float+.h.
70073         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70074         * modules/isnanl (Files): Add lib/float+.h.
70075         * modules/vasnprintf (Files): Add lib/float+.h.
70076
70077 2007-03-24  Bruno Haible  <bruno@clisp.org>
70078
70079         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70080         include isnanl-nolibm.h.
70081
70082 2007-03-24  Bruno Haible  <bruno@clisp.org>
70083
70084         * tests/test-read-file.c (main): Don't produce spurious output for
70085         expected situations. Make the test fail if it encountered unexpected
70086         results.
70087
70088 2007-03-24  Bruno Haible  <bruno@clisp.org>
70089
70090         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70091         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70092
70093 2007-03-24  Bruno Haible  <bruno@clisp.org>
70094
70095         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70096
70097 2007-03-24  Bruno Haible  <bruno@clisp.org>
70098
70099         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70100         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70101
70102         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70103         * modules/utf8-ucs4: Turn into a symbolic link to module
70104         unistr/u8-mbtouc.
70105
70106         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70107         utf8-ucs4-unsafe.
70108         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70109         unistr/u8-mbtouc-unsafe.
70110
70111         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70112         * modules/utf16-ucs4: Turn into a symbolic link to module
70113         unistr/u16-mbtouc.
70114
70115         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70116         utf16-ucs4-unsafe.
70117         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70118         unistr/u16-mbtouc-unsafe.
70119
70120         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70121         * modules/ucs4-utf8: Turn into a symbolic link to module
70122         unistr/u8-ubtomb.
70123
70124         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70125         * modules/ucs4-utf16: Turn into a symbolic link to module
70126         unistr/u16-ubtomb.
70127
70128 2007-03-24  Bruno Haible  <bruno@clisp.org>
70129
70130         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70131         Enable the function only if HAVE_INLINE.
70132         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70133         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70134         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70135         Enable the function only if HAVE_INLINE.
70136         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70137         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70138         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70139         Enable the function only if HAVE_INLINE.
70140         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70141         Enable the function only if HAVE_INLINE.
70142         * modules/utf8-ucs4: Update.
70143         * modules/utf8-ucs4-unsafe: Update.
70144         * modules/utf16-ucs4: Update.
70145         * modules/utf16-ucs4-unsafe: Update.
70146         * modules/ucs4-utf8: Update.
70147         * modules/ucs4-utf16: Update.
70148
70149 2007-03-24  Bruno Haible  <bruno@clisp.org>
70150
70151         * lib/utf8-ucs4.h: Remove file.
70152         * lib/utf8-ucs4-unsafe.h: Remove file.
70153         * lib/utf16-ucs4.h: Remove file.
70154         * lib/utf16-ucs4-unsafe.h: Remove file.
70155         * lib/ucs4-utf8.h: Remove file.
70156         * lib/ucs4-utf16.h: Remove file.
70157         * lib/unistr.h: Include their previous contents.
70158         * m4/utf-ucs4.m4: Remove file.
70159         * m4/ucs4-utf.m4: Remove file.
70160         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70161         (Depends-on): Add unistr/base.
70162         (configure.ac): Remove gl_UTF_UCS4.
70163         (Makefile.am): Update.
70164         (Include): Change to unistr.h.
70165         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70166         (Depends-on): Add unistr/base.
70167         (configure.ac): Remove gl_UTF_UCS4.
70168         (Makefile.am): Update.
70169         (Include): Change to unistr.h.
70170         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70171         (Depends-on): Add unistr/base.
70172         (configure.ac): Remove gl_UTF_UCS4.
70173         (Makefile.am): Update.
70174         (Include): Change to unistr.h.
70175         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70176         (Depends-on): Add unistr/base.
70177         (configure.ac): Remove gl_UTF_UCS4.
70178         (Makefile.am): Update.
70179         (Include): Change to unistr.h.
70180         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70181         (Depends-on): Add unistr/base.
70182         (configure.ac): Remove gl_UCS4_UTF.
70183         (Makefile.am): Update.
70184         (Include): Change to unistr.h.
70185         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70186         (Depends-on): Add unistr/base.
70187         (configure.ac): Remove gl_UCS4_UTF.
70188         (Makefile.am): Update.
70189         (Include): Change to unistr.h.
70190         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70191         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70192         utf8-ucs4-unsafe.h.
70193         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70194         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70195         utf16-ucs4-unsafe.h.
70196         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70197         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70198         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70199         * lib/unistr/u8-strchr.c: Likewise.
70200         * lib/unistr/u8-strrchr.c: Likewise.
70201         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70202         * lib/unistr/u16-strchr.c: Likewise.
70203         * lib/unistr/u16-strrchr.c: Likewise.
70204         * lib/striconveh.c: Update.
70205         * lib/linebreak.c: Update.
70206
70207 2007-03-24  Bruno Haible  <bruno@clisp.org>
70208
70209         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70210         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70211
70212 2007-03-22  Bruno Haible  <bruno@clisp.org>
70213
70214         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70215
70216 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70217
70218         * MODULES.html.sh (File system functions): New module write-any-file.
70219         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70220         * m4/write-any-file.m4: New files.
70221
70222 2007-03-23  Eric Blake  <ebb9@byu.net>
70223
70224         * gnulib-tool: Rearrange space-tab sequences, since some editors
70225         like to eat them.
70226
70227 2007-03-23  Eric Blake  <ebb9@byu.net>
70228
70229         * lib/version-etc.c (version_etc_va): Update license wording to
70230         be more concise.  Recommended by Richard Stallman.
70231
70232 2007-03-22  Bruno Haible  <bruno@clisp.org>
70233
70234         * lib/poll.c (MSG_PEEK): New fallback definition.
70235
70236 2007-03-22  Bruno Haible  <bruno@clisp.org>
70237
70238         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70239         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70240         (main): Update.
70241         Fixes a compilation error on BeOS.
70242
70243 2007-03-22  Bruno Haible  <bruno@clisp.org>
70244
70245         * modules/frexpl-tests: New file.
70246         * tests/test-frexpl.c: New file.
70247
70248         * modules/frexpl: New file.
70249         * m4/frexpl.m4: New file.
70250         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70251         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70252         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70253         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70254         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70255         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70256
70257 2007-03-22  Bruno Haible  <bruno@clisp.org>
70258
70259         * lib/frexpl.c: Share code with lib/frexp.c.
70260         * modules/mathl (Files): Add lib/frexp.c.
70261         (Depends-on): Add isnanl-nolibm.
70262
70263 2007-03-22  Bruno Haible  <bruno@clisp.org>
70264
70265         * modules/printf-frexp (Files): Add m4/frexp.m4.
70266         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70267         only if the found frexp function actually works.
70268
70269 2007-03-22  Bruno Haible  <bruno@clisp.org>
70270
70271         * lib/frexp.c: Remove older implementation that uses divisions.
70272
70273 2007-03-21  Bruno Haible  <bruno@clisp.org>
70274
70275         * modules/frexp-tests: New file.
70276         * tests/test-frexp.c: New file.
70277
70278         * modules/frexp: New file.
70279         * lib/frexp.c: New file.
70280         * m4/frexp.m4: New file.
70281         * lib/math_.h (frexp): New declaration.
70282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70283         REPLACE_FREXP.
70284         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70285
70286 2007-03-21  Bruno Haible  <bruno@clisp.org>
70287
70288         * modules/isnanl-tests: New file.
70289         * tests/test-isnanl.c: New file.
70290
70291         * modules/isnanl: New file.
70292         * lib/isnanl.h: New file.
70293         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70294         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70295         gl_FUNC_ISNANL_WORKS.
70296         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70297         New macros.
70298
70299 2007-03-21  Bruno Haible  <bruno@clisp.org>
70300
70301         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70302         lib/isnanl.h.
70303         (Include): Update.
70304         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70305         * lib/vasnprintf.c: Update.
70306         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70307         tests/test-isnanl.h, remove tests/test-isnanl.c.
70308         (Makefile.am): Update.
70309         * tests/test-isnanl-nolibm.c: New file.
70310         * tests/test-isnanl.h: New file.
70311         * tests/test-isnanl.c: Remove file.
70312
70313 2007-03-21  Jim Meyering  <jim@meyering.net>
70314
70315         When trying to open ".", treat ESTALE like EACCES.
70316         * lib/savewd.c (savewd_save): Resort to forking not just upon
70317         failure with EACCES, but also when errno is ESTALE.
70318
70319 2007-03-20  Bruno Haible  <bruno@clisp.org>
70320
70321         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70322         Needed on AIX 5.1. Reported by Matthew Woehlke.
70323
70324 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70325
70326         Suggestions by Bruno Haible:
70327         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70328         our own.
70329         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70330         * modules/acl (Depends-on): Add gettext.
70331
70332 2007-03-19  Bruno Haible  <bruno@clisp.org>
70333
70334         * modules/iconvme: Remove file.
70335         * lib/iconvme.h: Remove file.
70336         * lib/iconvme.c: Remove file.
70337         * m4/iconvme.m4: Remove file.
70338
70339 2007-03-19  Bruno Haible  <bruno@clisp.org>
70340
70341         * doc/relocatable-maint.texi: Break long shell script line.
70342         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70343
70344 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70347         handle file_has_acl.
70348         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70349         * lib/acl.c: Move header inclusions and related macro defns into
70350         lib/acl-internal.h.
70351         (S_ISLNK): Remove defn, since that's now done for us.
70352         (file_has_acl): Move to lib/file-has-acl.c.
70353         Call acl_trivial if available.  This is the crucial part of the fix.
70354         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70355         shared within the library.  Rewrite a bit, partly to make it compatible
70356         with the GNU coding style.
70357         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70358         Remove unnecessary double-quotes.
70359         Don't test for acl_to_text; the build will catch that.
70360         Replace acl_entries if it doesn't exist and it is needed.
70361         Check for -lsec and acl_trivial (as used on Solaris 10).
70362         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70363         lib/file-has-acl.c.
70364         (Depends-on): Add sys_stat, for S_ISLNK.
70365
70366 2007-03-19  Ben Pfaff  <blp@gnu.org>
70367
70368         * doc/gnulib.texi: Fix typos.
70369         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70370
70371 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70374         If size is zero here, buf must be zero.
70375
70376 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70377
70378         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70379         <bruno@clisp.org>.
70380
70381 2007-03-18  Bruno Haible  <bruno@clisp.org>
70382
70383         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70384         Suggested by Eric Blake.
70385
70386 2007-03-18  Ben Pfaff  <blp@gnu.org>
70387
70388         * doc/relocatable.texi: Recommend using as prefix a directory
70389         that does not exist and will never be created.  Based on
70390         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70391         and others.
70392
70393 2007-03-17  Bruno Haible  <bruno@clisp.org>
70394
70395         * lib/fchownat.c: Include lchown.h.
70396
70397 2007-03-17  Bruno Haible  <bruno@clisp.org>
70398
70399         Fix endless loop when the given allocated size was > INT_MAX.
70400         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70401         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70402         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70403         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70404         * lib/sprintf.c (sprintf): Likewise.
70405
70406 2007-03-17  Bruno Haible  <bruno@clisp.org>
70407
70408         * tests/test-argp-2.sh (func_compare): Output a context diff.
70409
70410 2007-03-17  Bruno Haible  <bruno@clisp.org>
70411
70412         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70413         locale's decimal-point character.
70414
70415 2007-03-17  Bruno Haible  <bruno@clisp.org>
70416
70417         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70418         before comparing it. Needed because on some platforms (e.g. x86) a
70419         'long double' occupies less bytes than sizeof (long double).
70420
70421 2007-03-17  Bruno Haible  <bruno@clisp.org>
70422
70423         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70424         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70425         * tests/test-getaddrinfo.c (simple): Likewise.
70426         * tests/test-read-file.c (main): Likewise.
70427
70428 2007-03-17  Bruno Haible  <bruno@clisp.org>
70429
70430         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70431
70432 2007-03-17  Bruno Haible  <bruno@clisp.org>
70433
70434         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70435         unused variable.
70436
70437 2007-03-17  Bruno Haible  <bruno@clisp.org>
70438
70439         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70440         * tests/test-c-strncasecmp.c: Likewise.
70441
70442 2007-03-17  Bruno Haible  <bruno@clisp.org>
70443
70444         * modules/stdlib (Depends-on): Add unistd.
70445         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70446         Needed for MacOS X 10.3.
70447
70448 2007-03-17  Bruno Haible  <bruno@clisp.org>
70449
70450         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70451
70452 2007-03-17  Bruno Haible  <bruno@clisp.org>
70453
70454         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70455
70456 2007-03-17  Bruno Haible  <bruno@clisp.org>
70457
70458         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70459         to reflect files copied from gnulib (with or without modifications).
70460         Suggested by Jim Meyering.
70461
70462 2007-03-17  Eric Blake  <ebb9@byu.net>
70463
70464         * NEWS: Document stdlib change from 2007-02-18.
70465
70466 2007-03-17  Jim Meyering  <jim@meyering.net>
70467
70468         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70469         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70470         someone uses a name containing shell meta-characters.
70471         Reported by Alfred M. Szmidt.
70472
70473         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70474
70475 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70476
70477         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70478         and copy gettext configuration files only if configure.ac contains
70479         a use of AM_GNU_GETTEXT_VERSION.
70480
70481 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70482
70483         * build-aux/bootstrap (gnulib_name): New variable.
70484         (gnulib_tool_options): Use it.
70485
70486 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70487
70488         * tests/test-des.c: Use new namespace.
70489
70490 2007-03-15  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70493         Reported by James Youngman <jay@gnu.org>.
70494
70495 2007-03-15  Bruno Haible  <bruno@clisp.org>
70496
70497         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70498         declared prototype. Needed with cc on OSF/1 5.1.
70499
70500 2007-03-15  Bruno Haible  <bruno@clisp.org>
70501
70502         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70503         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70504         (struct gl_list_implementation): Add dispose_fn argument to the
70505         'create_empty', 'create' methods.
70506         (struct gl_list_impl_base): Add field 'dispose_fn'.
70507         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70508         argument.
70509         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70510         dispose_fn argument.
70511         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70512         dispose_fn on the dropped values.
70513         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70514         dispose_fn argument.
70515         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70516         dropped values.
70517         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70518         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70519         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70520         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70521         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70522         argument.
70523         (gl_tree_list_free): Call dispose_fn on the dropped values.
70524         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70525         the dropped values.
70526         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70527         Add dispose_fn argument.
70528         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70529         Call dispose_fn on the dropped values.
70530         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70531         Add dispose_fn argument.
70532         (gl_sublist_create): Initialize the 'dispose_fn' field.
70533         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70534         * tests/test-array_list.c (main): Update.
70535         * tests/test-carray_list.c (main): Update.
70536         * tests/test-avltree_list.c (main): Update.
70537         * tests/test-rbtree_list.c (main): Update.
70538         * tests/test-avltreehash_list.c (main): Update.
70539         * tests/test-rbtreehash_list.c (main): Update.
70540         * tests/test-linked_list.c (main): Update.
70541         * tests/test-linkedhash_list.c (main): Update.
70542         * tests/test-array_oset.c (main): Update.
70543
70544 2007-03-15  Bruno Haible  <bruno@clisp.org>
70545
70546         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70547         (gl_oset_create_empty): Add dispose_fn argument.
70548         (struct gl_oset_implementation): Add dispose_fn argument to
70549         'create_empty' method.
70550         (struct gl_oset_impl_base): Add dispose_fn field.
70551         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70552         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70553         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70554         values.
70555         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70556         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70557         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70558         dropped value.
70559         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70560         dropped value.
70561         * tests/test-array_oset.c (main): Update.
70562         * tests/test-avltree_oset.c (main): Update.
70563         * tests/test-rbtree_oset.c (main): Update.
70564         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70565
70566 2007-03-13  Bruno Haible  <bruno@clisp.org>
70567
70568         * tests/test-stdbool.c (i): Update after last patch.
70569
70570 2007-03-12  Bruno Haible  <bruno@clisp.org>
70571
70572         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70573         the iswprint macro. Needed on Solaris 2.5.1.
70574
70575 2007-03-12  Bruno Haible  <bruno@clisp.org>
70576
70577         * tests/test-printf-frexp.c (main): Declare x as volatile.
70578
70579 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70580
70581         * doc/gnulib.texi (Build robot for gnulib): New section.
70582
70583 2007-03-12  Jim Meyering  <jim@meyering.net>
70584
70585         * build-aux/bootstrap: New file.
70586         * build-aux/bootstrap.conf: New file, from coreutils.
70587
70588 2007-03-11  Bruno Haible  <bruno@clisp.org>
70589
70590         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70591
70592 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70593
70594         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70595         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70596         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70597
70598 2007-03-11  Bruno Haible  <bruno@clisp.org>
70599
70600         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70601         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70602
70603 2007-03-11  Bruno Haible  <bruno@clisp.org>
70604
70605         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70606         formula. Needed for SunPRO C 5.0.
70607
70608 2007-03-11  Bruno Haible  <bruno@clisp.org>
70609
70610         * modules/long-options (Depends-on): Add getopt.
70611
70612 2007-03-11  Bruno Haible  <bruno@clisp.org>
70613
70614         * modules/modechange (Depends-on): Add stdbool.
70615
70616 2007-03-11  Bruno Haible  <bruno@clisp.org>
70617
70618         * modules/i-ring (Depends-on): Add stdbool.
70619
70620 2007-03-11  Bruno Haible  <bruno@clisp.org>
70621
70622         * modules/gc-des (Depends-on): Add stdbool.
70623
70624 2007-03-11  Bruno Haible  <bruno@clisp.org>
70625
70626         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70627
70628 2007-03-11  Bruno Haible  <bruno@clisp.org>
70629
70630         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70631
70632 2007-03-11  Bruno Haible  <bruno@clisp.org>
70633
70634         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70635
70636 2007-03-11  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/vasnprintf.c (sprintf): Undefine.
70639
70640 2007-03-11  Bruno Haible  <bruno@clisp.org>
70641
70642         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70643         initializers in SunPRO C and Compaq C compilers.
70644
70645 2007-03-11  Bruno Haible  <bruno@clisp.org>
70646
70647         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70648         decrementing code ANSI C compliant.
70649
70650 2007-03-11  Bruno Haible  <bruno@clisp.org>
70651
70652         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70653         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70654
70655 2007-03-11  Bruno Haible  <bruno@clisp.org>
70656
70657         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70658         <stdbool.h> substitute doesn't pass.
70659
70660 2007-03-11  Bruno Haible  <bruno@clisp.org>
70661
70662         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70663
70664 2007-03-11  Bruno Haible  <bruno@clisp.org>
70665
70666         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70667         script, for submission to autobuild.josefsson.org.
70668
70669 2007-03-10  Bruno Haible  <bruno@clisp.org>
70670
70671         * modules/canonicalize-lgpl-tests: New file.
70672         * tests/test-canonicalize-lgpl.sh: New file.
70673         * tests/test-canonicalize-lgpl.c: New file.
70674
70675         * modules/c-strcase-tests: New file.
70676         * tests/test-c-strcase.sh: New file.
70677         * tests/test-c-strcasecmp.c: New file.
70678         * tests/test-c-strncasecmp.c: New file.
70679
70680         * modules/atexit-tests: New file.
70681         * tests/test-atexit.sh: New file.
70682         * tests/test-atexit.c: New file.
70683
70684 2007-03-10  Bruno Haible  <bruno@clisp.org>
70685
70686         * tests/test-binary-io.sh: Use temporary filenames that are not so
70687         likely to clash with those of other tests (in a parallel make).
70688         * tests/test-binary-io.c: Likewise.
70689
70690 2007-03-10  Bruno Haible  <bruno@clisp.org>
70691
70692         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70693         fallback; use #error instead.
70694         Suggested by Simon Josefsson.
70695
70696 2007-03-10  Bruno Haible  <bruno@clisp.org>
70697
70698         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70699         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70700         first and the last.
70701
70702 2007-03-10  Bruno Haible  <bruno@clisp.org>
70703
70704         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70705
70706 2007-03-10  Bruno Haible  <bruno@clisp.org>
70707
70708         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70709         "make distcheck".
70710         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70711         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70712         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70713
70714 2007-03-10  Bruno Haible  <bruno@clisp.org>
70715
70716         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70717         variable.
70718         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70719         variable.
70720
70721 2007-03-09  Eric Blake  <ebb9@byu.net>
70722         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70723
70724         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70725         types are not being provided by gnulib.
70726         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70727         types are supported.
70728
70729 2007-03-10  Bruno Haible  <bruno@clisp.org>
70730
70731         * lib/stdio_.h (__attribute__): New macro.
70732         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70733         vsprintf): Specify __attribute__ __format__ for GCC.
70734         Suggested by Eric Blake.
70735
70736 2007-03-09  Bruno Haible  <bruno@clisp.org>
70737
70738         * modules/printf-posix-tests: New file.
70739         * tests/test-printf-posix.sh: New file.
70740         * tests/test-printf-posix.c: New file.
70741
70742         * modules/printf-posix: New file.
70743         * lib/printf.c: New file.
70744         * m4/printf-posix-rpl.m4: New file.
70745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70746         REPLACE_PRINTF.
70747         * lib/stdio_.h (printf): New declaration.
70748         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70749         ____strfmon____): New macros.
70750         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70751         REPLACE_PRINTF.
70752
70753 2007-03-09  Bruno Haible  <bruno@clisp.org>
70754
70755         * tests/test-vasnprintf-posix2.sh: New file.
70756         * tests/test-vasnprintf-posix2.c: New file.
70757         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70758         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70759         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70760
70761         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70762         a locale dependent decimal point, rather than always '.'.
70763
70764 2007-03-09  Eric Blake  <ebb9@byu.net>
70765
70766         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70767         spite of platforms like Tandem/NSK that define it to -1.
70768
70769 2007-03-08  Bruno Haible  <bruno@clisp.org>
70770
70771         * modules/vprintf-posix-tests: New file.
70772         * tests/test-vprintf-posix.sh: New file.
70773         * tests/test-vprintf-posix.c: New file.
70774         * tests/test-printf-posix.h: New file.
70775
70776         * modules/vprintf-posix: New file.
70777         * lib/vprintf.c: New file.
70778         * m4/vprintf-posix.m4: New file.
70779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70780         REPLACE_VPRINTF.
70781         * lib/stdio_.h (vprintf): New declaration.
70782         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70783         REPLACE_VPRINTF.
70784
70785 2007-03-08  Bruno Haible  <bruno@clisp.org>
70786
70787         * modules/fprintf-posix-tests: New file.
70788         * tests/test-fprintf-posix.sh: New file.
70789         * tests/test-fprintf-posix.c: New file.
70790
70791         * modules/fprintf-posix: New file.
70792         * lib/fprintf.c: New file.
70793         * m4/fprintf-posix.m4: New file.
70794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70795         REPLACE_FPRINTF.
70796         * lib/stdio_.h (fprintf): New declaration.
70797         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70798         REPLACE_FPRINTF.
70799
70800 2007-03-08  Bruno Haible  <bruno@clisp.org>
70801
70802         * modules/vfprintf-posix-tests: New file.
70803         * tests/test-vfprintf-posix.sh: New file.
70804         * tests/test-vfprintf-posix.c: New file.
70805         * tests/test-fprintf-posix.h: New file.
70806         * tests/test-fprintf-posix.out: New file.
70807
70808         * modules/vfprintf-posix: New file.
70809         * lib/vfprintf.c: New file.
70810         * m4/vfprintf-posix.m4: New file.
70811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70812         REPLACE_VFPRINTF.
70813         * lib/stdio_.h (vfprintf): New declaration.
70814         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70815         REPLACE_VFPRINTF.
70816
70817 2007-03-08  Bruno Haible  <bruno@clisp.org>
70818
70819         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70820
70821 2007-03-08  Bruno Haible  <bruno@clisp.org>
70822
70823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70824         instead of 'expr' invocations.
70825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70830         Suggested by Paul Eggert.
70831
70832 2007-03-08  Bruno Haible  <bruno@clisp.org>
70833
70834         * modules/fseterr-tests: New file.
70835         * tests/test-fseterr.c: New file.
70836
70837         * modules/fseterr: New file.
70838         * lib/fseterr.h: New file.
70839         * lib/fseterr.c: New file.
70840
70841 2007-03-08  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70844         * lib/getopt_.h: Likewise.
70845         * lib/mbswidth.h: Likewise.
70846         * lib/setenv.h: Likewise.
70847         * lib/vasnprintf.h: Likewise.
70848         * lib/vasprintf.h: Likewise.
70849         * lib/verror.h: Likewise.
70850         * lib/xsetenv.h: Likewise.
70851         * lib/xvasprintf.h: Likewise.
70852
70853 2007-03-08  Jim Meyering  <jim@meyering.net>
70854
70855         * users.txt: Add parted.
70856
70857         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70858
70859 2007-03-07  Bruno Haible  <bruno@clisp.org>
70860
70861         * m4/printf.m4: Make the shell script snippets copy&pastable.
70862
70863 2007-03-02  Bruno Haible  <bruno@clisp.org>
70864
70865         * lib/netinet_in_.h: New file.
70866         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70867         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70868         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70869         (Depends-on): Add absolute-header.
70870         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70871         into netinet/in.h.
70872
70873 2007-03-03  Bruno Haible  <bruno@clisp.org>
70874
70875         * lib/sys_select_.h: New file.
70876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70877         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70878         * modules/sys_select (Files): Add lib/sys_select_.h.
70879         (Depends-on): Add absolute-header.
70880         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70881         into sys/select.h.
70882
70883 2007-03-02  Bruno Haible  <bruno@clisp.org>
70884
70885         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70886         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70887         values.
70888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70889         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70890         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70891         * modules/sys_socket (Depends-on): Add absolute-header.
70892         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70893         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70894         (Include): Remove requirement of inclusion of <sys/types.h>.
70895
70896 2007-03-02  Bruno Haible  <bruno@clisp.org>
70897
70898         * lib/byteswap_.h (bswap_32): Fix formula.
70899
70900 2007-03-06  Bruno Haible  <bruno@clisp.org>
70901
70902         * modules/sprintf-posix-tests: New file.
70903         * tests/test-sprintf-posix.c: New file.
70904
70905         * modules/sprintf-posix: New file.
70906         * lib/sprintf.c: New file.
70907         * m4/sprintf-posix.m4: New file.
70908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70909         REPLACE_SPRINTF.
70910         * lib/stdio_.h (sprintf): New declaration.
70911         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70912         REPLACE_SPRINTF.
70913
70914 2007-03-06  Bruno Haible  <bruno@clisp.org>
70915
70916         * modules/vsprintf-posix-tests: New file.
70917         * tests/test-vsprintf-posix.c: New file.
70918         * tests/test-sprintf-posix.h: New file.
70919
70920         * modules/vsprintf-posix: New file.
70921         * lib/vsprintf.c: New file.
70922         * m4/vsprintf-posix.m4: New file.
70923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70924         REPLACE_VSPRINTF.
70925         * lib/stdio_.h (vsprintf): New declaration.
70926         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70927         REPLACE_VSPRINTF.
70928
70929 2007-03-06  Bruno Haible  <bruno@clisp.org>
70930
70931         * modules/vsnprintf (Depend-on): Remove minmax.
70932
70933 2007-03-06  Bruno Haible  <bruno@clisp.org>
70934
70935         * modules/snprintf-posix-tests: New file.
70936         * tests/test-snprintf-posix.c: New file.
70937
70938         * modules/snprintf-posix: New file.
70939         * m4/snprintf-posix.m4: New file.
70940         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70941         gl_FUNC_SNPRINTF.
70942         (gl_FUNC_SNPRINTF): Invoke it.
70943         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70944         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70945         is set.
70946         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70947
70948 2007-03-06  Bruno Haible  <bruno@clisp.org>
70949
70950         * modules/vsnprintf-posix-tests: New file.
70951         * tests/test-vsnprintf-posix.c: New file.
70952         * tests/test-snprintf-posix.h: New file.
70953
70954         * modules/vsnprintf-posix: New file.
70955         * m4/vsnprintf-posix.m4: New file.
70956         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70957         gl_FUNC_VSNPRINTF.
70958         (gl_FUNC_VSNPRINTF): Invoke it.
70959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70960         * lib/stdio_.h (vsnprintf): Define as a replacement if
70961         REPLACE_VSNPRINTF is set.
70962         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70963
70964 2007-03-06  Bruno Haible  <bruno@clisp.org>
70965
70966         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70968
70969 2007-03-06  Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70972         (asinl): Declare also if HAVE_DECL_ASINL is set.
70973         (atanl): Declare also if HAVE_DECL_ATANL is set.
70974         (ceill): Declare also if HAVE_DECL_CEILL is set.
70975         (cosl): Declare also if HAVE_DECL_COSL is set.
70976         (expl): Declare also if HAVE_DECL_EXPL is set.
70977         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70978         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70979         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70980         (logl): Declare also if HAVE_DECL_LOGL is set.
70981         (sinl): Declare also if HAVE_DECL_SINL is set.
70982         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70983         (tanl): Declare also if HAVE_DECL_TANL is set.
70984         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70986         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70987         declaration of frexpl, ldexpl.
70988         * modules/printf-frexpl (Depends-on): Add math.
70989         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70990
70991 2007-03-05  Bruno Haible  <bruno@clisp.org>
70992
70993         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70994         frexpl and ldexpl are declared.
70995         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70996
70997 2007-03-05  Bruno Haible  <bruno@clisp.org>
70998
70999         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71000         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71001
71002 2007-03-05  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/stdio_.h: Include <stddef.h>.
71005
71006 2007-03-05  Bruno Haible  <bruno@clisp.org>
71007
71008         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71009
71010 2007-03-05  Bruno Haible  <bruno@clisp.org>
71011
71012         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71013         NetBSD 4, from Ralf Wildenhues.
71014
71015 2007-03-04  Bruno Haible  <bruno@clisp.org>
71016
71017         * lib/vasprintf.h: Update #if logic for the case when the functions
71018         exist but are overridden.
71019
71020 2007-03-04  Bruno Haible  <bruno@clisp.org>
71021
71022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71023         implementations: glibc-2.4 and MacOS X 10.3.
71024         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71025         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71026         * tests/test-vasprintf-posix.c (test_function): Likewise.
71027
71028 2007-03-04  Bruno Haible  <bruno@clisp.org>
71029
71030         * modules/vasprintf-posix-tests: New file.
71031         * tests/test-vasprintf-posix.c: New file.
71032
71033         * modules/vasprintf-posix: New file.
71034         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71035         defined.
71036         * m4/vasprintf-posix.m4: New file.
71037         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71038         gl_FUNC_VASPRINTF.
71039         (gl_FUNC_VASPRINTF): Invoke it.
71040         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71041         here.
71042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71043
71044 2007-03-04  Bruno Haible  <bruno@clisp.org>
71045
71046         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71047         REPLACE_GETTIMEOFDAY.
71048         * modules/sys_time (Makefile.am): Likewise.
71049         * m4/sys_time_h.m4: Likewise.
71050         * m4/gettimeofday.m4: Likewise.
71051
71052 2007-03-04  Bruno Haible  <bruno@clisp.org>
71053
71054         * modules/vasnprintf-posix-tests: New file.
71055         * tests/test-vasnprintf-posix.c: New file.
71056
71057         * modules/vasnprintf-posix: New file.
71058         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71059         printf-frexpl.h.
71060         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71061         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71062         REPLACE_VASNPRINTF is defined.
71063         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71064         gl_FUNC_VASNPRINTF.
71065         (gl_FUNC_VASNPRINTF): Invoke it.
71066         * m4/vasnprintf-posix.m4: New file.
71067         * m4/printf.m4: New file.
71068
71069 2007-03-04  Bruno Haible  <bruno@clisp.org>
71070
71071         Compile progreloc.c only if --enable-relocatable is specified.
71072         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71073         if --enable-relocatable was specified.
71074         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71075         lib_SOURCES.
71076
71077 2007-03-04  Jim Meyering  <jim@meyering.net>
71078
71079         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71080         Use it consistently, rather than enumerating errno constants.
71081
71082 2007-03-04  Bruno Haible  <bruno@clisp.org>
71083
71084         * modules/xvasprintf-tests: New file.
71085         * tests/test-xvasprintf.c: New file.
71086
71087         * modules/vasprintf-tests: New file.
71088         * tests/test-vasprintf.c: New file.
71089
71090         * modules/vasnprintf-tests: New file.
71091         * tests/test-vasnprintf.c: New file.
71092
71093         * modules/vsnprintf-tests: New file.
71094         * tests/test-vsnprintf.c: New file.
71095
71096         * modules/snprintf-tests: New file.
71097         * tests/test-snprintf.c: New file.
71098
71099 2007-03-04  Bruno Haible  <bruno@clisp.org>
71100
71101         Compile relocatable.c only if --enable-relocatable is specified.
71102         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71103         gl_RELOCATABLE_LIBRARY.
71104         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71105         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71106         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71107         gl_RELOCATABLE_LIBRARY.
71108         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71109         (Makefile.am): Remove lib_SOURCES.
71110         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71111         gl_RELOCATABLE_LIBRARY.
71112         (Makefile.am): Remove lib_SOURCES.
71113         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71114         always.
71115         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71116         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71117
71118 2007-03-04  Bruno Haible  <bruno@clisp.org>
71119
71120         * modules/argmatch-tests: New file.
71121         * tests/test-argmatch.c: New file.
71122
71123         * tests/test-allocsa.c (main): Halve the number of loop runs.
71124
71125         * modules/alloca-opt-tests: New file.
71126         * tests/test-alloca-opt.c: New file.
71127
71128 2007-03-04  Jim Meyering  <jim@meyering.net>
71129
71130         Work around difference between Linux ACLs and Solaris 10 ZFS.
71131         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71132         for EINVAL.
71133
71134 2007-03-03  Bruno Haible  <bruno@clisp.org>
71135
71136         * modules/relocatable-prog (Depends-on): Add back progreloc's
71137         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71138
71139 2007-03-03  Bruno Haible  <bruno@clisp.org>
71140
71141         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71142         * modules/relocatable-lib: New file.
71143
71144 2007-03-03  Bruno Haible  <bruno@clisp.org>
71145
71146         * modules/relocatable-prog: Renamed from modules/relocatable.
71147         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71148
71149 2007-03-03  Bruno Haible  <bruno@clisp.org>
71150
71151         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71152         m4/relocatable-lib.m4.
71153         (Depends-on): Remove 'relocatable'.
71154         (configure.ac): Add gl_RELOCATABLE_NOP.
71155
71156 2007-03-03  Bruno Haible  <bruno@clisp.org>
71157
71158         * modules/relocatable-prog-wrapper: New file.
71159         * modules/relocatable (Depends-on): Add it. Remove all other
71160         dependencies except progname.
71161         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71162
71163         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71164         (gl_FUNC_STRERROR): Nop.
71165         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71166
71167         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71168         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71169
71170         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71171         (gl_FUNC_READLINK): Update.
71172
71173         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71174
71175 2007-03-03  Bruno Haible  <bruno@clisp.org>
71176
71177         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71178         * modules/xreadlink (Depends-on): Add unistd.
71179         * modules/xreadlink-with-size (Depends-on): Likewise.
71180
71181 2007-03-03  Bruno Haible  <bruno@clisp.org>
71182
71183         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71184         extracted from gt_FUNC_SETENV.
71185         (gt_FUNC_SETENV): Remove macro.
71186         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71187         remove gt_FUNC_SETENV.
71188
71189 2007-03-03  Bruno Haible  <bruno@clisp.org>
71190
71191         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71192         ENABLE_RELOCATABLE here.
71193         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71194
71195 2007-03-03  Bruno Haible  <bruno@clisp.org>
71196
71197         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71198         * tests/test-rbtreehash_list.c: Include progname.h.
71199         (main): Call set_program_name.
71200
71201         * modules/rbtree-oset-tests (Depends-on): Add progname.
71202         * tests/test-rbtree_oset.c: Include progname.h.
71203         (main): Call set_program_name.
71204
71205         * modules/rbtree-list-tests (Depends-on): Add progname.
71206         * tests/test-rbtree_list.c: Include progname.h.
71207         (main): Call set_program_name.
71208
71209         * modules/linked-list-tests (Depends-on): Add progname.
71210         * tests/test-linked_list.c: Include progname.h.
71211         (main): Call set_program_name.
71212
71213 2007-03-03  Bruno Haible  <bruno@clisp.org>
71214
71215         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71216         All uses of __restrict changed to _Restrict_.
71217         * lib/glob_.h (__restrict): Remove macro.
71218
71219 2007-03-02  Bruno Haible  <bruno@clisp.org>
71220
71221         * modules/gettext (configure.ac): Require gettext infrastructure
71222         from version 0.16.1.
71223
71224 2007-03-02  Bruno Haible  <bruno@clisp.org>
71225
71226         * modules/linkedhash-list-tests (Depends-on): Add progname.
71227         * tests/test-linkedhash_list.c: Include progname.h.
71228         (main): Call set_program_name.
71229
71230         * modules/carray-list-tests (Depends-on): Add progname.
71231         * tests/test-carray_list.c: Include progname.h.
71232         (main): Call set_program_name.
71233
71234         * modules/avltreehash-list-tests (Depends-on): Add progname.
71235         * tests/test-avltreehash_list.c: Include progname.h.
71236         (main): Call set_program_name.
71237
71238         * modules/avltree-oset-tests (Depends-on): Add progname.
71239         * tests/test-avltree_oset.c: Include progname.h.
71240         (main): Call set_program_name.
71241
71242         * modules/avltree-list-tests (Depends-on): Add progname.
71243         * tests/test-avltree_list.c: Include progname.h.
71244         (main): Call set_program_name.
71245
71246         * modules/array-oset-tests (Depends-on): Add progname.
71247         * tests/test-array_oset.c: Include progname.h.
71248         (main): Call set_program_name.
71249
71250         * modules/array-list-tests (Depends-on): Add progname.
71251         * tests/test-array_list.c: Include progname.h.
71252         (main): Call set_program_name.
71253
71254         * modules/argp-tests (Depends-on): Add progname.
71255         * tests/test-argp.c: Include argp.h first. Include progname.h.
71256         (main): Call set_program_name.
71257
71258 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71259
71260         * doc/gnulib-tool.texi (Initial import): Reword description of
71261         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71262         limited effect even if defined after the first system include.
71263
71264 2007-03-01  Bruno Haible  <bruno@clisp.org>
71265
71266         * build-aux/config.libpath: Update to libtool-1.5.22.
71267         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71268
71269 2007-03-01  Bruno Haible  <bruno@clisp.org>
71270
71271         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71272         foo_CFLAGS.
71273         Reported by Ralf Wildenhues.
71274
71275 2007-03-01  Bruno Haible  <bruno@clisp.org>
71276
71277         * build-aux/install-reloc: Remove object files left over by some
71278         compilers.
71279         Reported by Ralf Wildenhues.
71280
71281 2007-03-01  Bruno Haible  <bruno@clisp.org>
71282
71283         * build-aux/install-reloc: Break long lines.
71284
71285 2007-03-01  Bruno Haible  <bruno@clisp.org>
71286
71287         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71288         Reported by Ralf Wildenhues.
71289
71290 2007-03-01  Bruno Haible  <bruno@clisp.org>
71291
71292         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71293         include ordering constraints.
71294
71295 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71296
71297         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71298         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71299         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71300         as another example.
71301         * lib/time_.h: Fix misspelling.
71302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71303         Require gl_HEADER_TIME_H_DEFAULTS.
71304         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71305         * m4/time_r.m4 (gl_TIME_R): Likewise.
71306         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71307
71308 2007-03-01  Bruno Haible  <bruno@clisp.org>
71309
71310         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71311         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71312
71313 2007-03-01  Jim Meyering  <jim@meyering.net>
71314
71315         * modules/xreadlink (Maintainer): Add my name.
71316         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71317
71318 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71319             Bruno Haible  <bruno@clisp.org>
71320
71321         * build-aux/install-reloc: Compile also c-ctype.c.
71322         * build-aux/relocatable.sh.in: New file.
71323         * doc/relocatable.texi: New file.
71324         * doc/relocatable-maint.texi: New file.
71325         * doc/gnulib.texi: Include relocatable-maint.texi.
71326         * lib/progreloc.c: Include unistd.h unconditionally.
71327         * lib/relocwrapper.c: Include unistd.h unconditionally.
71328         Include c-ctype.h.
71329         (add_dotbin): Use c_tolower.
71330         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71331         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71332         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71333         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71334         to m4/relocatable-lib.m4.
71335         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71336         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71337         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71338         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71339         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71340         * modules/relocatable: New file.
71341         * modules/relocatable-lib: New file.
71342         * modules/relocatable-script: New file.
71343
71344 2007-02-28  Bruno Haible  <bruno@clisp.org>
71345
71346         Import --enable-relocatable infrastructure.
71347         * build-aux/config.libpath: New file, from GNU gettext.
71348         * build-aux/install-reloc: New file, from GNU gettext.
71349         * build-aux/reloc-ldflags: New file, from GNU gettext.
71350         * lib/relocatable.h: New file, from GNU gettext.
71351         * lib/relocatable.c: New file, from GNU gettext.
71352         * lib/relocwrapper.c: New file, from GNU gettext.
71353         * m4/relocatable.m4: New file, from GNU gettext.
71354
71355 2007-02-28  Bruno Haible  <bruno@clisp.org>
71356
71357         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71358
71359         * modules/xreadlink: New file, from GNU gettext with modifications.
71360         * lib/xreadlink.c: New file, from GNU gettext.
71361         * lib/xreadlink.h: Add comments.
71362         (xreadlink): New declaration.
71363
71364         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71365         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71366         lib/xreadlink-with-size.c.
71367         (configure.ac): Remove gl_XREADLINK invocation.
71368         (Makefile.am): Augment lib_SOURCES.
71369         * m4/xreadlink.m4: Remove file.
71370         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71371         (xreadlink_with_size): Renamed from xreadink.
71372         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71373         * modules/canonicalize (Depends-on): Replace xreadlink with
71374         xreadlink-with-size.
71375         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71376
71377 2007-02-25  Jim Meyering  <jim@meyering.net>
71378
71379         * build-aux/announce-gen: When complaining about excess arguments,
71380         list them.
71381
71382 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * README: Document signed integer overflow situation more
71385         accurately.
71386
71387 2007-02-25  Bruno Haible  <bruno@clisp.org>
71388
71389         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71390         'a' or 'A' conversion.
71391
71392 2007-02-25  Bruno Haible  <bruno@clisp.org>
71393
71394         * modules/filename: Renamed from modules/pathname.
71395         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71396         lib/concatpath.c with lib/concat-filename.c.
71397         (Makefile.am): Update.
71398         (Include): Replace pathname.h with filename.h.
71399         * lib/filename.h: Renamed from lib/pathname.h.
71400         (concatenated_filename): Renamed from concatenated_pathname.
71401         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71402         (concatenated_filename): Renamed from concatenated_pathname.
71403         * lib/findprog.c: Include filename.h instead of pathname.h.
71404         (find_in_path): Update.
71405         * lib/javacomp.c: Include filename.h instead of pathname.h.
71406         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71407         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71408         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71409         is_oldgcj_14_13_usable, is_javac_usable): Update.
71410         * lib/javaexec.c: Include filename.h instead of pathname.h.
71411         (execute_java_class): Update.
71412         * modules/findprog: Update.
71413         * modules/javacomp: Update.
71414         * modules/javaexec: Update.
71415         * MODULES.html.sh (File system functions): Add 'filename', remove
71416         'pathname'.
71417
71418 2007-02-25  Bruno Haible  <bruno@clisp.org>
71419
71420         * modules/printf-frexpl-tests: New file.
71421         * tests/test-printf-frexpl.c: New file.
71422
71423         * modules/printf-frexpl: New file.
71424         * lib/printf-frexpl.h: New file.
71425         * lib/printf-frexpl.c: New file.
71426         * m4/printf-frexpl.m4: New file.
71427
71428 2007-02-25  Bruno Haible  <bruno@clisp.org>
71429
71430         * modules/printf-frexp-tests: New file.
71431         * tests/test-printf-frexp.c: New file.
71432
71433         * modules/printf-frexp: New file.
71434         * lib/printf-frexp.h: New file.
71435         * lib/printf-frexp.c: New file.
71436         * m4/printf-frexp.m4: New file.
71437
71438 2007-02-25  Bruno Haible  <bruno@clisp.org>
71439
71440         Assume automake >= 1.10 for the tests.
71441         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71442         * modules/arctwo-tests: Likewise.
71443         * modules/argp-tests: Likewise.
71444         * modules/avltree-list-tests: Likewise.
71445         * modules/avltree-oset-tests: Likewise.
71446         * modules/avltreehash-list-tests: Likewise.
71447         * modules/carray-list-tests: Likewise.
71448         * modules/crc-tests: Likewise.
71449         * modules/des-tests: Likewise.
71450         * modules/gc-arcfour-tests: Likewise.
71451         * modules/gc-arctwo-tests: Likewise.
71452         * modules/gc-des-tests: Likewise.
71453         * modules/gc-hmac-md5-tests: Likewise.
71454         * modules/gc-hmac-sha1-tests: Likewise.
71455         * modules/gc-md2-tests: Likewise.
71456         * modules/gc-md4-tests: Likewise.
71457         * modules/gc-md5-tests: Likewise.
71458         * modules/gc-pbkdf2-sha1-tests: Likewise.
71459         * modules/gc-rijndael-tests: Likewise.
71460         * modules/gc-sha1-tests: Likewise.
71461         * modules/gc-tests: Likewise.
71462         * modules/getaddrinfo-tests: Likewise.
71463         * modules/hmac-md5-tests: Likewise.
71464         * modules/hmac-sha1-tests: Likewise.
71465         * modules/linked-list-tests: Likewise.
71466         * modules/linkedhash-list-tests: Likewise.
71467         * modules/lock-tests: Likewise.
71468         * modules/md2-tests: Likewise.
71469         * modules/md4-tests: Likewise.
71470         * modules/md5-tests: Likewise.
71471         * modules/rbtree-list-tests: Likewise.
71472         * modules/rbtree-oset-tests: Likewise.
71473         * modules/rbtreehash-list-tests: Likewise.
71474         * modules/read-file-tests: Likewise.
71475         * modules/rijndael-tests: Likewise.
71476         * modules/stdint-tests: Likewise.
71477         * modules/tls-tests: Likewise.
71478
71479 2007-02-24  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71482         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71483         function; instead check whether isnan with a double argument links.
71484         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71485         function; instead check whether isnan with a 'long double' argument
71486         links.
71487         Reported by Eric Blake <ebb9@byu.net>.
71488
71489 2007-02-24  Bruno Haible  <bruno@clisp.org>
71490
71491         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71492         defined.
71493         * lib/isnanl.c: Remove all code. Just include isnan.c.
71494         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71495
71496 2007-02-25  Jim Meyering  <jim@meyering.net>
71497
71498         Avoid conflicting types for 'unsetenv' on FreeBSD.
71499         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71500         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71501         in stdlib.h.
71502
71503 2007-02-24  Bruno Haible  <bruno@clisp.org>
71504
71505         * modules/isnanl-nolibm-tests: New file.
71506         * tests/test-isnanl.c: New file.
71507
71508         * modules/isnanl-nolibm: New file.
71509         * lib/isnanl.h: New file.
71510         * lib/isnanl.c: New file.
71511         * m4/isnanl.m4: New file.
71512
71513 2007-02-24  Bruno Haible  <bruno@clisp.org>
71514
71515         * modules/isnan-nolibm-tests: New file.
71516         * tests/test-isnan.c: New file.
71517
71518         * modules/isnan-nolibm: New file.
71519         * lib/isnan.h: New file.
71520         * lib/isnan.c: New file.
71521         * m4/isnan.m4: New file.
71522
71523 2007-02-24  Bruno Haible  <bruno@clisp.org>
71524
71525         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71526         assume that an exponent fits in 20 bits.
71527
71528 2007-02-24  Jim Meyering  <jim@meyering.net>
71529
71530         * m4/regex.m4: Update the description of the configure-time option,
71531         --without-included-regex, to state accurately what the defaults are,
71532         and perhaps to give people an idea why using this option is risky.
71533
71534 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71535
71536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71537         loops on small arguments.  This attempts to avoid the problem
71538         Bruno Haible reported for AIX 4.3.2 in
71539         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71540
71541 2007-02-23  Bruno Haible  <bruno@clisp.org>
71542
71543         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71544         Needed for help2man.
71545
71546 2007-02-23  Karl Berry  <karl@gnu.org>
71547
71548         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71549         exists, foo.h should be cvs-ignored, not committed.
71550
71551 2007-02-23  Eric Blake  <ebb9@byu.net>
71552
71553         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71554         * lib/stat-time.h (includes): Likewise.
71555         * lib/utimecmp.c (includes): Likewise.
71556         * lib/utimens.h (includes): Likewise.
71557         * lib/getdate.y (includes): Also include "timespec.h" for use
71558         internal to the module.
71559         * modules/utimens (Depends-on): Revert yesterday's patch.
71560         * modules/nanosleep (Depends-on): Add missing dependency.
71561
71562 2007-02-22  Bruno Haible  <bruno@clisp.org>
71563
71564         * lib/glob.c: Don't include getlogin_r.h.
71565
71566 2007-02-22  Jim Meyering  <jim@meyering.net>
71567
71568         * modules/utimens (Depends-on): Add timespec, required for
71569         utimens.h's inclusion of timespec.h.
71570
71571 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71572
71573         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71574         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71575         Schwab in
71576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71577         I'll try to think of a better way to fix the Solaris problem.
71578
71579         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71580         like glibc; on Solaris 10, it fails with errno == EINVAL.
71581         POSIX says the behavior is unspecified if the first argument is NULL,
71582         so play it safe and never pass NULL to the system getcwd.
71583
71584 2007-02-21  Jim Meyering  <jim@meyering.net>
71585
71586         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71587         of gettimeofday.  It would conflict with the one now always
71588         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71589         an IRIX 6.5 build failure.
71590
71591 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71592
71593         Minor fixups to port to Solaris 10 with Sun C 5.8.
71594         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71595         * modules/getcwd (Depends-on): Add dirfd.
71596         * lib/putenv.c (putenv): #undef it.
71597         (rpl_putenv): New decl.
71598         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71599
71600 2007-02-20  Bruno Haible  <bruno@clisp.org>
71601
71602         * modules/stdio-tests: New file.
71603         * tests/test-stdio.c: New file.
71604
71605         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71606         (Depends-on): Add stdio.
71607         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71608         (Include): Use <stdio.h> instead of vsnprintf.h.
71609         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71610         HAVE_DECL_VSNPRINTF.
71611         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71612
71613         * modules/snprintf (Files): Remove lib/snprintf.h.
71614         (Depends-on): Add stdio.
71615         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71616         (Include): Use <stdio.h> instead of snprintf.h.
71617         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71618         HAVE_DECL_SNPRINTF.
71619         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71620         * lib/getaddrinfo.c: Likewise.
71621
71622         * modules/stdio: New file.
71623         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71624         * lib/snprintf.h: Remove file.
71625         * lib/vsnprintf.h: Remove file.
71626         * lib/.cppi-disable: Remove snprintf.h.
71627         * m4/stdio_h.m4: New file.
71628         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71629
71630 2007-02-20  Jim Meyering  <jim@meyering.net>
71631
71632         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71633         used by e.g., mingw.  From Bruno Haible.
71634
71635 2007-02-19  Bruno Haible  <bruno@clisp.org>
71636
71637         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71638         warnings.
71639         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71640
71641 2007-02-19  Bruno Haible  <bruno@clisp.org>
71642
71643         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71644         from mingw users.
71645
71646 2007-02-19  Bruno Haible  <bruno@clisp.org>
71647
71648         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71649         warnings.
71650         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71651
71652 2007-02-19  Jim Meyering  <jim@meyering.net>
71653
71654         Don't use FD after a successful "fdopendir (fd)".
71655         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71656         Reset it by calling dirfd on the just-obtained DIR*.
71657
71658         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71659         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71660
71661 2007-02-18  Bruno Haible  <bruno@clisp.org>
71662
71663         * lib/readlink.c: Include <unistd.h>.
71664         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71665         HAVE_READLINK.
71666         * modules/readlink (Depends-on): Add unistd.
71667         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71668         (Include): Add <unistd.h>.
71669
71670         * lib/getlogin_r.h: Remove file.
71671         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71672         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71673         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71674         HAVE_DECL_GETLOGIN_R.
71675         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71677         (Include): Use <unistd.h> instead of getlogin_r.h.
71678
71679         * lib/getcwd.h: Remove file.
71680         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71681         * lib/xgetcwd.c: Likewise.
71682         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71683         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71684         * modules/getcwd (Files): Remove lib/getcwd.h.
71685         (Depends-on): Add unistd.
71686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71687         (Include): Use <unistd.h> instad of getcwd.h.
71688
71689         * lib/ftruncate.c: Include <unistd.h> first.
71690         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71691         Set HAVE_FTRUNCATE.
71692         * modules/ftruncate (Depends-on): Add unistd.
71693         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71694
71695         * lib/fchdir.c: Include <unistd.h> first.
71696         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71697         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71698         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71699         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71700         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71701
71702         * lib/dup2.c: Include <unistd.h> first.
71703         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71704         HAVE_DUP2.
71705         * modules/dup2 (Depends-on): Add unistd.
71706         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71707
71708         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71709         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71710         REPLACE_CHOWN. Don't define chown as a macro here.
71711         * modules/chown (Depends-on): Add unistd.
71712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71713
71714         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71715         Add definition for GL_LINK_WARNING.
71716         (chown, dup2): New declarations.
71717         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71718         link warning.
71719         (ftruncate): New declaration.
71720         (getcwd): New declaration, taken from old getcwd.h.
71721         (getlogin_r): New declaration, taken from old getlogin_r.h.
71722         (readlink): New declaration.
71723         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71724         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71725         (gl_PREREQ_UNISTD): Remove macro.
71726         (gl_UNISTD_MODULE_INDICATOR): New macro.
71727         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71728         many new variables. Don't set UNISTD_H.
71729         * modules/unistd (Description): Change.
71730         (Depends-on): Add link-warning.
71731         (configure.ac): Update.
71732         (Makefile.am): Create unistd.h always. Substitute many new variables
71733         into it.
71734
71735 2007-02-18  Bruno Haible  <bruno@clisp.org>
71736
71737         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71738         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71739         HAVE_GETSUBOPT.
71740         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71741         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71742         * lib/getsubopt.h: Remove file.
71743         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71744         (Depends-on): Add stdlib.
71745         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71746         (Includes): Use <stdlib.h> instead of getsubopt.h.
71747         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71748         Set HAVE_GETSUBOPT.
71749         * lib/getsubopt.c: Don't include getsubopt.h.
71750
71751 2007-02-18  Bruno Haible  <bruno@clisp.org>
71752
71753         * modules/fchdir (Depends-on): Add dup2.
71754
71755 2007-02-18  Bruno Haible  <bruno@clisp.org>
71756
71757         * lib/stdlib_.h: Handle glibc's special invocation convention
71758         specially.
71759
71760 2007-02-18  Bruno Haible  <bruno@clisp.org>
71761
71762         * modules/stdlib-tests: New file.
71763         * tests/test-stdlib.c: New file.
71764
71765         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71766         (Depends-on): Add stdlib.
71767         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71768         (Includes): Use <stdlib.h> instead of mkstemp.h.
71769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71770         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71771         * lib/mkstemp.c: Don't include mkstemp.h.
71772         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71773         * lib/stdlib--.h: Don't include mkstemp.h.
71774
71775         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71776         (Depends-on): Add stdlib.
71777         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71778         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71779         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71780         HAVE_MKDTEMP.
71781         * lib/mkdtemp.c: Don't include mkdtemp.h.
71782         * lib/clean-temp.c: Don't include mkdtemp.h.
71783
71784         * modules/exit (Files): Remove lib/exit.h.
71785         (Depends-on): Add stdlib.
71786         (Makefile.am): Remove lib_SOURCES.
71787         (Include): Use <stdlib.h> instead of exit.h.
71788         * lib/argmatch.c: Don't include exit.h.
71789         * lib/execute.c: Likewise.
71790         * lib/pagealign_alloc.c: Likewise.
71791         * lib/pipe.c: Likewise.
71792         * lib/wait-process.c: Likewise.
71793         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71794         * lib/exitfail.c: Likewise.
71795         * lib/savewd.c: Likewise.
71796         * lib/xsetenv.c: Likewise.
71797
71798         * modules/stdlib: New file.
71799         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71800         and extra comments about mkstemp().
71801         * lib/exit.h: Remove file.
71802         * lib/mkdtemp.h: Remove file.
71803         * lib/mkstemp.h: Remove file.
71804         * m4/stdlib_h.m4: New file.
71805         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71806
71807 2007-02-18  Bruno Haible  <bruno@clisp.org>
71808
71809         * modules/math-tests: New file.
71810         * tests/test-math.c: New file.
71811
71812         * modules/math: New file.
71813         * modules/mathl (Files): Remove lib/mathl.h.
71814         (Depends-on): Add math.
71815         (Makefile.am): Don't mention mathl.h.
71816         (Include): Use <math.h> instead of mathl.h.
71817         * lib/math_.h: New file.
71818         * lib/mathl.h: Remove file.
71819         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71820         mathl.h.
71821         * lib/asinl.c: Likewise.
71822         * lib/atanl.c: Likewise.
71823         * lib/ceill.c: Likewise.
71824         * lib/cosl.c: Likewise.
71825         * lib/expl.c: Likewise.
71826         * lib/floorl.c: Likewise.
71827         * lib/frexpl.c: Likewise.
71828         * lib/ldexpl.c: Likewise.
71829         * lib/logl.c: Likewise.
71830         * lib/sincosl.c: Likewise.
71831         * lib/sinl.c: Likewise.
71832         * lib/sqrtl.c: Likewise.
71833         * lib/tanl.c: Likewise.
71834         * lib/trigl.c: Likewise.
71835         * m4/math_h.m4: New file.
71836         * MODULES.html.sh (Mathematics): Add math.
71837
71838 2007-02-17  Bruno Haible  <bruno@clisp.org>
71839
71840         * modules/wctype-tests: New file.
71841         * tests/test-wctype.c: New file.
71842
71843         * modules/wchar-tests: New file.
71844         * tests/test-wchar.c: New file.
71845
71846         * modules/unistd-tests: New file.
71847         * tests/test-unistd.c: New file.
71848
71849         * modules/time-tests: New file.
71850         * tests/test-time.c: New file.
71851
71852         * modules/sysexits-tests: New file.
71853         * tests/test-sysexits.c: New file.
71854
71855         * modules/sys_time-tests: New file.
71856         * tests/test-sys_time.c: New file.
71857
71858         * modules/sys_stat-tests: New file.
71859         * tests/test-sys_stat.c: New file.
71860
71861         * modules/sys_socket-tests: New file.
71862         * tests/test-sys_socket.c: New file.
71863
71864         * modules/sys_select-tests: New file.
71865         * tests/test-sys_select.c: New file.
71866
71867         * modules/string-tests: New file.
71868         * tests/test-string.c: New file.
71869
71870         * modules/stdbool-tests: New file.
71871         * tests/test-stdbool.c: New file.
71872
71873         * modules/netinet_in-tests: New file.
71874         * tests/test-netinet_in.c: New file.
71875
71876         * modules/inttypes-tests: New file.
71877         * tests/test-inttypes.c: New file.
71878
71879         * modules/fcntl-tests: New file.
71880         * tests/test-fcntl.c: New file.
71881
71882         * modules/byteswap-tests: New file.
71883         * tests/test-byteswap.c: New file.
71884
71885         * modules/arpa_inet-tests: New file.
71886         * tests/test-arpa_inet.c: New file.
71887
71888 2007-02-17  Bruno Haible  <bruno@clisp.org>
71889
71890         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71891         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71892         if the corresponding module is not enabled. Emit link warnings if
71893         the function is used nevertheless.
71894         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71895         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71896         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71897         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71898         * modules/inttypes (Depends-on): Add link-warning.
71899         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71900         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71901         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71902         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71903         * modules/imaxdiv (configure.ac): Likewise.
71904         * modules/strtoimax (configure.ac): Likewise.
71905         * modules/strtoumax (configure.ac): Likewise.
71906
71907 2007-02-17  Bruno Haible  <bruno@clisp.org>
71908
71909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71910         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71911         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71912         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71913
71914 2007-02-17  Bruno Haible  <bruno@clisp.org>
71915
71916         * modules/link-warning: New file.
71917         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71918         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71919         * modules/string (Depends-on): Add link-warning.
71920         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71921         string.h.
71922         * MODULES.html.sh (Support for building libraries and executables): Add
71923         link-warning.
71924
71925 2007-02-17  Bruno Haible  <bruno@clisp.org>
71926
71927         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71928         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71929         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71930         long lines.
71931
71932 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71933             Bruno Haible  <bruno@clisp.org>
71934
71935         * modules/tmpfile: New file.
71936         * lib/tmpfile.c: New file.
71937         * m4/tmpfile.m4: New file.
71938         * MODULES.html.sh (func_all_modules): New section "Input/output".
71939
71940 2007-02-15  Bruno Haible  <bruno@clisp.org>
71941
71942         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71943         (supports_delete_on_close): New function.
71944         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71945
71946 2007-02-14  Bruno Haible  <bruno@clisp.org>
71947
71948         * modules/mbspcasecmp-tests: New file.
71949         * tests/test-mbspcasecmp.sh: New file.
71950         * tests/test-mbspcasecmp.c: New file.
71951
71952         New module mbspcasecmp.
71953         * modules/mbspcasecmp: New file.
71954         * lib/mbspcasecmp.c: New file.
71955         * lib/string_.h (strncasecmp): Change warning message.
71956         (mbspcasecmp): New declaration.
71957         * m4/mbspcasecmp.m4: New file.
71958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71959         GNULIB_MBSPCASECMP.
71960         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71961         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71962
71963 2007-02-14  Bruno Haible  <bruno@clisp.org>
71964
71965         * modules/mbsncasecmp-tests: New file.
71966         * tests/test-mbsncasecmp.sh: New file.
71967         * tests/test-mbsncasecmp.c: New file.
71968
71969         New module mbsncasecmp.
71970         * modules/mbsncasecmp: New file.
71971         * lib/mbsncasecmp.c: New file.
71972         * lib/string_.h (mbsncasecmp): New declaration.
71973         * m4/mbsncasecmp.m4: New file.
71974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71975         GNULIB_MBSNCASECMP.
71976         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71977         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71978
71979 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71982         Verify that it doesn't overlap with our flags.
71983         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71984         do not have the desired effect in multibyte locales; instead, use
71985         mbscasecmp.
71986         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71987         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71988         we don't require GNU fnmatch ourselves (if our users require it, they
71989         should do so explicitly).
71990
71991         Fix regex code so it doesn't rely on strcasecmp.
71992         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71993         Otherwise, include gnulib's langinfo.h.
71994         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71995         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71996         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71997         * modules/regex (FILES): Remove m4/codeset.m4.
71998         (Depends-on): Add localcharset.  Remove strcase.
71999
72000 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72001
72002         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72003         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72004
72005 2007-02-13  Bruno Haible  <bruno@clisp.org>
72006
72007         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72008         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72009
72010 2007-02-12  Bruno Haible  <bruno@clisp.org>
72011
72012         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72013         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72014         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72015         time warning rather than a link error.
72016
72017 2007-02-12  Bruno Haible  <bruno@clisp.org>
72018
72019         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72020         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72021         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72022
72023 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72026         args, not 2.
72027
72028 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         New module 'time', so that apps can include <time.h> as per
72031         POSIX and GNU instead of separate include files like time_r.h
72032         and timegm.h.  This implementation tries out a simpler approach
72033         for replacing decls in standard include files (as compared to
72034         the string module), somewhat as an experiment.
72035
72036         * config/srclist.txt: Comment out mktime.c for now.
72037         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72038         since it doesn't apply any more.  Use generic wording instead.
72039         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72040         'time'.
72041         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72042         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72043         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72044         Don't include <sys/types.h>; no longer needed since we assume C89.
72045         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72046         * lib/strftime.c: Likewise.
72047         * lib/time_r.c: Likewise.
72048         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72049         * lib/nanosleep.c: Include <time.h> first, to check interface.
72050         * lib/strptime.c: Likewise.
72051         * lib/time_r.c: Likewise.
72052         * lib/timegm.c: Likewise.
72053         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72054         needed.
72055         * lib/timegm.c: Don't include timegm.h; no longer needed.
72056         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72057         time.h now handles any problems in that area.
72058         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72059         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72060         that time.h defines struct timespec.
72061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72062         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72063         handles that.
72064         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72065         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72066         needed.  Set REPLACE_LOCALTIME.
72067         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72068         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72069         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72070         nanosleep; time_h.m4 now does that.  Don't require
72071         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72072         module handles this now.
72073         * modules/getdate (Depends-on): Remove timespec.  Add time.
72074         * modules/nanosleep (Depends-on): Likewise.
72075         * modules/stat-time (Depends-on): Likewise.
72076         * modules/nanosleep (Include): Include time.h, not timespec.h.
72077         * modules/strptime (Files): Remove lib/strptime.h.
72078         (Depends-on): Add extensions, time.
72079         (Include): Include time.h, not strptime.h.
72080         * modules/time_r (Files): Remove lib/time_r.h.
72081         (Depends-on): Add time.
72082         (Include): Include time.h, not time_r.h.
72083         * modules/timegm: Likewise.
72084         * modules/timespec (Description): Now does timespec-related decls
72085         of our own, instead of struct timespec itself.
72086         (Depends-on): Add time; remove extensions.
72087         (Maintainer): Add self.
72088         * modules/utimecmp (Depends-on): Add time; remove timespec.
72089         * modules/utimens (Depends-on): Likewise.
72090         * modules/xnanosleep (Depends-on): Likewise.
72091
72092 2007-02-11  Bruno Haible  <bruno@clisp.org>
72093
72094         * lib/c-strstr.c: Include allocsa.h.
72095         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72096         * lib/c-strcasestr.c: Include allocsa.h.
72097         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72098         * lib/strcasestr.c: Include allocsa.h.
72099         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72100         * lib/mbsstr.c: Include allocsa.h.
72101         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72102         allocsa/freesa instead of malloc/free.
72103         * lib/mbscasestr.c: Include allocsa.h.
72104         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72105         allocsa/freesa instead of malloc/free.
72106         * modules/c-strstr (Depends-on): Add allocsa.
72107         * modules/c-strcasestr (Depends-on): Likewise.
72108         * modules/strcasestr (Depends-on): Likewise.
72109         * modules/mbsstr (Depends-on): Likewise.
72110         * modules/mbscasestr (Depends-on): Likewise.
72111
72112 2007-02-11  Bruno Haible  <bruno@clisp.org>
72113
72114         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72115
72116         * modules/mbsspn-tests: New file.
72117         * tests/test-mbsspn.sh: New file.
72118         * tests/test-mbsspn.c: New file.
72119
72120 2007-02-11  Bruno Haible  <bruno@clisp.org>
72121
72122         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72123
72124         * modules/mbspbrk-tests: New file.
72125         * tests/test-mbspbrk.sh: New file.
72126         * tests/test-mbspbrk.c: New file.
72127
72128 2007-02-11  Bruno Haible  <bruno@clisp.org>
72129
72130         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72131         unneeded cast.
72132
72133         * modules/mbscspn-tests: New file.
72134         * tests/test-mbscspn.sh: New file.
72135         * tests/test-mbscspn.c: New file.
72136
72137 2007-02-11  Bruno Haible  <bruno@clisp.org>
72138
72139         * modules/mbscasecmp-tests: New file.
72140         * tests/test-mbscasecmp.sh: New file.
72141         * tests/test-mbscasecmp.c: New file.
72142
72143 2007-02-11  Bruno Haible  <bruno@clisp.org>
72144
72145         Ensure O(n) worst-case complexity of mbscasestr.
72146         * lib/mbscasestr.c: Include stdbool.h.
72147         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72148         functions.
72149         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72150         the bookkeeping indicates that it's worth it.
72151         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72152
72153         * modules/mbscasestr-tests: New file.
72154         * tests/test-mbscasestr1.c: New file.
72155         * tests/test-mbscasestr2.sh: New file.
72156         * tests/test-mbscasestr2.c: New file.
72157         * tests/test-mbscasestr3.sh: New file.
72158         * tests/test-mbscasestr3.c: New file.
72159         * tests/test-mbscasestr4.sh: New file.
72160         * tests/test-mbscasestr4.c: New file.
72161         * m4/locale-tr.m4: New file.
72162
72163 2007-02-11  Bruno Haible  <bruno@clisp.org>
72164
72165         Ensure O(n) worst-case complexity of mbsstr.
72166         * lib/mbsstr.c: Include stdbool.h.
72167         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72168         functions.
72169         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72170         bookkeeping indicates that it's worth it.
72171         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72172
72173         * modules/mbsstr-tests: New file.
72174         * tests/test-mbsstr1.c: New file.
72175         * tests/test-mbsstr2.sh: New file.
72176         * tests/test-mbsstr2.c: New file.
72177         * tests/test-mbsstr3.sh: New file.
72178         * tests/test-mbsstr3.c: New file.
72179         * m4/locale-fr.m4: New file.
72180
72181 2007-02-11  Bruno Haible  <bruno@clisp.org>
72182
72183         * lib/mbsrchr.c (mbsrchr): Fix bug.
72184
72185         * modules/mbsrchr-tests: New file.
72186         * tests/test-mbsrchr.sh: New file.
72187         * tests/test-mbsrchr.c: New file.
72188
72189 2007-02-11  Bruno Haible  <bruno@clisp.org>
72190
72191         * lib/mbschr.c (mbschr): Fix bug.
72192
72193         * modules/mbschr-tests: New file.
72194         * tests/test-mbschr.sh: New file.
72195         * tests/test-mbschr.c: New file.
72196         * m4/locale-zh.m4: New file.
72197
72198 2007-02-11  Bruno Haible  <bruno@clisp.org>
72199
72200         Support for copying multibyte string iterators.
72201         * lib/mbiter.h: Include <string.h>.
72202         (mbiter_multi_copy): New function.
72203         (mbi_copy): New macro.
72204         * lib/mbuiter.h: Include <string.h>.
72205         (mbuiter_multi_copy): New function.
72206         (mbui_copy): New macro.
72207
72208 2007-02-11  Bruno Haible  <bruno@clisp.org>
72209
72210         New module mbslen.
72211         * modules/mbslen: New file.
72212         * lib/mbslen.c: New file.
72213         * lib/string_.h (mbslen): New declaration.
72214         * m4/mbslen.m4: New file.
72215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72216         GNULIB_MBSLEN.
72217         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72218         * MODULES.html.sh (Internationalization functions): Add mbslen.
72219
72220 2007-02-11  Bruno Haible  <bruno@clisp.org>
72221
72222         Ensure O(n) worst-case complexity of strcasestr substitute.
72223         * lib/strcasestr.c: Include stdbool.h.
72224         (knuth_morris_pratt): New function.
72225         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72226         bookkeeping indicates that it's worth it.
72227         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72228
72229         * modules/strcasestr-tests: New file.
72230         * tests/test-strcasestr.c: New file.
72231
72232 2007-02-11  Bruno Haible  <bruno@clisp.org>
72233
72234         Ensure O(n) worst-case complexity of c_strcasestr.
72235         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72236         (knuth_morris_pratt): New function.
72237         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72238         the bookkeeping indicates that it's worth it.
72239         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72240
72241         * modules/c-strcasestr-tests: New file.
72242         * tests/test-c-strcasestr.c: New file.
72243
72244 2007-02-11  Bruno Haible  <bruno@clisp.org>
72245
72246         Ensure O(n) worst-case complexity of c_strstr.
72247         * lib/c-strstr.c: Include stdbool.h, string.h.
72248         (knuth_morris_pratt): New function.
72249         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72250         bookkeeping indicates that it's worth it.
72251         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72252
72253         * lib/c-strstr.c: Complete rewrite for maintainability.
72254
72255         * modules/c-strstr-tests: New file.
72256         * tests/test-c-strstr.c: New file.
72257
72258 2007-02-11  Bruno Haible  <bruno@clisp.org>
72259
72260         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72261         5.2.1 and earlier, whereby \055 was treated just like the range
72262         delimiter '-'.
72263         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72264
72265 2007-02-08  Bruno Haible  <bruno@clisp.org>
72266
72267         * modules/regex (Depends-on): Add stdbool.
72268         Reported by Dalibor Topic <robilad@kaffe.org>.
72269
72270 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72273         Prefer returning from main to exiting from it.
72274         Remove unnecessary parens after sizeof.
72275
72276 2007-02-05  Bruno Haible  <bruno@clisp.org>
72277
72278         New module mbssep.
72279         * modules/mbssep: New file.
72280         * lib/mbssep.c: New file.
72281         * lib/string_.h (strsep): Add a conditional link warning.
72282         (mbssep): New declaration.
72283         * m4/mbssep.m4: New file.
72284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72285         GNULIB_MBSSEP.
72286         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72287         * MODULES.html.sh (Internationalization functions): Add mbssep.
72288
72289 2007-02-05  Bruno Haible  <bruno@clisp.org>
72290
72291         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72292         Optimize search in case of 1 delimiter.
72293
72294 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72295
72296         * lib/acl.h: Include sys/types.h before sys/acl.h.
72297
72298 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72299
72300         Merge upstream fix for glibc bugzilla #3957:
72301
72302         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72303
72304         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72305         bit for RE_HAT_LISTS_NOT_NEWLINE.
72306         (build_charclass_op): Remove bogus comment.
72307
72308 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72309
72310         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72311
72312 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72313
72314         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72315         * lib/memmem.c [!defined _LIBC]: Include config.h.
72316
72317 2007-02-04  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72320         warning message.
72321
72322 2007-02-04  Bruno Haible  <bruno@clisp.org>
72323
72324         New module mbstok_r.
72325         * modules/mbstok_r: New file.
72326         * lib/mbstok_r.c: New file.
72327         * lib/string_.h (strtok_r): Change argument names to match the
72328         comments. Add a conditional link warning.
72329         (mbstok_r): New declaration.
72330         * m4/mbstok_r.m4: New file.
72331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72332         GNULIB_MBSTOK_R.
72333         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72334         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72335
72336 2007-02-04  Bruno Haible  <bruno@clisp.org>
72337
72338         New module mbsspn.
72339         * modules/mbsspn: New file.
72340         * lib/mbsspn.c: New file.
72341         * lib/string_.h (strspn): Add a conditional link warning.
72342         (mbsspn): New declaration.
72343         * m4/mbsspn.m4: New file.
72344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72345         GNULIB_MBSSPN.
72346         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72347         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72348
72349 2007-02-04  Bruno Haible  <bruno@clisp.org>
72350
72351         New module mbspbrk.
72352         * modules/mbspbrk: New file.
72353         * lib/mbspbrk.c: New file.
72354         * lib/string_.h (strpbrk): Add a conditional link warning.
72355         (mbspbrk): New declaration.
72356         * m4/mbspbrk.m4: New file.
72357         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72358         GNULIB_MBSPBRK.
72359         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72360         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72361
72362 2007-02-04  Bruno Haible  <bruno@clisp.org>
72363
72364         New module mbscspn.
72365         * modules/mbscspn: New file.
72366         * lib/mbscspn.c: New file.
72367         * lib/string_.h (strcspn): Add a conditional link warning.
72368         (mbscspn): New declaration.
72369         * m4/mbscspn.m4: New file.
72370         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72371         GNULIB_MBSCSPN.
72372         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72373         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72374
72375 2007-02-04  Bruno Haible  <bruno@clisp.org>
72376
72377         New module mbscasestr, reduced goal of strcasestr.
72378         * modules/mbscasestr: New file.
72379         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72380         (mbscasestr): Renamed from strcasestr.
72381         * lib/strcasestr.c: Don't include mbuiter.h.
72382         (strcasestr): Remove support for multibyte locales.
72383         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72384         Change the conditional link warning.
72385         (mbscasestr): New declaration.
72386         * m4/mbscasestr.m4: New file.
72387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72388         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72389         REPLACE_STRCASESTR.
72390         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72392         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72393         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72394         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72395         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72396         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72397         (Depends-on): Remove mbuiter.
72398         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72399
72400 2007-02-04  Bruno Haible  <bruno@clisp.org>
72401
72402         Simplify handling of strncasecmp.
72403         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72404         the conditional link warning.
72405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72406         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72407         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72408         * modules/strcase (configure.ac): Don't invoke
72409         gl_STRING_MODULE_INDICATOR.
72410         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72411
72412 2007-02-04  Bruno Haible  <bruno@clisp.org>
72413
72414         New module mbscasecmp, reduced goal of strcasecmp.
72415         * modules/mbscasecmp: New file.
72416         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72417         (mbscasecmp): Renamed from strcasecmp.
72418         * lib/strcasecmp.c: Don't include mbuiter.h.
72419         (strcasecmp): Remove support for multibyte locales.
72420         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72421         Change the conditional link warning.
72422         (mbscasecmp): New declaration.
72423         * m4/mbscasecmp.m4: New file.
72424         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72425         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72426         REPLACE_STRCASECMP.
72427         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72429         GNULIB_MBSCASECMP.
72430         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72431         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72432         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72433         (Depends-on): Remove mbuiter.
72434         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72435
72436 2007-02-04  Bruno Haible  <bruno@clisp.org>
72437
72438         New module mbsstr. Remove module strstr.
72439         * modules/mbsstr: New file.
72440         * modules/strstr: Remove file.
72441         * lib/mbsstr.c: Renamed from lib/strstr.c.
72442         (mbsstr): Renamed from strstr.
72443         * lib/string_.h (strstr): Remove declaration. Change the conditional
72444         link warning.
72445         (mbsstr): New declaration.
72446         * m4/mbsstr.m4: New file.
72447         * m4/strstr.m4: Remove file.
72448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72449         REPLACE_STRSTR.
72450         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72451         Don't initialize GNULIB_STRSTR.
72452         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72453         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72454         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72455         (Support for systems lacking ANSI C 89): Remove strstr.
72456
72457 2007-02-04  Bruno Haible  <bruno@clisp.org>
72458
72459         New module mbsrchr.
72460         * modules/mbsrchr: New file.
72461         * lib/mbsrchr.c: New file.
72462         * lib/string_.h (strrchr): Add a conditional link warning.
72463         (mbsrchr): New declaration.
72464         * m4/mbsrchr.m4: New file.
72465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72466         GNULIB_MBSRCHR.
72467         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72468         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72469
72470 2007-02-04  Bruno Haible  <bruno@clisp.org>
72471
72472         New module mbschr.
72473         * modules/mbschr: New file.
72474         * lib/mbschr.c: New file.
72475         * lib/string_.h (strchr): Add a conditional link warning.
72476         (mbschr): New declaration.
72477         * m4/mbschr.m4: New file.
72478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72479         GNULIB_MBSCHR.
72480         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72481         * MODULES.html.sh (Internationalization functions): Add mbschr.
72482
72483 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72486
72487         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72488
72489 2007-02-04  Bruno Haible  <bruno@clisp.org>
72490
72491         New module description section 'configure.ac-early'.
72492         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72493         (func_get_autoconf_early_snippet): New function.
72494         (func_import, func_create_testdir): Use it. Remove special cases for
72495         modules 'extensions' and 'lock'.
72496         * modules/extensions (configure.ac-early): Require
72497         gl_USE_SYSTEM_EXTENSIONS.
72498         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72499
72500 2007-02-04  Bruno Haible  <bruno@clisp.org>
72501
72502         Make use of gcj-4.3's -fsource and -ftarget option.
72503         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72504         and if so try the options -fsource and -ftarget.
72505         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72506         source_version, ftarget_option, target_version arguments.
72507         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72508         (is_envjavac_oldgcj_14_14_usable): Renamed from
72509         is_envjavac_gcj_14_14_usable.
72510         (is_envjavac_oldgcj_14_13_usable): Renamed from
72511         is_envjavac_gcj_14_13_usable.
72512         (is_gcj_present): Update.
72513         (is_gcj_43, is_gcj43_usable): New functions.
72514         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72515         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72516         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72517         try the options -fsource and -ftarget.
72518
72519 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72522         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72523         larger value.
72524
72525 2007-02-03  Jim Meyering  <jim@meyering.net>
72526
72527         Give tools a better chance to allocate space for very large buffers.
72528         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72529
72530         Make pwd and readlink work also when run with an unreadable parent dir
72531         on systems with openat support.
72532         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72533         provided getcwd function, even when we have openat support.
72534         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72535
72536 2007-02-02  Bruno Haible  <bruno@clisp.org>
72537
72538         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72539         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72540         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72541         portability problems if one of these functions is only used on specific
72542         platforms.
72543         Reported by Paul Eggert.
72544
72545 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72546
72547         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72548         is causing more trouble than it's curing.
72549         * lib/regex_internal.h (__mempcpy): Remove.
72550         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72551         (and make the code a tad smaller to boot).
72552         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72553
72554 2007-02-02  Jim Meyering  <jim@meyering.net>
72555
72556         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72557         section, not in the Makefile.am: one.
72558
72559 2007-02-02  Eric Blake  <ebb9@byu.net>
72560
72561         * lib/strchrnul.c: Always include config.h first.
72562
72563         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72564         gnulib strstr is not necessary here.
72565
72566 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72567
72568         * m4/socklen.m4: Fix typo.
72569
72570 2007-02-02  Eric Blake  <ebb9@byu.net>
72571
72572         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72573         * modules/netinet_in (Makefile.am): Likewise.
72574
72575 2007-02-01  Bruno Haible  <bruno@clisp.org>
72576
72577         * lib/string_.h (GL_LINK_WARNING): New macro.
72578         (strcasecmp, strstr, strcasestr): If provided by the system,
72579         conditionally define as a macro that leads to a warning instead of to
72580         an error.
72581         (strncasecmp): Conditionally define as a macro that leads to a warning.
72582
72583 2007-02-01  Karl Berry  <karl@gnu.org>
72584
72585         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72586
72587 2007-02-01  Bruno Haible  <bruno@clisp.org>
72588
72589         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72590         renamings.
72591
72592 2007-02-01  Eric Blake  <ebb9@byu.net>
72593
72594         * modules/regex (Depends-on): Revert dependence on mempcpy.
72595         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72596         module's definition of mempcpy.
72597         Reported by Paul Eggert.
72598
72599 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72602         the symbol XYZ before redefining it.  This fixes a problem with
72603         programs that don't use XYZ, when compiled on systems that define
72604         XYZ to something else.
72605
72606 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72609         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72610         writeable to group or other and (2) is intended to have a special
72611         mode bit that is set or cleared.  In such a case, the directory
72612         should be neither group- nor other-writeable until the special
72613         mode bits are right.
72614
72615 2007-01-31  Eric Blake  <ebb9@byu.net>
72616
72617         * modules/mountlist (Depends-on): Add strstr.
72618
72619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72620         bug.
72621         * modules/string (Makefile.am): Remove redundant replacement.
72622         * modules/regex (Depends-on): Add mempcpy.
72623
72624 2007-01-31  Bruno Haible  <bruno@clisp.org>
72625
72626         New module description field 'Link'.
72627         * gnulib-tool (func_usage): Document --extract-link-directive.
72628         (sed_extract_prog): Recognize 'Link' directive.
72629         (func_get_link_directive): New function.
72630         (func_import): Show summary of link directives.
72631         Handle --extract-link-directive option.
72632         * modules/acl (Link): New section.
72633         * modules/clock-time (Link): New section.
72634         * modules/euidaccess (Link): New section.
72635         * modules/gettext (Link): New section.
72636         * modules/iconv (Link): New section.
72637         * modules/lock (Link): New section.
72638         * modules/nanosleep (Link): New section.
72639         * modules/readline (Link): New section.
72640
72641 2007-01-27  Bruno Haible  <bruno@clisp.org>
72642
72643         Enforce the use of gnulib modules for unportable <string.h> functions.
72644         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72645         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72646         (gl_HEADER_STRING_H_BODY): Require it.
72647         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72648         the symbol XYZ to one that gives a link error.
72649         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72650         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72651         * modules/mempcpy (configure.ac): Likewise.
72652         * modules/memrchr (configure.ac): Likewise.
72653         * modules/stpcpy (configure.ac): Likewise.
72654         * modules/stpncpy (configure.ac): Likewise.
72655         * modules/strcase (configure.ac): Likewise.
72656         * modules/strcasestr (configure.ac): Likewise.
72657         * modules/strchrnul (configure.ac): Likewise.
72658         * modules/strdup (configure.ac): Likewise.
72659         * modules/strndup (configure.ac): Likewise.
72660         * modules/strnlen (configure.ac): Likewise.
72661         * modules/strpbrk (configure.ac): Likewise.
72662         * modules/strsep (configure.ac): Likewise.
72663         * modules/strstr (configure.ac): Likewise.
72664         * modules/strtok_r (configure.ac): Likewise.
72665
72666 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72667
72668         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72669
72670 2007-01-30  Jim Meyering  <jim@meyering.net>
72671
72672         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72673
72674 2007-01-29  Bruno Haible  <bruno@clisp.org>
72675
72676         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72677         * lib/execute.c: Likewise.
72678         * lib/pipe.c: Likewise.
72679         * lib/printf-args.h: Likewise.
72680         * lib/printf-args.c: Likewise.
72681         * lib/printf-parse.c: Likewise.
72682         * lib/vasnprintf.c: Likewise.
72683
72684 2007-01-29  Eric Blake  <ebb9@byu.net>
72685
72686         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72687         declaration.
72688
72689 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * lib/strptime.h (strptime): Use 'restrict' for args where
72692         POSIX requires this.
72693         * lib/strptime.c (strptime): Likewise.
72694         Change license notice from LGPL to GPL, since gnulib-tool will
72695         change this as needed.
72696         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72697         defined.
72698         Include "strptime.h" first, to check interface.
72699         Do not #undef _LIBC and _NL_CURRENT.
72700         Do not include <stdlib.h>; no longer needed.
72701         Include "time_r.h" and declare ptime_locale_status
72702         only if _LIBC is not defined.
72703         (__P): Remove unused macro.
72704         (match_string): Bring back glibc version, but use it only if _LIBC
72705         is defined.
72706         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72707         Remove unnecessary assertion and abort() call.
72708         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72709         * m4/strptime.m4: Fix serial number comment.
72710         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72711         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72712         (Depends-on): Add time_r.
72713
72714 2007-01-29  Bruno Haible  <bruno@clisp.org>
72715
72716         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72717         strptime.
72718         * modules/strptime (Depends-on): Add stdbool.
72719         * lib/strptime.h: Include <time.h> always. Add comments.
72720
72721 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72722
72723         * modules/strptime: New file.
72724         * lib/strptime.h: New file.
72725         * lib/strptime.c: New file.
72726         * m4/strptime.m4: New file.
72727
72728 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72729
72730         * MODULES.html.sh: New module mpsort.
72731         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72732
72733         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72734         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72736         All uses changed.
72737         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72738         All uses changed.
72739         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72740         to _Restrict_.
72741         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72742         the parameter matches the prototype.
72743
72744 2007-01-28  Jim Meyering  <jim@meyering.net>
72745
72746         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72747         sys/time.h here, reverting that part of the previous patch:
72748         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72749
72750 2007-01-28  Bruno Haible  <bruno@clisp.org>
72751
72752         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72753         value of $(SYS_TIME_H).
72754         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72755         remove it conditionally, too. [added by Jim Meyering]
72756         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72757         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72758         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72759         GETTIMEOFDAY_REPLACEMENT to 1.
72760
72761 2007-01-28  Bruno Haible  <bruno@clisp.org>
72762
72763         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72764         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72765         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72766         Set UNISTD_H instead of UNISTD_H2.
72767         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72768
72769 2007-01-28  Bruno Haible  <bruno@clisp.org>
72770
72771         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72772         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72773
72774 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72775
72776         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72777         (func_create_testdir): Ensure C locale for `grep' and `tr'
72778         character ranges.
72779         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72780         ACLOCAL_AMFLAGS parsing state machine.
72781
72782 2007-01-27  Bruno Haible  <bruno@clisp.org>
72783
72784         * modules/unistr/base: Update.
72785
72786 2007-01-27  Bruno Haible  <bruno@clisp.org>
72787
72788         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72789         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72790         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72791         modules/unistr/u32-mbtouc.
72792         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72793         * lib/unistr.h: Update.
72794         * lib/linebreak.c: Update.
72795         * modules/unistr/u32-mbtouc: Renamed from
72796         modules/unistr/u32-mbtouc-safe.
72797         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72798         * lib/unistr.h: Update.
72799         * lib/unistr/u32-to-u8.c: Update.
72800         * lib/unistr/u32-to-u16.c: Update.
72801
72802 2007-01-27  Bruno Haible  <bruno@clisp.org>
72803
72804         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72805         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72806         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72807         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72808         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72809         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72810         modules/unistr/u16-mbtouc.
72811         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72812         * lib/unistr.h: Update.
72813         * lib/linebreak.c: Update.
72814         * modules/linebreak: Update.
72815         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72816         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72817         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72818         * modules/unistr/u16-mbtouc: Renamed from
72819         modules/unistr/u16-mbtouc-safe.
72820         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72821         * lib/unistr.h: Update.
72822         * lib/unistr/u16-to-u8.c: Update.
72823         * modules/unistr/u16-to-u8: Update.
72824         * lib/unistr/u16-to-u32.c: Update.
72825         * modules/unistr/u16-to-u32: Update.
72826
72827 2007-01-27  Bruno Haible  <bruno@clisp.org>
72828
72829         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72830         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72831         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72832         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72833         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72834         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72835         modules/unistr/u8-mbtouc.
72836         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72837         * lib/unistr.h: Update.
72838         * lib/striconveh.c: Update.
72839         * modules/striconveh: Update.
72840         * lib/linebreak.c: Update.
72841         * modules/linebreak: Update.
72842         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72843         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72844         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72845         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72846         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72847         * lib/unistr.h: Update.
72848         * lib/striconveh.c: Update.
72849         * modules/striconveh: Update.
72850         * lib/unistr/u8-to-u16.c: Update.
72851         * modules/unistr/u8-to-u16: Update.
72852         * lib/unistr/u8-to-u32.c: Update.
72853         * modules/unistr/u8-to-u32: Update.
72854
72855 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72856
72857         Sync from Libtool.
72858         * lib/argz.c: Do not include strings.h nor memory.h, include
72859         string.h unconditionally.  Patch by Simon Josefsson.
72860
72861 2007-01-27  Bruno Haible  <bruno@clisp.org>
72862
72863         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72864         from gl_HEADER_STRING_H_BODY.
72865         (gl_HEADER_STRING_H_BODY): Require it.
72866         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72867         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72868         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72869         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72871         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72873         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72874         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72877         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72878         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72879         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72880         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72881
72882 2007-01-27  Bruno Haible  <bruno@clisp.org>
72883
72884         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72885         check_PROGRAMS into noinst_PROGRAMS.
72886         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72887         check_PROGRAMS in this case.
72888         (func_import): Set for_test to false.
72889         (func_create_testdir): Set for_test to true.
72890
72891 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72892             Bruno Haible  <bruno@clisp.org>
72893
72894         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72895         (Depends-on): Add string.
72896         (Includes): Use <string.h> instead of strcasestr.h.
72897         * modules/string (Makefile.am): Also substitute the value of
72898         REPLACE_STRCASESTR.
72899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72900         assume strcasestr is declared in <string.h> not <strings.h>. Also
72901         set REPLACE_STRCASESTR.
72902         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72903         REPLACE_STRCASESTR.
72904         * lib/strcasestr.h: Remove file.
72905         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72906         * lib/string_.h (strcasestr): New declaration.
72907
72908 2007-01-27  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/string_.h: Use 'extern'.
72911
72912 2007-01-27  Jim Meyering  <jim@meyering.net>
72913
72914         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72915         of set-but-not-used local, "q".
72916
72917         * lib/mempcpy.c: Include <config.h> before <string.h>.
72918         This fixes a compilation error on HP-UX, due to the system's
72919         "restrict"-using mempcpy prototype.
72920
72921 2007-01-26  Bruno Haible  <bruno@clisp.org>
72922
72923         Small optimization.
72924         * lib/javacomp.c: Include c-strstr.h.
72925          (is_envjavac_gcj): Use c_strstr instead of strstr.
72926         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72927
72928 2007-01-26  Bruno Haible  <bruno@clisp.org>
72929
72930         * MODULES.html.sh (Unicode string functions): Add the new modules.
72931
72932         * modules/uniconv/u32-strconv-to-locale: New file.
72933         * lib/uniconv/u32-strconv-to-locale.c: New file.
72934
72935         * modules/uniconv/u16-strconv-to-locale: New file.
72936         * lib/uniconv/u16-strconv-to-locale.c: New file.
72937
72938         * modules/uniconv/u8-strconv-to-locale: New file.
72939         * lib/uniconv/u8-strconv-to-locale.c: New file.
72940
72941         * modules/uniconv/u32-strconv-from-locale: New file.
72942         * lib/uniconv/u32-strconv-from-locale.c: New file.
72943
72944         * modules/uniconv/u16-strconv-from-locale: New file.
72945         * lib/uniconv/u16-strconv-from-locale.c: New file.
72946
72947         * modules/uniconv/u8-strconv-from-locale: New file.
72948         * lib/uniconv/u8-strconv-from-locale.c: New file.
72949
72950         * modules/uniconv/u32-strconv-to-enc: New file.
72951         * lib/uniconv/u32-strconv-to-enc.c: New file.
72952         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72953         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72954
72955         * modules/uniconv/u16-strconv-to-enc: New file.
72956         * lib/uniconv/u16-strconv-to-enc.c: New file.
72957         * lib/uniconv/u-strconv-to-enc.h: New file.
72958         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72959         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72960
72961         * modules/uniconv/u8-strconv-to-enc: New file.
72962         * lib/uniconv/u8-strconv-to-enc.c: New file.
72963         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72964         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72965
72966         * modules/uniconv/u32-strconv-from-enc: New file.
72967         * lib/uniconv/u32-strconv-from-enc.c: New file.
72968         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72969         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72970
72971         * modules/uniconv/u16-strconv-from-enc: New file.
72972         * lib/uniconv/u16-strconv-from-enc.c: New file.
72973         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72974         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72975
72976         * modules/uniconv/u8-strconv-from-enc: New file.
72977         * lib/uniconv/u8-strconv-from-enc.c: New file.
72978         * lib/uniconv/u-strconv-from-enc.h: New file.
72979         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72980         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72981
72982         * modules/uniconv/u32-conv-from-enc: New file.
72983         * lib/uniconv/u32-conv-from-enc.c: New file.
72984         * modules/uniconv/u32-conv-from-enc-tests: New file.
72985         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72986
72987         * modules/uniconv/u16-conv-from-enc: New file.
72988         * lib/uniconv/u16-conv-from-enc.c: New file.
72989         * lib/uniconv/u-conv-from-enc.h: New file.
72990         * modules/uniconv/u16-conv-from-enc-tests: New file.
72991         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72992
72993         * modules/uniconv/u8-conv-from-enc: New file.
72994         * lib/uniconv/u8-conv-from-enc.c: New file.
72995         * modules/uniconv/u8-conv-from-enc-tests: New file.
72996         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72997
72998         * modules/uniconv/base: New file.
72999         * lib/uniconv.h: New file.
73000
73001 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * doc/gnulib-tool.texi (Initial import): Update to match current
73004         behavior with strdup module.
73005         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73006         * lib/memmem.h: Remove; all uses removed.  This is now done
73007         by <string.h>.
73008         * lib/mempcpy.h: Likewise.
73009         * lib/memrchr.h: Likewise.
73010         * lib/stpcpy.h: Likewise.
73011         * lib/stpncpy.h: Likewise.
73012         * lib/strcase.h: Likewise.
73013         * lib/strchrnul.h: Likewise.
73014         * lib/strdup.h: Likewise.
73015         * lib/strndup.h: Likewise.
73016         * lib/strnlen.h: Likewise.
73017         * lib/strpbrk.h: Likewise.
73018         * lib/strsep.h: Likewise.
73019         * lib/strstr.h: Likewise.
73020         * lib/strtok_r.h: Likewise.
73021         * lib/string_.h: New file.
73022         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73023         Rely on <string.h> instead.
73024         * lib/canon-host.c: Likewise.
73025         * lib/chdir-long.c: Likewise.
73026         * lib/concatpath.c: Likewise.
73027         * lib/exclude.c: Likewise.
73028         * lib/fchdir.c: Likewise.
73029         * lib/getaddrinfo.c: Likewise.
73030         * lib/getcwd.c: Likewise.
73031         * lib/getsubopt.c: Likewise.
73032         * lib/glob.c: Likewise.
73033         * lib/hard-locale.c: Likewise.
73034         * lib/iconvme.c: Likewise.
73035         * lib/javacomp.c: Likewise.
73036         * lib/mempcpy.c: Likewise.
73037         * lib/memrchr.c: Likewise.
73038         * lib/regex_internal.h: Likewise.
73039         * lib/stpncpy.c: Likewise.
73040         * lib/strcasecmp.c: Likewise.
73041         * lib/strchrnul.c: Likewise.
73042         * lib/strdup.c: Likewise.
73043         * lib/striconv.c: Likewise.
73044         * lib/striconveh.c: Likewise.
73045         * lib/striconveha.c: Likewise.
73046         * lib/strncasecmp.c: Likewise.
73047         * lib/strndup.c: Likewise.
73048         * lib/strnlen.c: Likewise.
73049         * lib/strsep.c: Likewise.
73050         * lib/strstr.c: Likewise.
73051         * lib/strtok_r.c: Likewise.
73052         * lib/userspec.c: Likewise.
73053         * lib/w32spawn.h: Likewise.
73054         * lib/xstrndup.c: Likewise.
73055         * lib/mountlist.c (strstr): Remove decl.
73056         * m4/string_h.m4: New file.
73057         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73058         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73059         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73060         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73061         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73062         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73063         Set REPLACE_STRCASECMP if necessary.
73064         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73065         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73066         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73067         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73068         HAVE_DECL_STRDUP if necessary.
73069         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73070         since gl_FUNC_STRNDUP does that now.
73071         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73072         Check for decl here...
73073         (gl_PREREQ_STRNLEN): ... not here.
73074         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73075         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73076         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73077         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73078         necessary.
73079         * modules/string: New file.
73080         * modules/memmem (Files): Remove special-purpose include file.
73081         (Depends-on): Add string.
73082         (Include): Include <string.h>, not the removed file.
73083         * modules/mempcpy: Likewise.
73084         * modules/memrchr: Likewise.
73085         * modules/stpcpy: Likewise.
73086         * modules/stpncpy: Likewise.
73087         * modules/strcase: Likewise.
73088         * modules/strchrnul: Likewise.
73089         * modules/strdup: Likewise.
73090         * modules/strndup: Likewise.
73091         * modules/strnlen: Likewise.
73092         * modules/strpbrk: Likewise.
73093         * modules/strsep: Likewise.
73094         * modules/strstr: Likewise.
73095         * modules/strtok_r: Likewise.
73096         * tests/test-dirname.c: Don't include "strdup.h", since
73097         <string.h> now suffices.
73098         * tests/test-memmem.c: Don't include "memmem.h", since
73099         <string.h> now suffices.
73100
73101 2007-01-25  Bruno Haible  <bruno@clisp.org>
73102
73103         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73104         *resultp is 0.
73105
73106         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73107         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73108         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73109         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73110
73111         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73112         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73113         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73114         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73115         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73116         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73117
73118 2007-01-24  Bruno Haible  <bruno@clisp.org>
73119
73120         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73121         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73122         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73123         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73124         gl_FUNC_FTS_CORE.
73125         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73126         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73127         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73128         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73129         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73130         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73131         gl_FUNC_FCHOWNAT.
73132         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73133         gl_FUNC_STRFTIME.
73134         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73135         Reported by Ralf Wildenhues.
73136
73137 2007-01-24  Bruno Haible  <bruno@clisp.org>
73138
73139         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73140         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73141         gl_GETADDRINFO.
73142         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73143         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73144         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73145
73146 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73147
73148         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73149         Don't use 'exit'; just return from 'main'.
73150         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73151
73152         * lib/fnmatch_.h: Readjust white space and comments to match
73153         glibc, to avoid spurious diffs.
73154
73155 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73158         2004-12-01 change by Jakub Jelinek, since this code won't compile
73159         if !LIBC.  Problem reported by Bob Proulx.
73160
73161 2007-01-23  Bruno Haible  <bruno@clisp.org>
73162
73163         * lib/striconveh.c: Include c-strcaseeq.h.
73164         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73165         * modules/striconveh (Depends-on): Add c-strcaseeq.
73166
73167 2007-01-23  Bruno Haible  <bruno@clisp.org>
73168
73169         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73170
73171         * modules/c-strcaseeq: New file.
73172         * lib/c-strcaseeq.h: New file.
73173
73174         * modules/streq: New file.
73175         * lib/streq.h: New file.
73176
73177 2007-01-23  Bruno Haible  <bruno@clisp.org>
73178
73179         * modules/striconveha-tests: New file.
73180         * tests/test-striconveha.c: New file.
73181
73182         * lib/striconveha.h: Include <stdbool.h>.
73183         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73184         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73185         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73186         (mem_iconveha): New function.
73187         (str_iconveha_notranslit): Renamed from str_iconveha.
73188         (str_iconveha): New function.
73189         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73190         c-strcase.
73191
73192 2007-01-23  Bruno Haible  <bruno@clisp.org>
73193
73194         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73195         encodings without forgiving before trying any encoding with handler.
73196         (str_iconveha): Try all encodings without forgiving before trying any
73197         encoding with handler.
73198
73199 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73200
73201         Import the following changes from libc.
73202
73203         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73204
73205         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73206
73207         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73208
73209         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73210         normal_bracket label.
73211
73212         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73213
73214         [BZ #361]
73215         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73216         to normal_bracket after fetching the next character.
73217
73218 2007-01-22  Bruno Haible  <bruno@clisp.org>
73219
73220         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73221         argument.
73222         * lib/striconveh.c (iconv_carefully_1): New function.
73223         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73224         argument.
73225         (str_cd_iconveh): Update.
73226         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73227         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73228         * tests/test-striconveh.c (MAGIC): New macro.
73229         (new_offsets): New function.
73230         (main): Test call with and without offsets.
73231
73232 2007-01-22  Bruno Haible  <bruno@clisp.org>
73233
73234         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73235         * modules/sys_select (Makefile.am): Likewise.
73236         * modules/sys_socket (Makefile.am): Likewise.
73237         * modules/sys_time (Makefile.am): Likewise.
73238
73239 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * modules/gettimeofday (License): Change from GPL to LGPL, since
73242         gettimeofday is a library function.
73243
73244 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73245
73246         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73247
73248 2007-01-21  Bruno Haible  <bruno@clisp.org>
73249
73250         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73251
73252 2007-01-21  Bruno Haible  <bruno@clisp.org>
73253
73254         * modules/striconveha: New file.
73255         * lib/striconveha.h: New file.
73256         * lib/striconveha.c: New file.
73257         * MODULES.html.sh (Internationalization functions): Add striconveha.
73258         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73259         string.
73260         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73261
73262 2007-01-21  Bruno Haible  <bruno@clisp.org>
73263
73264         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73265         * lib/striconveh.c (str_iconveh): Likewise.
73266
73267 2007-01-21  Bruno Haible  <bruno@clisp.org>
73268
73269         * lib/striconveh.h (mem_iconveh): New declaration.
73270         * lib/striconveh.c (mem_iconveh): New function.
73271         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73272
73273 2007-01-21  Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73276
73277         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73278         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73279         original result buffer.
73280         (str_cd_iconveh): Update.
73281         * tests/test-striconveh.c (main): Update.
73282
73283         * lib/striconv.h (mem_cd_iconv): Change specification.
73284         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73285         result buffer.
73286         (str_cd_iconv): Update.
73287         * tests/test-striconv.c (main): Update.
73288
73289 2007-01-21  Bruno Haible  <bruno@clisp.org>
73290
73291         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73292
73293 2007-01-20  Jim Meyering  <jim@meyering.net>
73294
73295         * lib/userspec.c (parse_with_separator): If a user or group string
73296         starts with "+", skip the corresponding name-to-ID look-up, since
73297         such a look-up must fail: user and group names may not include "+".
73298
73299 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73300
73301         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73302         since we now assume the sys_time module.
73303         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73304         check for sys/time.h; no longer needed.
73305         * modules/poll (Depends-on): Depend on sys_time.
73306
73307 2007-01-18  Bruno Haible  <bruno@clisp.org>
73308
73309         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73310         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73311
73312         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73313         gettimeofday.
73314
73315         * tests/test-gettimeofday.c: Include <time.h>.
73316         (dummy): Remove variable.
73317
73318         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73319         gl_HEADER_SYS_TIME_H.
73320         (gl_HEADER_SYS_TIME_H): New macro.
73321
73322         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73323         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73324         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73325         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73326         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73327         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73328         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73329         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73330         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73331         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73332         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73333
73334         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73335         last change; it caused a compilation error when cross-compiling to
73336         Cygwin.
73337
73338 2007-01-18  Jim Meyering  <jim@meyering.net>
73339
73340         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73341         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73342         than the race-prone "test -d sys || mkdir sys".
73343         (configure.ac): Use AC_PROG_MKDIR_P.
73344         * modules/sys_select: Likewise.
73345         * modules/sys_socket: Likewise.
73346         * modules/sys_time: Likewise.
73347
73348 2007-01-18  Eric Blake  <ebb9@byu.net>
73349
73350         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73351         replace gettimeofday.
73352         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73353         name, to avoid infinite recursion.
73354
73355 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73358         module sys_time.
73359         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73360         assume timespec.h defines struct timeval.
73361         * lib/settime.c: Likewise.
73362         * lib/utimens.c: Likewise.
73363         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73364         since we now assume the gettimeofday module.
73365         * lib/tempname.c (__gen_tempname): Likewise.
73366         * lib/gettimeofday.h: Remove.
73367         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73368         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73369         Include <time.h>, for 'time()'.
73370         (localtime_buffer_addr): Also use this workaround if
73371         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73372         to simplify the uses.  All uses changed.
73373         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73374         that #undef is inside {}, and 'const' follows type name consistently.
73375         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73376         (gettimeofday): Do not use the maximum possible value for
73377         tv->tv_usec, since that might break usages other than ls.c.
73378         Instead, we'll leave ls.c alone.  This undoes today's patch
73379         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73380         we've never observed the problem but might as well keep the
73381         canary.
73382         * lib/nanosleep.c: Include timespec.h first, for interface check.
73383         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73384         now assume the sys_time module.
73385         * lib/tempname.c: Likewise.
73386         * lib/timespec.h: Likewise.
73387         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73388         needed.
73389         * lib/strftime.c: Likewise.
73390         * lib/timespec.h: Likewise.
73391         * lib/posixtm.c: Include posixtm.h first, for interface check.
73392         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73393         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73394         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73395         * lib/sys_time_.h: New file.
73396         * lib/timespec.h (struct timespec): Use long int, not long.
73397         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73398         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73399         Remove obsolescent call to AC_HEADER_TIME.
73400         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73402         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73403         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73404         Likewise.
73405         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73406         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73408         into the sys_time module.  Check for gettimeofday just once.
73409         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73410         for gettimeofday signature to just check the signature.  Merely
73411         compile it, since linking doesn't test signature.  Improve test for
73412         whether gettimeofday.o is actually needed.
73413         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73414         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73415         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73416         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73417         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73418         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73419         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73420         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73421         than worrying about sys/time.h.
73422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73423         Don't bother worrying about TIME_WITH_SYS_TIME.
73424         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73425         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73426         * m4/sys_time_h.m4: New file.
73427         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73428         Don't include sys/time.h.  Return from main rather than exiting.
73429         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73430         all uses changed.
73431         * modules/gethrxtime (Depends-on): Add sys_time.
73432         * modules/gettime (Depends-on): Likewise.
73433         * modules/gettimeofday (Depends-on): Likewise.
73434         * modules/nanosleep (Depends-on): Likewise.
73435         * modules/settime (Depends-on): Likewise.
73436         * modules/tempname (Depends-on): Likewise.
73437         * modules/utimens (Depends-on): Likewise.
73438         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73439         (Include): Change back to <sys/time.h>.
73440         (Maintainer): Add self.
73441         * modules/sys_time: New file.
73442         * modules/tempname (Depends-on): Add gettimeofday.
73443         * tests/test-gettimeofday.c: Include <sys/time.h>
73444         rather than gettimeofday.h.
73445
73446 2007-01-17  Bruno Haible  <bruno@clisp.org>
73447
73448         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73449         the license default to GPL.
73450         (func_create_testdir): Don't complain if a module is LGPL and its
73451         tests module depends on GPLed modules.
73452
73453 2007-01-17  Bruno Haible  <bruno@clisp.org>
73454
73455         * lib/gettimeofday.c (gettimeofday): Add code for the case
73456         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73457         maximum possible value for tv->tv_usec, rather than the minimum one.
73458
73459 2005-10-08  Martin Lambers  <marlam@marlam.de>
73460 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73461 2007-01-16  Bruno Haible  <bruno@clisp.org>
73462
73463         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73464         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73465         gl_FUNC_GETTIMEOFDAY.
73466         (Include): Add gettimeofday.h.
73467         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73468         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73469         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73470         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73471         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73472         * lib/gettimeofday.h: New file.
73473         * lib/gettimeofday.c: Include <sys/timeb.h>.
73474         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73475         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73476         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73477         fall back on time().
73478
73479         * tests/test-gettimeofday.c: New file.
73480         * modules/gettimeofday-tests: New file.
73481
73482 2007-01-16  Eric Blake  <ebb9@byu.net>
73483
73484         * modules/fnmatch (Depends-on): Depend on wchar.
73485         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73486         * m4/fnmatch.m4: Likewise.
73487         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73488         * m4/mbchar.m4: Likewise.
73489         * modules/mbswidth (Depends-on): Depend on wchar.
73490         * lib/mbswidth.c: Assume <wchar.h>.
73491         * m4/mbswidth.m4: Likewise.
73492         * modules/quotearg (Depends-on): Depend on wchar.
73493         * lib/quotearg.c: Assume <wchar.h>.
73494         * m4/quotearg.m4: Likewise.
73495         * modules/regex (Depends-on): Depend on wchar.
73496         * lib/regex_internal.h: Assume <wchar.h>.
73497         * m4/regex.m4: Likewise.
73498         * modules/stdint (Depends-on): Depend on wchar.
73499         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73500         * m4/stdint.m4: Likewise.
73501         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73502         * modules/strftime (Depends-on): Depend on wchar.
73503         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73504         * modules/strtol (Depends-on): Depend on wchar.
73505         * lib/strtol.c: Assume <wchar.h>.
73506         * modules/wcwidth (Depends-on): Depend on wchar.
73507         * lib/wcwidth.h: Assume <wchar.h>.
73508         * m4/wcwidth.m4: Likewise.
73509
73510 2007-01-16  Bruno Haible  <bruno@clisp.org>
73511
73512         * modules/csharpexec-script: New, created from...
73513         * modules/csharpexec: ... this.
73514
73515 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73516
73517         * modules/javaexec-script: New, created from...
73518         * modules/javaexec: ... this.
73519
73520 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73521
73522         * modules/poll (Dependencies): Add sys_select.
73523
73524 2007-01-15  Jim Meyering  <jim@meyering.net>
73525
73526         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73527         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73528         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73529         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73530
73531 2007-01-15  Bruno Haible  <bruno@clisp.org>
73532
73533         * modules/striconveh: New file.
73534         * lib/striconveh.h: New file.
73535         * lib/striconveh.c: New file.
73536         * MODULES.html.sh (Internationalization functions): Add striconveh.
73537
73538         * modules/striconveh-tests: New file.
73539         * tests/test-striconveh.c: New file.
73540
73541 2007-01-15  Bruno Haible  <bruno@clisp.org>
73542
73543         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73544         not from GNU libiconv or GNU libc.
73545
73546 2007-01-15  Bruno Haible  <bruno@clisp.org>
73547
73548         * doc/gnulib-intro.texi (Copyright): Explain the different license
73549         terms for module descriptions, autoconf macros, tests, documentation.
73550
73551 2007-01-14  Bruno Haible  <bruno@clisp.org>
73552
73553         * modules/striconv-tests: New file.
73554         * tests/test-striconv.c: New file.
73555
73556 2007-01-14  Bruno Haible  <bruno@clisp.org>
73557
73558         * modules/iconv-tests: New file.
73559         * tests/test-iconv.c: New file.
73560
73561 2007-01-14  Bruno Haible  <bruno@clisp.org>
73562
73563         * gnulib-tool (func_get_license): For test modules, use the license of
73564         the main module.
73565
73566 2007-01-14  Bruno Haible  <bruno@clisp.org>
73567
73568         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73569         if iconv is found to exist.
73570
73571 2007-01-14  Bruno Haible  <bruno@clisp.org>
73572
73573         * modules/c-ctype-tests: New file.
73574         * tests/test-c-ctype.c: New file.
73575
73576 2007-01-14  Bruno Haible  <bruno@clisp.org>
73577
73578         * modules/binary-io-tests: New file.
73579         * tests/test-binary-io.sh: New file.
73580         * tests/test-binary-io.c: New file.
73581
73582 2007-01-14  Bruno Haible  <bruno@clisp.org>
73583
73584         * modules/array-oset-tests: New file.
73585         * tests/test-array_oset.c: New file.
73586
73587 2007-01-14  Bruno Haible  <bruno@clisp.org>
73588
73589         * modules/array-list-tests: New file.
73590         * tests/test-array_list.c: New file.
73591
73592 2007-01-14  Bruno Haible  <bruno@clisp.org>
73593
73594         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73595         and make.
73596         Reported by Simon Josefsson in
73597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73598
73599 2007-01-14  Bruno Haible  <bruno@clisp.org>
73600
73601         * modules/allocsa-tests: New file.
73602         * tests/test-allocsa.c: New file.
73603
73604 2007-01-14  Bruno Haible  <bruno@clisp.org>
73605
73606         * modules/fchdir (Depends-on): Add absolute-header.
73607         * modules/unistd (Depends-on): Likewise.
73608
73609 2006-12-30  Bruno Haible  <bruno@clisp.org>
73610
73611         * modules/fchdir: New file.
73612         * modules/unistd (Files): Add lib/unistd_.h.
73613         (Makefile.am): Generate unistd.h from unistd_.h.
73614         * lib/fchdir.c: New file.
73615         * lib/dirent_.h: New file.
73616         * lib/unistd_.h: New file.
73617         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73618         * m4/fchdir.m4: New file.
73619         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73620         (gl_HEADER_UNISTD): Invoke it.
73621         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73622         function.
73623         * lib/backupfile.c (opendir, closedir): Undefine.
73624         * lib/chown.c (open, close): Undefine.
73625         * lib/clean-temp.c (open, close): Undefine.
73626         * lib/copy-file.c (open, close): Undefine.
73627         * lib/execute.c (open, close): Undefine.
73628         * lib/fsusage.c (open, close): Undefine.
73629         * lib/gc-gnulib.c (open, close): Undefine.
73630         * lib/getcwd.c (opendir, closedir): Undefine.
73631         * lib/glob.c (opendir, closedir): Undefine.
73632         * lib/javacomp.c (open, close): Undefine.
73633         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73634         * lib/openat-proc.c (open, close): Undefine.
73635         * lib/pagealign_alloc.c (open, close): Undefine.
73636         * lib/pipe.c (open, close): Undefine.
73637         * lib/progreloc.c (open, close): Undefine.
73638         * lib/savedir.c (opendir, closedir): Undefine.
73639         * lib/utime.c (open, close): Undefine.
73640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73641
73642 2007-01-10  Bruno Haible  <bruno@clisp.org>
73643
73644         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73645
73646 2007-01-12  Eric Blake  <ebb9@byu.net>
73647
73648         Provide a robust <wchar.h>.  Further simplifications are now
73649         possible in other modules, but not included here.
73650         * modules/wchar: New module.
73651         * m4/wchar.m4: New file.
73652         * lib/wchar_.h: Likewise.
73653         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73654         of the new module.
73655         * MODULES.html.sh (Extended multibyte and wide character utilities):
73656         New section.
73657
73658 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73661         to a reasonable default for memory allocation.
73662         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73663         file system that reports garbage st_size values for symlinks.
73664         Problem reported by Liyang Hu.
73665
73666 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73667
73668         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73669         Emacs .#* auto-save files).
73670
73671 2007-01-11  Bruno Haible  <bruno@clisp.org>
73672
73673         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73674         directory.
73675
73676 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         Use @...@ consistently in lib/wctype_.h.
73679         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73680         on it being set to 1 or 0.
73681         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73682         go back to AC_SUBSTing it.
73683         * modules/wctype (Makefile.am): Undo previous change.
73684
73685 2007-01-10  Eric Blake  <ebb9@byu.net>
73686
73687         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73688         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73689         * modules/wctype (Makefile.am): Likewise.
73690         Reported by Chris McGuire.
73691
73692 2007-01-10  Jim Meyering  <jim@meyering.net>
73693
73694         fts.c: a small readability/maintainability improvement
73695         * lib/fts.c (fts_read): Make this code slightly more readable and
73696         maintainable by hoisting the "sp->fts_cur = p" assignments to
73697         immediately follow the statements that set P.  Derived from
73698         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73699
73700 2007-01-10  Eric Blake  <ebb9@byu.net>
73701
73702         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73703         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73705         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73706         Reported by Chris McGuire.
73707
73708 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73709
73710         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73711         in sed script.
73712
73713 2007-01-09  Bruno Haible  <bruno@clisp.org>
73714
73715         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73716         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73717         variables.
73718         (func_module): Use them.
73719
73720 2007-01-09  Bruno Haible  <bruno@clisp.org>
73721
73722         * modules/unistr/base: New file.
73723         * lib/unistr.h: New file.
73724
73725         * modules/unistr/u8-to-u16: New file.
73726         * lib/unistr/u8-to-u16.c: New file.
73727
73728         * modules/unistr/u8-to-u32: New file.
73729         * lib/unistr/u8-to-u32.c: New file.
73730
73731         * modules/unistr/u16-to-u8: New file.
73732         * lib/unistr/u16-to-u8.c: New file.
73733
73734         * modules/unistr/u16-to-u32: New file.
73735         * lib/unistr/u16-to-u32.c: New file.
73736
73737         * modules/unistr/u32-to-u8: New file.
73738         * lib/unistr/u32-to-u8.c: New file.
73739
73740         * modules/unistr/u32-to-u16: New file.
73741         * lib/unistr/u32-to-u16.c: New file.
73742
73743         * modules/unistr/u8-check: New file.
73744         * modules/unistr/u16-check: New file.
73745         * modules/unistr/u32-check: New file.
73746         * lib/unistr/u8-check.c: New file.
73747         * lib/unistr/u16-check.c: New file.
73748         * lib/unistr/u32-check.c: New file.
73749
73750         * modules/unistr/u8-chr: New file.
73751         * modules/unistr/u16-chr: New file.
73752         * modules/unistr/u32-chr: New file.
73753         * lib/unistr/u8-chr.c: New file.
73754         * lib/unistr/u16-chr.c: New file.
73755         * lib/unistr/u32-chr.c: New file.
73756
73757         * modules/unistr/u8-cmp: New file.
73758         * modules/unistr/u16-cmp: New file.
73759         * modules/unistr/u32-cmp: New file.
73760         * lib/unistr/u8-cmp.c: New file.
73761         * lib/unistr/u16-cmp.c: New file.
73762         * lib/unistr/u32-cmp.c: New file.
73763
73764         * modules/unistr/u8-cpy: New file.
73765         * modules/unistr/u16-cpy: New file.
73766         * modules/unistr/u32-cpy: New file.
73767         * lib/unistr/u8-cpy.c: New file.
73768         * lib/unistr/u16-cpy.c: New file.
73769         * lib/unistr/u32-cpy.c: New file.
73770         * lib/unistr/u-cpy.h: New file.
73771
73772         * modules/unistr/u8-cpy-alloc: New file.
73773         * modules/unistr/u16-cpy-alloc: New file.
73774         * modules/unistr/u32-cpy-alloc: New file.
73775         * lib/unistr/u8-cpy-alloc.c: New file.
73776         * lib/unistr/u16-cpy-alloc.c: New file.
73777         * lib/unistr/u32-cpy-alloc.c: New file.
73778         * lib/unistr/u-cpy-alloc.h: New file.
73779
73780         * modules/unistr/u8-endswith: New file.
73781         * modules/unistr/u16-endswith: New file.
73782         * modules/unistr/u32-endswith: New file.
73783         * lib/unistr/u8-endswith.c: New file.
73784         * lib/unistr/u16-endswith.c: New file.
73785         * lib/unistr/u32-endswith.c: New file.
73786         * lib/unistr/u-endswith.h: New file.
73787
73788         * modules/unistr/u8-mblen: New file.
73789         * modules/unistr/u16-mblen: New file.
73790         * modules/unistr/u32-mblen: New file.
73791         * lib/unistr/u8-mblen.c: New file.
73792         * lib/unistr/u16-mblen.c: New file.
73793         * lib/unistr/u32-mblen.c: New file.
73794
73795         * modules/unistr/u8-mbtouc: New file.
73796         * modules/unistr/u16-mbtouc: New file.
73797         * modules/unistr/u32-mbtouc: New file.
73798         * lib/unistr/u8-mbtouc.c: New file.
73799         * lib/unistr/u16-mbtouc.c: New file.
73800         * lib/unistr/u32-mbtouc.c: New file.
73801
73802         * modules/unistr/u8-mbtouc-safe: New file.
73803         * modules/unistr/u16-mbtouc-safe: New file.
73804         * modules/unistr/u32-mbtouc-safe: New file.
73805         * lib/unistr/u8-mbtouc-safe.c: New file.
73806         * lib/unistr/u16-mbtouc-safe.c: New file.
73807         * lib/unistr/u32-mbtouc-safe.c: New file.
73808
73809         * modules/unistr/u8-move: New file.
73810         * modules/unistr/u16-move: New file.
73811         * modules/unistr/u32-move: New file.
73812         * lib/unistr/u8-move.c: New file.
73813         * lib/unistr/u16-move.c: New file.
73814         * lib/unistr/u32-move.c: New file.
73815         * lib/unistr/u-move.h: New file.
73816
73817         * modules/unistr/u8-next: New file.
73818         * modules/unistr/u16-next: New file.
73819         * modules/unistr/u32-next: New file.
73820         * lib/unistr/u8-next.c: New file.
73821         * lib/unistr/u16-next.c: New file.
73822         * lib/unistr/u32-next.c: New file.
73823
73824         * modules/unistr/u8-prev: New file.
73825         * modules/unistr/u16-prev: New file.
73826         * modules/unistr/u32-prev: New file.
73827         * lib/unistr/u8-prev.c: New file.
73828         * lib/unistr/u16-prev.c: New file.
73829         * lib/unistr/u32-prev.c: New file.
73830
73831         * modules/unistr/u8-set: New file.
73832         * modules/unistr/u16-set: New file.
73833         * modules/unistr/u32-set: New file.
73834         * lib/unistr/u8-set.c: New file.
73835         * lib/unistr/u16-set.c: New file.
73836         * lib/unistr/u32-set.c: New file.
73837         * lib/unistr/u-set.h: New file.
73838
73839         * modules/unistr/u8-startswith: New file.
73840         * modules/unistr/u16-startswith: New file.
73841         * modules/unistr/u32-startswith: New file.
73842         * lib/unistr/u8-startswith.c: New file.
73843         * lib/unistr/u16-startswith.c: New file.
73844         * lib/unistr/u32-startswith.c: New file.
73845         * lib/unistr/u-startswith.h: New file.
73846
73847         * modules/unistr/u8-stpcpy: New file.
73848         * modules/unistr/u16-stpcpy: New file.
73849         * modules/unistr/u32-stpcpy: New file.
73850         * lib/unistr/u8-stpcpy.c: New file.
73851         * lib/unistr/u16-stpcpy.c: New file.
73852         * lib/unistr/u32-stpcpy.c: New file.
73853         * lib/unistr/u-stpcpy.h: New file.
73854
73855         * modules/unistr/u8-stpncpy: New file.
73856         * modules/unistr/u16-stpncpy: New file.
73857         * modules/unistr/u32-stpncpy: New file.
73858         * lib/unistr/u8-stpncpy.c: New file.
73859         * lib/unistr/u16-stpncpy.c: New file.
73860         * lib/unistr/u32-stpncpy.c: New file.
73861         * lib/unistr/u-stpncpy.h: New file.
73862
73863         * modules/unistr/u8-strcat: New file.
73864         * modules/unistr/u16-strcat: New file.
73865         * modules/unistr/u32-strcat: New file.
73866         * lib/unistr/u8-strcat.c: New file.
73867         * lib/unistr/u16-strcat.c: New file.
73868         * lib/unistr/u32-strcat.c: New file.
73869         * lib/unistr/u-strcat.h: New file.
73870
73871         * modules/unistr/u8-strchr: New file.
73872         * modules/unistr/u16-strchr: New file.
73873         * modules/unistr/u32-strchr: New file.
73874         * lib/unistr/u8-strchr.c: New file.
73875         * lib/unistr/u16-strchr.c: New file.
73876         * lib/unistr/u32-strchr.c: New file.
73877
73878         * modules/unistr/u8-strcmp: New file.
73879         * modules/unistr/u16-strcmp: New file.
73880         * modules/unistr/u32-strcmp: New file.
73881         * lib/unistr/u8-strcmp.c: New file.
73882         * lib/unistr/u16-strcmp.c: New file.
73883         * lib/unistr/u32-strcmp.c: New file.
73884
73885         * modules/unistr/u8-strcpy: New file.
73886         * modules/unistr/u16-strcpy: New file.
73887         * modules/unistr/u32-strcpy: New file.
73888         * lib/unistr/u8-strcpy.c: New file.
73889         * lib/unistr/u16-strcpy.c: New file.
73890         * lib/unistr/u32-strcpy.c: New file.
73891         * lib/unistr/u-strcpy.h: New file.
73892
73893         * modules/unistr/u8-strcspn: New file.
73894         * modules/unistr/u16-strcspn: New file.
73895         * modules/unistr/u32-strcspn: New file.
73896         * lib/unistr/u8-strcspn.c: New file.
73897         * lib/unistr/u16-strcspn.c: New file.
73898         * lib/unistr/u32-strcspn.c: New file.
73899         * lib/unistr/u-strcspn.h: New file.
73900
73901         * modules/unistr/u8-strdup: New file.
73902         * modules/unistr/u16-strdup: New file.
73903         * modules/unistr/u32-strdup: New file.
73904         * lib/unistr/u8-strdup.c: New file.
73905         * lib/unistr/u16-strdup.c: New file.
73906         * lib/unistr/u32-strdup.c: New file.
73907         * lib/unistr/u-strdup.h: New file.
73908
73909         * modules/unistr/u8-strlen: New file.
73910         * modules/unistr/u16-strlen: New file.
73911         * modules/unistr/u32-strlen: New file.
73912         * lib/unistr/u8-strlen.c: New file.
73913         * lib/unistr/u16-strlen.c: New file.
73914         * lib/unistr/u32-strlen.c: New file.
73915         * lib/unistr/u-strlen.h: New file.
73916
73917         * modules/unistr/u8-strmblen: New file.
73918         * modules/unistr/u16-strmblen: New file.
73919         * modules/unistr/u32-strmblen: New file.
73920         * lib/unistr/u8-strmblen.c: New file.
73921         * lib/unistr/u16-strmblen.c: New file.
73922         * lib/unistr/u32-strmblen.c: New file.
73923
73924         * modules/unistr/u8-strmbtouc: New file.
73925         * modules/unistr/u16-strmbtouc: New file.
73926         * modules/unistr/u32-strmbtouc: New file.
73927         * lib/unistr/u8-strmbtouc.c: New file.
73928         * lib/unistr/u16-strmbtouc.c: New file.
73929         * lib/unistr/u32-strmbtouc.c: New file.
73930
73931         * modules/unistr/u8-strncat: New file.
73932         * modules/unistr/u16-strncat: New file.
73933         * modules/unistr/u32-strncat: New file.
73934         * lib/unistr/u8-strncat.c: New file.
73935         * lib/unistr/u16-strncat.c: New file.
73936         * lib/unistr/u32-strncat.c: New file.
73937         * lib/unistr/u-strncat.h: New file.
73938
73939         * modules/unistr/u8-strncmp: New file.
73940         * modules/unistr/u16-strncmp: New file.
73941         * modules/unistr/u32-strncmp: New file.
73942         * lib/unistr/u8-strncmp.c: New file.
73943         * lib/unistr/u16-strncmp.c: New file.
73944         * lib/unistr/u32-strncmp.c: New file.
73945
73946         * modules/unistr/u8-strncpy: New file.
73947         * modules/unistr/u16-strncpy: New file.
73948         * modules/unistr/u32-strncpy: New file.
73949         * lib/unistr/u8-strncpy.c: New file.
73950         * lib/unistr/u16-strncpy.c: New file.
73951         * lib/unistr/u32-strncpy.c: New file.
73952         * lib/unistr/u-strncpy.h: New file.
73953
73954         * modules/unistr/u8-strnlen: New file.
73955         * modules/unistr/u16-strnlen: New file.
73956         * modules/unistr/u32-strnlen: New file.
73957         * lib/unistr/u8-strnlen.c: New file.
73958         * lib/unistr/u16-strnlen.c: New file.
73959         * lib/unistr/u32-strnlen.c: New file.
73960         * lib/unistr/u-strnlen.h: New file.
73961
73962         * modules/unistr/u8-strpbrk: New file.
73963         * modules/unistr/u16-strpbrk: New file.
73964         * modules/unistr/u32-strpbrk: New file.
73965         * lib/unistr/u8-strpbrk.c: New file.
73966         * lib/unistr/u16-strpbrk.c: New file.
73967         * lib/unistr/u32-strpbrk.c: New file.
73968         * lib/unistr/u-strpbrk.h: New file.
73969
73970         * modules/unistr/u8-strrchr: New file.
73971         * modules/unistr/u16-strrchr: New file.
73972         * modules/unistr/u32-strrchr: New file.
73973         * lib/unistr/u8-strrchr.c: New file.
73974         * lib/unistr/u16-strrchr.c: New file.
73975         * lib/unistr/u32-strrchr.c: New file.
73976
73977         * modules/unistr/u8-strspn: New file.
73978         * modules/unistr/u16-strspn: New file.
73979         * modules/unistr/u32-strspn: New file.
73980         * lib/unistr/u8-strspn.c: New file.
73981         * lib/unistr/u16-strspn.c: New file.
73982         * lib/unistr/u32-strspn.c: New file.
73983         * lib/unistr/u-strspn.h: New file.
73984
73985         * modules/unistr/u8-strstr: New file.
73986         * modules/unistr/u16-strstr: New file.
73987         * modules/unistr/u32-strstr: New file.
73988         * lib/unistr/u8-strstr.c: New file.
73989         * lib/unistr/u16-strstr.c: New file.
73990         * lib/unistr/u32-strstr.c: New file.
73991         * lib/unistr/u-strstr.h: New file.
73992
73993         * modules/unistr/u8-strtok: New file.
73994         * modules/unistr/u16-strtok: New file.
73995         * modules/unistr/u32-strtok: New file.
73996         * lib/unistr/u8-strtok.c: New file.
73997         * lib/unistr/u16-strtok.c: New file.
73998         * lib/unistr/u32-strtok.c: New file.
73999         * lib/unistr/u-strtok.h: New file.
74000
74001         * modules/unistr/u8-uctomb: New file.
74002         * modules/unistr/u16-uctomb: New file.
74003         * modules/unistr/u32-uctomb: New file.
74004         * lib/unistr/u8-uctomb.c: New file.
74005         * lib/unistr/u16-uctomb.c: New file.
74006         * lib/unistr/u32-uctomb.c: New file.
74007
74008         * MODULES.html.sh (Unicode string functions): Add the new modules.
74009
74010 2007-01-08  Bruno Haible  <bruno@clisp.org>
74011
74012         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74013         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74014         subdirectories.
74015
74016 2007-01-08  Karl Berry  <karl@gnu.org>
74017
74018         * doc/error.texi: mention that main() fns must set program_name
74019         when progname is used.
74020
74021 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74024         WCTYPE_H is empty, for the benefit of builds from non-distclean
74025         directories.  Problem reported by Eric Blake in
74026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74027
74028 2007-01-08  Bruno Haible  <bruno@clisp.org>
74029
74030         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74031         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74032         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74033         PROVIDE_CANONICALIZE_FILENAME_MODE.
74034         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74035
74036 2007-01-08  Bruno Haible  <bruno@clisp.org>
74037
74038         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74039         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74040         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74041         * lib/fts.c: Likewise.
74042         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74043
74044 2006-12-25  Bruno Haible  <bruno@clisp.org>
74045
74046         * modules/utf8-ucs4-safe: New file.
74047         * lib/utf8-ucs4-safe.h: New file.
74048         * lib/unistr/utf8-ucs4-safe.c: New file.
74049
74050         * modules/utf16-ucs4-safe: New file.
74051         * lib/utf16-ucs4-safe.h: New file.
74052         * lib/unistr/utf16-ucs4-safe.c: New file.
74053
74054         * MODULES.html.sh (Unicode string functions): Add the new modules.
74055
74056 2007-01-08  Bruno Haible  <bruno@clisp.org>
74057
74058         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74059         (Depends-on): Add unitypes.
74060         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74061         (u8_mbtouc_aux): Move out to separate file.
74062         (u8_mbtouc): Use ucs4_t, uint8_t types.
74063         * lib/unistr/utf8-ucs4.c: New file.
74064
74065         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74066         (Depends-on): Add unitypes.
74067         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74068         (u16_mbtouc_aux): Move out to separate file.
74069         (u16_mbtouc): Use ucs4_t, uint16_t types.
74070         * lib/unistr/utf16-ucs4.c: New file.
74071
74072         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74073         (Depends-on): Add unitypes.
74074         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74075         (u8_uctomb_aux): Move out to separate file.
74076         (u8_uctomb): Use ucs4_t, uint8_t types.
74077         * lib/unistr/ucs4-utf8.c: New file.
74078
74079         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74080         (Depends-on): Add unitypes.
74081         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74082         (u16_uctomb_aux): Move out to separate file.
74083         (u16_uctomb): Use ucs4_t, uint16_t types.
74084         * lib/unistr/ucs4-utf16.c: New file.
74085
74086 2006-12-25  Bruno Haible  <bruno@clisp.org>
74087
74088         * modules/unitypes: New file.
74089         * lib/unitypes.h: New file.
74090         * MODULES.html.sh (func_all_modules): New section "Unicode string
74091         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74092         this section. Add unitypes.
74093
74094 2007-01-08  Bruno Haible  <bruno@clisp.org>
74095
74096         Avoid variable names that conflict with those from libtool.
74097         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74098         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74099         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74100         library_names_spec to acl_library_names_spec, hardcode_* to
74101         acl_hardcode_*.
74102         Reported by Ralf Wildenhues.
74103
74104 2007-01-08  Bruno Haible  <bruno@clisp.org>
74105
74106         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74107         definition.
74108         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74109         definition.
74110         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74111         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74112         definition.
74113         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74114         definition.
74115         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74116         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74117         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74118         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74119         definition.
74120         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74121         definition.
74122         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74123         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74124         GC_USE_<algorithm>.
74125         * lib/gc-libgcrypt.c: Likewise.
74126         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74127         * modules/gc-arctwo (configure.ac): Likewise.
74128         * modules/gc-des (configure.ac): Likewise.
74129         * modules/gc-hmac-md5 (configure.ac): Likewise.
74130         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74131         * modules/gc-md2 (configure.ac): Likewise.
74132         * modules/gc-md4 (configure.ac): Likewise.
74133         * modules/gc-md5 (configure.ac): Likewise.
74134         * modules/gc-random (configure.ac): Likewise.
74135         * modules/gc-rijndael (configure.ac): Likewise.
74136         * modules/gc-sha1 (configure.ac): Likewise.
74137
74138 2007-01-08  Bruno Haible  <bruno@clisp.org>
74139
74140         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74141         macro definition.
74142         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74143         definition.
74144         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74145         definition.
74146         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74147         * modules/fcntl-safer (configure.ac): Likewise.
74148         * modules/fopen-safer (configure.ac): Likewise.
74149         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74150         GNULIB_FWRITEERROR macro definition.
74151
74152 2007-01-08  Bruno Haible  <bruno@clisp.org>
74153
74154         * m4/gnulib-common.m4: New file.
74155         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74156         (func_get_filelist): Add m4/gnulib-common.m4.
74157
74158 2007-01-08  Bruno Haible  <bruno@clisp.org>
74159
74160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74161         command.
74162
74163 2007-01-08  Jim Meyering  <jim@meyering.net>
74164
74165         Use a more robust test for a "can't happen" condition.
74166         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74167         narrowed the st_size value.  Presuming the "can't happen" condition
74168         is true, that narrowing could conceivably convert an invalid st_size
74169         value into a valid one.  Instead, use a change based on Matthew
74170         Woehlke's original patch.
74171
74172         Slight readability improvement: use an assert-like macro
74173         in place of literal "abort ()" uses.
74174         * lib/fts.c (fts_assert): Define.
74175         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74176         Use this macro instead of a bare 'abort'.
74177
74178 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74181         simply work around them.
74182         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74183         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74184         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74185         declaring.
74186         Don't bother to define as macros, since the standard doesn't require it.
74187         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74188         longer worry about IRIX 5.3.
74189         (HAVE_WCTYPE_CTMP_BUG): Remove.
74190
74191 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74192
74193         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74194         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74195         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74196         Problems reported by Georg Schwarz for IRIX 5.3.
74197
74198         * gnulib-tool (autoconf_minversion): Take the maximum version number
74199         found, not the minimum.  Problem reported by James Youngman.
74200
74201 2007-01-03  Karl Berry  <karl@gnu.org>
74202
74203         * doc/error.texi: new file, explaining interaction with progname.
74204         * doc/gnulib.texi: include it.  Update copyright.
74205
74206 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74207
74208         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74209         AC_CANONICAL_HOST, to improve autobuild outputs.
74210
74211 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74212             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74213
74214         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74215         sockets, server sockets, and other file descriptors.  Count errors
74216         to compute the return value.  Reorder the code a bit to be easier
74217         to follow.  Don't set event bits that were not requested (except
74218         POLLERR and POLLHUP).
74219
74220 2007-01-01  Bruno Haible  <bruno@clisp.org>
74221
74222         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74223
74224 2007-01-03  Jim Meyering  <jim@meyering.net>
74225
74226         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74227
74228 2007-01-02  Bruno Haible  <bruno@clisp.org>
74229
74230         * modules/settime (Include): Require timespec.h.
74231         * modules/nanosleep (Include): Likewise.
74232
74233 2007-01-01  Bruno Haible  <bruno@clisp.org>
74234
74235         * gnulib-tool (func_emit_copyright_notice): Bump year.
74236         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74237
74238 2007-01-01  Bruno Haible  <bruno@clisp.org>
74239
74240         Improve support for OpenBSD.
74241         * build-aux/config.rpath (libname_spec): Export.
74242         (library_names_spec): New variable. Export.
74243         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74244         library_names_spec from the config.rpath output. Locate shared library
74245         through the name pattern in library_names_spec.
74246
74247 2007-01-01  Eric Blake  <ebb9@byu.net>
74248
74249         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74250
74251 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74254         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74255         assume the C locale, and avoid an "eval" that could cause trouble.
74256         Problem with SORT reported by Bob Proulx.
74257
74258         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74259         Define.  Trivial patch from Henning Nielsen Lund, originally
74260         sent to bug-grep@gnu.org today.
74261
74262 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74265         struct stat.  Problem reported by Henning Nielsen Lund.
74266         * lib/acl.c: Include acl.h first, to check interface.  Don't
74267         bother to include sys/types.h and sys/stat.h again.
74268
74269 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74270
74271         Import the following change from libc; problem reported by
74272         Sven Verdoolaege.
74273
74274         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74275
74276         [BZ #1373]
74277         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74278
74279 2006-12-28  Jim Meyering  <jim@meyering.net>
74280
74281         * build-aux/announce-gen: Do not assume that the package
74282         builds any of tar.gz, tar.bz2, and .xdelta files.
74283         Suggestion from Simon Josefsson.
74284
74285 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74286
74287         * modules/announce-gen: New file.
74288
74289 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74290
74291         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74292         handles its gotchas now.
74293         * lib/mbswidth.c: Likewise.
74294         * lib/wcwidth.h: Likewise.
74295         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74296         and iswcntrl; the wctype module does this stuff now.
74297         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74299         * modules/mbchar (Depends-on): Add wctype.
74300         * modules/mbswidth (Depends-on): Likewise.
74301         * modules/wcwidth (Depends-on): Likewise.
74302
74303 2006-12-27  Eric Blake  <ebb9@byu.net>
74304
74305         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74306         module uses more than what <wctype.h> is required to provide.
74307
74308 2006-12-26  Eric Blake  <ebb9@byu.net>
74309
74310         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74311
74312 2006-12-26  Eric Blake  <ebb9@byu.net>
74313
74314         * modules/absolute-header: New module.
74315         * modules/fcntl (Depends-on): Depend on it.
74316         * modules/inttypes (Depends-on): Likewise.
74317         * modules/stdint (Depends-on): Likewise.
74318         * modules/sys_stat (Depends-on): Likewise.
74319         * modules/wctype (Depends-on): Likewise.
74320         * MODULES.html.sh (Support for building libraries and
74321         executables): Document it.
74322
74323 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * gnulib-tool (SED): Remove, undoing previous change.
74326         The problem was that it broke coreutils on Solaris, because
74327         "sed --posix" leaked into a makefile.
74328         (sed): New alias, if 'alias' and GNU sed.
74329
74330 2006-12-24  Jim Meyering  <jim@meyering.net>
74331
74332         Work around an fchownat bug in glibc-2.4:
74333         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74334         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74335         in spite of the -P option.
74336         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74337         New macros.
74338         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74339         * modules/openat (Files): Add lib/fchownat.c.
74340         * lib/openat.c (fchownat): Don't define here.  Move to...
74341         * lib/fchownat.c: ...this new file.
74342
74343 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         Fix bug reported by Bruno Haible in
74346         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74347         where quotearg.c didn't compile on Mac OS X 10.2 because it
74348         lacks <wchar.h> and wint_t.
74349         * lib/wctype_.h (__wctype_wint_t): New type.
74350         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74351         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74352         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74353         Arg is now of type __wctype_wint_t, not wint_t.
74354         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74355         substitute HAVE_WINT_T.
74356         * modules/wctype (Files): Add m4/wint_t.m4.
74357         (wctype.h): Substitute HAVE_WINT_T.
74358
74359 2006-12-23  Bruno Haible  <bruno@clisp.org>
74360
74361         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74362
74363 2006-12-23  Bruno Haible  <bruno@clisp.org>
74364
74365         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74366         S_ISLNK.
74367         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74368         mingw.
74369
74370 2006-12-22  Bruno Haible  <bruno@clisp.org>
74371
74372         * lib/copy-file.c: Include acl.h.
74373         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74374         Close the file descriptors only after being done with copy_acl.
74375         * modules/copy-file (Depends-on): Add acl.
74376
74377 2006-12-22  Bruno Haible  <bruno@clisp.org>
74378
74379         * gnulib-tool (SED): New variable.
74380         Use $SED instead of sed everywhere.
74381
74382 2006-12-22  Bruno Haible  <bruno@clisp.org>
74383
74384         * modules/no-c++: New file.
74385         * m4/no-c++.m4: New file.
74386         * MODULES.html.sh (Support for building libraries and executables):
74387         Add no-c++.
74388
74389 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74390
74391         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74392         Include <limits.h>, and use its INT_MAX to rewrite the
74393         j loop so that it does not overflow 'int'.  Problem reported by
74394         Ralf Wildenhues in
74395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74396         Play it safe by shifting left by 1 rather than multiplying by 2,
74397         as GCC is less likely to optimize this away when the value
74398         is signed (when it assumes overflow leads to undefined behavior).
74399         Also, don't assume time_t uses two's complement.
74400
74401 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74402
74403         * MODULES.html.sh: New module wctype.
74404         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74405         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74406         <wctype.h>, since the new wctype module should fix this.
74407         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74408         the wctype module should arrange for it.
74409         * lib/regex_internal.h: Likewise.
74410         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74411         since the wctype module should handle this now.
74412         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74413         * modules/fnmatch (Depends-on): Add wctype.
74414         * modules/quotearg (Depends-on): Likewise.
74415         * modules/regex (Depends-on): Likewise.
74416
74417 2006-12-19  Bruno Haible  <bruno@clisp.org>
74418
74419         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74420         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74421
74422 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74423
74424         * modules/savewd (Depends-on): Fix dependency on fcntl.
74425
74426 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74427
74428         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74429         conforms to C99, rather than relying on the user's environment
74430         setting of STDINT_H.
74431
74432 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74433         and Eric Blake  <ebb9@byu.net>
74434
74435         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74436         This is more consistent with the other defines here.
74437         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74438         Port to z/OS.  Problem reported by Paul Gilmartin.
74439         Change local vars to use gl_ prefix rather than ac_.
74440         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74441         with other defines.
74442         * modules/double-slash-root: New module.
74443         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74444         (Depends-on): Add double-slash-root.
74445         * MODULES.html.sh (File system functions): Mention new module.
74446
74447 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74450         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74451         This is for the benefit of gzip, which doesn't do i18n.
74452
74453 2006-12-12  Jim Meyering  <jim@meyering.net>
74454
74455         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74456         Reported by Andreas Schwab <schwab@suse.de>.
74457
74458 2006-12-12  Bruno Haible  <bruno@clisp.org>
74459
74460         Merge these changes.
74461         2006-09-05  Bruno Haible  <bruno@clisp.org>
74462         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74463         iconv_alloc succeeded.
74464         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74465         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74466         test for " && dest " at the end - dest is always != NULL there. Call
74467         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74468         with 2xNULL arguments, also to flush the state storage. Handle the
74469         IRIX iconv behaviour. Realloc the final result, to throw away unused
74470         memory.
74471
74472 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74473
74474         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74475         and fchmodat unconditionally, since glibc 2.4 has them.
74476         Problem reported by Arkadiusz Miskiewicz.
74477
74478 2006-12-10  Bruno Haible  <bruno@clisp.org>
74479
74480         * gnulib-tool (func_import): Show the include files only for those
74481         modules that are copied and specified.
74482         Reported by Karl Berry.
74483
74484 2006-12-08  Jim Meyering  <jim@meyering.net>
74485
74486         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74487         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74488
74489         * build-aux/announce-gen: Add two new options, both optional:
74490         --bootstrap-tools=TOOL_LIST
74491               a comma-separated list of tools, e.g.,
74492               autoconf,automake,bison,gnulib
74493         --gnulib-snapshot-date=DATE
74494               if gnulib is in the bootstrap tool list,
74495               then report this as the snapshot date.
74496               If not specified, use the current date/time.
74497               If you specify a date here, be sure it's UTC.
74498
74499 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74500
74501         * tests/test-argp-2.sh: Fix test to match actual output.
74502         (func_compare): Fix sed script to be portable.
74503
74504 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74507         workaround for this case.  It is not autoconfigured now; offhand
74508         it's hard to see how to autoconfigure it.
74509
74510 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74511
74512         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74513         a directory that is about to be chowned.  Such a directory's
74514         initial file permissions should permit the owner only and this
74515         should not be changed until after the chown, since the group and
74516         other bits would be incorrect if they granted permission before
74517         the chown.
74518
74519         Fix porting problem for iswctype reported by Georg Schwarz in:
74520         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74521         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74522         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74523         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74524         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74525
74526 2006-12-03  Jim Meyering  <jim@meyering.net>
74527
74528         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74529         p->fts_statp may not yet be defined.
74530         (fts_read): Instead, set it in the caller, once p->fts_statp is
74531         sure to be defined, and corresponds to a top-level directory.
74532         This bug made du -x fail.  Here's the coreutils test case:
74533         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74534         Reported by Mike Frysinger.
74535
74536 2006-12-01  Jim Meyering  <jim@meyering.net>
74537
74538         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74539         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74540         Reported by Simon Josefsson.
74541
74542 2006-11-30  Jim Meyering  <jim@meyering.net>
74543
74544         * m4/warning.m4: Use the all-permissive copyright notice
74545         recommended by RMS (rather than LGPL).
74546         * m4/vararrays.m4: Likewise.
74547         * m4/flexmember.m4: Likewise.
74548
74549 2006-11-29  Bruno Haible  <bruno@clisp.org>
74550
74551         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74552         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74553         using +=.
74554         Reported by Simon Josefsson <simon@josefsson.org>.
74555
74556 2006-11-28  James Youngman <jay@gnu.org>
74557
74558         * README: Advise users that they might find the bug-gnulib@gnu.org
74559         and autotools-announce@gnu.org mailing lists useful.
74560
74561 2006-11-28  Bruno Haible  <bruno@clisp.org>
74562
74563         * m4/ptrdiff_max.m4: Remove file.
74564
74565 2006-11-21  Bruno Haible  <bruno@clisp.org>
74566
74567         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74568         _AC_COMPUTE_INT.
74569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74570         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74571         _AC_COMPUTE_INT.
74572         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74573         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74574         _AC_COMPUTE_INT.
74575         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74576
74577 2006-11-28  Jim Meyering  <jim@meyering.net>
74578
74579         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74580         warning from "gcc -Wshadow" about shadowing the builtin.
74581
74582 2006-11-27  Bruno Haible  <bruno@clisp.org>
74583
74584         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74585         _AC_COMPUTE_INT.
74586         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74587
74588 2006-11-27  Bruno Haible  <bruno@clisp.org>
74589             Paul Eggert  <eggert@cs.ucla.edu>
74590
74591         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74592
74593 2006-11-26  Bruno Haible  <bruno@clisp.org>
74594
74595         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74596         noinst_LTLIBRARIES.
74597
74598 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74599             Bruno Haible  <bruno@clisp.org>
74600
74601         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74602         if compiling with "gcc -ansi".
74603
74604 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         Fix some incompatibilities with gcc -ansi -pedantic.
74607         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74608         if compiling pedantically with GCC, unless it's C99 or later.
74609         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74610         it mishandles gcc -ansi -pedantic as well.
74611         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74612         if gcc -pedantic.
74613         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74614         initializers for struct if -pedantic, unless it's C99 or later.
74615
74616 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74617
74618         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74619         Don't close an fd more than once. Identical atimes indicate
74620         success, not failure.
74621
74622 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74623
74624         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74625
74626 2006-11-23  Jim Meyering  <jim@meyering.net>
74627
74628         * build-aux/announce-gen: New file.  From coreutils.
74629
74630 2006-11-22  Jim Meyering  <jim@meyering.net>
74631
74632         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74633         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74634         (fts_read): Use a temporary to narrow the overused st_size member
74635         before using it in a switch statement.  Reported by Matthew Woehlke.
74636
74637         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74638         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74639
74640 2006-11-20  Bruno Haible  <bruno@clisp.org>
74641
74642         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74643         changequote instead of pairs of brackets.
74644         Reported by Andreas Schwab <schwab@suse.de>.
74645
74646 2006-11-21  Jim Meyering  <jim@meyering.net>
74647
74648         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74649         so as to remain compatible with older compilers.
74650         Patch from Michael Deutschmann.
74651
74652 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74653
74654         * MODULES.html.sh (File system functions): Add openat.
74655
74656         * lib/openat.h (rpl_fstatat): New macro, if
74657         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74658         (fstatat): Define to rpl_fstatat under the same conditions,
74659         unless COMPILING_FSTATAT.
74660         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74661         seems to have the bug.
74662         * lib/fstatat.c: New file.
74663         * modules/openat (Files): Add it.
74664
74665 2006-11-20  Bruno Haible  <bruno@clisp.org>
74666
74667         * Makefile: New file.
74668
74669 2006-11-20  Jim Meyering  <jim@meyering.net>
74670
74671         The beginnings of syntax-related checks for gnulib.
74672         * lib/Makefile: New file.
74673         * lib/t-idcache: New script.  Ensure that the two halves of
74674         idcache.c stay in sync.
74675
74676         * lib/idcache.c: Adjust comments in user- and group- portions to
74677         be more accurate, and to be consistent with one another.
74678
74679 2006-11-20  Jim Meyering  <jim@meyering.net>
74680
74681         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74682         continue using the flexible array member (thus, this module performs
74683         half as many malloc calls), with the addition that...
74684         (getgroup, getuser): Consistently record a non-match via an empty
74685         "name" string, and map an empty string match to a NULL return value.
74686         * modules/idcache (Depends-on): Re-add flexmember.
74687
74688         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74689         (getuidbyname, getgroup, getgidbyname): Likewise.
74690
74691         Use cleaner syntax: NULL rather than 0.
74692         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74693
74694 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74695
74696         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74697         It mishandled the case where the group was missing.
74698         Problem reported by Greg Schafer.
74699         * modules/idcache: Likewise.
74700
74701 2006-11-18  Jim Meyering  <jim@meyering.net>
74702
74703         * check-module (%exempt_header): Add exception for some
74704         conditionally-included headers.
74705
74706         * modules/i-ring (Depends-on): Add verify.
74707         (License): Change to LGPL.
74708
74709 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74710
74711         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74712         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74713         and inttostr.h.  Use snprintf rather than uinttostr, so that
74714         LGPLed code doesn't depend on GPLed.
74715
74716 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         * modules/inline (License): Change from GPL to LGPL.
74719
74720 2006-11-17  Jim Meyering  <jim@meyering.net>
74721
74722         * modules/d-type (License): Switch to LGPL.
74723
74724 2006-11-15  Bruno Haible  <bruno@clisp.org>
74725
74726         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74727
74728 2006-11-15  Eric Blake  <ebb9@byu.net>
74729
74730         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74731         the module dependency.
74732
74733 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74734             Bruno Haible  <bruno@clisp.org>
74735
74736         * gnulib-tool (func_create_testdir): Add license consistency check.
74737
74738 2006-11-15  Eric Blake  <ebb9@byu.net>
74739
74740         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74741         random "(cached)" in configure output.
74742
74743 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74744
74745         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74746         test for conforming inttypes.h is both announced and cached.
74747
74748         * MODULES.html.sh (seen_modules, seen_files): New variables.
74749         (func_module): Rewrite to use a few less gnulib-tool and sed
74750         invocations.  Avoid a couple of quadratic algorithms for ...
74751         (missed_modules, missed_files): ... these, with ...
74752         (func_append, func_tmpdir): ... these new functions, from
74753         gnulib-tool.  Analogously, install traps for cleanup.
74754
74755         * tests/test-gc.c (main): Remove unused variables.
74756         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74757
74758 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * modules/inttostr (License): Change to LGPL.
74761
74762 2006-11-14  Eric Blake  <ebb9@byu.net>
74763
74764         * modules/tempname (License): Change to LGPL.
74765
74766 2006-11-14  Eric Blake  <ebb9@byu.net>
74767
74768         * doc/functions.texi (Function Portability): *printf functions on
74769         Cygwin now understand all POSIX size specifiers.
74770
74771 2006-11-14  Bruno Haible  <bruno@clisp.org>
74772
74773         * modules/c-ctype (License): Change to LGPL.
74774
74775 2006-11-12  Bruno Haible  <bruno@clisp.org>
74776
74777         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74778         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74779         for GNOME libraries, for which the include files are installed in
74780         subdirectories of $prefix/include.
74781
74782 2006-11-12  Bruno Haible  <bruno@clisp.org>
74783
74784         * m4/lib-link.m4: Require at least autoconf-2.54.
74785         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74786         name to underscores for the --with option.
74787
74788 2006-11-13  Bruno Haible  <bruno@clisp.org>
74789
74790         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74791         the tests directory.
74792         Reported by Ralf Wildenhues.
74793
74794 2006-11-13  Bruno Haible  <bruno@clisp.org>
74795
74796         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74797         (func_emit_initmacro_end): Undo the override here.
74798         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74799         Works around the famous automake error in coreutils.
74800
74801 2006-11-13  Eric Blake  <ebb9@byu.net>
74802
74803         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74804         element, not its node.
74805
74806 2006-11-12  Bruno Haible  <bruno@clisp.org>
74807
74808         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74809         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74810
74811 2006-11-12  Bruno Haible  <bruno@clisp.org>
74812
74813         * gnulib-tool: New option --local-symlink.
74814         (func_usage): Document it.
74815         (lsymbolic): New variable.
74816         (func_import, func_create_testdir): If --symlink was not specified,
74817         test whether --local-symlink was specified and the file comes from
74818         the local_gnulib_dir.
74819
74820 2006-11-12  Bruno Haible  <bruno@clisp.org>
74821
74822         * gnulib-tool (func_ln): New function.
74823         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74824
74825 2006-11-12  Bruno Haible  <bruno@clisp.org>
74826
74827         Finish support for source files in subdirectories.
74828         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74829         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74830         AUTOMAKE_OPTIONS.
74831         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74832
74833 2006-11-12  Bruno Haible  <bruno@clisp.org>
74834
74835         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74836         EXTRA_lib_SOURCES augmentation.
74837         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74838
74839 2006-11-12  Jim Meyering  <jim@meyering.net>
74840
74841         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74842         file descriptors.  This also averts a failure on systems with
74843         native openat support when a traversed directory lacks "x" access.
74844         * lib/fts_.h: Include "i-ring.h"
74845         (struct FTS) [fts_fd_ring]: New member.
74846         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74847         (FCHDIR): Add parentheses.
74848         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74849         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74850         When descending, rather than simply closing the previous
74851         fts_cwd_fd value, push that file descriptor onto the ring.
74852         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74853         (fts_open): Initialize the new fd_ring member.
74854         (fts_close): Clear the ring.
74855         (fts_safe_changedir): When possible, use our new fd_ring to skip
74856         the diropen and fstat and dev/ino comparison that would normally
74857         accompany a virtual `chdir ("..")'.
74858
74859         * modules/fts (Depends-on): Add i-ring.
74860         * modules/i-ring: New module.
74861         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74862         * m4/i-ring.m4: New file.
74863
74864 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74865
74866         * gnulib-tool (func_create_testdir): Fix replacement of
74867         `build-aux' in configure.ac.  Run autotools in gltests
74868         subdirectory.
74869         (func_create_testdir, func_create_megatestdir, test): There is
74870         no need for '--force' in most autotool invocations in a new
74871         tree.  Actually fail the whole test if any of the tools, or the
74872         configure or make stages fail.
74873
74874         Sync from Automake.
74875         * build-aux/gnupload: Revert last change.  Add pointer to upload
74876         instructions of the GNU Maintenance Instructions.
74877         Suggestion by Karl Berry.
74878
74879 2006-11-10  Jim Meyering  <jim@meyering.net>
74880
74881         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74882
74883 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74886         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74887         (bind_textdomain_codeset) [! ENABLE_NLS]:
74888         Evaluate all the arguments.  That way, callers get compatible behavior
74889         if the arguments have side effects.  Also, it avoids some GCC
74890         diagnostics in some cases; Joel E. Denny reported problems when Bison
74891         was configured with --enable-gcc-warnigs.
74892
74893 2006-11-10  Jim Meyering  <jim@meyering.net>
74894
74895         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74896         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74897         account.
74898
74899 2006-11-10  Jim Meyering  <jim@meyering.net>
74900
74901         * modules/inline: New file/module.
74902         * modules/xalloc (Files): Remove m4/inline.m4.
74903         (Depends-on): Add inline, instead.
74904         * modules/oset: Likewise.
74905         * modules/list: Likewise.
74906
74907 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74910         Problem reported by Matthew Woehlke.
74911
74912 2006-11-09  Bruno Haible  <bruno@clisp.org>
74913
74914         * lib/tempname.c (gen_tempname): Remove variant that invokes
74915         __gen_tempname.
74916         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74917         __gen_tempname.
74918
74919 2006-11-08  Bruno Haible  <bruno@clisp.org>
74920
74921         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74922         to 'yes' instead of 'cross-compiling'.
74923
74924 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         * lib/quotearg.h (quotearg_free): New decl.
74927         * lib/quotearg.c (quotearg_free): New function.
74928         (slot0, nslots, slotvec0, slotvec):
74929         Now file-scope so that quotearg_free can get at them.
74930
74931 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74932
74933         Sync from Automake.
74934         * build-aux/gnupload: Add missing 'gnu' to example URL.
74935         Report by Karl Berry.
74936
74937 2006-11-08  Bruno Haible  <bruno@clisp.org>
74938
74939         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74940         Suggested by Paul Eggert.
74941
74942 2006-11-08  Jim Meyering  <jim@meyering.net>
74943
74944         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74945         It's already included if !_LIBC.
74946         (fts_safe_changedir): Add a comment.
74947
74948 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74949
74950         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74951         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74952         Matthew Woehlke.
74953
74954         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74955         definitions up, to avoid colliding with change below.
74956         (static_inline) [HAVE_INLINE]: New macro.
74957         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74958         Provide extern decls when !HAVE_INLINE.  Do not define unless
74959         static_inline is defined, either by us or by xmalloc.c.  Use
74960         static_inline rather than static inline.
74961         (XCALLOC): Optimize sizeof(T) = 1 case.
74962         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74963
74964 2006-11-07  Bruno Haible  <bruno@clisp.org>
74965
74966         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74967         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74968         AC_C_INLINE.
74969         * modules/xalloc (Files): Add m4/inline.m4.
74970
74971 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74972
74973         * README: Fix typo.
74974         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74975         (Miscellanous Notes): ...from this.
74976
74977 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74980         Mention that offsetof should be used instead of sizeof.
74981         From Bruno Haible.
74982
74983 2006-11-07  Bruno Haible  <bruno@clisp.org>
74984
74985         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74986
74987 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74988
74989         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74990         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74991         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74992         (gl_tree_add_before, gl_tree_add_after):
74993         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74994         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74995         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74996         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74997         (gl_linked_add_after, gl_linked_add_at): Likewise.
74998         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74999         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75000         (gl_tree_add_before, gl_tree_add_after): Likewise.
75001         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75002         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75003         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75004
75005 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75006
75007         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75008
75009 2006-11-06  Bruno Haible  <bruno@clisp.org>
75010
75011         * m4/inline.m4: New file.
75012         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75013         * modules/list (Files): Add m4/inline.m4.
75014         * modules/oset (Files): Likewise.
75015
75016 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75017
75018         * lib/idcache.c: Include <stddef.h>, for offsetof.
75019         (struct userid.name): Change from char * to a flexible array member.
75020         All uses changed.
75021         * modules/idcache (Depends-on): Add flexmember.
75022
75023         * MODULES.html.sh (Core language properties): New module flexmember.
75024         * modules/flexmember, m4/flexmember.m4: New files.
75025
75026         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75027         inline functions that are identical with the old xnmalloc_inline,
75028         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75029         that we can avoid some unnecessary integer multiplications and
75030         divisions in the common case where the element size is known at
75031         compile time.
75032         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75033         needed.
75034         (xnboundedmalloc): Remove.
75035         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75036         arguments, for consistency with rest of this header.
75037         (xcharalloc): Rewrite using XNMALLOC.
75038         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75039         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75040         versions have been moved to lib/xalloc.h and renamed to be the
75041         non-*_inline versions.
75042         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75043         and xnrealloc functions, since those functions are now inline and
75044         now call us.
75045         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75046         renaming described above.
75047         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75048         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75049         captures the dependency in AC_C_INLINE.
75050
75051         New module canonicalize-lgpl, proposed by Charles Wilson in
75052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75053         with a few small changes afterwards.
75054         * MODULES.html.sh (File system functions): New module
75055         canonicalize-lgpl.
75056         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75057         and canonicalize_file_name.
75058         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75059         * modules/canonicalize-lgpl: New files.
75060
75061 2006-11-05  Bruno Haible  <bruno@clisp.org>
75062
75063         * gnulib-tool (func_import, func_create_testdir): Create directories
75064         also for files in subdirectories of lib/.
75065
75066 2006-11-05  Bruno Haible  <bruno@clisp.org>
75067
75068         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75069         ANSI C compliant.
75070
75071 2006-11-03  Bruno Haible  <bruno@clisp.org>
75072
75073         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75074         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75075         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75076         (xnboundedmalloc): New inline function.
75077         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75078         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75079         xmalloc.
75080         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75081         xmalloc.
75082         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75083         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75084         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75085         xmalloc.
75086         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75087         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75088         xmalloc.
75089         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75090         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75091         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75092         xmalloc.
75093         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75094         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75095         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75096         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75097         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75098         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75099         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75100
75101 2006-11-03  Bruno Haible  <bruno@clisp.org>
75102
75103         * lib/c-ctype.h [C++]: Define functions without name mangling.
75104         * lib/fwriteerror.h [C++]: Likewise.
75105         * lib/gcd.h [C++]: Likewise.
75106         * lib/linebreak.h [C++]: Likewise.
75107
75108 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75109
75110         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75111         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75112         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75113         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75114         Check for functions and headers just once.
75115         Check for declaration of canonicalize_file_name.
75116         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75117
75118 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75119
75120         * gnulib-tool (func_import): Fix typo in actioncmd.
75121
75122 2006-11-02  Bruno Haible  <bruno@clisp.org>
75123
75124         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75125         newline sequence in the Makefile.am snippet as a space, like "make"
75126         does.
75127         Reported by Roger Persson <perrog@gmail.com>.
75128
75129 2006-11-01  Bruno Haible  <bruno@clisp.org>
75130
75131         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75132         already declared in <string.h>.
75133         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75134
75135 2006-11-01  Bruno Haible  <bruno@clisp.org>
75136
75137         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75138         * lib/strcase.h: Include <string.h>.
75139         (strcasecmp): Define to rpl_strcasecmp here.
75140
75141 2006-11-01  Bruno Haible  <bruno@clisp.org>
75142
75143         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75144
75145 2006-11-01  Eric Blake  <ebb9@byu.net>
75146
75147         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75148
75149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75150
75151 2006-10-29  Bruno Haible  <bruno@clisp.org>
75152
75153         Make it compile in C++ mode.
75154         * lib/full-write.c (full_rw): Add a cast.
75155
75156 2006-11-01  Bruno Haible  <bruno@clisp.org>
75157
75158         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75159         be POSIX compliant.
75160         Reported by Roger Persson <perrog@gmail.com>.
75161
75162 2006-11-01  Eric Blake  <ebb9@byu.net>
75163
75164         * lib/getopt_.h: Fix comments.
75165
75166 2006-10-31  Eric Blake  <ebb9@byu.net>
75167
75168         * modules/tmpdir (Depends-on): Add sys_stat.
75169         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75170         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75171         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75172         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75173         tempname.
75174
75175 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75176
75177         Avoid some C++ diagnostics reported by Bruno Haible.
75178         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75179         xmalloc.
75180         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75181         (struct slotvec): Move to top level.
75182         (quotearg_n_options): Rewrite to avoid xmalloc.
75183         * lib/xalloc.h (xcharalloc): New function.
75184         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75185         [defined __cplusplus]: Add function template that provides result
75186         type propagation.  This part of the change is from Bruno Haible.
75187
75188 2006-10-29  Bruno Haible  <bruno@clisp.org>
75189
75190         Make it compile in C++ mode.
75191         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75192         * lib/strnlen1.c (strnlen1): Cast memchr result.
75193         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75194         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75195         (create_temp_dir): Rename local variable 'template'.
75196         (compile_csharp_using_sscli): Add cast.
75197         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75198         * lib/findprog.c (find_in_path): Likewise.
75199         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75200         * lib/wait-process.c (register_slave_subprocess): Likewise.
75201
75202 2006-10-22  Bruno Haible  <bruno@clisp.org>
75203
75204         * modules/tsearch: New file.
75205         * lib/tsearch.h: New file.
75206         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75207         * m4/tsearch.m4: New file.
75208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75209
75210 2006-10-29  Eric Blake  <ebb9@byu.net>
75211
75212         * lib/arcfour.c: Assume config.h.
75213         * lib/arctwo.c: Likewise.
75214         * lib/base64.c: Likewise.
75215         * lib/check-version.c: Likewise.
75216         * lib/crc.c: Likewise.
75217         * lib/des.c: Likewise.
75218         * lib/gc-gnulib.c: Likewise.
75219         * lib/gc-libgcrypt.c: Likewise.
75220         * lib/gc-pbkdf2-sha1.c: Likewise.
75221         * lib/getaddrinfo.c: Likewise.
75222         * lib/getdelim.c: Likewise.
75223         * lib/getline.c: Likewise.
75224         * lib/hmac-md5.c: Likewise.
75225         * lib/hmac-sha1.c: Likewise.
75226         * lib/iconvme.c: Likewise.
75227         * lib/md2.c: Likewise.
75228         * lib/md4.c: Likewise.
75229         * lib/memxor.c: Likewise.
75230         * lib/read-file.c: Likewise.
75231         * lib/readline.c: Likewise.
75232         * lib/rijndael-alg-fst.c: Likewise.
75233         * lib/rijndael-api-fst.c: Likewise.
75234         * lib/xgetdomainname.c: Likewise.
75235
75236 2006-10-28  Eric Blake  <ebb9@byu.net>
75237
75238         * lib/xstrndup.c: Assume config.h.
75239
75240 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75243         stat-macros.h is now for our own macros, whereas stat_h is for
75244         macros in the <sys/stat.h> name space.
75245         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75246         (STAT_MACROS_H): Remove.
75247         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75248         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75249         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75250         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75251         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75252         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75253         Move these macros to ...
75254         * lib/stat_.h: here.  Don't include stat-macros.h.
75255         * lib/canonicalize.c: Don't include stat-macros.h.
75256         * lib/chown.c: Likewise.
75257         * lib/euidaccess.c: Likewise.
75258         * lib/file-type.c: Likewise.
75259         * lib/filemode.c: Likewise.
75260         * lib/glob.c: Likewise.
75261         * lib/isapipe.c: Likewise.
75262         * lib/lchown.c: Likewise.
75263         * lib/lstat.c: Likewise.
75264         * lib/mkdir-p.c: Likewise.
75265         * lib/rmdir.c: Likewise.
75266         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75267         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75268         unless mkdir isn't declared, to speed up 'configure'.
75269         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75270         would define all the S_* symbols.
75271         * modules/canonicalize (Depends-on):
75272         Depend on sys_stat, not stat-macros.
75273         * modules/chown: Likewise.
75274         * modules/euidaccess: Likewise.
75275         * modules/filemode: Likewise.
75276         * modules/file-type: Likewise.
75277         * modules/glob: Likewise.
75278         * modules/isapipe: Likewise.
75279         * modules/lchown: Likewise.
75280         * modules/lstat: Likewise.
75281         * modules/mkancesdirs: Likewise.
75282         * modules/rmdir: Likewise.
75283         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75284         * modules/modechange: Likewise.
75285         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75286         (configure.ac): Remove gl_STAT_MACROS.
75287         * modules/sys_stat (Depends-on): Remove stat-macros.
75288
75289 2006-10-27  Bruno Haible  <bruno@clisp.org>
75290
75291         * m4/signed.m4: Remove file.
75292         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75293         invocation.
75294         * modules/vasnprintf (Files): Remove m4/signed.m4.
75295
75296 2006-10-27  Bruno Haible  <bruno@clisp.org>
75297
75298         Update to GNU gettext 0.16.
75299         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75300         m4/inttypes-h.m4, m4/signed.m4.
75301         * m4/gettext.m4: Update to GNU gettext 0.16.
75302         * m4/intl.m4: New file, from GNU gettext.
75303         * m4/intldir.m4: New file, from GNU gettext.
75304         * config/srclist.txt: Update
75305
75306 2006-10-27  Eric Blake  <ebb9@byu.net>
75307
75308         * MODULES.html.sh: Document tempname.
75309         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75310         dependencies.
75311         (Files): Move lib/tempname.c...
75312         * modules/tempname: ...to this new module.
75313         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75314         (gl_PREREQ_TEMPNAME): Move...
75315         * m4/tempname.m4: ...to this new file.
75316         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75317         * modules/sys_stat (Depends-on): Add stat-macros.
75318         * lib/stat_.h (includes): Pick up stat macros.
75319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75320         if stat macros are broken.
75321         * lib/tempname.c (includes): No need to include "stat-macros.h".
75322         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75323         (direxists, __path_search) [!_LIBC]: Don't compile these in
75324         gnulib; the tmpdir module covers that.
75325         * lib/tempname.h: New file.
75326
75327 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         * COPYING: Explain how gnulib-tool converts licence headers.
75330         Almost all wording by Eric Blake.
75331
75332 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         * lib/mbchar.h (is_basic_table): Make read-only.
75335         * lib/mbchar.c (is_basic_table): Likewise.
75336         Reported by John Darrington.
75337
75338 2006-10-25  Bruno Haible  <bruno@clisp.org>
75339
75340         * lib/progname.h (set_program_name): Undefine before defining.
75341
75342 2006-10-25  Bruno Haible  <bruno@clisp.org>
75343
75344         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75345         false for non-gcc C++ compilers.
75346         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75347
75348 2006-10-24  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75351         iconv implementations like Irix iconv.
75352
75353 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75354
75355         * modules/vararrays: New file.
75356         * m4/vararrays.m4: New file, taken from diffutils.
75357         * MODULES.html.sh: New module vararrays.
75358
75359 2006-10-24  Karl Berry  <karl@gnu.org>
75360
75361         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75362         Don't call GNU Unix.
75363
75364 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75365
75366         * users.txt: Add Libtool.
75367
75368         Sync from Libtool:
75369
75370         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75373         to gnulib's policy of including config.h unconditionally.
75374
75375 2006-10-24  Bruno Haible  <bruno@clisp.org>
75376
75377         * modules/wcwidth (Files): Add m4/wint_t.m4.
75378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75379         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75380
75381 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75384         to pacify GCC with some -W flags enabled.  Problem reported by
75385         Bruno Haible.
75386
75387 2006-10-24  Jim Meyering  <jim@meyering.net>
75388
75389         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75390         Reported by Karl Berry.
75391
75392 2006-10-23  Bruno Haible  <bruno@clisp.org>
75393
75394         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75395
75396 2006-10-24  Bruno Haible  <bruno@clisp.org>
75397
75398         * lib/gl_list.h: Use C comment style, not C++ comment style.
75399
75400 2006-10-23  Eric Blake  <ebb9@byu.net>
75401
75402         * lib/getaddrinfo.c (includes): Add missing include.
75403
75404 2006-10-23  Bruno Haible  <bruno@clisp.org>
75405             Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         Ability to rename obstack_free.
75408         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75409         obstack_free.
75410         (obstack_free): Invoke the __obstack_free macro.
75411         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75412
75413 2006-10-23  Bruno Haible  <bruno@clisp.org>
75414             Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75417         __argc, __argv from the declaration. (They are defined as macros on
75418         mingw.)
75419
75420 2006-10-22  Bruno Haible  <bruno@clisp.org>
75421
75422         * doc/gnulib-intro.texi: New file.
75423         * doc/gnulib.texi: Include it.
75424
75425 2006-10-21  Bruno Haible  <bruno@clisp.org>
75426
75427         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75428         "Introduction", "Miscellanous Notes", "Particular Modules".
75429
75430 2006-10-21  Bruno Haible  <bruno@clisp.org>
75431
75432         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75433         Change mostlyclean-local rule to avoid sh syntax error from bash
75434         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75435
75436 2006-10-23  Jim Meyering  <jim@meyering.net>
75437
75438         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75439         in place of snprintf.
75440
75441         * modules/inttostr (Files): Add lib/uinttostr.c.
75442         * lib/uinttostr.c (inttostr): New file/function.
75443         * lib/inttostr.h (uinttostr): Declare.
75444         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75445         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75446         Add uinttostr.
75447         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75448
75449 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         * lib/canonicalize.c (ELOOP): Define if not already defined.
75452         Problem reported by Bruno Haible in
75453         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75454
75455 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75458         Problem reported by Perry Smith and Ville Laurikari.
75459
75460         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75461         uses.
75462
75463 2006-10-19  Bruno Haible  <bruno@clisp.org>
75464
75465         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75466         for mingw.
75467
75468 2006-10-19  Bruno Haible  <bruno@clisp.org>
75469
75470         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75471         Needed for mingw.
75472
75473 2006-10-19  Bruno Haible  <bruno@clisp.org>
75474
75475         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75476
75477 2006-10-19  Bruno Haible  <bruno@clisp.org>
75478
75479         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75480         it.
75481
75482 2006-10-19  Bruno Haible  <bruno@clisp.org>
75483
75484         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75485         invocation.
75486
75487 2006-10-19  Bruno Haible  <bruno@clisp.org>
75488
75489         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75490         mountlist by default.
75491
75492 2006-10-16  Bruno Haible  <bruno@clisp.org>
75493
75494         * lib/c-strstr.c: Include c-strstr.h.
75495
75496 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75497
75498         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75499         in a slash.
75500
75501 2006-10-18  Bruno Haible  <bruno@clisp.org>
75502
75503         * lib/lock.h [C++]: Wrap definitions in extern "C".
75504
75505 2006-10-18  Bruno Haible  <bruno@clisp.org>
75506
75507         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75508         gl_LIBOBJS list.
75509
75510 2006-10-18  Bruno Haible  <bruno@clisp.org>
75511
75512         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75513
75514 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75515
75516         * lib/xstrtol.h: Include gettext.h.
75517         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75518         Problem reported by Eric Blake.
75519         * modules/xstrtol (Depends-on): Add gettext-h.
75520
75521 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75522
75523         * lib/strftime.c (advance): New macro.
75524         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75525         incomplete type, so you can't add 0 to it.  Problem and patch
75526         reported by Eelco Dolstra for dietlibc.
75527
75528 2006-10-18  Jim Meyering  <jim@meyering.net>
75529
75530         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75531         type for a local, and rename it: s/up/user_proc/.
75532
75533 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75534
75535         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75536         READ_UTMP_USER_PROCESS.
75537         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75538
75539 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75540
75541         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75542         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75543
75544 2006-10-17  Eric Blake  <ebb9@byu.net>
75545
75546         * lib/sigprocmask.c (sigprocmask): Fix typo.
75547
75548         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75549
75550         * modules/clean-temp (Makefile.am): Don't add to make output...
75551         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75552         config.h.
75553
75554 2006-10-17  Bruno Haible  <bruno@clisp.org>
75555
75556         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75557         differently if DEFAULT_TEXT_DOMAIN is set.
75558
75559 2006-10-16  Bruno Haible  <bruno@clisp.org>
75560
75561         * lib/clean-temp.c: Include fwriteerror.h.
75562
75563 2006-10-16  Bruno Haible  <bruno@clisp.org>
75564
75565         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75566
75567 2006-10-16  Bruno Haible  <bruno@clisp.org>
75568
75569         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75570         * lib/sigprocmask.h: Include <sys/types.h>.
75571         (sigset_t): Use the system's definition if present.
75572
75573 2006-10-17  Eric Blake  <ebb9@byu.net>
75574
75575         * lib/xvasprintf.c (includes): Assume config.h.
75576         * lib/xasprintf.c (includes): Likewise.
75577
75578 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75579
75580         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75581         at least as wide as intmax_t.
75582
75583 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75584
75585         (Imported from Automake.)
75586         * build-aux/gnupload: Update to version 1.1 of directive file.
75587
75588 2006-10-16  Eric Blake  <ebb9@byu.net>
75589
75590         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75591         match Automake 1.10a.
75592
75593 2006-10-14  Bruno Haible  <bruno@clisp.org>
75594
75595         * modules/sigprocmask: New file.
75596         * lib/sigprocmask.h: New file.
75597         * lib/sigprocmask.c: New file.
75598         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75599         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75600         request sigprocmask.o.
75601         (gl_PREREQ_SIGPROCMASK): New macro.
75602         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75603         (Depends-on): Add sigprocmask.
75604         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75605         gt_SIGNALBLOCKING. Test for 'raise' only once.
75606         * lib/fatal-signal.c: Include sigprocmask.h.
75607         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75608         unblock_fatal_signals): Define always.
75609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75610         sigprocmask.
75611
75612 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75613
75614         Sync from Automake.
75615         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75616         which incorrectly sets the mode of an existing destination
75617         directory.  In some cases the unpatched install-sh could do the
75618         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75619         system.  We hope this is rare in practice, but it's clearly worth
75620         fixing.  Problem reported by Alex Unleashed in
75621         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75622         Also, don't bother to check for -m bugs unless we're using -m;
75623         suggested by Stepan Kasal.
75624
75625 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75626
75627         Sync from Automake.
75628         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75629         `-c' flag, so they appear at the same position as in %FASTDEP%
75630         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75631         which ignores unknown options only after the first non-option.
75632         Bug report against M4 by Nelson H. F. Beebe.
75633
75634 2006-10-13  Jim Meyering  <jim@meyering.net>
75635
75636         Fix a bug in yesterday's change.
75637         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75638         p->fts_statp->st_dev would be used uninitialized.
75639         Ensures that we always call fts_stat on the very first entry.
75640         Miklos Szeredi reported that find -xdev stopped working.
75641
75642 2006-10-12  Bruno Haible  <bruno@clisp.org>
75643
75644         * gnulib-tool (func_get_automake_snippet): Append an automatically
75645         computed EXTRA_DIST augmentation.
75646         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75647         * modules/alloca-opt (Makefile.am): Likewise.
75648         * modules/allocsa (Makefile.am): Likewise.
75649         * modules/arcfour (Makefile.am): Likewise.
75650         * modules/arctwo (Makefile.am): Likewise.
75651         * modules/argmatch (Makefile.am): Likewise.
75652         * modules/argz (Makefile.am): Likewise.
75653         * modules/atexit (Makefile.am): Likewise.
75654         * modules/backupfile (Makefile.am): Likewise.
75655         * modules/byteswap (Makefile.am): Likewise.
75656         * modules/c-strtod (Makefile.am): Likewise.
75657         * modules/c-strtold (Makefile.am): Likewise.
75658         * modules/calloc (Makefile.am): Likewise.
75659         * modules/canon-host (Makefile.am): Likewise.
75660         * modules/canonicalize (Makefile.am): Likewise.
75661         * modules/chdir-long (Makefile.am): Likewise.
75662         * modules/chdir-safer (Makefile.am): Likewise.
75663         * modules/check-version (Makefile.am): Likewise.
75664         * modules/chown (Makefile.am): Likewise.
75665         * modules/cloexec (Makefile.am): Likewise.
75666         * modules/close-stream (Makefile.am): Likewise.
75667         * modules/closeout (Makefile.am): Likewise.
75668         * modules/crc (Makefile.am): Likewise.
75669         * modules/csharpexec (Makefile.am): Likewise.
75670         * modules/cycle-check (Makefile.am): Likewise.
75671         * modules/des (Makefile.am): Likewise.
75672         * modules/dev-ino (Makefile.am): Likewise.
75673         * modules/dirfd (Makefile.am): Likewise.
75674         * modules/dirname (Makefile.am): Likewise.
75675         * modules/dup2 (Makefile.am): Likewise.
75676         * modules/eealloc (Makefile.am): Likewise.
75677         * modules/error (Makefile.am): Likewise.
75678         * modules/euidaccess (Makefile.am): Likewise.
75679         * modules/exclude (Makefile.am): Likewise.
75680         * modules/exitfail (Makefile.am): Likewise.
75681         * modules/fcntl-safer (Makefile.am): Likewise.
75682         * modules/fcntl (Makefile.am): Likewise.
75683         * modules/file-type (Makefile.am): Likewise.
75684         * modules/fileblocks (Makefile.am): Likewise.
75685         * modules/filemode (Makefile.am): Likewise.
75686         * modules/filenamecat (Makefile.am): Likewise.
75687         * modules/fnmatch (Makefile.am): Likewise.
75688         * modules/fopen-safer (Makefile.am): Likewise.
75689         * modules/fpending (Makefile.am): Likewise.
75690         * modules/fprintftime (Makefile.am): Likewise.
75691         * modules/free (Makefile.am): Likewise.
75692         * modules/fsusage (Makefile.am): Likewise.
75693         * modules/ftruncate (Makefile.am): Likewise.
75694         * modules/fts (Makefile.am): Likewise.
75695         * modules/gc-arcfour (Makefile.am): Likewise.
75696         * modules/gc-des (Makefile.am): Likewise.
75697         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75698         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75699         * modules/gc-md4 (Makefile.am): Likewise.
75700         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75701         * modules/gc-sha1 (Makefile.am): Likewise.
75702         * modules/gc (Makefile.am): Likewise.
75703         * modules/getaddrinfo (Makefile.am): Likewise.
75704         * modules/getcwd (Makefile.am): Likewise.
75705         * modules/getdelim (Makefile.am): Likewise.
75706         * modules/getdomainname (Makefile.am): Likewise.
75707         * modules/getgroups (Makefile.am): Likewise.
75708         * modules/gethostname (Makefile.am): Likewise.
75709         * modules/gethrxtime (Makefile.am): Likewise.
75710         * modules/getline (Makefile.am): Likewise.
75711         * modules/getloadavg (Makefile.am): Likewise.
75712         * modules/getlogin_r (Makefile.am): Likewise.
75713         * modules/getndelim2 (Makefile.am): Likewise.
75714         * modules/getopt (Makefile.am): Likewise.
75715         * modules/getpagesize (Makefile.am): Likewise.
75716         * modules/getpass-gnu (Makefile.am): Likewise.
75717         * modules/getpass (Makefile.am): Likewise.
75718         * modules/getsubopt (Makefile.am): Likewise.
75719         * modules/gettime (Makefile.am): Likewise.
75720         * modules/gettimeofday (Makefile.am): Likewise.
75721         * modules/getugroups (Makefile.am): Likewise.
75722         * modules/getusershell (Makefile.am): Likewise.
75723         * modules/glob (Makefile.am): Likewise.
75724         * modules/group-member (Makefile.am): Likewise.
75725         * modules/hard-locale (Makefile.am): Likewise.
75726         * modules/hash (Makefile.am): Likewise.
75727         * modules/hmac-md5 (Makefile.am): Likewise.
75728         * modules/hmac-sha1 (Makefile.am): Likewise.
75729         * modules/human (Makefile.am): Likewise.
75730         * modules/idcache (Makefile.am): Likewise.
75731         * modules/imaxabs (Makefile.am): Likewise.
75732         * modules/imaxdiv (Makefile.am): Likewise.
75733         * modules/inet_ntop (Makefile.am): Likewise.
75734         * modules/inet_pton (Makefile.am): Likewise.
75735         * modules/intprops (Makefile.am): Likewise.
75736         * modules/inttostr (Makefile.am): Likewise.
75737         * modules/inttypes (Makefile.am): Likewise.
75738         * modules/isapipe (Makefile.am): Likewise.
75739         * modules/javaversion (Makefile.am): Likewise.
75740         * modules/lchmod (Makefile.am): Likewise.
75741         * modules/lchown (Makefile.am): Likewise.
75742         * modules/localcharset (Makefile.am): Likewise.
75743         * modules/long-options (Makefile.am): Likewise.
75744         * modules/lstat (Makefile.am): Likewise.
75745         * modules/malloc (Makefile.am): Likewise.
75746         * modules/mathl (Makefile.am): Likewise.
75747         * modules/mbchar (Makefile.am): Likewise.
75748         * modules/md2 (Makefile.am): Likewise.
75749         * modules/md4 (Makefile.am): Likewise.
75750         * modules/md5 (Makefile.am): Likewise.
75751         * modules/memcasecmp (Makefile.am): Likewise.
75752         * modules/memchr (Makefile.am): Likewise.
75753         * modules/memcmp (Makefile.am): Likewise.
75754         * modules/memcoll (Makefile.am): Likewise.
75755         * modules/memcpy (Makefile.am): Likewise.
75756         * modules/memmem (Makefile.am): Likewise.
75757         * modules/memmove (Makefile.am): Likewise.
75758         * modules/mempcpy (Makefile.am): Likewise.
75759         * modules/memrchr (Makefile.am): Likewise.
75760         * modules/memset (Makefile.am): Likewise.
75761         * modules/memxor (Makefile.am): Likewise.
75762         * modules/mkancesdirs (Makefile.am): Likewise.
75763         * modules/mkdir-p (Makefile.am): Likewise.
75764         * modules/mkdir (Makefile.am): Likewise.
75765         * modules/mkdtemp (Makefile.am): Likewise.
75766         * modules/mkstemp (Makefile.am): Likewise.
75767         * modules/mktime (Makefile.am): Likewise.
75768         * modules/modechange (Makefile.am): Likewise.
75769         * modules/mountlist (Makefile.am): Likewise.
75770         * modules/nanosleep (Makefile.am): Likewise.
75771         * modules/obstack (Makefile.am): Likewise.
75772         * modules/openat (Makefile.am): Likewise.
75773         * modules/pagealign_alloc (Makefile.am): Likewise.
75774         * modules/pathmax (Makefile.am): Likewise.
75775         * modules/physmem (Makefile.am): Likewise.
75776         * modules/poll (Makefile.am): Likewise.
75777         * modules/posixtm (Makefile.am): Likewise.
75778         * modules/posixver (Makefile.am): Likewise.
75779         * modules/putenv (Makefile.am): Likewise.
75780         * modules/quote (Makefile.am): Likewise.
75781         * modules/quotearg (Makefile.am): Likewise.
75782         * modules/raise (Makefile.am): Likewise.
75783         * modules/read-file (Makefile.am): Likewise.
75784         * modules/readline (Makefile.am): Likewise.
75785         * modules/readlink (Makefile.am): Likewise.
75786         * modules/readtokens (Makefile.am): Likewise.
75787         * modules/readutmp (Makefile.am): Likewise.
75788         * modules/realloc (Makefile.am): Likewise.
75789         * modules/regex (Makefile.am): Likewise.
75790         * modules/rename-dest-slash (Makefile.am): Likewise.
75791         * modules/rename (Makefile.am): Likewise.
75792         * modules/rijndael (Makefile.am): Likewise.
75793         * modules/rmdir (Makefile.am): Likewise.
75794         * modules/rpmatch (Makefile.am): Likewise.
75795         * modules/safe-read (Makefile.am): Likewise.
75796         * modules/safe-write (Makefile.am): Likewise.
75797         * modules/same-inode (Makefile.am): Likewise.
75798         * modules/same (Makefile.am): Likewise.
75799         * modules/save-cwd (Makefile.am): Likewise.
75800         * modules/savedir (Makefile.am): Likewise.
75801         * modules/setenv (Makefile.am): Likewise.
75802         * modules/settime (Makefile.am): Likewise.
75803         * modules/sha1 (Makefile.am): Likewise.
75804         * modules/sig2str (Makefile.am): Likewise.
75805         * modules/snprintf (Makefile.am): Likewise.
75806         * modules/stat-macros (Makefile.am): Likewise.
75807         * modules/stat-time (Makefile.am): Likewise.
75808         * modules/stdbool (Makefile.am): Likewise.
75809         * modules/stdint (Makefile.am): Likewise.
75810         * modules/stdlib-safer (Makefile.am): Likewise.
75811         * modules/stpcpy (Makefile.am): Likewise.
75812         * modules/stpncpy (Makefile.am): Likewise.
75813         * modules/strcase (Makefile.am): Likewise.
75814         * modules/strcasestr (Makefile.am): Likewise.
75815         * modules/strchrnul (Makefile.am): Likewise.
75816         * modules/strcspn (Makefile.am): Likewise.
75817         * modules/strdup (Makefile.am): Likewise.
75818         * modules/strerror (Makefile.am): Likewise.
75819         * modules/strftime (Makefile.am): Likewise.
75820         * modules/strndup (Makefile.am): Likewise.
75821         * modules/strnlen (Makefile.am): Likewise.
75822         * modules/strpbrk (Makefile.am): Likewise.
75823         * modules/strsep (Makefile.am): Likewise.
75824         * modules/strstr (Makefile.am): Likewise.
75825         * modules/strtod (Makefile.am): Likewise.
75826         * modules/strtoimax (Makefile.am): Likewise.
75827         * modules/strtok_r (Makefile.am): Likewise.
75828         * modules/strtol (Makefile.am): Likewise.
75829         * modules/strtoll (Makefile.am): Likewise.
75830         * modules/strtoul (Makefile.am): Likewise.
75831         * modules/strtoull (Makefile.am): Likewise.
75832         * modules/strtoumax (Makefile.am): Likewise.
75833         * modules/strverscmp (Makefile.am): Likewise.
75834         * modules/sys_socket (Makefile.am): Likewise.
75835         * modules/sys_stat (Makefile.am): Likewise.
75836         * modules/sysexits (Makefile.am): Likewise.
75837         * modules/time_r (Makefile.am): Likewise.
75838         * modules/timegm (Makefile.am): Likewise.
75839         * modules/timespec (Makefile.am): Likewise.
75840         * modules/tmpfile-safer (Makefile.am): Likewise.
75841         * modules/trim (Makefile.am): Likewise.
75842         * modules/unistd-safer (Makefile.am): Likewise.
75843         * modules/unlinkdir (Makefile.am): Likewise.
75844         * modules/unlocked-io (Makefile.am): Likewise.
75845         * modules/userspec (Makefile.am): Likewise.
75846         * modules/utime (Makefile.am): Likewise.
75847         * modules/utimecmp (Makefile.am): Likewise.
75848         * modules/utimens (Makefile.am): Likewise.
75849         * modules/vasnprintf (Makefile.am): Likewise.
75850         * modules/vasprintf (Makefile.am): Likewise.
75851         * modules/vsnprintf (Makefile.am): Likewise.
75852         * modules/xalloc (Makefile.am): Likewise.
75853         * modules/xgetcwd (Makefile.am): Likewise.
75854         * modules/xnanosleep (Makefile.am): Likewise.
75855         * modules/xreadlink (Makefile.am): Likewise.
75856         * modules/xstrtod (Makefile.am): Likewise.
75857         * modules/xstrtol (Makefile.am): Likewise.
75858         * modules/xstrtold (Makefile.am): Likewise.
75859         * modules/yesno (Makefile.am): Likewise.
75860         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75861
75862 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75863
75864         * modules/error (Makefile.am): Distribute files through
75865         EXTRA_DIST, not lib_SOURCES.
75866
75867 2006-10-12  Eric Blake  <ebb9@byu.net>
75868
75869         * modules/error (Makefile.am): Distribute files in /lib.
75870         * modules/obstack (Makefile.am): Likewise.
75871
75872 2006-10-12  Bruno Haible  <bruno@clisp.org>
75873
75874         * modules/acl (Makefile.am): Distribute all files in lib/ through
75875         EXTRA_DIST.
75876         * modules/arcfour (Makefile.am): Likewise.
75877         * modules/arctwo (Makefile.am): Likewise.
75878         * modules/argmatch (Makefile.am): Likewise.
75879         * modules/argz (Makefile.am): Likewise.
75880         * modules/atexit (Makefile.am): Likewise.
75881         * modules/backupfile (Makefile.am): Likewise.
75882         * modules/c-strtod (Makefile.am): Likewise.
75883         * modules/c-strtold (Makefile.am): Likewise.
75884         * modules/calloc (Makefile.am): Likewise.
75885         * modules/canon-host (Makefile.am): Likewise.
75886         * modules/canonicalize (Makefile.am): Likewise.
75887         * modules/chdir-long (Makefile.am): Likewise.
75888         * modules/chdir-safer (Makefile.am): Likewise.
75889         * modules/check-version (Makefile.am): Likewise.
75890         * modules/chown (Makefile.am): Likewise.
75891         * modules/cloexec (Makefile.am): Likewise.
75892         * modules/close-stream (Makefile.am): Likewise.
75893         * modules/closeout (Makefile.am): Likewise.
75894         * modules/crc (Makefile.am): Likewise.
75895         * modules/cycle-check (Makefile.am): Likewise.
75896         * modules/des (Makefile.am): Likewise.
75897         * modules/dirfd (Makefile.am): Likewise.
75898         * modules/dirname (Makefile.am): Likewise.
75899         * modules/dup2 (Makefile.am): Likewise.
75900         * modules/euidaccess (Makefile.am): Likewise.
75901         * modules/exclude (Makefile.am): Likewise.
75902         * modules/exitfail (Makefile.am): Likewise.
75903         * modules/fcntl-safer (Makefile.am): Likewise.
75904         * modules/file-type (Makefile.am): Likewise.
75905         * modules/fileblocks (Makefile.am): Likewise.
75906         * modules/filemode (Makefile.am): Likewise.
75907         * modules/filenamecat (Makefile.am): Likewise.
75908         * modules/fnmatch (Makefile.am): Likewise.
75909         * modules/fopen-safer (Makefile.am): Likewise.
75910         * modules/fpending (Makefile.am): Likewise.
75911         * modules/fprintftime (Makefile.am): Likewise.
75912         * modules/free (Makefile.am): Likewise.
75913         * modules/fsusage (Makefile.am): Likewise.
75914         * modules/ftruncate (Makefile.am): Likewise.
75915         * modules/fts (Makefile.am): Likewise.
75916         * modules/gc (Makefile.am): Likewise.
75917         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75918         * modules/getaddrinfo (Makefile.am): Likewise.
75919         * modules/getcwd (Makefile.am): Likewise.
75920         * modules/getdelim (Makefile.am): Likewise.
75921         * modules/getdomainname (Makefile.am): Likewise.
75922         * modules/getgroups (Makefile.am): Likewise.
75923         * modules/gethostname (Makefile.am): Likewise.
75924         * modules/gethrxtime (Makefile.am): Likewise.
75925         * modules/getline (Makefile.am): Likewise.
75926         * modules/getloadavg (Makefile.am): Likewise.
75927         * modules/getlogin_r (Makefile.am): Likewise.
75928         * modules/getopt (Makefile.am): Likewise.
75929         * modules/getpass (Makefile.am): Likewise.
75930         * modules/getpass-gnu (Makefile.am): Likewise.
75931         * modules/getsubopt (Makefile.am): Likewise.
75932         * modules/gettime (Makefile.am): Likewise.
75933         * modules/gettimeofday (Makefile.am): Likewise.
75934         * modules/getugroups (Makefile.am): Likewise.
75935         * modules/getusershell (Makefile.am): Likewise.
75936         * modules/glob (Makefile.am): Likewise.
75937         * modules/group-member (Makefile.am): Likewise.
75938         * modules/hard-locale (Makefile.am): Likewise.
75939         * modules/hash (Makefile.am): Likewise.
75940         * modules/hmac-md5 (Makefile.am): Likewise.
75941         * modules/hmac-sha1 (Makefile.am): Likewise.
75942         * modules/human (Makefile.am): Likewise.
75943         * modules/idcache (Makefile.am): Likewise.
75944         * modules/imaxabs (Makefile.am): Likewise.
75945         * modules/imaxdiv (Makefile.am): Likewise.
75946         * modules/inet_ntop (Makefile.am): Likewise.
75947         * modules/inet_pton (Makefile.am): Likewise.
75948         * modules/inttostr (Makefile.am): Likewise.
75949         * modules/isapipe (Makefile.am): Likewise.
75950         * modules/lchown (Makefile.am): Likewise.
75951         * modules/long-options (Makefile.am): Likewise.
75952         * modules/lstat (Makefile.am): Likewise.
75953         * modules/malloc (Makefile.am): Likewise.
75954         * modules/mathl (Makefile.am): Likewise.
75955         * modules/mbchar (Makefile.am): Likewise.
75956         * modules/md2 (Makefile.am): Likewise.
75957         * modules/md4 (Makefile.am): Likewise.
75958         * modules/md5 (Makefile.am): Likewise.
75959         * modules/memcasecmp (Makefile.am): Likewise.
75960         * modules/memchr (Makefile.am): Likewise.
75961         * modules/memcmp (Makefile.am): Likewise.
75962         * modules/memcoll (Makefile.am): Likewise.
75963         * modules/memcpy (Makefile.am): Likewise.
75964         * modules/memmem (Makefile.am): Likewise.
75965         * modules/memmove (Makefile.am): Likewise.
75966         * modules/mempcpy (Makefile.am): Likewise.
75967         * modules/memrchr (Makefile.am): Likewise.
75968         * modules/memset (Makefile.am): Likewise.
75969         * modules/memxor (Makefile.am): Likewise.
75970         * modules/mkancesdirs (Makefile.am): Likewise.
75971         * modules/mkdir (Makefile.am): Likewise.
75972         * modules/mkdir-p (Makefile.am): Likewise.
75973         * modules/mkdtemp (Makefile.am): Likewise.
75974         * modules/mkstemp (Makefile.am): Likewise.
75975         * modules/mktime (Makefile.am): Likewise.
75976         * modules/modechange (Makefile.am): Likewise.
75977         * modules/mountlist (Makefile.am): Likewise.
75978         * modules/nanosleep (Makefile.am): Likewise.
75979         * modules/openat (Makefile.am): Likewise.
75980         * modules/pagealign_alloc (Makefile.am): Likewise.
75981         * modules/physmem (Makefile.am): Likewise.
75982         * modules/poll (Makefile.am): Likewise.
75983         * modules/posixtm (Makefile.am): Likewise.
75984         * modules/posixver (Makefile.am): Likewise.
75985         * modules/putenv (Makefile.am): Likewise.
75986         * modules/quote (Makefile.am): Likewise.
75987         * modules/quotearg (Makefile.am): Likewise.
75988         * modules/raise (Makefile.am): Likewise.
75989         * modules/read-file (Makefile.am): Likewise.
75990         * modules/readline (Makefile.am): Likewise.
75991         * modules/readlink (Makefile.am): Likewise.
75992         * modules/readtokens (Makefile.am): Likewise.
75993         * modules/readutmp (Makefile.am): Likewise.
75994         * modules/realloc (Makefile.am): Likewise.
75995         * modules/regex (Makefile.am): Likewise.
75996         * modules/rename (Makefile.am): Likewise.
75997         * modules/rename-dest-slash (Makefile.am): Likewise.
75998         * modules/rijndael (Makefile.am): Likewise.
75999         * modules/rmdir (Makefile.am): Likewise.
76000         * modules/rpmatch (Makefile.am): Likewise.
76001         * modules/safe-read (Makefile.am): Likewise.
76002         * modules/safe-write (Makefile.am): Likewise.
76003         * modules/same (Makefile.am): Likewise.
76004         * modules/save-cwd (Makefile.am): Likewise.
76005         * modules/savedir (Makefile.am): Likewise.
76006         * modules/setenv (Makefile.am): Likewise.
76007         * modules/settime (Makefile.am): Likewise.
76008         * modules/sha1 (Makefile.am): Likewise.
76009         * modules/sig2str (Makefile.am): Likewise.
76010         * modules/snprintf (Makefile.am): Likewise.
76011         * modules/stdlib-safer (Makefile.am): Likewise.
76012         * modules/stpcpy (Makefile.am): Likewise.
76013         * modules/stpncpy (Makefile.am): Likewise.
76014         * modules/strcase (Makefile.am): Likewise.
76015         * modules/strcasestr (Makefile.am): Likewise.
76016         * modules/strchrnul (Makefile.am): Likewise.
76017         * modules/strcspn (Makefile.am): Likewise.
76018         * modules/strdup (Makefile.am): Likewise.
76019         * modules/strerror (Makefile.am): Likewise.
76020         * modules/strftime (Makefile.am): Likewise.
76021         * modules/strndup (Makefile.am): Likewise.
76022         * modules/strnlen (Makefile.am): Likewise.
76023         * modules/strpbrk (Makefile.am): Likewise.
76024         * modules/strsep (Makefile.am): Likewise.
76025         * modules/strstr (Makefile.am): Likewise.
76026         * modules/strtod (Makefile.am): Likewise.
76027         * modules/strtoimax (Makefile.am): Likewise.
76028         * modules/strtok_r (Makefile.am): Likewise.
76029         * modules/strtol (Makefile.am): Likewise.
76030         * modules/strtoll (Makefile.am): Likewise.
76031         * modules/strtoul (Makefile.am): Likewise.
76032         * modules/strtoull (Makefile.am): Likewise.
76033         * modules/strtoumax (Makefile.am): Likewise.
76034         * modules/strverscmp (Makefile.am): Likewise.
76035         * modules/time_r (Makefile.am): Likewise.
76036         * modules/timegm (Makefile.am): Likewise.
76037         * modules/tmpfile-safer (Makefile.am): Likewise.
76038         * modules/unistd-safer (Makefile.am): Likewise.
76039         * modules/unlinkdir (Makefile.am): Likewise.
76040         * modules/userspec (Makefile.am): Likewise.
76041         * modules/utime (Makefile.am): Likewise.
76042         * modules/utimecmp (Makefile.am): Likewise.
76043         * modules/utimens (Makefile.am): Likewise.
76044         * modules/vasnprintf (Makefile.am): Likewise.
76045         * modules/vasprintf (Makefile.am): Likewise.
76046         * modules/vsnprintf (Makefile.am): Likewise.
76047         * modules/xalloc (Makefile.am): Likewise.
76048         * modules/xgetcwd (Makefile.am): Likewise.
76049         * modules/xnanosleep (Makefile.am): Likewise.
76050         * modules/xreadlink (Makefile.am): Likewise.
76051         * modules/xstrtod (Makefile.am): Likewise.
76052         * modules/xstrtol (Makefile.am): Likewise.
76053         * modules/xstrtold (Makefile.am): Likewise.
76054         * modules/yesno (Makefile.am): Likewise.
76055
76056 2006-10-12  Jim Meyering  <jim@meyering.net>
76057
76058         * m4/getloadavg.m4: Revert the change below.
76059
76060         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76061         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76062         fail with a symlink, which is what coreutils' ./bootstrap now
76063         creates by default.
76064
76065 2006-10-12  Bruno Haible  <bruno@clisp.org>
76066
76067         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76068         mingw.
76069         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76070         MSVC and mingw explicitly.
76071
76072 2006-10-11  Simon Josefsson  <jas@extundo.com>
76073             Bruno Haible  <bruno@clisp.org>
76074
76075         Add support for multiple gnulib-tool invocations in the scope of a
76076         single configure.ac file.
76077         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76078         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76079         with the same contents as the _LIBADD variable.
76080         (func_emit_initmacro_start, func_emit_initmacro_end,
76081         func_emit_initmacro_done): New functions.
76082         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76083         gl_LIBOBJS and gl_LTLIBOBJS.
76084
76085 2006-10-11  Bruno Haible  <bruno@clisp.org>
76086
76087         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76088         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76089         autoreconf. Instead, invoke autopoint explicitly but move back the
76090         *.m4 files from gnulib.
76091
76092 2006-10-11  Bruno Haible  <bruno@clisp.org>
76093
76094         * gnulib-tool (func_usage): Make module names after --create-testdir
76095         optional.
76096         (func_create_testdir): If no module was specified, use nearly all
76097         modules.
76098
76099 2006-10-12  Jim Meyering  <jim@meyering.net>
76100
76101         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76102         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76103         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76104         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76105         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76106         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76107         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76108         (fts_set_stat_required): New function.
76109         (fts_open): Defer the calls to fts_stat, if possible or requested.
76110         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76111         into fts_stat itself.
76112         (fts_read): Perform any required (deferred) fts_stat call.
76113         (fts_build): Likewise, for the directory we're about to open and read.
76114         In the readdir loop, carefully decide whether each entry will require
76115         an eventual call to fts_stat, using dirent.d_type info if available.
76116         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76117         a command line argument into this function.  Update all callers.
76118         Map a return value of FTS_DOT to FTS_D for a command line argument.
76119         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76120         Thanks to Miklos Szeredi for his tenacity and for the initial
76121         bug report about "find" failing on a FUSE-based file system.
76122
76123         * lib/fts.c (fts_open): Use consistent indentation.
76124
76125 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76128         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76129         reported by Jim Meyering.  All uses of cache variables renamed
76130         to match Autoconf's.
76131         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76132         the other one.
76133
76134         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76135         Fix misspelling in diagnostic.
76136
76137 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76140         defined.  Problem reported by Matthew Woehlke.
76141
76142         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76143         Add support for Tandem NonStop R series.
76144         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76145         Use new macro.
76146
76147         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76148         (has_trailing_slash): Omit size arg; all callers changed.
76149         Omit 'inline', since it doesn't help performance and we'd
76150         need to configure it.
76151         Don't count //, ///, etc. as having a trailing slash.
76152         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76153         (rpl_rename_dest_slash): On failure, use rename's errno rather
76154         than (in some cases) an incorrect or junk errno.
76155         Simplify code by removing need to compute length; this does
76156         cause it to make two passes instead of one over the file name,
76157         but it's worth it.
76158
76159         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76160         change, since Autoconf's version may no longer be appropriate now
76161         that we are using CVS Autoconf's version.  Add support for Tandem.
76162
76163 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76164             Bruno Haible  <bruno@clisp.org>
76165
76166         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76167         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76168         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76169         gl_AC_TYPE_LONG_LONG.
76170
76171         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76172         instead of HAVE_LONG_LONG.
76173         * lib/printf-args.c (printf_fetchargs): Likewise.
76174         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76175         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76176         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76177         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76178         gl_AC_TYPE_LONG_LONG.
76179
76180 2006-10-11  Bruno Haible  <bruno@clisp.org>
76181
76182         * m4/longlong.m4: Add comments.
76183         * m4/ulonglong.m4: Likewise.
76184
76185 2006-10-10  Bruno Haible  <bruno@clisp.org>
76186
76187         Make it possible to #define stpcpy, strdup to aliases.
76188         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76189         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76190
76191 2006-10-10  Bruno Haible  <bruno@clisp.org>
76192
76193         Make it possible to #define gcd to an alias.
76194         * lib/gcd.c: Include config.h.
76195
76196 2006-10-10  Bruno Haible  <bruno@clisp.org>
76197
76198         Make it possible to #define c_isascii to an alias.
76199         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76200         defined. Undefine the macros before defining them, to avoid gcc
76201         warnings.
76202         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76203         define NO_C_CTYPE_MACROS early.
76204
76205 2006-10-10  Bruno Haible  <bruno@clisp.org>
76206
76207         Make it possible to #define set_program_name to an alias.
76208         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76209         ENABLE_RELOCATABLE early.
76210
76211 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76214         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76215         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76216         More generally, don't assume that 64-bit signed int is available
76217         if unsigned int is, and vice versa.
76218         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76219         unsigned symbols, not on their signed counterparts.
76220         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76221         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76222         (UINT64_C, UINTMAX_C):
76223         Likewise.
76224         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76225         unsigned counterparts.
76226         (Have_long_long, Unsigned): New macros.
76227         (Int): Renamed from INT.
76228         (strtoimax): Use the new macros.
76229         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76230         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76231         * modules/inttypes (inttypes.h): Substitute
76232         HAVE_UNSIGNED_LONG_LONG_INT.
76233         * modules/stdint (stdint.h): Likewise.
76234         (Files): Add m4/ulonglong.m4.
76235
76236 2006-10-10  Bruno Haible  <bruno@clisp.org>
76237
76238         Fix a gcc -Wshadow warning.
76239         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76240         to 'bucket'.
76241         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76242         gl_linked_indexof_from_to): Likewise.
76243         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76244         Likewise.
76245         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76246         Likewise.
76247         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76248         Reported by Eric Blake.
76249
76250 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76251
76252         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76253         for NetBSD.  Problem reported by Bruno Haible.
76254
76255 2006-10-09  Jim Meyering  <jim@meyering.net>
76256
76257         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76258         Patch from Bruno Haible.
76259
76260 2006-10-09  Jim Meyering  <jim@meyering.net>
76261
76262         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76263         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76264         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76265
76266 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76267
76268         Don't include <config.h> twice; this doesn't work in some cases,
76269         e.g., when config.h has "#define intmax_t long long int" and
76270         we include <config.h>, <inttypes.h>, <config.h> in that order.
76271         Problem reported by Matthew Woehlke in:
76272         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76273         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76274         * lib/fts-cycle.c: Don't include config.h.
76275         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76276         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76277         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76278         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76279         inttypes.h.
76280         * lib/xstrtoumax.c: Likewise.
76281         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76282         __strtol and the like, so that this module is more like its siblings.
76283         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76284         Remove; no longer needed now that we assume gnulib inttypes.h.
76285
76286 2006-10-08  Bruno Haible  <bruno@clisp.org>
76287
76288         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76289         option.
76290
76291 2006-10-07  Jim Meyering  <jim@meyering.net>
76292
76293         * modules/inttypes (inttypes.h): Revert what seems to have been
76294         an inadvertent part of today's change: use "|", not "/" in the
76295         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76296
76297 2006-10-07  Bruno Haible  <bruno@clisp.org>
76298
76299         * modules/sublist: New file.
76300
76301 2006-10-07  Bruno Haible  <bruno@clisp.org>
76302
76303         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76304         * modules/argz (argz.h): Likewise.
76305         * modules/arpa_inet (arpa/inet.h): Likewise.
76306         * modules/byteswap (byteswap.h): Likewise.
76307         * modules/configmake (configmake.h): Likewise.
76308         * modules/fcntl (fcntl.h): Likewise.
76309         * modules/fnmatch (fnmatch.h): Likewise.
76310         * modules/getopt (getopt.h): Likewise.
76311         * modules/glob (glob.h): Likewise.
76312         * modules/inttypes (inttypes.h): Likewise.
76313         * modules/netinet_in (netinet/in.h): Likewise.
76314         * modules/poll (poll.h): Likewise.
76315         * modules/stdbool (stdbool.h): Likewise.
76316         * modules/stdint (stdint.h): Likewise.
76317         * modules/sys_select (sys/select.h): Likewise.
76318         * modules/sys_socket (sys/socket.h): Likewise.
76319         * modules/sys_stat (sys/stat.h): Likewise.
76320         * modules/sysexits (sysexits.h): Likewise.
76321         * modules/unistd (unistd.h): Likewise.
76322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76323         Add a "DO NOT EDIT" comment to the generated file.
76324         (func_import): Likewise for gnulib-comp.m4.
76325
76326 2006-10-07  Bruno Haible  <bruno@clisp.org>
76327
76328         * lib/gl_sublist.h: New file.
76329         * lib/gl_sublist.c: New file.
76330
76331 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76334         name (relative to the original working directory) and the file
76335         name component (relative to the temporary working directory).  All
76336         callers changed.
76337         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76338         * lib/mkdir-p.c (make_dir_parents): Likewise.
76339         * lib/mkdir-p.h (make_dir_parents): Likewise.
76340
76341 2006-10-06  Eric Blake  <ebb9@byu.net>
76342
76343         Define several macros for use by the clean-temp module.
76344         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76345         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76346         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76347
76348         * lib/clean-temp.h (close_stream_temp): New declaration.
76349         * lib/clean-temp.c (includes): Pull in headers according to what
76350         other modules are in use.
76351         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76352
76353 2006-10-06  Bruno Haible  <bruno@clisp.org>
76354
76355         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76356         instead of fopen, fwriteerror.
76357
76358 2006-10-06  Bruno Haible  <bruno@clisp.org>
76359
76360         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76361         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76362         int.
76363         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76364         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76365         Return an error indicator.
76366         Suggested by Eric Blake.
76367
76368 2006-10-06  Bruno Haible  <bruno@clisp.org>
76369
76370         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76371         Reported by Eric Blake.
76372
76373 2006-10-06  Bruno Haible  <bruno@clisp.org>
76374
76375         * modules/closeout (Description): Mention stderr too.
76376
76377 2006-10-06  Bruno Haible  <bruno@clisp.org>
76378         and Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         * lib/closeout.c (close_stdout): Also close stderr.
76381         * lib/closeout.h: Update comment.
76382
76383 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76384
76385         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76386         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76387         * lib/dirchownmod.c: Include lchown.h.
76388         * lib/lchown.c: Don't include files that lchown.h now includes.
76389         Don't declare chown, since lchown.h now does that.
76390         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76391         (lchown): Define to rpl_chown if lchown is declared but
76392         does not exist.  Declare using a prototype if lchown is not
76393         declared.  Add a copyright notice.
76394         * lib/mkstemp.h: Include <unistd.h>.
76395         * lib/openat.c: Include lchown.h.
76396
76397         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76398         we now test for that separately.
76399         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76400         rather than O_NOFOLLOW, when testing whether it's possible to
76401         avoid a race condition reliably.
76402         * lib/savewd.c (savewd_chdir): Likewise.
76403
76404         Remove macros that are no longer needed now that stdint.h is
76405         reliable.
76406         * lib/fsusage.c (UINTMAX_MAX): Remove.
76407         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76408         * lib/utimecmp.c (SIZE_MAX): Remove.
76409
76410         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76411
76412         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76413         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76414         O_NOATIME works.
76415
76416 2006-10-05  Bruno Haible  <bruno@clisp.org>
76417
76418         * lib/gl_list.h (gl_sortedlist_search_from_to,
76419         gl_sortedlist_indexof_from_to): New declarations.
76420         (gl_list_implementation): New fields sortedlist_search_from_to,
76421         sortedlist_indexof_from_to.
76422         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76423         inline functions.
76424         * lib/gl_list.c (gl_sortedlist_search_from_to,
76425         gl_sortedlist_indexof_from_to): New functions.
76426         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76427         function.
76428         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76429         (gl_array_sortedlist_search_from_to): New function.
76430         (gl_array_list_implementation): Update.
76431         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76432         function.
76433         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76434         (gl_carray_sortedlist_search_from_to): New function.
76435         (gl_carray_list_implementation): Update.
76436         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76437         gl_linked_sortedlist_indexof_from_to): New functions.
76438         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76439         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76440         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76441         gl_tree_sortedlist_indexof_from_to): New functions.
76442         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76443         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76444         Update.
76445         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76446         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76447         Update.
76448
76449 2006-10-05  Bruno Haible  <bruno@clisp.org>
76450
76451         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76452         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76453         (struct gl_list_implementation): Add fields search_from_to,
76454         indexof_from_to. Remove fields search, indexof.
76455         (gl_list_search): Use the search_from_to method.
76456         (gl_list_search_from, gl_list_search_from_to): New functions.
76457         (gl_list_indexof): Use the indexof_from_to method.
76458         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76459         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76460         (gl_list_search_from, gl_list_search_from_to): New functions.
76461         (gl_list_indexof): Use the indexof_from_to method.
76462         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76463         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76464         gl_array_indexof. Add start_index, end_index arguments.
76465         (gl_array_search_from_to): Renamed from gl_array_search. Add
76466         start_index, end_index arguments.
76467         (gl_array_remove, gl_array_list_implementation): Update.
76468         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76469         gl_carray_indexof. Add start_index, end_index arguments.
76470         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76471         start_index, end_index arguments.
76472         (gl_carray_remove, gl_carray_list_implementation): Update.
76473         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76474         gl_linked_search. Add start_index, end_index arguments.
76475         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76476         start_index, end_index arguments.
76477         (gl_linked_remove): Update.
76478         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76479         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76480         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76481         field to 'size_t'.
76482         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76483         gl_tree_search. Add start_index, end_index arguments.
76484         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76485         start_index, end_index arguments.
76486         (gl_tree_remove): Update.
76487         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76488         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76489         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76490         function.
76491         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76492         gl_tree_search. Add start_index, end_index arguments.
76493         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76494         start_index, end_index arguments.
76495         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76496         Update.
76497         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76498
76499 2006-10-05  Bruno Haible  <bruno@clisp.org>
76500
76501         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76502
76503         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76504         fwriteerror_temp): New declarations.
76505         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76506         (descriptors): New variable.
76507         (cleanup): First, close the descriptors.
76508         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76509         fclose_temp, fwriteerror_temp): New functions.
76510
76511 2006-10-04  Jim Meyering  <jim@meyering.net>
76512
76513         * lib/fts.c (fts_open): Tiny comment change.
76514
76515 2006-10-04  Bruno Haible  <bruno@clisp.org>
76516
76517         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76518         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76519         gl_LOCK_BODY.
76520         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76521         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76522         gl_LOCK_EARLY_BODY.
76523         (gl_LOCK): Require gl_LOCK_BODY.
76524
76525 2006-10-04  Bruno Haible  <bruno@clisp.org>
76526
76527         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76528         (gl_oset_search_atleast): New declaration.
76529         (struct gl_oset_implementation): Add field 'search_atleast'.
76530         (gl_oset_search_atleast): New inline function.
76531         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76532         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76533         (gl_array_oset_implementation): Update.
76534         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76535         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76536         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76537
76538 2006-10-04  Bruno Haible  <bruno@clisp.org>
76539
76540         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76541
76542 2006-10-03  Bruno Haible  <bruno@clisp.org>
76543
76544         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76545         from gl_avltreehash_list_implementation.
76546
76547 2006-10-03  Bruno Haible  <bruno@clisp.org>
76548
76549         * lib/gl_oset.c (gl_oset_add): Fix return type.
76550
76551 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76552
76553         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76554
76555 2006-10-02  Eric Blake  <ebb9@byu.net>
76556
76557         * modules/strnlen (Depends-on): Add extensions.
76558
76559 2006-10-02  Eric Blake  <ebb9@byu.net>
76560
76561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76562         definition in 2.60+.
76563
76564 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76565
76566         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76567         checks.
76568
76569 2006-10-02  Bruno Haible  <bruno@clisp.org>
76570
76571         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76572         to the AUTOMAKE_OPTIONS.
76573         Reported by Jim Meyering.
76574
76575 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76576
76577         Work around bug in Solaris 10 /proc file system:
76578         /proc/self/fd/NNN/.. isn't the parent directory of
76579         the directory whose file descriptor is NNN.  This needs to
76580         be worked around at run time, not compile time, since a
76581         program might be built on Solaris 8, where things work, and
76582         run on Solaris 10.
76583         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76584         to use the following interface instead:
76585         (OPENAT_BUFFER_SIZE): New macro.
76586         (openat_proc_name): New function.
76587         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76588         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76589         Likewise.
76590         * lib/openat-proc.c: New file.
76591         * modules/openat (Files): Add lib/openat-proc.c.
76592         (Depends-on): Add same-inode, stdbool.
76593         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76594
76595 2006-09-29  Bruno Haible  <bruno@clisp.org>
76596
76597         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76598         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76599         argument. Set stdout_closed before testing for ferror, not after.
76600         (fwriteerror, fwriteerror_no_ebadf): New functions.
76601
76602 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76603
76604         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76605
76606 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76607
76608         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76609         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76610
76611 2006-09-28  Jim Meyering  <jim@meyering.net>
76612
76613         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76614         Include <unistd.h>.
76615
76616 2006-09-28  Bruno Haible  <bruno@clisp.org>
76617
76618         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76619         * modules/linkedhash-list (Depends-on): Likewise.
76620         * modules/rbtreehash-list (Depends-on): Likewise.
76621
76622 2006-09-28  Bruno Haible  <bruno@clisp.org>
76623
76624         * lib/strndup.h: Simplify the redefinition of strndup.
76625         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76626         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76627
76628 2006-09-28  Bruno Haible  <bruno@clisp.org>
76629
76630         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76631         * lib/gl_linkedhash_list.c: Likewise.
76632         * lib/gl_rbtreehash_list.c: Likewise.
76633
76634 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76637         getaddrinfo.
76638
76639         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76640         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76641         it causes <stdio_ext.h> to cause a compile-time error.
76642         Problem reported by Nelson H. F. Beebe.
76643         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76644         of HAVE_DECL___PENDING.
76645
76646         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76647         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76648         declaration.
76649
76650 2006-09-27  Jim Meyering  <jim@meyering.net>
76651
76652         This file could end up with a definition for a function
76653         named __strndup, rather than rpl_strndup on a system with
76654         incomplete weak_alias support.
76655         * lib/strndup.c (strndup): Rename from __strndup.
76656         Remove #defines that used to map __strndup to strndup.
76657         Don't use K&R prototypes.
76658         Remove LIBC-related code, since this file is not sync'd with glibc.
76659         * lib/strndup.h: Revamp, accordingly.
76660         * m4/strndup.m4: Modernize.
76661
76662 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76663
76664         * modules/savewd (Depends-on): Add 'raise'.
76665         * lib/savewd.c: Include <signal.h>, for 'raise'.
76666
76667 2006-09-26  Jim Meyering  <jim@meyering.net>
76668
76669         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76670         when we detect Darwin 8.7.0's acl_get_file bug.
76671         Rearrange to perform the new (below) run-test while $LIBS
76672         contains any acl-related library.  Set USE_ACL at the end.
76673         (gl_ACL_GET_FILE): New function.
76674
76675 2006-09-26  Eric Blake  <ebb9@byu.net>
76676
76677         * lib/verror.c: Include <config.h> unconditionally.
76678
76679 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76680
76681         * modules/clock-time (Maintainer): Add self.
76682         * modules/getlogin_r (Depends-on): Add extensions.
76683
76684 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76685
76686         * modules/clock-time: New module.
76687         * modules/nanosleep (Depends-on): Add clock-time.
76688         * modules/gethrxtime (Depends-on): Likewise.
76689         * modules/gettime (Depends-on): Likewise.
76690         * modules/settime (Depends-on): Likewise.
76691
76692         * modules/fts-lgpl: Depend on openat.
76693         * modules/mkancesdirs: Depend on savewd.
76694         * modules/mkdir-p: Likewise.
76695
76696 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76697
76698         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76699
76700         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76701         `gl_have_arbitrary_file_name_length_limit' to
76702         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76703         actually works between configure runs.
76704
76705 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76706             Bruno Haible  <bruno@clisp.org>
76707
76708         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76709
76710 2006-09-25  Jim Meyering  <jim@meyering.net>
76711
76712         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76713         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76714
76715 2006-09-25  Eric Blake  <ebb9@byu.net>
76716
76717         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76718         exec's in 2006-09-18 patch when shuffling fds.
76719
76720 2006-09-25  Bruno Haible  <bruno@clisp.org>
76721
76722         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76723         Reported by Jim Meyering.
76724
76725 2006-09-24  Jim Meyering  <jim@meyering.net>
76726
76727         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76728         compare a pointer against a literal "0".  That caused failures with
76729         at least HP-UX's hpcc.
76730
76731 2006-09-22  Simon Josefsson  <jas@extundo.com>
76732
76733         * modules/gc-sha1:
76734         * modules/gc-md4:
76735         * modules/gc-hmac-sha1:
76736         * modules/gc-hmac-md5:
76737         * modules/gc-des:
76738         * modules/gc-arcfour: Distribute more files.
76739
76740 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76741
76742         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76743         (gl_linked_iterator_from_to): Initialize struct completely.
76744         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76745         (gl_tree_iterator_from_to): Likewise
76746         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76747         * lib/gl_array_list.c [lint] (gl_array_iterator)
76748         (gl_array_iterator_from_to): Likewise.
76749         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76750         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76751         (gl_carray_iterator_from_to): Likewise.
76752
76753         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76754         * lib/md4.c (md4_process_block): Remove unused variable.
76755         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76756         parentheses for clarity.
76757
76758 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76759
76760         * modules/bison-i18n (Depends-on): Add gettext.
76761
76762 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76763
76764         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76765         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76766         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76767         also add missing comma that caused broken test.
76768         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76769         stdlib.h, for `abort'.
76770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76771         variables.
76772         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76773         include unistd.h if present, for `rmdir'.
76774         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76775         variables.
76776         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76777         in the process include standard headers for prototypes.
76778         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76779         gets declared on GNU/Linux.
76780         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76781         unistd.h, for `rmdir'.
76782         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76783
76784         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76785         always true.
76786         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76787
76788         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76789
76790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76791
76792         * gnulib-tool (func_version): Create output all at once.  This
76793         may help avoid triggering unnecessary SIGPIPEs, and at any
76794         rate it doesn't hurt.
76795
76796 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76797             Bruno Haible  <bruno@clisp.org>
76798
76799         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76800         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76801         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76802
76803         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76804         (gl_FUNC_VASPRINTF): Invoke it.
76805
76806 2006-09-22  Bruno Haible  <bruno@clisp.org>
76807
76808         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76809         getloadavg.c as first argument.
76810
76811 2006-09-22  Bruno Haible  <bruno@clisp.org>
76812
76813         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76814         at the beginning of the gl_INIT macro.
76815         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76816         gl_GETLOADAVG.
76817
76818 2006-09-22  Bruno Haible  <bruno@clisp.org>
76819
76820         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76821         module.
76822         Suggested by Ralf Wildenhues.
76823
76824 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         Import this patch from libc:
76827
76828         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76829
76830         * lib/regex_internal.c (re_string_reconstruct): Handle
76831         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76832         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76833         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76834         re_string_context_at.
76835
76836         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76837         now requires it.
76838         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76839         gl_REGEX now does it for us.
76840         (gl_REGEX): Add test taken from
76841         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76842
76843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76844         Check that large offsets work.  Modernize Autoconf usages.
76845         Prefer "yes" to mean a good thing rather than a bad.
76846         Don't put "#define mkstemp" in config.h, as this might interfere
76847         with standard system headers that "#define mkstemp mkstemp64".
76848
76849         * modules/mkstemp (Depends-on): Add extensions, so that
76850         mkstemp is visible on some platforms.
76851         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76852         (Include): Change to "mkstemp.h" from <stdlib.h>.
76853         (Files): Add mkstemp.h.
76854
76855         * lib/mkstemp.h: New file, since some standard headers
76856         #define mkstemp.
76857         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76858         Include "mkstemp.h".
76859         Make the _LIBC code resemble glibc original more,
76860         e.g., use K&R style.
76861         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76862         (mkstemp): Remove, since mkstemp.h does this for us.
76863         * lib/stdlib--.h: Include mkstemp.h.
76864
76865         Import this patch from libc:
76866
76867         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76868
76869         * lib/tempname.c (__gen_tempname): Change attempts_min
76870         into a macro.  Use preprocessor to decide how to initialize
76871         attempts [Coverity CID 67].
76872
76873 2006-09-20  Bruno Haible  <bruno@clisp.org>
76874
76875         * lib/mkdtemp.c: Import from libc.
76876         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76877                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76878                 attempts_min into a macro.  Use preprocessor to decide how to
76879                 initialize attempts [Coverity CID 67].
76880         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76881                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76882                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76883
76884 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76885
76886         * gnulib-tool (func_exit): New function, to allow to pass the
76887         exit status portably through the trap.  Use everywhere.
76888         (--help, --version): Signal a write error.
76889         (trap): catch SIGPIPE, for write errors.
76890         Exit at the end of the trap, with the correct exit status.
76891
76892 2006-09-19  Karl Berry  <karl@gnu.org>
76893
76894         * doc/gnulib.texi: note about the license texinfo files.
76895
76896 2006-09-19  Eric Blake  <ebb9@byu.net>
76897
76898         * gnulib-tool: Avoid space-tab.
76899
76900 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76901
76902         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76903         that prevented coreutils 6.1 from building.  Problem reported
76904         by Petter Reinholdtsen.
76905
76906 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76907
76908         * gnulib-tool (avoidlist): Fix typo that broke options like
76909         --avoid=lock that are used by coreutils bootstrap.
76910
76911 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76912
76913         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76914         more systematically.
76915
76916 2006-09-18  Jim Meyering  <jim@meyering.net>
76917
76918         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76919
76920 2006-09-18  Bruno Haible  <bruno@clisp.org>
76921
76922         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76923
76924 2006-09-18  Bruno Haible  <bruno@clisp.org>
76925
76926         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76927         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76928         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76929         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76930         * m4/gettext.m4: Require autoconf >= 2.52.
76931         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76932         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76933         of gl_cv_header_inttypes_h.
76934
76935 2006-09-18  Bruno Haible  <bruno@clisp.org>
76936
76937         * lib/javaversion.c: Include configmake.h.
76938
76939 2006-09-18  Bruno Haible  <bruno@clisp.org>
76940
76941         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76942         avoid that the while loops be executed in a subshell.
76943
76944 2006-09-18  Bruno Haible  <bruno@clisp.org>
76945
76946         * MODULES.html.sh (func_module): Break long lines.
76947         Suggested by Bruce Korb <bkorb@gnu.org>.
76948
76949 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76950
76951         Speed up by a factor of 1.12.
76952         * gnulib-tool (nl): New variable.
76953         (func_import): Rewrite include directive extraction to only read each
76954         directive once.
76955
76956 2006-09-17  Bruno Haible  <bruno@clisp.org>
76957
76958         * modules/javaversion (Makefile.am): Remove DEFS setting.
76959         (Depends-on): Add configmake, for PKGDATADIR definition.
76960
76961 2006-09-17  Bruno Haible  <bruno@clisp.org>
76962
76963         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76964
76965 2006-09-17  Bruno Haible  <bruno@clisp.org>
76966
76967         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76968         (func_modules_transitive_closure, func_modules_add_dummy,
76969         func_modules_to_filelist, func_import, func_create_testdir,
76970         func_create_megatestdir, ...): Use it wherever possible.
76971         Suggested by Ralf Wildenhues.
76972
76973 2006-09-16  Karl Berry  <karl@gnu.org>
76974
76975         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76976         to avoid sectioning errors.
76977         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76978         [ifinfo]: blank line after @center-ed titles.
76979         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76980         Spell FSF address consistently with others.
76981         (These changes approved by rms.)
76982
76983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76984
76985         Speed up by a factor of 1.61.
76986         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76987         already checked module names again.
76988
76989 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76990
76991         Speed up by a factor of 1.13.
76992         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76993         for new_files, and the input to func_add_or_update.
76994
76995 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76996
76997         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76998         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76999
77000 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77001
77002         * modules/mkancesdirs (Depends-on): Add fcntl.
77003         * modules/savewd: New file.
77004         * MODULES.html.sh (File system functions): Add savewd.
77005
77006         * modules/configmake (Makefile.am): Add support for the
77007         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77008
77009 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * m4/savewd.m4: New file.
77012
77013 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77014
77015         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77016         (dirchownmod): New arg FD.  All callers changed.
77017         Use FD rather than opening the directory ourself, as opening is
77018         now the caller's responsibility.
77019         * lib/dirchownmod.h: Likewise.
77020         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77021         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77022         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77023         (test_dir): Remove.
77024         (mkancesdirs): Return length of prefix of FILE that has already
77025         been made, or -2 if there is a child doing the work.  Redo
77026         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77027         ".", and treat ".." specially since it might stray back into
77028         already-created areas.  Use a subprocess if necessary.  New arg
77029         WD; all users changed.  MAKE_DIR function should now return 1
77030         if it creates a directory that is not readable.  Return -2 if
77031         a child process is spun off.
77032         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77033         Adjust signature to match code.
77034         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77035         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77036         all users changed.
77037         * lib/savewd.c, lib/savewd.h: New files.
77038
77039 2006-09-15  Jim Meyering  <jim@meyering.net>
77040
77041         * modules/rename-dest-slash: New module.
77042         * MODULES.html.sh (posix_compat): Add it here.
77043
77044         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77045
77046 2006-09-15  Jim Meyering  <jim@meyering.net>
77047
77048         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77049         file.
77050
77051         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77052
77053 2006-09-15  Jim Meyering  <jim@meyering.net>
77054
77055         * lib/rename-dest-slash.c (has_trailing_slash): Use
77056         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77057         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77058         test before testing whether SRC is a directory.
77059         Suggestions from Bruno Haible.
77060
77061         Avoid a warning about an unused variable.
77062         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77063         into the #ifdef block where it's used.
77064
77065         * lib/rename-dest-slash.c: New file.
77066
77067 2006-09-14  Bruno Haible  <bruno@clisp.org>
77068
77069         * lib/allocsa.c: Include <config.h> unconditionally.
77070         * lib/asnprintf.c: Likewise.
77071         * lib/asprintf.c: Likewise.
77072         * lib/c-strcasecmp.c: Likewise.
77073         * lib/c-strcasestr.c: Likewise.
77074         * lib/c-strncasecmp.c: Likewise.
77075         * lib/c-strstr.c: Likewise.
77076         * lib/classpath.c: Likewise.
77077         * lib/clean-temp.c: Likewise.
77078         * lib/concatpath.c: Likewise.
77079         * lib/copy-file.c: Likewise.
77080         * lib/csharpcomp.c: Likewise.
77081         * lib/csharpexec.c: Likewise.
77082         * lib/execute.c: Likewise.
77083         * lib/fatal-signal.c: Likewise.
77084         * lib/findprog.c: Likewise.
77085         * lib/fwriteerror.c: Likewise.
77086         * lib/gl_array_list.c: Likewise.
77087         * lib/gl_array_oset.c: Likewise.
77088         * lib/gl_avltree_list.c: Likewise.
77089         * lib/gl_avltree_oset.c: Likewise.
77090         * lib/gl_avltreehash_list.c: Likewise.
77091         * lib/gl_carray_list.c: Likewise.
77092         * lib/gl_linked_list.c: Likewise.
77093         * lib/gl_linkedhash_list.c: Likewise.
77094         * lib/gl_list.c: Likewise.
77095         * lib/gl_oset.c: Likewise.
77096         * lib/gl_rbtree_list.c: Likewise.
77097         * lib/gl_rbtree_oset.c: Likewise.
77098         * lib/gl_rbtreehash_list.c: Likewise.
77099         * lib/imaxabs.c: Likewise.
77100         * lib/imaxdiv.c: Likewise.
77101         * lib/javacomp.c: Likewise.
77102         * lib/javaexec.c: Likewise.
77103         * lib/javaversion.c: Likewise.
77104         * lib/linebreak.c: Likewise.
77105         * lib/localcharset.c: Likewise.
77106         * lib/lock.c: Likewise.
77107         * lib/mbchar.c: Likewise.
77108         * lib/mbswidth.c: Likewise.
77109         * lib/mkdtemp.c: Likewise.
77110         * lib/pipe.c: Likewise.
77111         * lib/printf-args.c: Likewise.
77112         * lib/printf-parse.c: Likewise.
77113         * lib/progname.c: Likewise.
77114         * lib/progreloc.c: Likewise.
77115         * lib/readlink.c: Likewise.
77116         * lib/sh-quote.c: Likewise.
77117         * lib/stpcpy.c: Likewise.
77118         * lib/stpncpy.c: Likewise.
77119         * lib/strcasecmp.c: Likewise.
77120         * lib/strcasestr.c: Likewise.
77121         * lib/strcspn.c: Likewise.
77122         * lib/striconv.c: Likewise.
77123         * lib/strncasecmp.c: Likewise.
77124         * lib/strnlen1.c: Likewise.
77125         * lib/strstr.c: Likewise.
77126         * lib/strtok_r.c: Likewise.
77127         * lib/tls.c: Likewise.
77128         * lib/tmpdir.c: Likewise.
77129         * lib/unicodeio.c: Likewise.
77130         * lib/unsetenv.c: Likewise.
77131         * lib/vasnprintf.c: Likewise.
77132         * lib/vasprintf.c: Likewise.
77133         * lib/wait-process.c: Likewise.
77134         * lib/xallocsa.c: Likewise.
77135         * lib/xsetenv.c: Likewise.
77136         * lib/xstriconv.c: Likewise.
77137
77138 2006-09-13  Simon Josefsson  <jas@extundo.com>
77139
77140         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77141         that internally, suggested by Ralf Wildenhues
77142         <Ralf.Wildenhues@gmx.de>.
77143
77144 2006-09-13  Simon Josefsson  <jas@extundo.com>
77145
77146         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77147         @LIBOBJS@.
77148         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77149
77150 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77151
77152         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77153         longer worry about uses that don't define HAVE_CONFIG_H.
77154         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77155         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77156         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77157         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77158         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77159         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77160         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77161         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77162         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77163         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77164         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77165         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77166         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77167         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77168         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77169         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77170         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77171         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77172         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77173         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77174         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77175         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77176         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77177         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77178         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77179         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77180         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77181         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77182         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77183         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77184         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77185         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77186         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77187         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77188         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77189         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77190         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77191         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77192         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77193         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77194         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77195         Likewise.
77196
77197 2006-09-13  Eric Blake  <ebb9@byu.net>
77198
77199         * lib/getopt.c: Fix typo in last commit.
77200
77201 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77202
77203         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77204         dgettext.
77205
77206 2006-09-12  Jim Meyering  <jim@meyering.net>
77207
77208         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77209         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77210         Reported by Nelson H. F. Beebe.
77211
77212 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77213
77214         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77215         program_invocation_name and program_invocation_short_name are
77216         initialized.
77217         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77218         and program_invocation_short_name to argp.h, so they are visible
77219         to user programs.
77220         * lib/argp.h: Likewise
77221
77222 2006-09-10  Bruno Haible  <bruno@clisp.org>
77223
77224         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77225         m4/inttypes_h.m4, m4/uintmax_t.m4.
77226
77227 2006-09-10  Bruno Haible  <bruno@clisp.org>
77228
77229         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77230         gl_AC_TYPE_UINTMAX_T.
77231
77232 2006-09-10  Bruno Haible  <bruno@clisp.org>
77233
77234         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77235
77236 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77237
77238         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77239         convention.  Text proposed by Bruno Haible.
77240         (struct argp_option): Document the use of N_() wrappers.
77241
77242         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77243         '\v', and translate the two parts separately, instead of feeding
77244         the whole string to gettext.  This allows to exclude
77245         '\v' from the strings visible to the translator by writing doc
77246         strings as N_("..") "\v" N_("..").
77247
77248 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77249
77250         * config/srclist.txt: Undo latest change; the bug was fixed.
77251
77252 2006-09-09  Bruno Haible  <bruno@clisp.org>
77253
77254         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77255         assignments if building a library without libtool.
77256         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77257         in func_emit_lib_Makefile_am.
77258         (func_import): When building a static library libfoo.a, arrange to
77259         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77260         (func_create_testdir): Likewise.
77261         * modules/gc (configure.ac, Makefile.am): If building statically,
77262         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77263         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77264         * modules/striconv (configure.ac, Makefile.am): Likewise.
77265         Based on a suggestion by Ralf Wildenhues.
77266
77267 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77270         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77271         Also:
77272
77273         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77274         Add year_2050_test to catch glibc bug 2821
77275         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77276
77277         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77278         Prefer #ifdef to #if.
77279
77280         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77281         Return from 'main' instead of calling 'exit'.
77282
77283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77284
77285         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77286         returned the maximum time_t value rather than (time_t) -1.
77287         Problem originally reported by William Bardwell
77288         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77289
77290         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77291         Moved to here ...
77292         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77293         ... from here.
77294
77295 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77298         2821 is fixed.
77299
77300 2006-09-08  Jim Meyering  <jim@meyering.net>
77301
77302         Don't make generated files read-only.  That would bother too many
77303         people.  However, do retain the ability to work when targets are
77304         read-only: remove the destination and temporary files before writing
77305         them (when generated via sed or echo), or by using the -f option for
77306         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77307         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77308         * modules/byteswap, modules/configmake, modules/fcntl:
77309         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77310         * modules/localcharset, modules/netinet_in, modules/poll:
77311         * modules/stdbool, modules/stdint, modules/sys_select:
77312         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77313
77314 2006-09-08  Jim Meyering  <jim@meyering.net>
77315
77316         Avoid new build failure on FreeBSD 6.0.
77317         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77318         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77319         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77320
77321 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77322
77323         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77324
77325 2006-09-07  Jim Meyering  <jim@meyering.net>
77326
77327         Fix global typo in last change: use chmod u-w, not chmod u-x.
77328         Spotted by Paul Eggert and Bruce Korb.
77329         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77330         * modules/byteswap, modules/configmake, modules/fcntl:
77331         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77332         * modules/localcharset, modules/netinet_in, modules/poll:
77333         * modules/stdbool, modules/stdint, modules/sys_select:
77334         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77335
77336 2006-09-06  Jim Meyering  <jim@meyering.net>
77337
77338         Make generated files be read-only.
77339         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77340         Ensure that each generated file is now read-only.
77341         * modules/argz: Likewise.
77342         * modules/arpa_inet: Likewise.
77343         * modules/byteswap: Likewise.
77344         * modules/configmake: Likewise.
77345         * modules/fcntl: Likewise.
77346         * modules/fnmatch: Likewise.
77347         * modules/getopt: Likewise.
77348         * modules/glob: Likewise.
77349         * modules/inttypes: Likewise.
77350         * modules/netinet_in: Likewise.
77351         * modules/poll: Likewise.
77352         * modules/stdbool: Likewise.
77353         * modules/stdint: Likewise.
77354         * modules/sys_select: Likewise.
77355         * modules/sys_socket: Likewise.
77356         * modules/sys_stat: Likewise.
77357         * modules/sysexits: Likewise.
77358         * modules/localcharset: Same as above, but continue using temporary
77359         file named "t-$@" (why different?) rather than the "$@-t" used
77360         everywhere else.
77361
77362         * modules/sysexits (Makefile.am): Replace literal occurrences
77363         of "sysexit.h" more readable, and more consistent, "$@".
77364
77365 2006-09-06  Bruno Haible  <bruno@clisp.org>
77366
77367         * modules/striconv: New file.
77368         * modules/xstriconv: New file.
77369         * MODULES.html.sh (Internationalization functions): Add striconv,
77370         xstriconv.
77371
77372 2006-09-06  Bruno Haible  <bruno@clisp.org>
77373
77374         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77375         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77376         not using libtool correctly.
77377
77378 2006-09-06  Bruno Haible  <bruno@clisp.org>
77379
77380         * lib/striconv.h: New file.
77381         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77382         iconvstring.c.
77383         * lib/xstriconv.h: New file.
77384         * lib/xstriconv.c: New file.
77385
77386 2006-09-06  Bruno Haible  <bruno@clisp.org>
77387
77388         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77389         lib_..._LDFLAGS.
77390
77391 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77392
77393         * lib/argz_.h: Sync from Libtool.
77394
77395         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77396                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77397
77398         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77399
77400 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77401
77402         * modules/trim: New file.
77403
77404 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77405
77406         * lib/trim.h: New file.
77407         * lib/trim.c: New file.
77408
77409 2006-09-05  Bruno Haible  <bruno@clisp.org>
77410
77411         * MODULES.html.sh (String handling): Add trim.
77412
77413 2006-09-04  Karl Berry  <karl@gnu.org>
77414
77415         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77416         until next release.
77417
77418 2006-09-03  Bruno Haible  <bruno@clisp.org>
77419
77420         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77421         correctly.
77422
77423 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77426         not gl_GETLOADAVG.  Omit unneeded semicolons.
77427         Problems reported by Ralf Wildenhues in
77428         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77429         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77430         at the end, which is the usual gnulib style.
77431
77432         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77433         of doing all the work ourselves.
77434         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77435         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77436
77437 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77438
77439         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77440         Problem reported by Ralf Wildenhues in
77441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77442
77443         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77444         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77445
77446 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77447
77448         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77449         yesterday's patch by changing test -n to test -z.
77450
77451 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77452
77453         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77454         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77455         the former is now obsolescent.
77456
77457         * modules/chdir-long (Depends-on): Add fcntl.
77458
77459 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77462         obsolescent, and programs should use gnulib instead.
77463         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77464         but with prefixes changed.
77465
77466 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77469         or stdbool.h, because they might not exist while configuring.
77470
77471         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77472         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77473         does that for us.
77474         (O_DIRECTORY): Remove.
77475
77476 2006-08-31  Eric Blake  <ebb9@byu.net>
77477
77478         * gnulib-tool: Don't let emacs change spaces to TAB.
77479
77480 2006-08-31  Bruno Haible  <bruno@clisp.org>
77481
77482         * gnulib-tool: When calling func_import more than once, do it in a
77483         subshell.
77484         Reported by Eric Blake <ebb9@byu.net>.
77485
77486 2006-08-31  Bruno Haible  <bruno@clisp.org>
77487
77488         * gnulib-tool (nl): Remove variable.
77489         (sed_transform_lib_file): Use more robust test for config-h module.
77490         (func_import): Fix typo in 2006-08-25 patch.
77491
77492 2006-08-31  Bruno Haible  <bruno@clisp.org>
77493
77494         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77495         specified, augment Makefile.am variables instead of assigning them.
77496
77497 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         Work around a bug in both the Linux and SunOS 64-bit kernels:
77500         nanosleep mishandles sleeps for longer than 2**31 seconds.
77501         Problem reported by Frank v Waveren in
77502         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77504         Check for nanosleep bug.
77505         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77506
77507 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77508
77509         Work around a bug in both the Linux and SunOS 64-bit kernels:
77510         nanosleep mishandles sleeps for longer than 2**31 seconds.
77511         Problem reported by Frank v Waveren in
77512         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77513         * lib/nanosleep.c (BILLION): New constant.
77514         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77515         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77516         implementation.
77517
77518 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77519
77520         * modules/nanosleep (Depends-on): Add gettime.
77521
77522 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77523         and Simon Josefsson  <jas@extundo.com>
77524         and Oskar Liljeblad  <oskar@osk.mine.nu>
77525
77526         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77527         * gnulib-tool (func_import): New license type 'unmodifiable license
77528         text'.
77529         * modules/fdl: Use it.  Longer description.
77530         * module/gpl, module/lgpl: New files.
77531
77532 2006-08-30  Jim Meyering  <jim@meyering.net>
77533
77534         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77535         shadowing the parameter.
77536
77537 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77538
77539         Sync from Libtool:
77540
77541         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77542
77543         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77544         sharing with gnulib.  Report by Eric Blake.
77545
77546 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         * modules/isapipe: New file.
77549         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77550
77551 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77552
77553         * modules/configmake (Makefile.am): Add a comment, and omit
77554         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77555         by Bruno Haible.
77556
77557 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * m4/isapipe.m4: New file.
77560
77561 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77562
77563         * lib/isapipe.c, lib/isapipe.h: New files.
77564
77565 2006-08-29  Jim Meyering  <jim@meyering.net>
77566
77567         * modules/configmake (Makefile.am): Make configmake.h depend on
77568         Makefile.  Otherwise, a stale configmake.h could hang around.
77569
77570 2006-08-29  Eric Blake  <ebb9@byu.net>
77571
77572         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77573         resolution of upstream bug 3044.
77574
77575 2006-08-29  Bruno Haible  <bruno@clisp.org>
77576
77577         * modules/localcharset (Depends-on): Add configmake.
77578         (Makefile.am): Remove setting of LIBDIR through DEFS.
77579
77580 2006-08-29  Bruno Haible  <bruno@clisp.org>
77581
77582         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77583         defined.
77584
77585 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77586
77587         * modules/fcntl: New file.
77588         * modules/chdir-safer (Depends-on): Add fcntl.
77589         * modules/fts: Likewise.
77590         * modules/mkdir-p: Likewise.
77591
77592         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77593         This undoes the most recent change, since we're now addressing the
77594         problem in a different way.
77595
77596         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77597         into output, since the output might be called Makefile.am even
77598         if $makefile_name is something different.
77599         (func_import): Use $makefile_am rather than
77600         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77601         empty.
77602
77603         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77604
77605 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77608         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77609         recent change to stdint.m4, since we're now addressing the problem in a
77610         different way.
77611
77612 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         * m4/fcntl_h.m4: New file.
77615
77616 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77617
77618         * lib/fcntl_.h: New file.
77619         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77620         the fcntl module.
77621         * lib/dirchownmod.c: Likewise.
77622         * lib/fts.c: Likewise.
77623
77624         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77625         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77626         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77627         just before including <inttypes.h>, to avoid circular inclusion.
77628
77629 2006-08-28  Jim Meyering  <jim@meyering.net>
77630
77631         * doc/visibility.texi: Actually read and correct the grammar of the
77632         sentence affected by yesterday's change.
77633
77634 2006-08-28  Eric Blake  <ebb9@byu.net>
77635
77636         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77637         needs wrapper.
77638
77639 2006-08-28  Eric Blake  <ebb9@byu.net>
77640
77641         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77642
77643 2006-08-28  Eric Blake  <ebb9@byu.net>
77644
77645         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77646
77647 2006-08-28  Bruno Haible  <bruno@clisp.org>
77648
77649         * modules/c-strstr: New file, from GNU gettext.
77650         * MODULES.html.sh (String handling): Add c-strstr.
77651
77652 2006-08-28  Bruno Haible  <bruno@clisp.org>
77653
77654         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77655         macros.
77656         Reported by Eric Blake.
77657
77658 2006-08-28  Bruno Haible  <bruno@clisp.org>
77659
77660         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77661         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77662         * lib/vasprintf.c: Include errno.h, limits.h.
77663         (EOVERFLOW): New fallback definition.
77664         (vasprintf): Test here whether the string length is > INT_MAX.
77665         * lib/vsnprintf.c: Include errno.h, limits.h.
77666         (EOVERFLOW): New fallback definition.
77667         (vsnprintf): Fix bug when generated string was too long for the buffer.
77668         Test here whether the string length is > INT_MAX.
77669
77670 2006-08-28  Bruno Haible  <bruno@clisp.org>
77671
77672         * lib/inttypes_.h (SCNX*): Remove definitions.
77673         Reported by Eric Blake.
77674
77675 2006-08-28  Bruno Haible  <bruno@clisp.org>
77676
77677         * lib/c-strstr.h: New file, from GNU gettext.
77678         * lib/c-strstr.c: New file, from GNU gettext.
77679
77680 2006-08-28  Bruno Haible  <bruno@clisp.org>
77681
77682         * gnulib-tool: Reorder some statements.
77683
77684 2006-08-28  Bruno Haible  <bruno@clisp.org>
77685
77686         * gnulib-tool: New option --makefile-name.
77687         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77688         $makefile_name.
77689         (func_import): Write $makefile_name to the cache file, and read it from
77690         there unless explicitly specified. Use $makefile_name as file name
77691         instead of Makefile.am. Adjust the recommendations accordingly.
77692
77693 2006-08-28  Bruno Haible  <bruno@clisp.org>
77694
77695         * gnulib-tool (func_verify_module): Check against misapplying patch.
77696
77697 2006-08-28  Bruno Haible  <bruno@clisp.org>
77698
77699         * gnulib-tool (func_relativize, func_relconcat): New functions.
77700         Give an error if --local-dir is given with --update.
77701         Remove trailing slashes from $local_gnulib_dir.
77702         (func_import): Store the relativized $local_gnulib_dir in
77703         gnulib-cache.m4, and read it from there if not specified explicitly.
77704
77705 2006-08-28  Bruno Haible  <bruno@clisp.org>
77706
77707         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77708         is the current directory. Respect also $local_gnulib_dir.
77709
77710 2006-08-28  Bruno Haible  <bruno@clisp.org>
77711             Simon Josefsson  <jas@extundo.com>
77712
77713         BeOS portability.
77714         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77715
77716 2006-08-27  Jim Meyering  <jim@meyering.net>
77717
77718         * doc/visibility.texi: Remove duplicate word: "pointer".
77719
77720 2006-08-26  Bruno Haible  <bruno@clisp.org>
77721
77722         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77723         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77724         (Makefile.am): Create inttypes.h from inttypes_.h.
77725         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77726
77727         * modules/imaxabs: New file.
77728
77729         * modules/imaxdiv: New file.
77730
77731 2006-08-26  Bruno Haible  <bruno@clisp.org>
77732
77733         * m4/inttypes.m4: New file.
77734         * m4/_inttypes_h.m4: Remove file.
77735         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77736         PRI_MACROS_BROKEN.
77737         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77738
77739         * m4/imaxabs.m4: New file.
77740
77741         * m4/imaxdiv.m4: New file.
77742
77743 2006-08-26  Bruno Haible  <bruno@clisp.org>
77744
77745         * lib/inttypes_.h: New file.
77746         * lib/inttypes.h: Remove file.
77747         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77748
77749         * lib/imaxabs.c: New file.
77750
77751         * lib/imaxdiv.c: New file.
77752
77753 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77754
77755         New config-h module, so that "make" output needn't be cluttered
77756         by -DHAVE_CONFIG_H.
77757         * MODULES.html.sh (Support for building libraries and executables):
77758         Add config-h.
77759         * modules/config-h: New file.
77760         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77761         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77762         the config-h module is used.
77763
77764         New configmake module, so that "make" output needn't be cluttered
77765         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77766         * MODULES.html.sh (Support for building libraries and executables):
77767         Add configmake.
77768         * modules/configmake: New file.
77769
77770 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77771
77772         * m4/config-h.m4: New file.
77773
77774 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77775
77776         * config/srclist.txt: Add elisp-comp.
77777
77778 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77779
77780         * MODULES.html.sh (Support for building libraries and executables):
77781         Add elisp-comp.
77782         * build-aux/elisp-comp: New file.
77783         * modules/elisp-comp: New file.
77784
77785 2006-08-24  Bruno Haible  <bruno@clisp.org>
77786
77787         * gnulib-tool (func_create_testdir): Use non-default values of
77788         sourcebase and m4base.
77789
77790 2006-08-24  Bruno Haible  <bruno@clisp.org>
77791
77792         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77793         HTML structure.
77794
77795 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         * modules/openat (Depends-on): Add lchown.
77798
77799 2006-08-23  Bruno Haible  <bruno@clisp.org>
77800
77801         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77802         of gl_LOCK_EARLY instead of gl_LOCK.
77803
77804 2006-08-23  Bruno Haible  <bruno@clisp.org>
77805
77806         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77807         on OSF/1 to no.
77808         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77809
77810 2006-08-23  Bruno Haible  <bruno@clisp.org>
77811
77812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77813         as unusable.
77814
77815         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77816         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77817         (gl_LOCK): New macro.
77818
77819 2006-08-22  Simon Josefsson  <jas@extundo.com>
77820
77821         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77822         to md5 module.
77823
77824 2006-08-22  Simon Josefsson  <jas@extundo.com>
77825
77826         * MODULES.html.sh: Add "Support for maintaining and release
77827         projects".
77828
77829         * build-aux/gnupload: New file, from coreutils.
77830
77831 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         Avoid the need for AC_LIBSOURCES in m4 macros.
77834         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77835         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77836         * modules/check-version (EXTRA_DIST): Add check-version.h.
77837         * modules/crc (EXTRA_DIST): Add crc.h.
77838         * modules/des (EXTRA_DIST): Add des.h.
77839         * modules/gc (EXTRA_DIST): Add gc.h.
77840         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77841         * modules/getline (EXTRA_DIST): Add getline.h.
77842         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77843         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77844         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77845         * modules/md2 (EXTRA_DIST): Add md2.h.
77846         * modules/md4 (EXTRA_DIST): Add md4.h.
77847         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77848         * modules/read-file (EXTRA_DIST): Add read-file.h.
77849         * modules/readline (EXTRA_DIST): Add readline.h.
77850         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77851         rijndael-api-fst.h.
77852
77853 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77854
77855         * m4/rijndael.m4 (gl_ARCFOUR):
77856         * m4/arctwo.m4 (gl_ARCTWO):
77857         * m4/check-version.m4 (gl_CHECK_VERSION):
77858         * m4/crc.m4 (gl_CRC):
77859         * m4/des.m4 (gl_DES):
77860         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77861         * m4/gc.m4 (gl_GC):
77862         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77863         * m4/getline.m4 (gl_FUNC_GETLINE):
77864         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77865         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77866         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77867         * m4/md2.m4 (gl_MD2):
77868         * m4/md4.m4 (gl_MD4):
77869         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77870         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77871         * m4/readline.m4 (gl_FUNC_READLINE):
77872         * m4/rijndael.m4 (gl_RIJNDAEL):
77873         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77874         to get the necessary .h files and whatnot.
77875
77876 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77877
77878         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77879         gnulib rather than the other way around.
77880         * config/srclistvars.sh (COREUTILS): Remove.
77881
77882 2006-08-22  Jim Meyering  <jim@meyering.net>
77883
77884         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77885
77886         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77887
77888 2006-08-22  Eric Blake  <ebb9@byu.net>
77889
77890         * modules/regexprops-generic: New file.
77891         * MODULES.html.sh (Support for building documentation): List it.
77892
77893 2006-08-22  Eric Blake  <ebb9@byu.net>
77894
77895         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77896         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77897         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77898         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77899
77900 2006-08-22  Bruno Haible  <bruno@clisp.org>
77901
77902         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77903         and lib_LTLIBRARIES like the other lib_* variables.
77904
77905 2006-08-22  Bruno Haible  <bruno@clisp.org>
77906
77907         * build-aux/x-to-1.in: New file, from GNU gettext.
77908
77909 2006-08-22  Bruno Haible  <bruno@clisp.org>
77910
77911         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77912         <utmpx.h> exists.
77913
77914 2006-08-22  Bruno Haible  <bruno@clisp.org>
77915
77916         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77917         <utmpx.h> exists.
77918
77919 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77920
77921         BeOS portability.
77922         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77923         exist.
77924         Problem reported by Bruno Haible.
77925
77926 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         Avoid the need for AC_LIBSOURCES in m4 macros.
77929         * modules/acl (EXTRA_DIST): Add acl.h.
77930         * modules/argmatch (Files): Add m4/argmatch.m4.
77931         (configure.ac): Add gl_ARGMATCH.
77932         (EXTRA_DIST): Renamed from lib_SOURCES, for
77933         consistency with the other modules.  Remove argmatch.c.
77934         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77935         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77936         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77937         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77938         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77939         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77940         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77941         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77942         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77943         * modules/closeout (EXTRA_DIST): Add closeout.h.
77944         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77945         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77946         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77947         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77948         dirname.h; remove basename.c and stripslash.c.
77949         * modules/exclude (EXTRA_DIST): Add exclude.h.
77950         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77951         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77952         * modules/file-type (EXTRA_DIST): Add file-type.h.
77953         * modules/filemode (EXTRA_DIST): Add filemode.h.
77954         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77955         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77956         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77957         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77958         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77959         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77960         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77961         * modules/getdate (EXTRA_DIST): Add getdate.c.
77962         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77963         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77964         * modules/getpass (EXTRA_DIST): Add getpass.h.
77965         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77966         * modules/group-member (EXTRA_DIST): Add group-member.h.
77967         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77968         * modules/hash (EXTRA_DIST): Add hash.h.
77969         * modules/human (EXTRA_DIST): Add human.h.
77970         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77971         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77972         * modules/lchown (EXTRA_DIST): Add lchown.h.
77973         * modules/long-options (EXTRA_DIST): Add long-options.h.
77974         * modules/lstat (EXTRA_DIST): Add lstat.h.
77975         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77976         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77977         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77978         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77979         * modules/memxor (EXTRA_DIST): Add memxor.h.
77980         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77981         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77982         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77983         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77984         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77985         * modules/physmem (EXTRA_DIST): Add physmem.h.
77986         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77987         * modules/posixver (EXTRA_DIST): Add posixver.h.
77988         * modules/quote (EXTRA_DIST): Add quote.h.
77989         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77990         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77991         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77992         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77993         regex_internal.h regexec.c.
77994         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77995         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77996         * modules/same (EXTRA_DIST): Add same.h.
77997         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77998         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77999         * modules/savedir (EXTRA_DIST): Add savedir.h.
78000         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78001         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78002         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78003         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78004         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78005         * modules/strdup (EXTRA_DIST): Add strdup.h.
78006         * modules/strftime (EXTRA_DIST): Add strftime.h.
78007         * modules/strndup (EXTRA_DIST): Add strndup.h.
78008         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78009         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78010         * modules/time_r (EXTRA_DIST): Add time_r.h.
78011         * modules/timespec (EXTRA_DIST): Add timespec.h.
78012         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78013         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78014         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78015         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78016         * modules/userspec (EXTRA_DIST): Add userspec.h.
78017         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78018         * modules/utimens (EXTRA_DIST): Add utimens.h.
78019         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78020         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78021         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78022         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78023         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78024         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78025         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78026         * modules/yesno (EXTRA_DIST): Add yesno.h.
78027
78028 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78029
78030         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78031
78032         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78033         * m4/dev-ino.m4, same-inode.m4: Remove.
78034
78035         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78036         * m4/acl.m4 (AC_FUNC_ACL):
78037         * m4/backupfile.m4 (gl_BACKUPFILE):
78038         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78039         * m4/canon-host.m4 (gl_CANON_HOST):
78040         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78041         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78042         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78043         * m4/cloexec.m4 (gl_CLOEXEC):
78044         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78045         * m4/closeout.m4 (gl_CLOSEOUT):
78046         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78047         * m4/dirname.m4 (gl_DIRNAME):
78048         * m4/exclude.m4 (gl_EXCLUDE):
78049         * m4/exitfail.m4 (gl_EXITFAIL):
78050         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78051         * m4/file-type.m4 (gl_FILE_TYPE):
78052         * m4/filemode.m4 (gl_FILEMODE):
78053         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78054         * m4/fpending.m4 (gl_FUNC_FPENDING):
78055         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78056         * m4/fts.m4 (gl_FUNC_FTS):
78057         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78058         * m4/getdate.m4 (gl_GETDATE):
78059         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78060         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78061         * m4/getpass.m4 (gl_FUNC_GETPASS):
78062         * m4/gettime.m4 (gl_GETTIME):
78063         * m4/getugroups.m4 (gl_GETUGROUPS):
78064         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78065         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78066         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78067         * m4/hash.m4 (gl_HASH):
78068         * m4/idcache.m4 (gl_IDCACHE):
78069         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78070         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78071         * m4/long-options.m4 (gl_LONG_OPTIONS):
78072         * m4/lstat.m4 (gl_FUNC_LSTAT):
78073         * m4/md5.m4 (gl_MD5):
78074         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78075         * m4/memcoll.m4 (gl_MEMCOLL):
78076         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78077         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78078         * m4/memxor.m4 (gl_MEMXOR):
78079         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78080         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78081         * m4/modechange.m4 (gl_MODECHANGE):
78082         * m4/mountlist.m4 (gl_MOUNTLIST):
78083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78084         * m4/openat.m4 (gl_FUNC_OPENAT):
78085         * m4/pathmax.m4 (gl_PATHMAX):
78086         * m4/physmem.m4 (gl_PHYSMEM):
78087         * m4/posixtm.m4 (gl_POSIXTM):
78088         * m4/posixver.m4 (gl_POSIXVER):
78089         * m4/quote.m4 (gl_QUOTE):
78090         * m4/quotearg.m4 (gl_QUOTEARG):
78091         * m4/readtokens.m4 (gl_READTOKENS):
78092         * m4/readutmp.m4 (gl_READUTMP):
78093         * m4/regex.m4 (gl_REGEX):
78094         * m4/safe-read.m4 (gl_SAFE_READ):
78095         * m4/safe-write.m4 (gl_SAFE_WRITE):
78096         * m4/same.m4 (gl_SAME):
78097         * m4/save-cwd.m4 (gl_SAVE_CWD):
78098         * m4/savedir.m4 (gl_SAVEDIR):
78099         * m4/settime.m4 (gl_SETTIME):
78100         * m4/sha1.m4 (gl_SHA1):
78101         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78102         * m4/stat-macros.m4 (gl_STAT_MACROS):
78103         * m4/stat-time.m4 (gl_STAT_TIME):
78104         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78105         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78106         * m4/strdup.m4 (gl_FUNC_STRDUP):
78107         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78108         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78109         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78110         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78111         * m4/time_r.m4 (gl_TIME_R):
78112         * m4/timespec.m4 (gl_TIMESPEC):
78113         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78114         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78115         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78116         * m4/userspec.m4 (gl_USERSPEC):
78117         * m4/utimecmp.m4 (gl_UTIMECMP):
78118         * m4/utimens.m4 (gl_UTIMENS):
78119         * m4/xalloc.m4 (gl_XALLOC):
78120         * m4/xgetcwd.m4 (gl_XGETCWD):
78121         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78122         * m4/xreadlink.m4 (gl_XREADLINK):
78123         * m4/xstrtod.m4 (gl_XSTRTOD):
78124         * m4/yesno.m4 (gl_YESNO):
78125         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78126         to get the necessary .h files and whatnot.
78127
78128 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78129             Bruno Haible  <bruno@clisp.org>
78130
78131         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78132         /bin/sh understanding of '!' conditional negation.
78133
78134 2006-08-21  Jim Meyering  <jim@meyering.net>
78135
78136         * modules/openat (Depends-on): Really alphabetize.
78137
78138         * modules/acl (Depends-on): Add error and quote.
78139
78140         * check-module (find_included_lib_files): Add at-func.c to the
78141         ok-to-include-more-than-once white list.
78142
78143         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78144
78145 2006-08-21  Bruno Haible  <bruno@clisp.org>
78146
78147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78148         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78149         Reported by Martin Lambers <marlam@marlam.de>.
78150
78151 2006-08-21  Bruno Haible  <bruno@clisp.org>
78152
78153         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78154         specify an installation location, don't emit a noinst_LIBRARIES or
78155         noinst_LTLIBRARIES assignment.
78156
78157 2006-08-21  Bruno Haible  <bruno@clisp.org>
78158
78159         BeOS portability.
78160         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78161         BeOS has mbrtowc() but no <wctype.h>.
78162
78163 2006-08-21  Bruno Haible  <bruno@clisp.org>
78164
78165         BeOS portability.
78166         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78167         exist.
78168
78169 2006-08-21  Bruno Haible  <bruno@clisp.org>
78170
78171         BeOS portability.
78172         * lib/mbchar.h: Include <wctype.h> only if it exists.
78173
78174 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78175
78176         Remove files that are no longer needed by their respective modules.
78177         * m4/obstack.m4: Remove.
78178         * m4/strerror_r.m4: Remove.
78179         * m4/uint32_t.m4: Remove.
78180         * m4/uintptr_t.m4: Remove.
78181         * m4/ullong_max.m4: Remove.
78182         * m4/xstrtoimax.m4: Remove.
78183         * m4/xstrtoumax.m4: Remove.
78184
78185         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78186         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78187         dependencies now capture this.
78188
78189         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78190         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78191         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78192         * m4/human.m4 (gl_HUMAN): Likewise.
78193         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78194         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78195
78196         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78197
78198         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78199         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78200         stdint.
78201         * m4/human.m4 (gl_HUMAN): Likewise.
78202         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78203         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78204         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78205         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78206         * m4/xstrtol (gl_XSTRTOL): Likewise.
78207
78208         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78209         AC_TYPE_LONG_LONG_INT.
78210         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78211         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78212         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78213         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78214
78215         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78216         on stdbool.
78217
78218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78219         (gl_PREREQ_XSTRTOUL): Remove.
78220
78221         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78222
78223         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78224         mode.
78225
78226 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         Add and change modules to make it easier for coreutils to use
78229         gnulib-tool.
78230         * modules/backupfile (Files): Remove m4/d-ino.m4.
78231         (Depends-on): Add d-ino.
78232         * modules/cycle-check (Depends-on): Add stdint.
78233         (lib_SOURCES): Add cycle-check.h.
78234         * modules/d-ino: New module.
78235         * modules/d-type: New module.
78236         * modules/error (Files): Remove m4/strerror_r.m4.
78237         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78238         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78239         m4/inttypes_h.m4, m4/uintmax_t.m4.
78240         (Depends-on): Add stdint.
78241         (lib_SOURCES): Add fsusage.h.
78242         * modules/getcwd (Files): Remove d-ino.m4.
78243         (Depends-on): Add d-ino.
78244         * modules/getndelim2 (Depends-on): Add stdint.
78245         * modules/glob (Files): Remove m4/d-type.m4.
78246         (Depends-on): Add d-type.
78247         * modules/host-os: New module.
78248         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78249         m4/inttypes_h.m4, m4/uintmax_t.m4.
78250         * Depends-on: Add stdint.
78251         (lib_SOURCES): Add human.h.
78252         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78253         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78254         m4/uintmax_t.m4, m4/ulonglong.m4.
78255         (Depends-on): Add stdint.
78256         (EXTRA_DIST): Add inttostr.h.
78257         * modules/lchmod: New module.
78258         * modules/link-follow: New module.
78259         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78260         (Depends-on): Add lchmod.
78261         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78262         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78263         (Depends-on): Add stdint.
78264         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78265         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78266         (Depends-on): Add stdint.
78267         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78268         * modules/perl: New module.
78269         * modules/regex (Depends-on): Add stdint.
78270         * modules/rmdir-errno: New module.
78271         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78272         m4/intmax_t.m4.
78273         (Depends-on): Add stdint.
78274         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78275         m4/uintmax_t.m4.
78276         (Depends-on): Add stdint.
78277         * modules/unlink-busy: New module.
78278         * modules/utimecmp (Depends-on): Add stdint.
78279         * modules/uptime: New module.
78280         * modules/winsz-ioctl: New module.
78281         * modules/winsz-termios: New module.
78282         * modules/xnanosleep (Depends-on): Add nanosleep.
78283         * modules/ullong_max: Remove.
78284         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78285         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78286         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78287         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78288         (Depends-on): Add inttypes.
78289         (lib_SOURCES): Add xstrtol.h.
78290         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78291         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78292         * MODULES.html.sh: Move 'assert' into the assert section.
78293         Move 'dummy' into the linking section.
78294         Remove ullong_max.
78295         Add section for compatibility checks for POSIX:2001 functions,
78296         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78297         winsz-ioctl, and winsz-termios into it.
78298         Add lchmod.
78299         Add top-level Misc section and put host-os, perl, and uptime
78300         into it.
78301
78302 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78303
78304         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78305         now assume the stdint module.  Do not include inttypes.h.
78306         * lib/fsusage.h: Likewise.
78307         * lib/getndelim2.c: Likewise.
78308         * lib/human.h: Likewise.
78309         * lib/inttostr.h: Likewise.
78310         * lib/obstack.c: Likewise.
78311         * lib/regex_internal.h: Likewise.
78312         * lib/tempname.c: Likewise.
78313         * lib/utimecmp.c: Likewise.
78314         * lib/xstrtol.h: Likewise.
78315
78316         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78317
78318         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78319         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78320         * lib/xtime.h: Likewise.
78321
78322 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         * modules/openat (Files): Add lib/fchmodat.c.
78325         Fixes problem reported by Jay Youngman.
78326
78327 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78330         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78331
78332 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78333             Bruno Haible  <bruno@clisp.org>
78334
78335         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78336         and is a script that invokes bison. Tighten the code. Add comments.
78337
78338 2006-08-18  Jim Meyering  <jim@meyering.net>
78339
78340         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78341         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78342         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78343         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78344
78345 2006-08-18  Bruno Haible  <bruno@clisp.org>
78346
78347         * modules/bison-i18n: New file.
78348         * MODULES.html.sh (Internationalization functions): Add it.
78349
78350 2006-08-18  Bruno Haible  <bruno@clisp.org>
78351
78352         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78353         sys/statvfs.h. When getmntinfo was found, check its declaration and
78354         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78355
78356 2006-08-18  Bruno Haible  <bruno@clisp.org>
78357
78358         * m4/bison-i18n.m4: New file, from bison.
78359
78360 2006-08-18  Bruno Haible  <bruno@clisp.org>
78361
78362         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78363         (ME_DUMMY): Treat "kernfs" as a dummy.
78364         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78365
78366 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78367
78368         Update from coreutils.
78369
78370         2006-08-15  Jim Meyering  <jim@meyering.net>
78371
78372         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78373
78374         2006-01-17  Jim Meyering  <jim@meyering.net>
78375
78376         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78377
78378         2006-01-11  Jim Meyering  <jim@meyering.net>
78379
78380         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78381         Check for the lchmod function.
78382
78383 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78384
78385         Update from coreutils.
78386
78387         * lib/__fpending.h: Add copyright notice.
78388         * lib/fprintftime.h: Likewise.
78389         * lib/savedir.c: Use (C) in copyright notice.
78390         * lib/savedir.h: Likewise.
78391
78392         2006-08-15  Jim Meyering  <jim@meyering.net>
78393
78394         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78395         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78396         in support of the EXPECTED_ERRNO macro.
78397         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78398         definitions.  Instead, define the appropriate symbols and include
78399         "at-func.c".
78400         * lib/mkdirat.c (mkdirat): Likewise.
78401         * lib/fchmodat.c (fchmodat): Likewise.
78402         (ENOSYS): Remove definition.
78403         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78404         it.  Don't include "unistd--.h" -- it wasn't ever used.
78405
78406         2006-01-17  Jim Meyering  <jim@meyering.net>
78407
78408         Rewrite fts.c not to change the current working directory,
78409         by using openat, fstatat, fdopendir, etc..
78410
78411         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78412         (HAVE_OPENAT_SUPPORT): Define.
78413         [_LIBC] (fchdir): Don't undef or define; no longer used.
78414         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78415         Now, this `function' always succeeds, and consumes its file descriptor
78416         parameter -- so callers must not close such FDs.  Update callers.
78417         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78418         (diropen): Add parameter, SP.  Adjust all callers.
78419         Implement using diropen_fd, rather than open.
78420         (fts_open): Initialize new member, fts_cwd_fd.
78421         Remove fts_rft-setting code.
78422         (fts_close): Close fts_cwd_fd, if necessary.
78423         (__opendir2): Define in terms of opendir or opendirat,
78424         depending on whether the FST_NOCHDIR flag is set.
78425         (fts_build): Since fts_safe_changedir consumes its FD, and since
78426         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78427         and close the dup'd file descriptor upon failure.
78428         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78429         (fts_safe_changedir): Tweak semantics to reflect that this function
78430         now calls cwd_advance_fd and hence consumes its FD argument.
78431         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78432         [struct FTS] (fts_rft): Remove now-unused member.
78433         [struct FTS] (fts_cycle.state): Improve comment.
78434
78435         * lib/openat.c (openat_needs_fchdir): New function.
78436         * lib/openat.h (openat_needs_fchdir): Declare it.
78437
78438 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78439
78440         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78441         Problem and fix reported by Pádraig Brady in
78442         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78443
78444 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78445
78446         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78447
78448 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * lib/memcoll.c (memcoll): Optimize for the common case where the
78451         arguments are bytewise equal.
78452
78453 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78454
78455         * doc/regexprops-generic.texi: Add a copyright notice.
78456
78457 2006-08-15  Bruno Haible  <bruno@clisp.org>
78458
78459         * modules/tmpdir (License): Change to LGPL.
78460
78461 2006-08-15  Bruno Haible  <bruno@clisp.org>
78462
78463         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78464         module.
78465
78466 2006-08-14  Simon Josefsson  <jas@extundo.com>
78467
78468         * config/srclist.txt: Add gnupload.
78469
78470 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         Change copyright notice from LGPL 2 to GPL 2, since that's the
78473         standard form used in the gnulib repository.
78474         * tests/test-lock.c: Likewise.
78475         * tests/test-stdint.c: Likewise.
78476         * tests/test-tls.c: Likewise.
78477
78478         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78479         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78480         Add copyright notice.
78481
78482         * check-module: Add copyright notice.  Output a copyright
78483         notice if "--version" is specified.
78484         * modules/COPYING: New file.
78485         * tests/test-getaddrinfo.c: Add copyright notice.
78486         * tests/test-verify.c: Likewise.
78487
78488 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         Change copyright notice from LGPL 2 to GPL 2, since that's the
78491         standard form used in the gnulib repository.
78492         * lib/lock.c: LGPL -> GPL.
78493         * lib/lock.h: Likewise.
78494         * lib/strnlen1.c: Likewise.
78495         * lib/strnlen1.h: Likewise.
78496         * lib/tls.c: Likewise.
78497         * lib/tls.h: Likewise.
78498         * lib/tmpdir.c: Likewise.
78499
78500         * lib/TODO: Remove; this belongs only in coreutils.
78501
78502 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78503
78504         Add copyright notices to long-enough files that lack them, since
78505         otherwise the files aren't clearly free.  Use the same notice that
78506         getdate.texi already uses.
78507         * doc/alloca-opt.texi: Add copyright notice.
78508         * doc/alloca.texi: Likewise.
78509         * doc/ctime.texi: Likewise.
78510         * doc/functions.texi: Likewise.
78511         * doc/gcd.texi: Likewise.
78512         * doc/gnulib-tool.texi: Likewise.
78513         * doc/inet_ntoa.texi: Likewise.
78514         * doc/visibility.texi: Likewise.
78515
78516         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78517         * doc/quote.texi: Add copyright notice.
78518
78519         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78520         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78521         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78522         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78523         is now obsolete, and give a pointer to the Sun list.
78524         Add copyright notice.
78525
78526 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78527
78528         * config/srclistvars.sh: Add copyright notice.
78529
78530 2006-08-14  Eric Blake  <ebb9@byu.net>
78531
78532         Import the following change from libc:
78533
78534         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78535
78536         Upstream bug 2997.
78537         * lib/misc/error.c: Add space between program name and message if file
78538         name is missing.
78539
78540 2006-08-12  Karl Berry  <karl@gnu.org>
78541
78542         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78543         remove, these originate in gnulib now.
78544
78545 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78546
78547         * doc/Makefile (standards.info standards.html standards.dvi):
78548         Also depend on make-stds.texi.
78549
78550 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78553         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78554
78555         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78556         in wchar_t.  Problem reported by Eric Blake.
78557
78558         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78559         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78560         Also, help the compiler to keep LEN in a register.
78561
78562 2006-08-11  Eric Blake  <ebb9@byu.net>
78563
78564         * users.txt: Sort.  Add tar.
78565
78566 2006-08-11  Bruno Haible  <bruno@clisp.org>
78567
78568         * users.txt: New file.
78569
78570 2006-08-11  Bruno Haible  <bruno@clisp.org>
78571
78572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78573         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78574
78575 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78576
78577         * modules/snprintf (Depends-on): Remove minmax.
78578         (Maintainer): Add self and Bruno.
78579
78580 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78583         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78584         (EOVERFLOW): Define if the system does not.
78585         Do not include "minmax.h"; it wasn't used.
78586         (snprintf): Don't assume size_t promotes to an unsigned type.
78587         Fix bug when generated string was too long for the buffer: the
78588         buffer's contents are supposed to be the initial prefix of the
78589         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78590         exceeds INT_MAX; do the check ourselves.
78591
78592         Import the following changes from libc:
78593
78594         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78595
78596         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78597         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78598         set wc to the byte which couldn't be converted.
78599         (re_string_reconstruct): Don't clear valid_raw_len before calling
78600         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78601         tip_context using re_string_context_at.
78602
78603         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78604
78605         * lib/posix/regex.h: g++ still cannot handled [restrict].
78606
78607         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78608
78609         * lib/posix/regex.h: Remove special handling for VMS.
78610
78611 2006-08-10  Jim Meyering  <jim@meyering.net>
78612
78613         * modules/same-inode: New module.
78614         * modules/dev-ino: New module.
78615         * modules/cycle-check: Depend on these modules, rather than simply
78616         including their .h files.
78617         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78618         required via m4/cycle-check.m4.
78619         * modules/same: Depend on new same-inode module, rather than
78620         including same-inode.h.
78621         * modules/chdir-safer: New file.
78622
78623         * modules/chown (Depends-on): Add stat-macros.
78624
78625 2006-08-10  Jim Meyering  <jim@meyering.net>
78626
78627         * m4/cycle-check.m4: New file.
78628         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78629         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78630
78631 2006-08-10  Eric Blake  <ebb9@byu.net>
78632
78633         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78634         in from original proposal.
78635
78636 2006-08-10  Eric Blake  <ebb9@byu.net>
78637         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78638
78639         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78640         namespace.
78641
78642 2006-08-10  Bruno Haible  <bruno@clisp.org>
78643
78644         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78645         as well.
78646
78647 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         Sync from coreutils.
78650
78651         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78652
78653         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78654         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78655
78656 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78657
78658         * modules/restrict: Remove; no longer needed now that we assume
78659         Autoconf 2.59 or later.
78660         * MODULES.html.sh: Remove 'restrict'.
78661         * modules/argp (Depends-on): Remove 'restrict'.
78662         * modules/base64 (Depends-on): Likewise.
78663         * modules/gc (Depends-on): Likewise.
78664         * modules/getaddrinfo (Depends-on): Likewise.
78665         * modules/glob (Depends-on): Likewise.
78666         * modules/inet_ntop (Depends-on): Likewise.
78667         * modules/inet_pton (Depends-on): Likewise.
78668         * modules/memxor (Depends-on): Likewise.
78669         * modules/regex (Depends-on): Likewise.
78670         * modules/strtok_r (Depends-on): Likewise.
78671         * modules/time_r (Depends-on): Likewise.
78672
78673 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78674
78675         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78676         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78677         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78678         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78679         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78680         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78681         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78682         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78683
78684         Merge from coreutils.
78685         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78686         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78688         * m4/time_r.m4 (gl_TIME_R): Likewise.
78689
78690 2006-08-09  Karl Berry  <karl@gnu.org>
78691
78692         * config/srclist.txt: no more gettext-tools, per Bruno.
78693
78694 2006-08-08  Eric Blake  <ebb9@byu.net>
78695
78696         * modules/verror: New module.
78697         * MODULES.html.sh: Document it.
78698
78699 2006-08-08  Eric Blake  <ebb9@byu.net>
78700
78701         * lib/verror.h, lib/verror.c: New files.
78702
78703 2006-08-08  Eric Blake  <ebb9@byu.net>
78704
78705         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78706         verror_at_line output complies with GNU Coding Standards even when
78707         file is NULL.
78708
78709 2006-08-07  Bruno Haible  <bruno@clisp.org>
78710
78711         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78712         versions of AIX.
78713         Reported by Ralf Wildenhues.
78714
78715 2006-08-07  Bruno Haible  <bruno@clisp.org>
78716
78717         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78718         in an AC_DEFUN. Needed so that the autoconf snippets can use
78719         AC_REQUIRE.
78720
78721 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78722
78723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78724         Initialize pkgdata_DATA.
78725         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78726         overriding it.
78727
78728 2006-08-06  Eric Blake  <ebb9@byu.net>
78729
78730         * lib/error.h: Fold in some upstream changes from glibc.
78731         * lib/error.c: Likewise.
78732
78733 2006-08-04  Bruno Haible  <bruno@clisp.org>
78734
78735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78736         Make the mostlyclean-local rule depend on mostlyclean-generic.
78737         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78738
78739 2006-07-31  Bruno Haible  <bruno@clisp.org>
78740
78741         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78742         <stdlib.h>, <string.h>.
78743
78744 2006-07-30  Bruno Haible  <bruno@clisp.org>
78745
78746         * modules/readlink (License): Change to LGPL.
78747
78748 2006-07-30  Bruno Haible  <bruno@clisp.org>
78749
78750         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78751         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78752         set PKGDATADIR to point to it.
78753
78754 2006-07-30  Bruno Haible  <bruno@clisp.org>
78755
78756         * modules/csharpexec (configure.ac): Comment out macro invocation.
78757         * modules/javaexec (configure.ac): Likewise.
78758         * modules/javacomp-script (configure.ac): Likewise.
78759
78760         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78761
78762 2006-07-30  Bruno Haible  <bruno@clisp.org>
78763
78764         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78765         linked-list.
78766
78767 2006-07-30  Bruno Haible  <bruno@clisp.org>
78768
78769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78770
78771 2006-07-30  Bruno Haible  <bruno@clisp.org>
78772
78773         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78774         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78775         get removed.
78776
78777 2006-07-29  Bruno Haible  <bruno@clisp.org>
78778
78779         Make it possible for gnulib-tool to work with locally modified or
78780         augmented gnulib repositories.
78781         * gnulib-tool (func_usage): Document --local-dir option.
78782         (local_gnulib_dir): New variable.
78783         Handle --local-dir option.
78784         (func_lookup_file): New function.
78785         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78786         (func_get_description, func_get_filelist, func_get_description,
78787         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78788         func_get_automake_snippet, func_get_include_directive,
78789         func_get_license, func_get_maintainer): Use func_lookup_file.
78790         (func_import, func_create_testdir): Use func_lookup_file.
78791
78792 2006-07-29  Bruno Haible  <bruno@clisp.org>
78793
78794         * modules/setenv (Depends-on): Add unistd.
78795
78796 2006-07-29  Bruno Haible  <bruno@clisp.org>
78797
78798         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78799
78800 2006-07-29  Bruno Haible  <bruno@clisp.org>
78801
78802         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78803
78804 2006-07-29  Bruno Haible  <bruno@clisp.org>
78805
78806         * gnulib-tool (import, update): If there is no Makefile.am, look at
78807         aclocal.m4, instead of bailing out.
78808
78809 2006-07-29  Bruno Haible  <bruno@clisp.org>
78810
78811         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78812         Categorize the options by when they are useful.
78813
78814 2006-07-29  Bruno Haible  <bruno@clisp.org>
78815
78816         * gnulib-tool (func_usage): Document option --no-libtool.
78817         Handle option --no-libtool.
78818         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78819         for changed semantics of $libtool variable.
78820         (func_import): Likewise. If libtool is not used, show this through
78821         an option --no-libtool.
78822         (func_create_testdir): Update.
78823
78824 2006-07-29  Bruno Haible  <bruno@clisp.org>
78825
78826         * gnulib-tool (func_import): Extend error message about missing
78827         --doc-base.
78828
78829 2006-07-29  Bruno Haible  <bruno@clisp.org>
78830
78831         * gnulib-tool (func_import): Don't create the $docbase directory if
78832         there is no file to store there.
78833
78834 2006-07-29  Bruno Haible  <bruno@clisp.org>
78835
78836         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78837         relevant, look for configure.ac there, not in the current directory.
78838         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78839
78840 2006-07-29  Bruno Haible  <bruno@clisp.org>
78841
78842         * gnulib-tool (SORT): New variable.
78843         (func_usage): Undocument --assume-autoconf option.
78844         Remove --assume-autoconf option handling.
78845         (autoconf_minversion): Determine from the contents of configure.ac.
78846         (func_import): Remove autoconf_minversion handling.
78847         Suggested by Eric Blake.
78848
78849 2006-07-29  Bruno Haible  <bruno@clisp.org>
78850
78851         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78852
78853 2006-07-29  Bruno Haible  <bruno@clisp.org>
78854
78855         * config/srclist.txt (*setenv.[ch]): Remove rules.
78856
78857 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78858
78859         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78860
78861 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78862
78863         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78864         arpa/inet.h.
78865
78866 2006-07-28  Simon Josefsson  <jas@extundo.com>
78867
78868         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78869         * modules/inet_pton (Depends-on): Likewise.
78870
78871 2006-07-28  Simon Josefsson  <jas@extundo.com>
78872
78873         * m4/netinet_in_h.m4: New file.
78874
78875 2006-07-28  Simon Josefsson  <jas@extundo.com>
78876
78877         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78878         #include's.
78879
78880 2006-07-28  Simon Josefsson  <jas@extundo.com>
78881
78882         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78883         #include's.
78884
78885 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78886
78887         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78888         setgid on directories only if they set these bits.
78889         * lib/modechange.h: Remove obsolete comment about masks.
78890
78891 2006-07-28  Eric Blake  <ebb9@byu.net>
78892
78893         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78894         macro expansion.
78895
78896 2006-07-28  Bruno Haible  <bruno@clisp.org>
78897
78898         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78899
78900 2006-07-28  Bruno Haible  <bruno@clisp.org>
78901
78902         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78903
78904 2006-07-28  Bruno Haible  <bruno@clisp.org>
78905
78906         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78907         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78908         Define fallbacks.
78909         Avoids link error on FreeBSD 4.x.
78910         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78911
78912         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78913         encoding.
78914         * lib/mbswidth.c (iswcntrl): Likewise.
78915
78916 2006-07-27  Bruno Haible  <bruno@clisp.org>
78917
78918         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78919         test.
78920
78921 2006-07-27  Bruno Haible  <bruno@clisp.org>
78922
78923         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78924         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78925         defined.
78926
78927 2006-07-26  Eric Blake  <ebb9@byu.net>
78928
78929         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78930
78931 2006-07-26  Eric Blake  <ebb9@byu.net>
78932
78933         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78934         like mingw that lack mkstemp.
78935         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78936         avoid compilation warning on mingw.
78937
78938 2006-07-26  Bruno Haible  <bruno@clisp.org>
78939
78940         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78941         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78942         INT_FAST*_MIN, INTPTR_MIN.
78943
78944 2006-07-25  Bruno Haible  <bruno@clisp.org>
78945
78946         * modules/version-etc (Depends-on): Add stdarg.
78947
78948 2006-07-25  Bruno Haible  <bruno@clisp.org>
78949
78950         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78951         complex commands.
78952
78953 2006-07-25  Bruno Haible  <bruno@clisp.org>
78954
78955         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78956         defined in <stdarg.h> or config.h.
78957
78958 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78959
78960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78961         (gl_STDIO_SAFER): Remove.
78962
78963 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * MODULES.html.sh (File stream based Input/Output):
78966         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78967         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78968         * modules/fopen-safer, modules/tmpfile-safer: New files.
78969         * modules/stdio-safer: Remove.
78970
78971 2006-07-24  Bruno Haible  <bruno@clisp.org>
78972
78973         * modules/tmpdir: New file.
78974         * MODULES.html.sh (File system functions): Add it.
78975
78976 2006-07-24  Bruno Haible  <bruno@clisp.org>
78977
78978         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78979         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78980
78981 2006-07-24  Bruno Haible  <bruno@clisp.org>
78982
78983         * modules/clean-temp: New file.
78984
78985 2006-07-24  Bruno Haible  <bruno@clisp.org>
78986
78987         * m4/tmpdir.m4: New file, from GNU gettext.
78988
78989 2006-07-24  Bruno Haible  <bruno@clisp.org>
78990
78991         * lib/tmpdir.h: New file, from GNU gettext.
78992         * lib/tmpdir.c: New file, from GNU gettext.
78993
78994 2006-07-24  Bruno Haible  <bruno@clisp.org>
78995
78996         * lib/clean-temp.h: New file, from GNU gettext.
78997         * lib/clean-temp.c: New file, from GNU gettext.
78998
78999 2006-07-23  Eric Blake  <ebb9@byu.net>
79000
79001         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79002         (Depends-on): Add binary-io.
79003
79004 2006-07-23  Eric Blake  <ebb9@byu.net>
79005
79006         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79007
79008 2006-07-23  Eric Blake  <ebb9@byu.net>
79009
79010         * lib/tmpfile-safer.c: New file.
79011         * lib/stdio-safer.h (fopen_safer): Add prototype.
79012         * lib/stdio--.h (tmpfile): Make safer.
79013
79014 2006-07-23  Bruno Haible  <bruno@clisp.org>
79015
79016         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79017         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79018         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79019         gl_linked_remove_at): Use it.
79020
79021 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79022         and Simon Josefsson <jas@extundo.com>
79023
79024         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79025
79026         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79027
79028 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79029
79030         * modules/close-stream: New file.
79031         * modules/closeout (Description): Make it clear that it exits
79032         with a diagnostic on error.
79033         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79034         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79035
79036 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79037
79038         * m4/close-stream.m4: New file.
79039
79040 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         * lib/close-stream.c, lib/close-stream.h: New files.
79043
79044 2006-07-22  Bruno Haible  <bruno@clisp.org>
79045
79046         Merge from GNU gettext 0.15.
79047
79048         2006-05-01  Bruno Haible  <bruno@clisp.org>
79049
79050                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79051
79052         2006-07-22  Bruno Haible  <bruno@clisp.org>
79053
79054                 * modules/javaversion: New file.
79055                 * MODULES.html.sh (Java): Add javaversion.
79056
79057         2006-03-12  Bruno Haible  <bruno@clisp.org>
79058
79059                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79060
79061         2005-12-04  Bruno Haible  <bruno@clisp.org>
79062
79063                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79064                 (untested).
79065
79066         2006-06-21  Bruno Haible  <bruno@clisp.org>
79067
79068                 Avoid warnings from recent versions of mcs.
79069                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79070                 -o, -L, -r any more. Use options documented since mcs-1.0
79071                 instead. Similarly for -g.
79072
79073         2005-12-04  Bruno Haible  <bruno@clisp.org>
79074
79075                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79076                 .resources, not .resource.
79077
79078         2005-07-09  Bruno Haible  <bruno@clisp.org>
79079
79080                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79081                 add a .dll suffix.
79082                 Reported by Mark Junker <mjscod@gmx.de>.
79083
79084         2006-07-22  Bruno Haible  <bruno@clisp.org>
79085
79086                 * modules/gettext: Upgrade to gettext-0.15.
79087                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79088                 m4/visibility.m4.
79089                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79090
79091 2006-07-22  Bruno Haible  <bruno@clisp.org>
79092
79093         Merge from GNU gettext 0.15.
79094
79095         2006-03-25  Bruno Haible  <bruno@clisp.org>
79096
79097                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79098
79099         2006-07-21  Bruno Haible  <bruno@clisp.org>
79100
79101                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79102                 "1.1".
79103
79104         2006-05-09  Bruno Haible  <bruno@clisp.org>
79105
79106                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79107                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79108                 for the conftestver execution.
79109
79110         2006-05-01  Bruno Haible  <bruno@clisp.org>
79111
79112                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79113                 optional target-version argument. Verify that the compiler
79114                 groks source of the specified source-version, or add -source
79115                 option as necessary. Verify that the compiler produces
79116                 bytecode in the specified target-version, or add -target and
79117                 -source options as necessary. Make the result of the test
79118                 available as variable CONF_JAVAC. Also log error output in
79119                 config.log.
79120
79121         2006-03-11  Bruno Haible  <bruno@clisp.org>
79122
79123                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79124
79125         2006-05-09  Bruno Haible  <bruno@clisp.org>
79126
79127                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79128                 CLASSPATH_SEPARATOR to a semicolon.
79129
79130         2006-03-12  Bruno Haible  <bruno@clisp.org>
79131
79132                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79133                 available as variable CONF_JAVA, for subsequent autoconf
79134                 tests. Also log error output in config.log.
79135
79136         2006-07-19  Bruno Haible  <bruno@clisp.org>
79137
79138                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79139                 that getline works on glibc2 systems. Needed to avoid trouble
79140                 in relocatable.c.
79141                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79142
79143         2005-12-04  Bruno Haible  <bruno@clisp.org>
79144
79145                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79146                 launcher (untested).
79147
79148         2005-12-04  Bruno Haible  <bruno@clisp.org>
79149
79150                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79151
79152         2006-07-22  Bruno Haible  <bruno@clisp.org>
79153
79154                 * gettext.m4: Update from GNU gettext-0.15.
79155                 * nls.m4: Likewise.
79156                 * po.m4: Likewise.
79157                 * inttypes-pri.m4: Likewise.
79158                 * inttypes-h.m4: Renamed from inttypes.m4.
79159                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79160
79161 2006-07-22  Bruno Haible  <bruno@clisp.org>
79162
79163         Merge from GNU gettext 0.15.
79164
79165         2005-07-05  Bruno Haible  <bruno@clisp.org>
79166
79167                 * printf-args.c (printf_fetchargs): Work around broken
79168                 definition of wint_t on mingw.
79169
79170         2005-02-12  Bruno Haible  <bruno@clisp.org>
79171
79172                 * xallocsa.h: Add extern "C" for C++.
79173
79174         2006-05-17  Bruno Haible  <bruno@clisp.org>
79175
79176                 Cygwin portability.
79177                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79178
79179         2006-04-30  Bruno Haible  <bruno@clisp.org>
79180
79181                 * progreloc.c: Include <mach-o/dyld.h> if available.
79182                 (find_executable): Use _NSGetExecutablePath when possible.
79183
79184         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79185
79186                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79187                 function.
79188
79189         2005-12-29  Bruno Haible  <bruno@clisp.org>
79190
79191                 * progreloc.c (set_program_name_and_installdir): Fix
79192                 compilation error.
79193
79194         2005-12-04  Bruno Haible  <bruno@clisp.org>
79195
79196                 Cygwin portability.
79197                 * progreloc.c: Include <windows.h> also on Cygwin.
79198                 (find_executable): Add support for Cygwin.
79199                 (set_program_name_and_installdir): Handle also platforms with
79200                 nonempty EXEEXT.
79201
79202         2006-07-11  Bruno Haible  <bruno@clisp.org>
79203
79204                 * javacomp.c: Fix a comment.
79205                 Reported by Jim Meyering.
79206
79207         2006-04-30  Bruno Haible  <bruno@clisp.org>
79208
79209                 * javacomp.h (compile_java_class): Add source_version,
79210                 target_version arguments.
79211                 * javacomp.c: Rewritten to choose only a compiler that
79212                 respects the specified source_version and target_version.
79213
79214         2006-06-27  Bruno Haible  <bruno@clisp.org>
79215
79216                 Assume correct S_ISDIR macro.
79217                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79218
79219         2006-07-22  Bruno Haible  <bruno@clisp.org>
79220
79221                 * javaversion.h: New file, from GNU gettext.
79222                 * javaversion.c: New file, from GNU gettext.
79223                 * javaversion.java: New file, from GNU gettext.
79224                 * javaversion.class: New file, from GNU gettext.
79225
79226         2006-05-17  Bruno Haible  <bruno@clisp.org>
79227
79228                 Cygwin portability.
79229                 * javaexec.c (execute_java_class): Test for jview program
79230                 also on Cygwin.
79231
79232         2006-04-09  Bruno Haible  <bruno@clisp.org>
79233
79234                 * fatal-signal.c: Don't include string.h.
79235                 (at_fatal_signal): Use a copying loop instead of memcpy.
79236
79237         2005-12-04  Bruno Haible  <bruno@clisp.org>
79238
79239                 * csharpexec.c: Add support for 'clix' launcher (untested).
79240                 (execute_csharp_using_sscli): New function.
79241                 (execute_csharp_program): Call it.
79242
79243         2006-06-21  Bruno Haible  <bruno@clisp.org>
79244
79245                 Avoid warnings from recent versions of mcs.
79246                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79247                 -o, -L, -r any more. Use options documented since mcs-1.0
79248                 instead. Similarly for -g.
79249
79250         2005-07-09  Bruno Haible  <bruno@clisp.org>
79251
79252                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79253                 add a .dll suffix.
79254                 Reported by Mark Junker <mjscod@gmx.de>.
79255
79256         2006-06-17  Bruno Haible  <bruno@clisp.org>
79257
79258                 * config.charset: Update for NetBSD 3.0.
79259
79260         2006-05-17  Bruno Haible  <bruno@clisp.org>
79261
79262                 Cygwin portability.
79263                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79264
79265         2006-05-16  Bruno Haible  <bruno@clisp.org>
79266
79267                 * localcharset.c [CYGWIN]: Include <windows.h>.
79268                 (get_charset_aliases): For Cygwin, return the same CPxxx
79269                 aliases list as under WIN32.
79270                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79271                 the environment variables. Fall back to GetACP().
79272
79273         2006-04-05  Bruno Haible  <bruno@clisp.org>
79274
79275                 * config.charset: Update Juan Manuel Guerrero's address.
79276
79277         2005-02-12  Bruno Haible  <bruno@clisp.org>
79278
79279                 * allocsa.h: Add extern "C" for C++.
79280
79281         2005-02-10  Bruno Haible  <bruno@clisp.org>
79282
79283                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79284                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79285
79286         2006-07-22  Bruno Haible  <bruno@clisp.org>
79287
79288                 * gettext.h: Update to GNU gettext-0.15.
79289
79290 2006-07-22  Bruno Haible  <bruno@clisp.org>
79291
79292         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79293         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79294         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79295
79296 2006-07-21  Eric Blake  <ebb9@byu.net>
79297
79298         * modules/stdlib-safer: New file.
79299         * MODULES.html.sh (File stream based Input/Output): Add
79300         stdlib-safer.
79301
79302 2006-07-21  Eric Blake  <ebb9@byu.net>
79303
79304         * lib/stdlib-safer.h: New file from coreutils, required by
79305         stdlib--.h.
79306
79307 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79308
79309         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79310
79311 2006-07-20  Bruno Haible  <bruno@clisp.org>
79312
79313         * gnulib-tool: Recognize new option --assume-autoconf.
79314         (autoconf_minversion): New variable.
79315         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79316
79317 2006-07-20  Bruno Haible  <bruno@clisp.org>
79318
79319         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79320
79321 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79322
79323         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79324         Reindent and repaginate.
79325
79326 2006-07-19  Derek Price  <derek@ximbiot.com>
79327
79328         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79329         Correct grammar.
79330
79331 2006-07-17  Bruno Haible  <bruno@clisp.org>
79332
79333         * modules/list: New file.
79334         * modules/array-list: New file.
79335         * modules/carray-list, modules/carray-list-tests: New files.
79336         * modules/linked-list, modules/linked-list-tests: New files.
79337         * modules/avltree-list, modules/avltree-list-tests: New files.
79338         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79339         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79340         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79341         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79342         * modules/oset: New file.
79343         * modules/array-oset: New file.
79344         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79345         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79346         * tests/test-carray_list.c: New file.
79347         * tests/test-linked_list.c: New file.
79348         * tests/test-avltree_list.c: New file.
79349         * tests/test-rbtree_list.c: New file.
79350         * tests/test-linkedhash_list.c: New file.
79351         * tests/test-avltreehash_list.c: New file.
79352         * tests/test-rbtreehash_list.c: New file.
79353         * tests/test-avltree_oset.c: New file.
79354         * tests/test-rbtree_oset.c: New file.
79355         * MODULES.html.sh (Container data structures): New section.
79356
79357 2006-07-17  Bruno Haible  <bruno@clisp.org>
79358
79359         * m4/gl_list.m4: New file.
79360
79361 2006-07-17  Bruno Haible  <bruno@clisp.org>
79362
79363         * lib/gl_list.h: New file.
79364         * lib/gl_list.c: New file.
79365         * lib/gl_array_list.h: New file.
79366         * lib/gl_array_list.c: New file.
79367         * lib/gl_carray_list.h: New file.
79368         * lib/gl_carray_list.c: New file.
79369         * lib/gl_linked_list.h: New file.
79370         * lib/gl_linked_list.c: New file.
79371         * lib/gl_anylinked_list1.h: New file.
79372         * lib/gl_anylinked_list2.h: New file.
79373         * lib/gl_avltree_list.h: New file.
79374         * lib/gl_avltree_list.c: New file.
79375         * lib/gl_anyavltree_list1.h: New file.
79376         * lib/gl_anyavltree_list2.h: New file.
79377         * lib/gl_rbtree_list.h: New file.
79378         * lib/gl_rbtree_list.c: New file.
79379         * lib/gl_anyrbtree_list1.h: New file.
79380         * lib/gl_anyrbtree_list2.h: New file.
79381         * lib/gl_anytree_list1.h: New file.
79382         * lib/gl_anytree_list2.h: New file.
79383         * lib/gl_linkedhash_list.h: New file.
79384         * lib/gl_linkedhash_list.c: New file.
79385         * lib/gl_anyhash_list1.h: New file.
79386         * lib/gl_anyhash_list2.h: New file.
79387         * lib/gl_avltreehash_list.h: New file.
79388         * lib/gl_avltreehash_list.c: New file.
79389         * lib/gl_rbtreehash_list.h: New file.
79390         * lib/gl_rbtreehash_list.c: New file.
79391         * lib/gl_anytreehash_list1.h: New file.
79392         * lib/gl_anytreehash_list2.h: New file.
79393
79394         * lib/gl_oset.h: New file.
79395         * lib/gl_oset.c: New file.
79396         * lib/gl_array_oset.h: New file.
79397         * lib/gl_array_oset.c: New file.
79398         * lib/gl_avltree_oset.h: New file.
79399         * lib/gl_avltree_oset.c: New file.
79400         * lib/gl_rbtree_oset.h: New file.
79401         * lib/gl_rbtree_oset.c: New file.
79402         * lib/gl_anytree_oset.h: New file.
79403
79404 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         * m4/mkancesdirs.m4: New file.
79407         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79408         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79409         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79410         it.
79411
79412 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79413
79414         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79415         * lib/mkancesdirs.h: New files.
79416         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79417         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79418         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79419         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79420         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79421         callers changed.  Revamp internals significantly, by not
79422         attempting to create directories that are temporarily more
79423         permissive than the final results.  Do not attempt to use
79424         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79425         This removes some race conditions, fixes some bugs, and simplifies
79426         things.  Use new dirchownmod function to do owner and mode changes.
79427         * lib/mkdir-p.h: Likewise.
79428         * lib/modechange.c (octal_to_mode): New function.
79429         (struct mode_change): New member mentioned.
79430         (make_node_op_equals): New arg mentioned.  All callers changed.
79431         (mode_compile): Keep track of which mode bits the user has explicitly
79432         mentioned.
79433         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79434         New arg PMODE_BITS, to keep track of which mode bits the user
79435         mentioned; it treats S_ISUID and S_ISGID speciall.
79436         All callers changed.
79437         * lib/modechange.h: Likewise.
79438
79439 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79440
79441         * MODULES.html.sh: Add mkancestors.
79442         * modules/mkancesdirs: New module.
79443         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79444         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79445         The chdir-safer and afs files are now orphans; I'll remove them
79446         unless someone speaks up.
79447         Add lib/dirchownmod.c, lib/dirchownmod.h.
79448         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79449         Add lchown, mkancesdirs.
79450         (Maintainer): Add self.
79451
79452 2006-07-15  Karl Berry  <karl@gnu.org>
79453
79454         * gnulib-tool: help message wording/arrangement.
79455
79456 2006-07-14  Simon Josefsson  <jas@extundo.com>
79457
79458         * doc/gnulib.texi (Libtool and Windows): New section.
79459
79460 2006-07-12  Simon Josefsson  <jas@extundo.com>
79461
79462         * modules/gendocs (License): Fix license, approved by Karl.
79463
79464 2006-07-12  Eric Blake  <ebb9@byu.net>
79465
79466         * MODULES.html.sh: Add gendocs.
79467
79468 2006-07-11  Eric Blake  <ebb9@byu.net>
79469
79470         * modules/fdl: New module, to install doc/fdl.texi.
79471         * MODULES.html.sh: Add new section for documentation modules.
79472         * gnulib-tool: Avoid space-tab.
79473         (--doc-base): New option, to manage files from doc.
79474
79475 2006-07-11  Eric Blake  <ebb9@byu.net>
79476
79477         * m4/absolute-header.m4: Fix comments to match recent change.
79478
79479 2006-07-11  Eric Blake  <ebb9@byu.net>
79480
79481         * gnulib-tool: List --doc-base before --tests-base.
79482
79483 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79484
79485         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79486
79487 2006-07-11  Bruno Haible  <bruno@clisp.org>
79488
79489         * README: Mention where to put documentation.
79490
79491 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79492
79493         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79494
79495 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79498         to stdint.m4.
79499
79500 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79501
79502         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79503         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79504         "no/such/file/stdint.h" when there is no such file, so that
79505         the resulting C code can be parsed by dodgy compilers.
79506         Problems reported by Bob Proulx.
79507
79508 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79509
79510         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79511         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79512         macros into the GNU _D_EXACT_NAMLEN.
79513         * lib/savedir.c:  Likewise.
79514         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79515
79516 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79517         and Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79520         * m4/savedir.m4:
79521         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79522         macros into the GNU _D_EXACT_NAMLEN.
79523
79524 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79525
79526         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79527         around the absolute name, to work around a problem with the HP-UX
79528         11.23 native C compiler, reported by Bob Proulx.
79529
79530 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79531
79532         * doc/maintain.texi, make-stds.texi: Sync from
79533         <http://savannah.gnu.org/projects/gnustandards>.
79534
79535 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79536
79537         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79538
79539 2006-07-09  Jim Meyering  <jim@meyering.net>
79540
79541         * m4/glob.m4: Remove a doubled word in a comment.
79542
79543 2006-07-09  Jim Meyering  <jim@meyering.net>
79544
79545         * lib/argp-pv.c: Remove a doubled word in a comment.
79546         * lib/check-version.c (check_version): Likewise.
79547         * lib/javacomp.c (compile_java_class): Likewise.
79548
79549 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79550
79551         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79552         for the benefit of people using Autoconf 2.60.  If you want to
79553         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79554         (or m4/onceonly.m4, if pre-2.57) manually.
79555
79556 2006-07-08  Jim Meyering  <jim@meyering.net>
79557
79558         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79559         comment.
79560         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79561         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79562         comment.
79563
79564 2006-07-08  Jim Meyering  <jim@meyering.net>
79565
79566         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79567
79568 2006-07-07  Simon Josefsson  <jas@extundo.com>
79569
79570         * tests/test-crc.c: Change expected crc value, the test vector
79571         were probably computed using the old broken crc.c?
79572
79573 2006-07-06  Simon Josefsson  <jas@extundo.com>
79574
79575         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79576         now the canonical place for the M4 file).
79577
79578         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79579         from the sys_socket dependency now.
79580
79581         * modules/inet_pton (Files): Ditto.
79582
79583         * modules/inet_ntop (Files): Ditto.
79584
79585 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79586
79587         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79588         not gl_PREREQ_GETUSERSHELL.
79589
79590 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79591
79592         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79593         with only one argument, for Autoconf 2.60.
79594         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79595         expand to nothing, so add a shell command to avoid syntax error.
79596         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79597
79598 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79599
79600         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79601
79602 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79605         no longer needed.  Check for isblank decl.
79606         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79607         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79608         of existence.
79609
79610 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79611
79612         * lib/getloadavg.c: Use __VMS, not VMS.
79613         * lib/getopt.c: Likewise.
79614         * lib/getpagesize.h: Likewise.
79615         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79616         and probably does not work.
79617
79618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * lib/.cppi-disable: Add wcwidth.
79621         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79622         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79623         (ISGRAPH): Remove.  All uses changed to isgraph.
79624         (FOLD) [!defined _LIBC]: Remove special case.
79625         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79626         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79627         HAVE_ISBLANK.
79628         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79629         case.
79630
79631 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79632
79633         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79634         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79635         brackets.  Other minor changes to suppress some compiler
79636         warnings.
79637
79638 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79639         and Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79642         of invoking obsolescent AC_HEADER_DIRENT macro.
79643         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79644         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79645         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79646         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79647         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79648         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79649         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79650         * m4/readdir.m4: Remove; no longer needed.
79651
79652 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79653         and Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79656         Don't worry about this obsolete case any more.
79657         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79658         directories.
79659         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79660         worry about this obsolete case any more.
79661         * lib/fts.c: Likewise.
79662         * lib/getcwd.c: Likewise.
79663         * lib/glob.h: Likewise.
79664         * lib/savedir.c: Likewise.
79665
79666 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79667
79668         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79669         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79670         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79671         needed.
79672         All uses removed.
79673         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79674         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79675         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79676         needed.
79677         * m4/getdate.m4 (gl_GETDATE): Likewise.
79678         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79679         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79680         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79681         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79682         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79683         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79684         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79685         needed.
79686
79687 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79688
79689         * lib/memcasecmp.c: Include <limits.h>.
79690         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79691         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79692         Don't assume isdigit succeeds only on '0' through '9'.
79693
79694 2006-07-05  Eric Blake  <ebb9@byu.net>
79695
79696         * modules/getaddrinfo (Depends-on): Add snprintf.
79697
79698 2006-07-05  Eric Blake  <ebb9@byu.net>
79699
79700         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79701         to avoid 'header present but could not be compiled' on cygwin.
79702
79703 2006-07-05  Eric Blake  <ebb9@byu.net>
79704
79705         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79706         missing from netdb.h.
79707         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79708
79709 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79710
79711         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79712         no longer needed.
79713         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79714         * m4/getdate.m4 (gl_GETDATE): Likewise.
79715         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79716         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79717         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79718         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79719         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79720
79721 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79722
79723         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79724         All uses of is_space replaced by isspace.
79725         * lib/exit.h: Don't talk about STDC_HEADERS.
79726         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79727         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79728         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79729         replaced by isprint etc.
79730         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79731         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79732         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79733         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79734         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79735         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79736
79737 2006-07-05  Bruno Haible  <bruno@clisp.org>
79738
79739         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79740         the function exists, before testing against AIX.
79741         Reported by Martin Lambers <marlam@marlam.de>.
79742
79743 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79744
79745         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79746         From Mark D. Baushke.
79747
79748 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79751         to the absolute name, not just one, to bypass Sun C 5.8's
79752         "warning: #include of /usr/include/... may be non-portable".
79753
79754 2006-07-04  Eric Blake  <ebb9@byu.net>
79755
79756         * modules/dirname-tests: New test module.
79757         * tests/test-dirname.c: New file, replacing dirname.c
79758         TEST_DIRNAME section that was recently deleted.
79759
79760 2006-07-04  Bruno Haible  <bruno@clisp.org>
79761
79762         Assume ANSI C header files and <ctype.h> functions.
79763         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79764         (mbsnwidth): Use isprint, iscntrl instead.
79765
79766 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79767
79768         Merge from coreutils.
79769         * MODULES.html.sh: Add xstrtold.
79770         * modules/xstrtold: New file.
79771         * modules/cycle-check (Files): Add lib/same-inode.h.
79772         * modules/dirname (Files): Add m4/double-slash-root.m4.
79773         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79774         * modules/mkdir-p (Files): Add lib/same-inode.h.
79775         * modules/same (Files): Add lib/same-inode.h.
79776
79777 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79778
79779         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79780         This is to keep the terminology clean; POSIX talks about
79781         "absolute pathnames", not "full pathnames", but the GNU
79782         Coding Standards say to use "path" for something else;
79783         so use "absolute" to keep both sides happy.
79784         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79785         Set gl_absolute_header, not gl_full_header_path.
79786         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79787         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79788         All uses changed.
79789
79790         Merge from coreutils.
79791
79792         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79793
79794         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79795         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79796         want to require the building of c-strtod.o.
79797         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79798         needs -lm directly.
79799         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79800
79801         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79802
79803         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79804         --as-needed option if available.  Problem reported by Albert Chin in
79805         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79806         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79807         cc merely issues a bunch of annoying warnings for --as-needed
79808         (this problem was reported by Bob Proulx).  Also, try linking with
79809         -lm to detect a bug in binutils 2.16 (this problem was reported
79810         by Ralf Wildenhues).
79811
79812         2006-06-18  Jim Meyering  <jim@meyering.net>
79813
79814         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79815         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79816         macro.
79817         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79818         also check for glibc-2.4's abort-inducing bug.
79819
79820         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79821         Low-probability clean-up should be to use rmdir to get rid of
79822         the just-created directory, not unlink.
79823
79824         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79825         configure fail, and request a bug report to inform us about it.
79826         Add a comment that, barring reports to the contrary, in 2007 we'll
79827         assume ftruncate is universally available.
79828
79829         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79830
79831         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79832
79833         2006-03-12  Jim Meyering  <jim@meyering.net>
79834
79835         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79836         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79837         * m4/same.m4 (gl_SAME): Likewise.
79838         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79839
79840         2006-03-11  Eric Blake  <ebb9@byu.net>
79841
79842         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79843         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79844         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79845         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79846
79847 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79850         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79851         reported by Mark D. Baushke, one in
79852         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79853
79854         Merge from coreutils.
79855
79856         * lib/.cppi-disable: Add stdint_.h.
79857         * lib/.cvsignore: Add stdint.h.
79858
79859         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79862         both double and long double versions.
79863         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79864         * lib/xstrtold.c: New file.
79865         * lib/xstrtod.h (xstrtold): New decl.
79866
79867         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * lib/filemode.c (setst): Remove.
79870         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79871         (arguably) clearer, and the generated code is a bit smaller on my
79872         Debian GNU/Linux stable x86 host.
79873
79874         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79877         Assume that filemode.h includes sys/types.h and sys/stat.h.
79878         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79879         (ftypelet): Reorder to put common cases first, for efficiency.
79880         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79881         to do 'M'.
79882         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79883         of 10, for compatibility with FreeBSD.  All callers changed.
79884         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79885         types that can't be deduced solely from st_mode.  First arg is now a
79886         const pointer.
79887         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79888         (strmode): Renamed from mode_string.
79889         (filemodestring): New decl.
79890         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79891         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79892         needed.
79893         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79894
79895         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79896
79897         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79898         fsusage.h now does that.  Include fsusage.h first, to test interface.
79899         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79900         at most one method (the old code could have generated decls that
79901         didn't conform to C89, not that this was ever exercised).
79902         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79903
79904         2006-03-19  Jim Meyering  <jim@meyering.net>
79905
79906         Work even in a chroot where d_ino values for entries in "/"
79907         don't match the stat.st_ino values for the same names.
79908         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79909         number, iterate through all entries again, using lstat instead.
79910         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79911         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79912
79913         * lib/getcwd.c (__getcwd): Clarify a comment.
79914         Use memcpy in place of a call to strcpy.
79915
79916         2006-03-12  Jim Meyering  <jim@meyering.net>
79917
79918         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79919         matches that of the current directory (which we're about to chdir ".."
79920         out of), then save the dev-ino of the parent, instead.
79921
79922         * lib/same-inode.h (SAME_INODE): New file/macro.
79923         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79924         Include "same-inode.h", instead.
79925         * lib/same.c: Likewise.
79926         * lib/cycle-check.h: Include "same-inode.h".
79927         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79928         * lib/cycle-check.c (SAME_INODE): Remove definition.
79929         * lib/root-dev-ino.h: Include "same-inode.h".
79930
79931         2006-03-11  Eric Blake  <ebb9@byu.net>
79932
79933         * lib/same.c (same_name): s/base_name/last_component/
79934         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79935         * lib/filenamecat.c (file_name_concat): Likewise.
79936
79937         2006-03-11  Eric Blake  <ebb9@byu.net>,
79938                     Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79941         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79942         drive prefix.
79943         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79944         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79945         (last_component): New method.
79946         * lib/dirname.c (dir_len): Determine when drive letters need a
79947         subsequent slash.  Preserve // when it is special.
79948         (dir_name): Don't append dot when drive letter is absolute.
79949         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79950         * lib/basename.c (base_name): New semantics - malloc the result.
79951         Preserve // when it is special.  Preserve relative files that look
79952         like drive letters.
79953         (base_len): Preserve // when it is special.
79954         (last_component): New method, similar to old base_name semantics.
79955         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79956         base_name.  Strip redundant slashes from ///.
79957
79958 2006-07-03  Jim Meyering  <jim@meyering.net>
79959
79960         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79961         macro is used before the first cycle_check call.
79962
79963 2006-07-03  Eric Blake  <ebb9@byu.net>
79964
79965         * modules/dirname (Depends-on): Add xstrndup.
79966
79967 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79968
79969         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79970         test cases, so that config.log is a bit easier to follow.
79971
79972 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79975         both are 64 bits, since this seems to be the tradition, and this
79976         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79977         we ever run into a host that prefers long long to long in this
79978         case, we'll need another configure-time test.  Problem reported by
79979         Jim Meyering.
79980
79981 2006-07-02  Eric Blake  <ebb9@byu.net>
79982
79983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79984
79985 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * modules/inttypes (Depends-on): No longer depends on stdint.
79988         * modules/stdint (Description): Say more about assumptions.
79989         Say that the fast types might differ.  Say macros are used.
79990         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79991         (Makefile.am): Revise list of substituted symbols to match
79992         new stdint.m4.
79993         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79994         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79995         * tests/test-stdint.c (verify_same_types)
79996         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79997         the code conforms to C99/C89.
79998         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79999         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80000
80001 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80004         but fix a bug, by requiring at least 64 bits.
80005         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80006         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80007         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80008         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80009
80010         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80011         changes.  Make 2.59 a prerequisite.  Check and substitute for
80012         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80013         inttypes.h.  Do not use special include files; just use the
80014         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80015         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80016         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80017         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80018         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80019         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80020         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80021         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80022         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80023         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80024         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80025         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80026         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80027         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80028         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80029         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80030         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80031         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80032         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80033         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80034         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80035         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80036         not check for things that C99 does not require, e.g., int8_t.  If
80037         a test isn't needed unless <stdint.h> isn't working, and is
80038         unlikely to be needed for any other reason, then don't do it
80039         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80040         size_t, since we assume C89 freestanding at least.  Do not check
80041         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80042         the right thing even if the types are not defined.  Instead use:
80043         (gl_STDINT_TYPE_PROPERTIES): New macro.
80044         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80045         testing whether <sys/types.h> clashes, as Autoconf does this for
80046         us now.  All uses removed.
80047         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80048         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80049         (gl_CHECK_TYPE_SAME):
80050         Remove; no longer needed.
80051         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80052         exists, since we'll return 0 anyway in that case.
80053         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80054
80055 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80056
80057         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80058         possible collision with system files.
80059         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80060         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80061         WCHAR_MIN and WCHAR_MAX in this case.
80062         (<stddef.h>): Do not include; no longer needed.
80063         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80064         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80065         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80066         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80067         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80068         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80069         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80070         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80071         !defined(__c99))]: Include in this case too, since it's harmless
80072         now.
80073         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80074         dangerous to do so.
80075         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80076         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80077         (_STDINT_MIN, _STDINT_MAX): New macros.
80078         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80079         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80080         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80081         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80082         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80083         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80084         macros, not typedefs; this simplifies things quite a bit.
80085         Use long int for all types narrower than int64_t.
80086         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80087         Define in terms of long long int or int64_t or long int,
80088         not int64_t or int32_t.  This saves some compile-time testing.
80089         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80090         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80091         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80092         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80093         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80094         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80095         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80096         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80097         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80098         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80099         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80100         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80101         undef any previous version and define our own version, for
80102         simplicity and consistency with the new macros for types.
80103         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80104         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80105         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80106         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80107         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80108         @WINT_T_SUFFIX@ to keep things simple here.
80109         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80110         Simplify by assuming typical 8/16/32/64 host, since we're
80111         already doing that elsewhere anyway.
80112         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80113         and assume long long int is 64 bits if available.  This
80114         speeds up 'configure'.
80115
80116 2006-07-01  Eric Blake  <ebb9@byu.net>
80117
80118         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80119         Reported by Andreas Buening.
80120
80121 2006-07-01  Eric Blake  <ebb9@byu.net>
80122
80123         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80124
80125 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80126
80127         * lib/getaddrinfo.c: fixed typo
80128
80129 2006-06-29  Jim Meyering  <jim@meyering.net>
80130
80131         * modules/strftime (Maintainer): Add my name, since with the
80132         FPRINTFTIME changes strftime.c has forked from glibc.
80133
80134 2006-06-29  Eric Blake  <ebb9@byu.net>
80135
80136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80137
80138 2006-06-29  Eric Blake  <ebb9@byu.net>
80139
80140         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80141
80142 2006-06-29  Eric Blake  <ebb9@byu.net>
80143
80144         * lib/stat_.h: New file.
80145
80146 2006-06-29  Eric Blake  <ebb9@byu.net>
80147
80148         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80149         unused static function.
80150
80151 2006-06-29  Eric Blake  <ebb9@byu.net>
80152
80153         * doc/functions.texi (Function Portability): Document missing lstat
80154         on mingw.
80155
80156 2006-06-29  Eric Blake  <ebb9@byu.net>
80157
80158         * MODULES.html.sh: Add sys_stat.
80159         * modules/sys_stat: New module.
80160         * modules/mkstemp (Depends-on): Add sys_stat.
80161
80162 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80163
80164         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80165
80166 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80167
80168         * m4/c-bs-a.m4: Removed.
80169
80170 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80171
80172         * lib/strftime.c: Assume strftime() exists.
80173
80174 2006-06-29  Derek Price  <derek@ximbiot.com>
80175
80176         * modules/c-bs-a: Removed - \a is C89.
80177         * MODULES.html.sh: Remove c-bs-a.
80178
80179 2006-06-29  Bruno Haible  <bruno@clisp.org>
80180
80181         * modules/wcwidth (License): Change to LGPL.
80182
80183 2006-06-28  Simon Josefsson  <jas@extundo.com>
80184
80185         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80186         on _WIN32.
80187
80188         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80189         getnameinfo.
80190
80191 2006-06-28  Simon Josefsson  <jas@extundo.com>
80192
80193         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80194
80195 2006-06-28  Simon Josefsson  <jas@extundo.com>
80196
80197         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80198         functions there.  It will succeed on Windows XP, but on Windows
80199         2000 and (presumably) earlier, it will fail, and use the internal
80200         re-implementation.
80201         (use_win32_p): New function.
80202         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80203         Support AI_NUMERICSERV to disable getservbyname.
80204         (getnameinfo): New function, only supports
80205         NI_NUMERICHOST|NI_NUMERICSERV for now.
80206
80207         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80208         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80209         getnameinfo.
80210
80211 2006-06-28  Eric Blake  <ebb9@byu.net>
80212
80213         * modules/wcwidth: New file.
80214         * modules/mbchar (Depends-on): Add wcwidth.
80215         * modules/mbswidth (Depends-on): Add wcwidth.
80216         * MODULES.html.sh: Add wcwidth.
80217
80218 2006-06-28  Eric Blake  <ebb9@byu.net>
80219
80220         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80222
80223 2006-06-28  Eric Blake  <ebb9@byu.net>
80224
80225         * lib/xvasprintf.h: Fix comments.
80226
80227 2006-06-28  Eric Blake  <ebb9@byu.net>
80228
80229         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80230         * lib/mbswidth.c (wcwidth): Move from here...
80231         * lib/wcwidth.h: ...to this new file.
80232
80233 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80234
80235         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80236
80237         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80238         it's obsolete.
80239         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80240
80241 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80242
80243         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80244         Autoconf 2.60 says this stuff was obsolete.
80245
80246 2006-06-28  Bruno Haible  <bruno@clisp.org>
80247
80248         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80249
80250 2006-06-28  Bruno Haible  <bruno@clisp.org>
80251
80252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80253         gt_TYPE_WCHAR_T.
80254
80255 2006-06-28  Bruno Haible  <bruno@clisp.org>
80256
80257         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80258         declaration for wcwidth.
80259         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80260
80261 2006-06-28  Bruno Haible  <bruno@clisp.org>
80262
80263         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80264         (mkdir): Define using _mkdir.
80265
80266 2006-06-28  Bruno Haible  <bruno@clisp.org>
80267
80268         * lib/getaddrinfo.h: Fix POSIX URL.
80269         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80270         _WIN32.
80271         (use_win32_p): Make static.
80272         (getaddrinfo): Reject service name if it is empty or does not consist
80273         solely of decimal digits, or if its value is > 65535.
80274         (getnameinfo): Remove useless casts.
80275
80276 2006-06-27  Simon Josefsson  <jas@extundo.com>
80277
80278         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80279         Eggert and Martin Lambers.
80280
80281 2006-06-27  Simon Josefsson  <jas@extundo.com>
80282
80283         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80284         Eggert and Martin Lambers.
80285
80286 2006-06-27  Bruno Haible  <bruno@clisp.org>
80287
80288         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80289         result to 0, not to empty.
80290         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80291
80292 2006-06-27  Bruno Haible  <bruno@clisp.org>
80293
80294         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80295
80296 2006-06-26  Simon Josefsson  <jas@extundo.com>
80297
80298         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80299         present.
80300
80301 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80302
80303         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80304         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80305         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80306
80307 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80308
80309         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80310
80311 2006-06-26  Bruno Haible  <bruno@clisp.org>
80312
80313         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80314
80315 2006-06-26  Bruno Haible  <bruno@clisp.org>
80316
80317         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80318
80319 2006-06-26  Bruno Haible  <bruno@clisp.org>
80320
80321         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80322         SGI C compiler in pre-C99 mode.
80323         Suggested by Mark D. Baushke and Larry Jones.
80324
80325 2006-06-26  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80328         WCHAR_MAX.
80329         Reported by Mark D. Baushke and Larry Jones.
80330
80331 2006-06-26  Bruno Haible  <bruno@clisp.org>
80332
80333         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80334         in pre-C99 mode.
80335         Suggested by Mark D. Baushke and Larry Jones.
80336
80337 2006-06-23  Simon Josefsson  <jas@extundo.com>
80338             Bruno Haible  <bruno@clisp.org>
80339
80340         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80341         Emit mostlyclean-local rule.
80342         (func_emit_tests_Makefile_am): Likewise.
80343         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80344
80345 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80346
80347         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80348
80349 2006-06-23  Bruno Haible  <bruno@clisp.org>
80350
80351         * tests/test-stdint.c: Update to match ISO C 99 Technical
80352         Corrigendum 1.
80353
80354 2006-06-23  Bruno Haible  <bruno@clisp.org>
80355
80356         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80357
80358 2006-06-23  Bruno Haible  <bruno@clisp.org>
80359
80360         * lib/stdint_.h: Treat IRIX like OpenBSD.
80361
80362 2006-06-23  Bruno Haible  <bruno@clisp.org>
80363
80364         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80365         ISO C 99 Technical Corrigendum 1.
80366
80367 2006-06-22  Simon Josefsson  <jas@extundo.com>
80368
80369         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80370         MinGW.
80371
80372 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80373
80374         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80375         needed.  Some compiler complained about some of them.  Problem reported
80376         by Larry Jones in
80377         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80378
80379 2006-06-21  Simon Josefsson  <jas@extundo.com>
80380
80381         * tests/test-getaddrinfo.c: New file.
80382
80383         * modules/getaddrinfo-tests: New file.
80384
80385         * MODULES.html.sh: Add inet_pton.
80386
80387         * modules/inet_pton: New file.
80388
80389 2006-06-21  Simon Josefsson  <jas@extundo.com>
80390
80391         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80392         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80393         of using the (limited) gnulib implementation on Windows XP.
80394
80395         * m4/inet_pton.m4: New file.
80396
80397 2006-06-21  Simon Josefsson  <jas@extundo.com>
80398
80399         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80400         variable.
80401
80402         * lib/socket_.h: Don't define WINVER.
80403
80404         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80405         slightly modified to work in gnulib.
80406
80407 2006-06-21  Simon Josefsson  <jas@extundo.com>
80408
80409         * doc/gnulib.texi (Windows sockets): Add.
80410
80411 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80412
80413         * lib/read-file.c (fread_file): Start with buffer allocation of
80414         0 bytes rather than 1 byte; this simplifies the code.
80415         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80416         code to free buffer and save/restore errno.
80417         (internal_read_file): Remove unused local.
80418
80419 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80420
80421         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80422         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80423         Problem reported by Denis Excoffier in
80424         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80425
80426 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80427
80428         * modules/sys_socket, modules/socklen: Include sys/types since
80429         FreeBSD 4.x's sys/socket.h needs it.
80430
80431 2006-06-19  Simon Josefsson  <jas@extundo.com>
80432
80433         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80434
80435 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80436
80437         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80438
80439 2006-06-19  Bruno Haible  <bruno@clisp.org>
80440
80441         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80442         and FULL_PATH_INTTYPES_H in angle brackets.
80443         Reported by Mark D. Baushke <mdb@gnu.org>.
80444
80445 2006-06-17  Eric Blake  <ebb9@byu.net>
80446
80447         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80448         errno.
80449
80450 2006-06-17  Bruno Haible  <bruno@clisp.org>
80451
80452         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80453         <sys/inttypes.h>.
80454
80455 2006-06-17  Bruno Haible  <bruno@clisp.org>
80456
80457         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80458         whether errno is declared. Assume <errno.h> declares errno.
80459
80460 2006-06-17  Bruno Haible  <bruno@clisp.org>
80461
80462         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80463
80464 2006-06-17  Bruno Haible  <bruno@clisp.org>
80465
80466         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80467         problem on Solaris 2.5.1.
80468
80469 2006-06-16  Eric Blake  <ebb9@byu.net>
80470
80471         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80472         * lib/unicodeio.c [!defined errno]: Likewise.
80473         * lib/strtol.c [!defined errno]: Likewise.
80474         * lib/strtod.c [!defined errno]: Likewise.
80475
80476 2006-06-15  Eric Blake  <ebb9@byu.net>
80477
80478         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80479
80480 2006-06-15  Eric Blake  <ebb9@byu.net>
80481
80482         * config/srclist.txt (ssize_t.m4): Lose sync.
80483
80484 2006-06-15  Bruno Haible  <bruno@clisp.org>
80485
80486         * modules/stdint (Files): Include m4/full-header-path.m4,
80487         m4/size_max.m4, m4/wchar_t.m4.
80488         (Makefile.am): Many more substitutions.
80489         * modules/stdint-tests: New file.
80490         * tests/test-stdint.c: New file.
80491
80492 2006-06-15  Bruno Haible  <bruno@clisp.org>
80493
80494         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80495         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80496         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80497         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80498         gl_CHECK_TYPE_SAME): New macros.
80499
80500 2006-06-15  Bruno Haible  <bruno@clisp.org>
80501
80502         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80503
80504 2006-06-15  Bruno Haible  <bruno@clisp.org>
80505
80506         * lib/stdint_.h: Rewritten to be fully auto-configured.
80507         Fixes bug on HP-UX/IA64.
80508
80509 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80510
80511         * lib/getdate.y (__attribute__): Don't define if already defined.
80512         Problem reported by Larry Jones.
80513         * lib/utimens.c (__attribute__): Likewise.
80514
80515 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80516
80517         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80518         reported by Andreas Schwab.
80519
80520 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80521             Bruno Haible  <bruno@clisp.org>
80522
80523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80524         check for the declaration of strnlen and a run test that exposes the
80525         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80526         rpl_strndup.
80527
80528 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80529             Bruno Haible  <bruno@clisp.org>
80530
80531         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80532
80533 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80534
80535         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80536         compile test, for Tru64 4.0D.
80537
80538 2006-05-28  Karl Berry  <karl@gnu.org>
80539
80540         * config/srclist.txt (printf-args.c): lose sync.
80541
80542 2006-05-26  Martin Lambers  <marlam@marlam.de>
80543
80544         * lib/getpass.c: Updates the test for the native W32 API, and adds
80545         missing includes, thus fixing compilation warnings.
80546
80547 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80548
80549         * lib/exclude.c (exclude_fnmatch): New function.
80550         (excluded_file_name): Call exclude_fnmatch.
80551         * lib/exclude.h (excluded_file_name): New prototype
80552
80553 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80554
80555         * lib/tempname.c (small_open, large_open): New macros.
80556         (__open, __open64) [!_LIBC]: Remove.
80557         (__gen_tempname): Use small_open and large_open instead of __open
80558         and __open64.  This fixes a portability bug on HP-UX 11.11i
80559         reported by Simon Wing-Tang in
80560         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80561
80562 2006-05-24  Bruno Haible  <bruno@clisp.org>
80563
80564         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80565         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80566         Reported by Thorsten Maerz <torte@netztorte.de> via
80567         Aaron Stone <aaron@serendipity.cx>.
80568
80569 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80572         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80573         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80574         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80575         not really conditional on the cache.
80576         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80577
80578 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80579
80580         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80581         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80582         (my_usleep): Don't mishandle maximum value.
80583
80584 2006-05-19  Jim Meyering  <jim@meyering.net>
80585
80586         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80587
80588 2006-05-17  Bruno Haible  <bruno@clisp.org>
80589
80590         Cygwin portability.
80591         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80592
80593 2006-05-17  Bruno Haible  <bruno@clisp.org>
80594
80595         * lib/stdint_.h: Fix recognition of Cygwin.
80596
80597 2006-05-15  Bruno Haible  <bruno@clisp.org>
80598
80599         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80600         on libtool patch by Ralf Wildenhues.
80601
80602 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80603
80604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80605         test for C99 conformance; (bool) 0.5 is an integer constant
80606         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80607         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80608
80609 2006-05-11  Simon Josefsson  <jas@extundo.com>
80610
80611         * m4/xvasprintf.m4: Fix obvious typo.
80612
80613 2006-05-11  Jim Meyering  <jim@meyering.net>
80614
80615         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80616         James Lemley.
80617
80618 2006-05-10  Simon Josefsson  <jas@extundo.com>
80619
80620         * lib/md4.c: Typo fix, update copyright years.
80621         (K1, K2): Don't use L because it turn computations into 64-bit on
80622         64-bit platforms.
80623
80624 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80627         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80628         unwanted sign propagation, e.g., on hosts with 64-bit int.
80629         There still are some problems with reeelly weird theoretical hosts
80630         (e.g., 33-bit int) but it's not worth worrying about now.
80631         * lib/sha1.c (rol): Likewise.
80632         (K1, K2, K3, K4): Remove unnecessary L suffix.
80633
80634 2006-05-10  Bruno Haible  <bruno@clisp.org>
80635
80636         * lib/des.c: Cast to avoid warnings.
80637
80638 2006-05-09  Bruno Haible  <bruno@clisp.org>
80639
80640         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80641         (Depends-on): Depend also on xsize, stdarg.
80642         (configure.ac): Add gl_XVASPRINTF.
80643
80644 2006-05-09  Bruno Haible  <bruno@clisp.org>
80645
80646         * m4/xvasprintf.m4: New file.
80647
80648 2006-05-09  Bruno Haible  <bruno@clisp.org>
80649
80650         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80651         (EOVERFLOW): Define fallback value.
80652         (xstrcat): New function.
80653         (xvasprintf): Recognize the special case of a string concatenation.
80654
80655 2006-05-08  Eric Blake  <ebb9@byu.net>
80656
80657         * gnulib-tool (func_version): Base copyright year on CVS date.
80658         (func_emit_copyright_notice): New function.
80659         (func_emit_lib_Makefile_am): Use it.
80660         (func_emit_tests_Makefile_am): Likewise.
80661         (func_import): Likewise.
80662
80663 2006-05-08  Bruno Haible  <bruno@clisp.org>
80664
80665         * modules/stdarg: New file.
80666         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80667
80668 2006-05-08  Bruno Haible  <bruno@clisp.org>
80669
80670         * m4/stdarg.m4: New file, from GNU gettext.
80671
80672 2006-05-08  Bruno Haible  <bruno@clisp.org>
80673
80674         * config/srclist.txt (build-aux/config.rpath): different from latest
80675         release.
80676
80677 2006-05-08  Bruno Haible  <bruno@clisp.org>
80678
80679         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80680
80681 2006-05-05  Jim Meyering  <jim@meyering.net>
80682
80683         * m4/warning.m4: New file, derived from bison's file by the same name.
80684
80685 2006-05-03  Bruno Haible  <bruno@clisp.org>
80686
80687         * lib/stdint_.h: Shorter URL.
80688         * lib/inttypes.h: Likewise.
80689
80690 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80691
80692         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80693
80694 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * lib/verify.h: Document the internals better.  Most of this change
80697         was written by Bruno Haible.
80698
80699 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * doc/verify.texi: New file, partly based on a proposal by
80702         Bruno Haible.
80703
80704 2006-05-02  Bruno Haible  <bruno@clisp.org>
80705
80706         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80707         test from here...
80708         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80709
80710 2006-04-29  Bruno Haible  <bruno@clisp.org>
80711
80712         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80713         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80714
80715 2006-04-29  Bruno Haible  <bruno@clisp.org>
80716
80717         * gnulib-tool: Make --update option actually work.
80718
80719 2006-04-29  Bruno Haible  <bruno@clisp.org>
80720
80721         * doc/gcd.texi: New file.
80722         * doc/gnulib.texi: Include it.
80723
80724 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80725
80726         * lib/getdate.y (get_date): When adding relative date, start with the
80727         initial time, not with the result of the first mktime call.
80728
80729 2006-04-25  Bruno Haible  <bruno@clisp.org>
80730
80731         * gnulib-tool (func_import): Output the include directives in three
80732         blocks, sorted separately.
80733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80734
80735 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80738         to define main with arguments, for C++.  Reported by Eric Blake.
80739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80740         Prefer 'int main ()' to 'int main (void)', for C++.
80741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80742         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80743         for 'main', for C99 and C++.
80744
80745 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80746
80747         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80748         Don't assume that exit status -1 is valid.
80749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80750         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80751         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80752         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80753         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80754         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80755         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80756         functions can be used without declaring them, or that you can
80757         exit with status -1.
80758         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80759
80760 2006-04-24  Karl Berry  <karl@gnu.org>
80761
80762         * config/srclist.txt (longdouble.m4): sync lost.
80763
80764 2006-04-24  Eric Blake  <ebb9@byu.net>
80765
80766         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80767
80768 2006-04-24  Bruno Haible  <bruno@clisp.org>
80769
80770         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80771         poll() implementation in AIX.
80772         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80773
80774 2006-04-24  Bruno Haible  <bruno@clisp.org>
80775
80776         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80777         assigned exactly once.
80778
80779 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80780             Bruno Haible  <bruno@clisp.org>
80781
80782         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80783         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80784         for AM_CPPFLAGS.
80785
80786 2006-04-23  Bruno Haible  <bruno@clisp.org>
80787
80788         * modules/copy-file: Depend on unistd.
80789         * modules/execute: Likewise.
80790         * modules/fatal-signal: Likewise.
80791         * modules/findprog: Likewise.
80792         * modules/mkdtemp : Likewise.
80793         * modules/pipe: Likewise.
80794         * modules/wait-process: Likewise.
80795
80796 2006-04-23  Bruno Haible  <bruno@clisp.org>
80797
80798         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80799         condition was already detected.
80800         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80801
80802 2006-04-23  Bruno Haible  <bruno@clisp.org>
80803
80804         * lib/copy-file.c: Include <unistd.h> unconditionally.
80805         * lib/execute.c: Likewise.
80806         * lib/fatal-signal.c: Likewise.
80807         * lib/findprog.c: Likewise.
80808         * lib/mkdtemp.c: Likewise.
80809         * lib/pipe.h: Likewise.
80810         * lib/pipe.c: Likewise.
80811         * lib/wait-process.h: Likewise.
80812
80813 2006-04-23  Bruno Haible  <bruno@clisp.org>
80814
80815         * gnulib-tool (func_usage): Fix --import description. Document
80816         --update.
80817         (func_import): Create temporary file in a temporary directory, if
80818         --dry-run is specified. Silence errors from 'grep' when there are no
80819         m4 files in $m4dir.
80820         (func_create_testdir): Silence errors from 'grep' when there are no
80821         m4 files in $m4dir.
80822         Reported by Karl Berry <karl@freefriends.org>.
80823
80824 2006-04-20  Bruno Haible  <bruno@clisp.org>
80825
80826         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80827         one argument, so that the code will be portable to Autoconf 2.60.
80828         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80829         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80830         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80831
80832 2006-04-19  Derek Price  <derek@ximbiot.com>
80833             Eric Blake  <ebb9@byu.net>
80834
80835         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80836         rather than "/full/path.h".  Update comment to match.  Shorten &
80837         generalize m4_translit call via AS_TR_CPP.
80838
80839 2006-04-19  Derek Price  <derek@ximbiot.com>
80840             Eric Blake  <ebb9@byu.net>
80841
80842         * lib/inttypes.h: Correct grammar in comment.
80843
80844 2006-04-18  Derek Price  <derek@ximbiot.com>
80845             Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         * modules/inttypes: New file.
80848         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80849
80850 2006-04-18  Derek Price  <derek@ximbiot.com>
80851             Paul Eggert  <eggert@cs.ucla.edu>
80852
80853         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80854         New files.
80855
80856 2006-04-18  Derek Price  <derek@ximbiot.com>
80857             Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * lib/inttypes.h: New file.
80860         * lib/strtoimax.c: Assume <inttypes.h>.
80861
80862 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80863
80864         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80865         isn't mounted.  Problem reported by Kir Kolyshkin.
80866
80867 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80870         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80871         Derek R. Price.
80872         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80873         implementation.
80874
80875 2006-04-12  Eric Blake  <ebb9@byu.net>
80876
80877         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80878         is now done automatically by the corresponding Autoconf macro.
80879
80880 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80883         time_r.h.
80884
80885 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80886
80887         Merge regex changes from libc, removing some of our
80888         POSIX-conformance changes that were rejected and redoing them in a
80889         less-intrusive way.
80890
80891         * lib/regcomp.c (re_compile_internal, init_dfa):
80892         Length arg is now size_t, not Idx.  All uses changed.
80893         (peek_token): Forward decl now says internal_function.
80894         (__re_error_msgid, __re_error_msgid_idx):
80895         Now static rather than extern with attribute_hidden.
80896         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80897         For some reason libc prefers K&R style defns for external functions.
80898         (regerror) [!defined _LIBC]: Likewise.
80899         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80900         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80901         (build_range_exp, build_collating_symbol):
80902         Use K&R-style defn.
80903         (re_compile_fastmap): Use '\0' to memset, not 0.
80904         (utf8_sb_map): Make the calculations more obvious.
80905         (init_dfa, parse_bracket_exp, build_charclass_op):
80906         Call calloc and cast result, as glibc does.
80907         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80908         (build_range_exp, build_collating_symbol):
80909         Now internal functions.
80910
80911         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80912
80913         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80914         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80915         Don't depend on VMS; depend on __VMS instead, for POSIX
80916         namespace cleanness.
80917         (regoff_t): Define to ssize_t, not long int.
80918
80919         Remove the REG_ macros named below.  Instead, make the old names
80920         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80921         __USE_GNU_REGEX.
80922         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80923         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80924         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80925         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80926         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80927         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80928         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80929         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80930         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80931         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80932         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80933         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80934         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80935         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80936         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80937         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80938         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80939         (REG_NREGS):
80940         Remove.  All uses replaced by the old RE_* names.
80941         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80942         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80943         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80944         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80945         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80946         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80947         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80948         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80949         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80950         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80951         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80952         Don't bother having these macros be independent of each others'
80953         values, since they no longer exist in the POSIX name space.
80954
80955         Rename the following member names back to their old names,
80956         unless !__USE_GNU_REGEX.  All uses changed back.
80957         (buffer): Renamed from re_buffer.
80958         (allocated): Renamed from re_allocated.
80959         (used): Renamed from re_used.
80960         (syntax): Renamed from re_syntax.
80961         (fastmap): Renamed from re_fastmap.
80962         (translate): Renamed from re_translate.
80963         (can_be_null): Renamed from re_can_be_null.
80964         (regs_allocated): Renamed from re_regs_allocated.
80965         (fastmap_accurate): Renamed from re_fastmap_accurate.
80966         (no_sub): Renamed from re_no_sub.
80967         (not_bol): Renamed from re_not_bol.
80968         (not_eol): Renamed from re_not_eol.
80969         (newline_anchor): Renamed from re_newline_anchor.
80970         (num_regs): Renamed from rm_num_regs.
80971         (start): Renamed from rm_start.
80972         (end): Renamed from rm_end.
80973
80974         (free_state): Move up a bit.
80975
80976         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80977         #define to be empty.
80978         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80979         when that is what is intended.
80980         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80981         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80982         (MAX): New macro.
80983         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80984         All uses changed back to re_malloc, etc.  It's now the caller's
80985         responsibility to check for overflow; all callers changed.
80986         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80987         (re_x2nrealloc): Remove.
80988         (free_state): Remove decl.
80989
80990         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80991         (re_set_registers, re_exec):
80992         Use K&R-style defn.
80993
80994         2006-01-31  Roland McGrath  <roland@redhat.com>
80995
80996         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80997         Reported by Mike Frysinger <vapier@gentoo.org>.
80998
80999         2006-01-15  Andreas Jaeger  <aj@suse.de>
81000
81001         [BZ #1950]
81002         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81003         build_wcs_upper_buffer change.
81004         (build_wcs_upper_buffer): Change return type.
81005
81006         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81007
81008         * lib/regex_internal.h: Include <stdint.h> if available.
81009
81010         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81011
81012         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81013
81014         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81015
81016         * lib/regcomp.c: Adjust for changed secondary hash function.
81017
81018         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81019
81020         * lib/regex.h: Pretty printing.
81021         Clean up namespace a bit.
81022
81023         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81024
81025         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81026         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81027
81028         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81029                     Ulrich Drepper  <drepper@redhat.com>
81030
81031         [BZ #1302]
81032         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81033         changed.
81034         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81035
81036         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81037
81038         [BZ #281]
81039         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81040         * lib/regcomp.c: Remove unnecessary uses of
81041         unsigned RE_TRANSLATE_TYPE.
81042         * lib/regex_internal.h: Likewise.
81043         * lib/regex_internal.c: Likewise.
81044         * lib/regexec.c: Likewise.
81045         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81046
81047         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81048
81049         * lib/regexec.c (find_recover_state): Remove unnecessary
81050         initialization.
81051         (transit_state_bkref): Make DFA a const pointer.
81052         (get_subexp): Likewise.
81053         (check_arrival): Likewise.
81054         (update_cur_sifted_state): Likewise.
81055         (re_search_internal): Likewise.
81056         (prune_impossible_nodes): Likewise.
81057         (acquire_init_state_context): Likewise.
81058         (proceed_next_node): Likewise.
81059         (set_regs): Likewise.
81060         (free_fail_stack_return): Likewise.
81061         (check_arrival_expand_ecl): Mark DFA parameter as const.
81062         (check_arrival_expand_ecl_sub): Likewise.
81063         (check_subexp_limits): Likewise.
81064         (sub_epsilon_src_nodes):  Likewise.
81065         (add_epsilon_src_nodes):  Likewise.
81066         (merge_state_array): Likewise.
81067         (update_regs): Likewise.
81068         (build_trtable): Likewise.
81069         (sift_states_backward): Mark MCTX parameter as const.
81070         (build_sifted_states): Likewise.
81071         (update_cur_sifted_state): Likewise.
81072         (sift_states_mkref): Likewise.
81073         (check_arrival_expand_ecl): Mark eclosure as const.
81074         (check_dst_limits_calc_pos_1): Likewise.
81075         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81076         pointer.
81077
81078         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81079
81080         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81081         (transit_state_sb): Likewise.
81082         (transit_state_mb): Likewise.
81083         (sift_states_iter_mb): Likewise.
81084         (check_arrival_add_next_nodes): Likewise.
81085         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81086         [_LIBC] (re_search_2_stub): Use mempcpy.
81087
81088         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81089         mbrtowc for very simple UTF-8 case.
81090
81091         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81092         a pointer-to-const.
81093         (re_acquire_state_context): Likewise.
81094         * lib/regex_internal.h: Adjust prototypes.
81095
81096         * lib/regex.c: Prevent using C++ compilers.
81097
81098         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81099         (re_acquire_state_context): Likewise.
81100
81101 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81102
81103         * modules/regex (Depends-on): Add ssize_t.
81104
81105 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81106
81107         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81108         translation table.
81109
81110 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81111
81112         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81113
81114 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81115             Bruno Haible  <bruno@clisp.org>
81116
81117         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81118         <sys/types.h> and <inttypes.h>.
81119
81120 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81121
81122         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81123         `__error_t_defined', so argp.h will not typedef the former.
81124
81125 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81126
81127         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81128         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81129         glibc names.  Even if glibc is changed to conform to POSIX, the
81130         traditional names will be available anyway, since regex depends on
81131         the extensions module.  Also, fix a longstanding typo in the
81132         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81133         reported by Emanuele Giaquinta.  Also, change sense of cached
81134         variable, so that the message makes sense.
81135
81136 2006-03-24  Simon Josefsson  <jas@extundo.com>
81137
81138         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81139         including some doc fixes.
81140         (base64_encode_alloc): Fix +1 bug on allocation failures.
81141
81142 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81143
81144         * lib/base64.c (base64_encode): Do not read past end of array with
81145         unsanitized input on systems with CHAR_BIT > 8.
81146
81147 2006-03-24  Eric Blake  <ebb9@byu.net>
81148
81149         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81150
81151 2006-03-22  Karl Berry  <karl@gnu.org>
81152
81153         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81154         * config/srclistvars.sh (COREUTILS): new var.
81155
81156 2006-03-17  Jim Meyering  <jim@meyering.net>
81157
81158         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81159         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81160
81161 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81164         no longer needs it.  Instead, check that regoff_t is as least
81165         as wide as ptrdiff_t.
81166
81167         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81168         so that our regex.h stays compatible with the installed regex.
81169         This is helpful for installers who configure --without-included-regex.
81170         Problem reported by Emanuele Giaquinta.
81171
81172 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81175         Typedef to long int, not to off_, as POSIX will likely change
81176         in that direction.
81177
81178 2006-03-15  Eric Blake  <ebb9@byu.net>
81179
81180         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81181
81182 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81183
81184         * lib/argp-help.c (validate_uparams): Fix typo
81185         * lib/argp-parse.c (argp_default_options): Consistently begin help
81186         messages with a lowercase letter.
81187
81188 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81189
81190         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81191         overrun buffers and shouldn't be used (much as gets shouldn't be
81192         used).
81193         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81194
81195 2006-03-08  Simon Josefsson  <jas@extundo.com>
81196
81197         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81198         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81199
81200 2006-03-08  Simon Josefsson  <jas@extundo.com>
81201
81202         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81203         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81204
81205 2006-03-08  Simon Josefsson  <jas@extundo.com>
81206
81207         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81208         signal that configure disabled the device.
81209
81210 2006-03-08  Simon Josefsson  <jas@extundo.com>
81211
81212         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81213         languages.
81214
81215 2006-03-07  Simon Josefsson  <jas@extundo.com>
81216
81217         * modules/getopt (Depends-on): Add unistd.
81218
81219         * modules/unistd: New file.
81220
81221 2006-03-07  Simon Josefsson  <jas@extundo.com>
81222
81223         * modules/gc-random: New file.
81224
81225 2006-03-07  Simon Josefsson  <jas@extundo.com>
81226
81227         * m4/unistd_h.m4: New file.
81228
81229 2006-03-07  Simon Josefsson  <jas@extundo.com>
81230
81231         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81232         test to be side-effect free by storing the result in the cache
81233         variable gl_cv_lib_readline, and moving the assignment of
81234         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81235         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81236
81237 2006-03-07  Simon Josefsson  <jas@extundo.com>
81238
81239         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81240         error on missing devices (the functions will return an error).
81241
81242         * m4/gc.m4: Move random stuff to gc-random.m4
81243
81244 2006-03-07  Simon Josefsson  <jas@extundo.com>
81245
81246         * lib/unistd_.h: New file.
81247
81248 2006-03-07  Simon Josefsson  <jas@extundo.com>
81249
81250         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81251
81252 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81253
81254         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81255         Problem reported by Juan Manuel Guerrero.
81256
81257 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81258
81259         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81260         the unistd module.
81261         * lib/getlogin_r.c: Likewise.
81262         * lib/getlogin_r.h: Likewise.
81263         * lib/glob.c: Likewise.
81264         * lib/pagealign_alloc.c: Likewise.
81265         * lib/unistd_.h: Remove; no longer needed.
81266
81267 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81268
81269         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81270         Add unistd.
81271         * modules/c-stack (Depends-on): Add unistd.
81272         * modules/getlogin_r: Likewise.
81273         * modules/glob: Likewise.
81274         * modules/pagealign_alloc: Likewise.
81275         * modules/unistd (Files): Remove lib/unistd_.h.
81276         (EXTRA_DIST): Remove.
81277         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81278         need unistd_.h.
81279         (MOSTLYCLEANFILES): Remove unistd.h-t.
81280
81281 2006-03-03  Simon Josefsson  <jas@extundo.com>
81282
81283         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81284
81285 2006-03-03  Simon Josefsson  <jas@extundo.com>
81286
81287         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81288         libidn and bison.
81289
81290 2006-03-03  Simon Josefsson  <jas@extundo.com>
81291
81292         * build-aux/maint.mk: Add indent target.
81293
81294 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81295
81296         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81297         our replacement poll.h in any case, to avoid a differing
81298         declaration from a system header.  Seen on AIX.
81299
81300 2006-03-01  Simon Josefsson  <jas@extundo.com>
81301
81302         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81303         <kasal@ucw.cz>.
81304
81305 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81306
81307         * modules/gettime (Depends-on): Add extensions module.
81308         * modules/nanosleep (Depends-on): Likewise.
81309         * modules/settime (Depends-on): Likewise.
81310
81311 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81312
81313         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81314         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81315         pedantically.
81316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81317         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81318
81319         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81320         not "==".  Reported by Ralf Wildenhues.
81321
81322 2006-03-01  Karl Berry  <karl@gnu.org>
81323
81324         * doc/Copyright/request-*: new files, synced from gnuorg.
81325
81326 2006-03-01  Karl Berry  <karl@gnu.org>
81327
81328         * config/srclist.txt (Copyright/*): new entries.
81329
81330 2006-02-28  Simon Josefsson  <jas@extundo.com>
81331
81332         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81333
81334 2006-02-27  Simon Josefsson  <jas@extundo.com>
81335
81336         * lib/base64.h: Indent #define's.  From Jim Meyering
81337         <jim@meyering.net>.
81338
81339 2006-02-27  Jim Meyering  <jim@meyering.net>
81340
81341         Revert the change of 2006-02-24, so these files can continue
81342         to be sync'd from gettext.
81343         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81344         of `config.h'.
81345
81346 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81347
81348         * modules/intprops: New file.
81349         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81350         Add intprops.
81351         * modules/getloadavg (Files): Remove lib/intprops.h.
81352         (Depends-on): Add intprops.
81353         * modules/human: Likewise.
81354         * modules/inttostr: Likewise.
81355         * modules/openat: Likewise.
81356         * modules/sig2str: Likewise.
81357         * modules/userspec: Likewise.
81358         * modules/utimecmp: Likewise.
81359         * modules/xnanosleep: Likewise.
81360         * modules/xstrtol: Likewise.
81361
81362 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81363
81364         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81365         * modules/lock-tests (TESTS): Use $(EXEEXT).
81366         * modules/tls-tests: Likewise.
81367         * modules/argp-tests: Likewise.
81368         (check_PROGRAMS): New var, replacing...
81369         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81370
81371 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81372
81373         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81374         `config.h'.
81375
81376 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81379
81380 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81381
81382         Sync from coreutils.
81383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81384         gl_CHDIR_SAFER.
81385
81386 2006-02-22  Jim Meyering  <jim@meyering.net>
81387
81388         Sync from coreutils.
81389         * m4/chdir-safer.m4: New file.
81390
81391 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81392
81393         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81394         AT_FDCWD exceeds INT_MAX.
81395         * lib/openat.h (AT_FDCWD): Likewise.
81396
81397 2006-02-17  Eric Blake  <address@hidden>
81398
81399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81400
81401 2006-02-16  Simon Josefsson  <jas@extundo.com>
81402
81403         * modules/getaddrinfo (Depends-on): Add sys_socket.
81404
81405 2006-02-15  Simon Josefsson  <jas@extundo.com>
81406
81407         * build-aux/maint.mk: Add dsyntax-check rule.
81408
81409 2006-02-15  Eric Blake  <ebb9@byu.net>
81410
81411         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81412         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81413         'present but cannot compile' warnings on cygwin.
81414         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81415         use ws2tcpip.h if sys/socket.h works.
81416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81417         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81418
81419 2006-02-14  Simon Josefsson  <jas@extundo.com>
81420
81421         * modules/maintainer-makefile (Files): Rename.
81422
81423         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81424         and (the local) Makefile.cfg to maint-cfg.mk.
81425
81426         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81427         to the latter.
81428
81429         * modules/maintainer-makefile: New module.
81430
81431         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81432         severaly stripped to make it possible to build it up from scratch
81433         with reliable tests.
81434
81435         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81436         fixes to permit overriding the default actions when configure and
81437         makefile are not available.
81438
81439 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         Sync from coreutils.
81442         * modules/lstat (Depends-on): Don't depend on xalloc.
81443         (License): Change from GPL to LGPL, since this is now simply a
81444         replacement for a libc function.
81445
81446 2006-02-14  Jim Meyering  <jim@meyering.net>
81447
81448         Sync from coreutils.
81449
81450         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81451         failure on deficient systems, and simplify gnulib lgpl dependencies.
81452         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81453         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81454
81455         * lib/xalloc-die.c: Remove unused definition of N_.
81456
81457 2006-02-14  Jim Meyering  <jim@meyering.net>
81458
81459         Sync from coreutils.
81460         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81461         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81462         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81463         double-quote uses of that variable, to accommodate the rare case in
81464         which getmntent is available in none of the libraries checked.  This
81465         happens at least on FreeBSD 5.0.
81466
81467 2006-02-13  Simon Josefsson  <jas@extundo.com>
81468
81469         * gnulib-tool (Usage): Fix --import, from
81470         karl@freefriends.org (Karl Berry).
81471
81472 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81473
81474         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81475
81476 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81477
81478         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81479         "autoupdate" on 2005-12-12.
81480
81481 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81482
81483         * modules/closeout (Depends-on): Remove atexit.
81484
81485 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81486
81487         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81488         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81489
81490 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81491
81492         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81493         __EXTENSIONS__ if this causes compilation to fail.  Problem
81494         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81495         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81496
81497 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81498
81499         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81500         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81502         All uses changed.
81503
81504 2006-01-26  Simon Josefsson  <jas@extundo.com>
81505
81506         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81507         prototype is visible on mingw32.
81508
81509         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81510         for mingw32.
81511
81512         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81513         mingw32).
81514
81515 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81516
81517         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81518         attempt to open for write; this always fails, at least on POSIX
81519         hosts.  This reinstates the 2006-01-09 change, which was
81520         inadvertently removed.
81521
81522 2006-01-26  Bruno Haible  <bruno@clisp.org>
81523
81524         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81525         Reported by Paul Eggert.
81526
81527 2006-01-26  Bruno Haible  <bruno@clisp.org>
81528             Paul Eggert  <eggert@cs.ucla.edu>
81529
81530         * lib/stdbool_.h (_Bool)
81531         [(! (defined __cplusplus || defined __BEOS__)
81532           && !defined __GNUC__
81533           && !(defined __HP_cc || defined __xlc__
81534                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81535                || defined __sgi))]:
81536         #define to signed char in these cases too; this simplifies
81537         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81538         etc., separately) and makes it more conservative.
81539
81540 2006-01-25  Simon Josefsson  <jas@extundo.com>
81541
81542         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81543         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81544         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81545
81546 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81547
81548         * lib/argp-namefrob.h: Bugfix. Remove stray #
81549
81550 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81551
81552         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81553         so that we test the test.
81554         Check for yet another HP-UX cc bug involving *bool |= bool.
81555
81556 2006-01-25  Karl Berry  <karl@gnu.org>
81557
81558         * config/srclist.txt (vasnprintf.c): sync lost.
81559
81560 2006-01-25  Jim Meyering  <jim@meyering.net>
81561
81562         Sync from the stable (b5) branch of coreutils:
81563
81564         * lib/fts.c (fts_children): Don't let close() clobber errno from
81565         failed fchdir().
81566
81567         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81568         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81569         a dangling symlink.  That can also happen at least for ELOOP.
81570         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81571         FYI, this bug predates the inclusion of fts.c in coreutils.
81572
81573         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81574         in their own block, so pre-c99 compilers don't object.
81575
81576         Avoid the double-free (first in fts_read, second in fts_close) that
81577         would occur when an `active' directory is made inaccessible (e.g.,
81578         via chmod a-x) during a traversal.
81579         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81580         before returning.  Reproduce this failure by
81581         mkdir -p a/b; cd a; chmod a-x . b
81582         Reported by Stavros Passas.
81583
81584 2006-01-25  Jim Meyering  <jim@meyering.net>
81585
81586         * lib/fileblocks.c: Remove more useless parentheses.
81587         * lib/readutmp.h: Likewise.
81588
81589 2006-01-25  Bruno Haible  <bruno@clisp.org>
81590
81591         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81592         warnings.
81593         Reported by Paul Eggert.
81594
81595 2006-01-25  Bruno Haible  <bruno@clisp.org>
81596
81597         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81598         rid of a trap command. For Solaris sh.
81599         Reported by Mark D. Baushke <mdb@gnu.org>.
81600
81601 2006-01-24  Simon Josefsson  <jas@extundo.com>
81602
81603         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81604         Bruno.
81605
81606 2006-01-24  Karl Berry  <karl@gnu.org>
81607
81608         * config/srclist.txt (argp-namefrob.h): sync lost.
81609
81610 2006-01-24  Jim Meyering  <jim@meyering.net>
81611
81612         * modules/openat (Files): Add lib/intprops.h.
81613         From Mark D. Baushke.
81614
81615 2006-01-24  Jim Meyering  <jim@meyering.net>
81616
81617         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81618         Reported by Mark D. Baushke.
81619
81620 2006-01-24  Jim Meyering  <jim@meyering.net>
81621
81622         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81623
81624 2006-01-24  Bruno Haible  <bruno@clisp.org>
81625
81626         * modules/strnlen (Maintainer): Change from glibc to all.
81627
81628 2006-01-24  Bruno Haible  <bruno@clisp.org>
81629
81630         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81631         Patch by Paul Eggert.
81632
81633 2006-01-24  Bruno Haible  <bruno@clisp.org>
81634
81635         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81636         already has it.
81637         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81638         2005-11-26.
81639
81640         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81641         'signed char' to avoid problems with the built-in _Bool type.
81642         Reported by Paul Eggert on 2005-11-26.
81643
81644 2006-01-24  Bruno Haible  <bruno@clisp.org>
81645
81646         * gnulib-tool (func_import): Avoid constructing complicated sed
81647         expressions inside backquote.
81648         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81649
81650 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81651
81652         These changes imported from libc.
81653         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81654         test and two separate function calls.
81655         * lib/strndup.c (__strndup): Add libc_hidden_def.
81656
81657 2006-01-23  Simon Josefsson  <jas@extundo.com>
81658
81659         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81660         Remove the test_*_SOURCES variable: automake infers it by default.
81661         * modules/tls-tests: Likewise.
81662
81663 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81664
81665         Work around porting bugs reported by Dieter in
81666         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81667         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81668         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81669         Include "getopt.h" first, to check interface.
81670         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81671         !HAVE_DECL_GETENV.
81672         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81673         (__strndup): Revert to K&R-style function dfns, the glibc style.
81674         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81675         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81676         Include strnlen.h first, to get prototype properly.
81677         (strnlen): Renamed from __strnlen.
81678         Remove weak alias.
81679
81680 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81681
81682         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81683
81684 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81685
81686         * config/srclist.txt: Adjust to reflect glibc reorganization.
81687         This affects only comments.
81688
81689 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81690
81691          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81692          Reported by Bruce Korb <bkorb@gnu.org>.
81693
81694 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81695
81696         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81697         to pacify gcc -Wswitch-default.
81698
81699 2006-01-22  Bruno Haible  <bruno@clisp.org>
81700
81701         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81702         temporary buffer for sprintf, take into account the precision also
81703         for 'd', 'i', 'u', 'o', 'x', 'X'.
81704
81705 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81706
81707         * modules/argp-tests: New module
81708         * tests/test-argp.c: New file
81709         * tests/test-argp-2.sh: New file
81710
81711 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81712
81713         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81714         (__argp_base_name): Removed
81715         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81716         typo.
81717         (__argp_base_name): Provide macro definition or extern declaration
81718         depending on the configuration
81719
81720 2006-01-20  Simon Josefsson  <jas@extundo.com>
81721
81722         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81723
81724 2006-01-20  Simon Josefsson  <jas@extundo.com>
81725
81726         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81727
81728 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81731         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81732         Suggested by Bruno Haible.
81733
81734 2006-01-20  Karl Berry  <karl@gnu.org>
81735
81736         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81737         until changes propagate, I guess.
81738
81739 2006-01-19  Simon Josefsson  <jas@extundo.com>
81740
81741         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81742
81743 2006-01-19  Simon Josefsson  <jas@extundo.com>
81744
81745         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81746
81747 2006-01-19  Simon Josefsson  <jas@extundo.com>
81748
81749         * gnulib-tool: Set check_PROGRAMS.
81750
81751         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81752         modules/des-tests, modules/gc-arcfour-tests,
81753         modules/gc-arctwo-tests, modules/gc-des-tests,
81754         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81755         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81756         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81757         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81758         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81759         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81760         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81761         test_*_SOURCES.
81762
81763 2006-01-18  Simon Josefsson  <jas@extundo.com>
81764
81765         * modules/socklen (Depends-on): Depend on sys_socket.
81766
81767 2006-01-18  Simon Josefsson  <jas@extundo.com>
81768
81769         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81770         modules/des-tests, modules/gc-arcfour-tests,
81771         modules/gc-arctwo-tests, modules/gc-des-tests,
81772         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81773         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81774         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81775         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81776         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81777         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81778         $(EXEEXT) to automake TESTS variable, for mingw32.
81779
81780 2006-01-17  Simon Josefsson  <jas@extundo.com>
81781
81782         * modules/socklen (Include): Need sys/socket.h.
81783
81784 2006-01-17  Bruno Haible  <bruno@clisp.org>
81785
81786         * modules/ssize_t (Include): Add <sys/types.h>.
81787
81788 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81789
81790         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81791         it's not portable and it doesn't work with cross-compiles.
81792         Problem reported by Bruno Haible.  Fix missing-$ typo in
81793         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81794         -zignore from being used with Sun's C compiler.
81795
81796 2006-01-12  Simon Josefsson  <jas@extundo.com>
81797
81798         * lib/base64.c: Fix warning, reported by Bruno Haible
81799         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81800
81801 2006-01-12  Bruno Haible  <bruno@clisp.org>
81802
81803         * modules/ldd: New file.
81804         * build-aux/ldd.sh.in: New file.
81805         * MODULES.html.sh (Support for building libraries and executables): Add
81806         ldd.
81807
81808 2006-01-12  Bruno Haible  <bruno@clisp.org>
81809
81810         * m4/ldd.m4: New file.
81811
81812 2006-01-12  Bruno Haible  <bruno@clisp.org>
81813
81814         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81815         endless loop while replacing $auxdir with build-aux.
81816
81817 2006-01-11  Simon Josefsson  <jas@extundo.com>
81818
81819         * lib/stdint_.h (SIZE_MAX): Add missing (.
81820
81821 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81822
81823         Sync from coreutils.
81824         * lib/md5.c: Fix commentary typos.
81825         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81826         * lib/md5.h (__attribute__): Remove; unused.
81827         * lib/sha1.c: Fix commentary to match md5 better.
81828         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81829         so that we don't need to worry about alignment.  All uses changed.
81830         This merges the 2005-10-28 md5 change into sha1.
81831
81832 2006-01-11  Jim Meyering  <jim@meyering.net>
81833
81834         Sync from coreutils.
81835         * lib/md5.c (OP): Fix spacing.
81836
81837 2006-01-11  Bruno Haible  <bruno@clisp.org>
81838
81839         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81840         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81841         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81842
81843 2006-01-11  Bruno Haible  <bruno@clisp.org>
81844
81845         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81846         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81847         the "early" section as well.
81848
81849 2006-01-11  Bruno Haible  <bruno@clisp.org>
81850
81851         Avoid "ar: no archive members specified" error on MacOS X.
81852         * gnulib-tool (func_modules_add_dummy): New function.
81853         (func_import, func_create_testdir): Invoke it.
81854
81855 2006-01-11  Bruno Haible  <bruno@clisp.org>
81856
81857         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81858         with $auxdir in AC_CONFIG_FILES statements.
81859
81860 2006-01-11  Bruno Haible  <bruno@clisp.org>
81861
81862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81863         Initialize also noinst_HEADERS to empty.
81864
81865 2006-01-11  Bruno Haible  <bruno@clisp.org>
81866
81867         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81868         variables.
81869         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81870         autoreconf.
81871
81872 2006-01-11  Bruno Haible  <bruno@clisp.org>
81873
81874         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81875         overridable by the user.
81876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81877
81878 2006-01-10  Simon Josefsson  <jas@extundo.com>
81879
81880         * modules/sys_socket: New file.
81881
81882 2006-01-10  Simon Josefsson  <jas@extundo.com>
81883
81884         * m4/sys_socket_h.m4: New file.
81885
81886 2006-01-10  Simon Josefsson  <jas@extundo.com>
81887
81888         * lib/socket_.h: New file.
81889
81890 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81891
81892         * modules/readutmp (Maintainer): Add myself.
81893
81894 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81897         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81898         People who are still concerned with buggy memcmp implementations
81899         can invoke gl_FUNC_MEMCMP themselves.
81900
81901 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * lib/regex_internal.h (BITSET_WORD_BITS):
81904         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81905         preprocessor mishandles large unsigned values as if they were signed.
81906         Problem reported by Claudio Fontana in
81907         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81908
81909 2006-01-10  Jim Meyering  <jim@meyering.net>
81910
81911         Avoid the double-free (first in fts_read, second in fts_close) that
81912         would occur when an `active' directory is made inaccessible (e.g.,
81913         via chmod a-x) during a traversal.
81914         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81915         before returning.  Reproduce this failure by
81916         mkdir -p a/b; cd a; chmod a-x . b
81917         Reported by Stavros Passas.
81918
81919         Sync from coreutils.
81920         * lib/sha1.c: Tweak grammar in a comment.
81921
81922 2006-01-10  Jim Meyering  <jim@meyering.net>
81923
81924         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81925         Patch by Joerg Sonnenberger.
81926
81927 2006-01-10  Bruno Haible  <bruno@clisp.org>
81928
81929         * modules/readutmp: Depend on module free.
81930         * modules/strtok_r: Depend on module restrict.
81931
81932 2006-01-10  Bruno Haible  <bruno@clisp.org>
81933
81934         * modules/gettext (configure.ac): Add an invocation of
81935         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81936
81937 2006-01-10  Bruno Haible  <bruno@clisp.org>
81938
81939         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81940         Reported by Werner Lemberg <wl@gnu.org>.
81941
81942 2006-01-10  Bruno Haible  <bruno@clisp.org>
81943
81944         * lib/localcharset.c: Update from GNU gettext.
81945
81946 2006-01-10  Bruno Haible  <bruno@clisp.org>
81947
81948         * lib/argp.h (__const): Remove macro. Use const instead.
81949         * lib/argp-fmtstream.h (__const): Likewise.
81950         * lib/glob_.h (__const): Remove macro.
81951         * lib/glob-libc.h: Use const instead of __const.
81952
81953 2006-01-10  Bruno Haible  <bruno@clisp.org>
81954
81955         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81956         variable.
81957         Needed to avoid an automake error regarding the 'gettext' module.
81958
81959 2006-01-09  Simon Josefsson  <jas@extundo.com>
81960
81961         * modules/inet_ntop (Depends-on): Add restrict.
81962
81963 2006-01-09  Simon Josefsson  <jas@extundo.com>
81964
81965         * modules/gc-rijndael-tests (License): Put under LGPL.
81966
81967         * modules/gc-des-tests (License): Likewise.
81968
81969         * modules/gc-arcfour-tests (License): Likewise.
81970
81971         * modules/gc-arctwo-tests (License): Likewise.
81972
81973         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81974
81975         * modules/gc-hmac-sha1-tests (Files): Likewise.
81976
81977         * modules/gc-hmac-md5-tests (License): Likewise.
81978
81979         * modules/gc-sha1-tests (License): Likewise.
81980
81981         * modules/gc-md5-tests (License): Likewise.
81982
81983         * modules/gc-md4-tests (License): Likewise.
81984
81985         * modules/gc-md2-tests (License): Likewise.
81986
81987         * modules/gc-tests (License): Likewise.
81988
81989         * modules/des-tests (License): Likewise.
81990
81991         * modules/md4-tests (License): Likewise.
81992
81993         * modules/md2-tests (License): Likewise.
81994
81995 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         Sync from coreutils:
81998
81999         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82000         * modules/lib-ignore: New file.
82001         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82002         chdir-safer.m4, lchmod.m4.
82003         * modules/openat: Add mkdirat.c, openat-priv.h.
82004
82005 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82006
82007         Sync from coreutils.
82008         * m4/lib-ignore.m4: New file.
82009         * m4/lchmod.m4: New file.
82010
82011 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82012
82013         Sync from coreutils.
82014         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82015         for write access: POSIX says that must fail.
82016         * lib/fts.c (diropen): Likewise.
82017         * lib/save-cwd.c (save_cwd): Likewise.
82018         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82019         well, for minor improvements on hosts that lack O_DIRECTORY.
82020         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82021         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82022         Fall back on chown if open failed with EACCES.
82023
82024         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82025         Report an error at compile-time if only a 1-second nominal clock
82026         resolution is found.
82027
82028         * lib/lchmod.h: New file.
82029         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82030         (make_dir_parents): Use lchown rather than chown, and
82031         lchmod rather than chmod.
82032
82033         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82034         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82035         "proc" reported by n0dalus.
82036
82037         * lib/mountlist.c: Include <limits.h>.
82038         (dev_from_mount_options)
82039         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82040         New function.  It no longer assumes "dev=" has the System V meaning
82041         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82042         (read_file_system_list)
82043         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82044         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82045         dev= in that case.
82046
82047         * lib/posixtm.h (PDS_PRE_2000): New macro.
82048         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82049         allow_century.  All usages changed.  Reject dates outside the range
82050         1969-1999 if PDS_PRE_2000 is used.
82051
82052 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82053
82054         Sync from coreutils.
82055         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82056         (Time of day items): Mention the possibility of leap seconds.
82057         Problem reported by Dr. David Alan Gilbert.
82058
82059 2006-01-09  Jim Meyering  <jim@meyering.net>
82060
82061         Sync from coreutils.
82062
82063         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82064
82065         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82066
82067         * lib/modechange.c (mode_compile): Reject an invalid mode string
82068         that starts with an octal digit.  From Andreas Gruenbacher.
82069
82070         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82071         and dup to open_safer and dup_safer, respectively.
82072         (openat_permissive): Fix typo in comment.
82073
82074         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82075         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82076         (_): Remove; no longer needed.
82077         (openat): Renamed from rpl_openat; no need for rpl_openat
82078         since openat.h renames openat for us.
82079         Replace most of the body with a call to openat_permissive,
82080         to avoid duplicate code.
82081         Port to (probably hypothetical) environments were mode_t is
82082         wider than int.
82083         (openat_permissive): Require mode arg, so that we can check
82084         types better.  Put it just after flags.  Change cwd failure
82085         indicator from pointer-to-bool to pointer-to-errno-value.
82086         All callers changed.
82087         Invoke openat_save_fail and/or openat_restore_fail if
82088         cwd_errno is null, so that openat can call us.
82089         (openat_permissive, fdopendir, fstatat, unlinkat):
82090         Simplify errno handling to avoid some duplicate code,
82091         as it's OK to set errno on success.
82092         * lib/openat.h: Revamp code so that function macros depend on
82093         __OPENAT_PREFIX only, not also on AT_FDCWD.
82094         (openat_ro): Remove.  Caller changed to use openat_permissive.
82095         (openat_permissive): Now a macro, if not a function.
82096         (openat_restore_fail, openat_save_fail): Now always functions,
82097         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82098
82099         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82100         and openat.c.
82101         * lib/mkdirat.c: Include openat-priv.h.
82102         Remove definitions of macros defined therein.
82103         * lib/openat.c: Likewise.
82104
82105         * lib/mkdirat.c (mkdirat): New file and function.
82106         * lib/openat.h (mkdirat): Declare.
82107
82108         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82109
82110         * lib/openat.h (openat_permissive): Declare.
82111         (openat_ro): Define.
82112
82113         * lib/openat.c (EXPECTED_ERRNO): New macro.
82114         (openat_permissive): New function -- used in remove.c rewrite.
82115         (all functions): Set errno just before returning, only if there
82116         was an actual failure.
82117         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82118
82119         Emulate openat-family functions using Linux's procfs, if possible.
82120         Idea and some code based on Ulrich Drepper's glibc changes.
82121
82122         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82123         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82124         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82125         before falling back on save_cwd and restore_cwd.
82126         (fdopendir, fstatat, unlinkat): Likewise.
82127
82128         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82129         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82130
82131         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82132         as second argument to va_arg.  Otherwise, some versions of gcc
82133         warn that `if this code is reached, the program will abort'.
82134
82135 2006-01-09  Jim Meyering  <jim@meyering.net>
82136
82137         Sync from coreutils.
82138         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82139         Require openat-priv.h.
82140
82141 2006-01-09  Bruno Haible  <bruno@clisp.org>
82142
82143         * modules/strnlen (Include): Use strnlen.h.
82144
82145 2006-01-09  Bruno Haible  <bruno@clisp.org>
82146
82147         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82148
82149 2006-01-09  Bruno Haible  <bruno@clisp.org>
82150
82151         * lib/sysexit_.h (EX_OK): New macro.
82152         Suggested by Martin Lambers <marlam@marlam.de>.
82153
82154 2006-01-09  Bruno Haible  <bruno@clisp.org>
82155
82156         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82157         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82158
82159 2006-01-09  Bruno Haible  <bruno@clisp.org>
82160
82161         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82162         numbers.
82163
82164 2006-01-09  Bruno Haible  <bruno@clisp.org>
82165
82166         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82167         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82168         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82169         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82170
82171 2006-01-09  Bruno Haible  <bruno@clisp.org>
82172
82173         * build-aux/javacomp.sh.in: New file, moved from lib/.
82174         * modules/javacomp-script (Files): Update.
82175         (configure.ac): Add AC_CONFIG_FILES invocation.
82176         (EXTRA_DIST): Remove variable.
82177
82178         * build-aux/javaexec.sh.in: New file, moved from lib/.
82179         * modules/javaexec (Files): Update.
82180         (configure.ac): Add AC_CONFIG_FILES invocation.
82181         (EXTRA_DIST): Remove javaexec.sh.in.
82182
82183         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82184         * modules/csharpcomp-script (Files): Update.
82185         (configure.ac): Add AC_CONFIG_FILES invocation.
82186         (EXTRA_DIST): Remove variable.
82187
82188         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82189         * modules/csharpexec (Files): Update.
82190         (configure.ac): Add AC_CONFIG_FILES invocation.
82191         (EXTRA_DIST): Remove csharpexec.sh.in.
82192
82193 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82194
82195         Sync from coreutils.
82196
82197         Add POSIX ACL support
82198         * lib/acl.h (copy_acl, set_acl): Add declarations.
82199         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82200         systems other than Linux.
82201         (chmod_or_fchmod): New function: use fchmod when possible,
82202         and chmod otherwise.
82203         (file_has_acl): Add a POSIX ACL implementation, with a
82204         Linux-specific subcase.
82205         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82206         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82207         acls are unsupported.
82208         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82209         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82210         are unsupported.
82211
82212 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82213
82214         Sync from coreutils.
82215         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82216
82217 2006-01-07  Bruno Haible  <bruno@clisp.org>
82218
82219         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82220         gl_EARLY.
82221
82222 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82223
82224         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82225         Problem reported for Mingw by Mark Junker.
82226
82227 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * README: Gnulib normally doesn't generate a tarball.
82230
82231 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82232
82233         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82234         long int, not int, for nanosecond counts, so that people who are
82235         used to POSIX struct timespec won't be surprised.  Reported by Jim
82236         Meyering.
82237
82238 2005-12-28  Bruno Haible  <bruno@clisp.org>
82239
82240         * build-aux/config.rpath: Update from GNU gettext.
82241
82242 2005-12-16  Jim Meyering  <jim@meyering.net>
82243
82244         * modules/fprintftime: New module.
82245         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82246
82247 2005-12-16  Jim Meyering  <jim@meyering.net>
82248
82249         * m4/fprintftime.m4: New file.
82250
82251 2005-12-16  Jim Meyering  <jim@meyering.net>
82252
82253         * lib/fprintftime.c, lib/fprintftime.h: New files.
82254
82255 2005-12-15  Simon Josefsson  <jas@extundo.com>
82256
82257         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82258         new m4/socklen.m4.
82259
82260 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82261
82262         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82263         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82264
82265 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82266
82267         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82268         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82269         struct uparams is valid. Fall back to the default values if it is
82270         not.
82271
82272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82273
82274         * modules/argp (Files): Add argp-pin.c
82275         (Depends-on): dirname
82276         (lib_SOURCES): Add argp-pin.c
82277
82278 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82279
82280         * m4/argp.m4:  Check if program_invocation_name and
82281         program_invocation_short_name are declared and define appropriate
82282         macros if they are not.
82283
82284 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82285
82286         * lib/argp-help.c (__argp_base_name): New function
82287         (__argp_short_program_name): Rewrite using __argp_base_name
82288         * lib/argp-namefrob.h: Define program_invocation_name and
82289         program_invocation_short_name if requested
82290         (__argp_base_name): Add prototype
82291         * lib/argp-parse.c (argp_def): Use gettext wrappers
82292         (argp_default_parser): Use __argp_base_name
82293         * lib/argp-pin.c: New file. Defines program_invocation_name and
82294         program_invocation_short_name on systems that lack them.
82295
82296 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82297
82298         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82299         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82300         porting problem reported by Georg Schwarz in
82301         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82302
82303 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82304
82305         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82306         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82307         porting problem reported by Georg Schwarz in
82308         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82309
82310 2005-12-05  Bruno Haible  <bruno@clisp.org>
82311
82312         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82313         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82314         Reported by Mark Junker <mjscod@gmx.de>.
82315
82316 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82317
82318         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82319         Use implementation from Albert Chin, with some
82320         comments/corrections by Stepan Kasal and myself.
82321
82322 2005-12-02  Bruno Haible  <bruno@clisp.org>
82323
82324         * gnulib-tool (func_import): Accept GPLed build tool modules when
82325         --lgpl is given.
82326         * modules/csharpcomp-script: New file.
82327         * modules/csharpcomp: Depend on it.
82328         * modules/javacomp-script: New file.
82329         * modules/javacomp: Depend on it.
82330         Suggested by Simon Josefsson.
82331
82332 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82333
82334         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82335         statement, to work around an HP-UX 10.20 compiler bug reported by
82336         Peter O'Gorman.
82337
82338 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * modules/savedir (Depends-on): Add openat.
82341
82342 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82343
82344         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82345         (uintmax_t) [defined uintmax_t]: Do not declare.
82346         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82347         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82348         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82349         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82350         sake of portability to weird hosts that C allows (though we don't
82351         know of any practical examples).
82352
82353         * lib/savedir.h (fdsavedir): New decl.
82354         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82355         contains most of the former guts of savedir.
82356         (savedir): Use savedirstream.
82357         Include "openat.h".
82358
82359 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82360
82361         * modules/obstack (Files): Add m4/ulonglong.m4.
82362         Problem reported by Davide Angelocola.
82363
82364 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82367         coreutils no longer futzes with rounding modes.
82368
82369 2005-11-14  Jim Meyering  <jim@meyering.net>
82370
82371         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82372         replacement of mkstemp.
82373
82374 2005-11-10  Simon Josefsson  <jas@extundo.com>
82375
82376         * lib/readline.c: Remove EOL.
82377
82378 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         * modules/gethrxtime (Depends-on): Add gettime.
82381
82382 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82385         or gettimeofday; no longer needed.
82386
82387 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82388
82389         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82390         time business.
82391         (gethrxtime) [! (HAVE_NANOUPTIME
82392         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82393         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82394         our own approximation.
82395
82396 2005-11-08  Eric Blake  <ebb9@byu.net>
82397
82398         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82399
82400 2005-11-08  Eric Blake  <ebb9@byu.net>
82401
82402         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82403
82404 2005-11-04  Bruno Haible  <bruno@clisp.org>
82405
82406         * gnulib-tool: Implement --update mode.
82407
82408 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82409
82410         Fix porting problem reported by Theodoros V. Kalamatianos.
82411         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82412         Don't assume that futimes failing means we must fail.
82413
82414 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82417         variables to suggest the intended function of the PATH_MAX check.
82418
82419 2005-10-30  Kean Johnston  <jkj@sco.com>
82420
82421         Trivial changes to support SCO systems.
82422         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82423         as PATH_MAX.
82424         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82425         where __ptr is null when no I/O is pending.
82426
82427 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82428
82429         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82430         leave errno alone.  Problem reported by Dmitry V. Levin.
82431
82432 2005-10-28  Simon Josefsson  <jas@extundo.com>
82433
82434         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82435         Test more.
82436
82437         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82438
82439         * modules/md2, modules/md2-tests: New files.
82440
82441 2005-10-28  Simon Josefsson  <jas@extundo.com>
82442
82443         * m4/inet_ntop.m4: More tests.
82444
82445         * m4/gc-md2.m4, md2.m4: New file.
82446
82447 2005-10-28  Simon Josefsson  <jas@extundo.com>
82448
82449         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82450         "restrict" keywords, as per POSIX.  Protect the function
82451         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82452         Don't use K&R prototypes.  Check the sprintf return values.
82453         Re-define EAFNOSUPPORT if not present.  Indent.
82454
82455         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82456         suggested by Bruno Haible <bruno@clisp.org>.
82457
82458         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82459
82460         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82461
82462         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82463         libgcrypt).
82464
82465         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82466
82467         * lib/md2.h, lib/md2.c: New files.
82468
82469 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82470
82471         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82472         errno alone.  Problem reported by Frederic Jolliton.
82473
82474 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82475
82476         * modules/verify (License): Change from GPL to LGPL.  This is a
82477         tiny module and there are apparently near-equivalents that are
82478         under the BSD license.
82479
82480 2005-10-24  Simon Josefsson  <jas@extundo.com>
82481
82482         * modules/sha1: Relicense to LGPL.
82483
82484 2005-10-24  Simon Josefsson  <jas@extundo.com>
82485
82486         * lib/md4.h: Shrink buffer size, now that we changed the type.
82487
82488 2005-10-23  Simon Josefsson  <jas@extundo.com>
82489
82490         * gnulib-tool (func_import): Fix --tests-base.
82491
82492 2005-10-22  Simon Josefsson  <jas@extundo.com>
82493
82494         * modules/arcfour (Depends-on): Need stdint.
82495
82496 2005-10-22  Simon Josefsson  <jas@extundo.com>
82497
82498         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82499         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82500
82501 2005-10-22  Simon Josefsson  <jas@extundo.com>
82502
82503         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82504         suggested by Bruno Haible <bruno@clisp.org>.
82505
82506 2005-10-22  Simon Josefsson  <jas@extundo.com>
82507
82508         * lib/crc.h: Include stddef.h, for size_t.
82509
82510 2005-10-22  Simon Josefsson  <jas@extundo.com>
82511
82512         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82513         arcfour_context struct (simplify test vector testing in GNU
82514         Shishi).
82515
82516 2005-10-21  Simon Josefsson  <jas@extundo.com>
82517
82518         * modules/des, modules/des-tests: New files.
82519
82520         * modules/gc-des, modules/gc-des-tests: New files.
82521
82522         * tests/test-des.c, tests/test-gc-des.c: New file.
82523
82524 2005-10-21  Simon Josefsson  <jas@extundo.com>
82525
82526         * modules/arctwo, modules/arctwo-tests: New files.
82527
82528         * tests/test-arctwo.c: New file.
82529
82530         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82531
82532         * tests/test-gc-arctwo.c: New file.
82533
82534 2005-10-21  Simon Josefsson  <jas@extundo.com>
82535
82536         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82537         Bruno Haible <bruno@clisp.org>.
82538
82539         * m4/gc-des.m4: New file.
82540
82541 2005-10-21  Simon Josefsson  <jas@extundo.com>
82542
82543         * m4/arctwo.m4: New file.
82544
82545         * m4/gc-arctwo.m4: New file.
82546
82547 2005-10-21  Simon Josefsson  <jas@extundo.com>
82548
82549         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82550         block.
82551
82552 2005-10-21  Simon Josefsson  <jas@extundo.com>
82553
82554         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82555         <bruno@clisp.org>.
82556
82557         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82558
82559         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82560         Bruno Haible <bruno@clisp.org>.
82561
82562         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82563         <bruno@clisp.org>.
82564
82565 2005-10-21  Simon Josefsson  <jas@extundo.com>
82566
82567         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82568
82569 2005-10-21  Simon Josefsson  <jas@extundo.com>
82570
82571         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82572
82573 2005-10-21  Simon Josefsson  <jas@extundo.com>
82574
82575         * lib/des.h, lib/des.c: New files.
82576
82577         * lib/gc-gnulib.c: Support DES.c
82578
82579 2005-10-21  Simon Josefsson  <jas@extundo.com>
82580
82581         * lib/arctwo.h, lib/arctwo.c: New files.
82582
82583         * lib/gc-gnulib.c: Support ARCTWO.
82584
82585 2005-10-21  Simon Josefsson  <jas@extundo.com>
82586
82587         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82588         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82589
82590 2005-10-21  Simon Josefsson  <jas@extundo.com>
82591
82592         * gnulib-tool (func_import, func_create_testdir): Define automake
82593         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82594         Makefile.am snippet),
82595         suggested by Bruno Haible <bruno@clisp.org>.
82596
82597         * modules/gc (Makefile.am): Use it.
82598
82599 2005-10-21  Bruno Haible  <bruno@clisp.org>
82600
82601         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82602         patch.
82603
82604 2005-10-19  Simon Josefsson  <jas@extundo.com>
82605
82606         * tests/test-gc-rijndael.c: New file.
82607
82608         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82609
82610 2005-10-19  Simon Josefsson  <jas@extundo.com>
82611
82612         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82613         interface too.
82614
82615 2005-10-19  Simon Josefsson  <jas@extundo.com>
82616
82617         * tests/test-gc-arcfour.c: New file.
82618
82619         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82620
82621 2005-10-19  Simon Josefsson  <jas@extundo.com>
82622
82623         * modules/gc-md4, modules/gc-md4-tests: New file.
82624
82625         * tests/test-gc-md4.c: New file.
82626
82627 2005-10-19  Simon Josefsson  <jas@extundo.com>
82628
82629         * m4/gc-md4.m4: New file.
82630
82631 2005-10-19  Simon Josefsson  <jas@extundo.com>
82632
82633         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82634         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82635         <kasal@ucw.cz>.
82636
82637 2005-10-19  Simon Josefsson  <jas@extundo.com>
82638
82639         * m4/gc-arcfour.m4: New file.
82640
82641         * m4/gc-rijndael.m4: New file.
82642
82643 2005-10-19  Simon Josefsson  <jas@extundo.com>
82644
82645         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82646
82647 2005-10-19  Simon Josefsson  <jas@extundo.com>
82648
82649         * lib/gc-gnulib.c: Support ARCFOUR.
82650
82651 2005-10-19  Simon Josefsson  <jas@extundo.com>
82652
82653         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82654         support.
82655
82656         * lib/gc.h: Add ECB enum type.
82657
82658         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82659
82660 2005-10-18  Simon Josefsson  <jas@extundo.com>
82661
82662         * tests/test-md5.c: New file.
82663
82664         * modules/md5-tests: New file.
82665
82666 2005-10-18  Simon Josefsson  <jas@extundo.com>
82667
82668         * tests/test-md4.c: New file.
82669
82670         * modules/md4, modules/md4-tests: New files.
82671
82672 2005-10-18  Simon Josefsson  <jas@extundo.com>
82673
82674         * m4/md4.m4: New file.
82675
82676 2005-10-18  Simon Josefsson  <jas@extundo.com>
82677
82678         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82679
82680 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82681
82682         * gnulib-tool (func_create_testdir): Omit the second check whether
82683         BUILT_SOURCES in nonempty.
82684
82685 2005-10-17  Simon Josefsson  <jas@extundo.com>
82686
82687         * tests/test-rijndael.c: New file.
82688
82689 2005-10-17  Simon Josefsson  <jas@extundo.com>
82690
82691         * modules/sha1: Depend on stdint instead of md5.
82692
82693         * modules/md5: Depend on stdint, remove uint32_t.
82694
82695 2005-10-17  Simon Josefsson  <jas@extundo.com>
82696
82697         * modules/gc-sha1-tests: New file.
82698
82699         * tests/test-gc-sha1.c: New file.
82700
82701 2005-10-17  Simon Josefsson  <jas@extundo.com>
82702
82703         * m4/md5.m4: Remove call to uint32_t.m4.
82704
82705 2005-10-17  Simon Josefsson  <jas@extundo.com>
82706
82707         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82708
82709         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82710         md5.h.
82711
82712         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82713
82714         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82715
82716 2005-10-17  Simon Josefsson  <jas@extundo.com>
82717
82718         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82719
82720 2005-10-17  Simon Josefsson  <jas@extundo.com>
82721
82722         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82723
82724 2005-10-17  Simon Josefsson  <jas@extundo.com>
82725
82726         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82727
82728         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82729
82730 2005-10-17  Bruno Haible  <bruno@clisp.org>
82731
82732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82733         that it can also be used in a test.
82734
82735 2005-10-16  Bruno Haible  <bruno@clisp.org>
82736
82737         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82738         TESTS_ENVIRONMENT, so that individual tests can augment it.
82739
82740         * gnulib-tool (func_create_testdir): Use an intermediate target for
82741         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82742         macros, like $(ALLOCA_H), which cannot be passed through the command
82743         line.
82744
82745 2005-10-15  Simon Josefsson  <jas@extundo.com>
82746
82747         * modules/rijndael-tests: New file.
82748
82749         * modules/rijndael: New file.
82750
82751 2005-10-15  Simon Josefsson  <jas@extundo.com>
82752
82753         * m4/rijndael.m4: New file.
82754
82755 2005-10-15  Simon Josefsson  <jas@extundo.com>
82756
82757         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82758
82759         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82760
82761 2005-10-14  Simon Josefsson  <jas@extundo.com>
82762
82763         * tests/test-arcfour.c: New file.
82764
82765         * modules/arcfour, modules/arcfour-tests: New files.
82766
82767 2005-10-14  Simon Josefsson  <jas@extundo.com>
82768
82769         * m4/arcfour.m4: New file.
82770
82771 2005-10-14  Simon Josefsson  <jas@extundo.com>
82772
82773         * lib/arcfour.h, lib/arcfour.c: New files.
82774
82775 2005-10-14  Roland McGrath  <roland@redhat.com>
82776
82777         Import from libc.  [BZ #1331]
82778         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82779         macro argument.
82780         Reported by Matej Vela <vela@debian.org>.
82781
82782 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82783
82784         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82785         include <wchar.h>; no longer needed.
82786
82787 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82788
82789         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82790
82791 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82792         and  Ulrich Drepper  <drepper@redhat.com>
82793
82794         Import from libc.
82795         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82796         instead of inline stream orientation test and two separate
82797         function calls.  Pay no attention to USE_IN_LIBIO.
82798
82799 2005-10-13  Simon Josefsson  <jas@extundo.com>
82800
82801         * modules/gc-hmac-md5-tests: New file.
82802
82803         * tests/test-gc-hmac-sha1.c: New file.
82804
82805         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82806
82807         * modules/gc-hmac-md5-tests: New file.
82808
82809         * tests/test-gc-md5.c: New file.
82810
82811         * modules/gc-md5-tests: New file.
82812
82813 2005-10-13  Simon Josefsson  <jas@extundo.com>
82814
82815         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82816         Move memory allocation outside of loop.
82817
82818 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82819
82820         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82821         intermediate directory is in a read-only file system.  Problem
82822         reported by Eric Blake.
82823
82824 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82825
82826         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82827
82828 2005-10-12  Simon Josefsson  <jas@extundo.com>
82829
82830         * tests/test-hmac-sha1.c: New file.
82831
82832         * modules/hmac-sha1-tests: New file.
82833
82834         * modules/hmac-sha1: New file.
82835
82836 2005-10-12  Simon Josefsson  <jas@extundo.com>
82837
82838         * modules/gc-sha1: New file.
82839
82840 2005-10-12  Simon Josefsson  <jas@extundo.com>
82841
82842         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82843
82844         * tests/test-gc-pbkdf2-sha1.c: New file.
82845
82846 2005-10-12  Simon Josefsson  <jas@extundo.com>
82847
82848         * modules/gc-md5, modules/gc-hmac-md5: New files.
82849
82850         * modules/gc (Files): Remove md5, memxor and hmac files.
82851
82852 2005-10-12  Simon Josefsson  <jas@extundo.com>
82853
82854         * m4/gc-pbkdf2-sha1.m4: New file.
82855
82856         * m4/gc-hmac-sha1.m4: New file.
82857
82858         * m4/gc-sha1: New file.
82859
82860         * m4/hmac-sha1.m4: New file.
82861
82862 2005-10-12  Simon Josefsson  <jas@extundo.com>
82863
82864         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82865
82866         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82867
82868 2005-10-12  Simon Josefsson  <jas@extundo.com>
82869
82870         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82871         suggested by Bruno Haible <bruno@clisp.org>.
82872
82873 2005-10-12  Simon Josefsson  <jas@extundo.com>
82874
82875         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82876
82877 2005-10-12  Simon Josefsson  <jas@extundo.com>
82878
82879         * lib/gc-pbkdf2-sha1.c: New file.
82880
82881         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82882
82883 2005-10-12  Simon Josefsson  <jas@extundo.com>
82884
82885         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82886
82887         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82888
82889 2005-10-12  Simon Josefsson  <jas@extundo.com>
82890
82891         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82892         GC_USE_HMAC_MD5, respectively.
82893
82894         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82895         (gc_md5): Fix typo.
82896
82897         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82898
82899         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82900
82901         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82902
82903 2005-10-12  Bruno Haible  <bruno@clisp.org>
82904
82905         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82906         Reported by Stepan Kasal <kasal@ucw.cz>.
82907
82908 2005-10-11  Simon Josefsson  <jas@extundo.com>
82909
82910         * tests/test-crc.c: New file.
82911
82912         * modules/crc, modules/crc-tests: New files.
82913
82914 2005-10-11  Simon Josefsson  <jas@extundo.com>
82915
82916         * m4/crc.m4: New file.
82917
82918 2005-10-11  Simon Josefsson  <jas@extundo.com>
82919
82920         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82921
82922         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82923
82924         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82925
82926 2005-10-11  Simon Josefsson  <jas@extundo.com>
82927
82928         * lib/crc.h, lib/crc.c: New files.
82929
82930         * lib/gc.h (gc_hash_buffer): Add doc.
82931
82932 2005-10-11  Bruno Haible  <bruno@clisp.org>
82933
82934         * modules/c-strcasestr: New file.
82935         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82936
82937 2005-10-11  Bruno Haible  <bruno@clisp.org>
82938
82939         * modules/c-strcase: New file.
82940         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82941
82942 2005-10-11  Bruno Haible  <bruno@clisp.org>
82943
82944         * lib/strcasecmp.c: Include limits.h.
82945         (strcasecmp): Avoid integer overflow on exotic platforms.
82946         * lib/strncasecmp.c: Include limits.h.
82947         (strncasecmp): Avoid integer overflow on exotic platforms.
82948         Reported by Paul Eggert.
82949
82950 2005-10-11  Bruno Haible  <bruno@clisp.org>
82951
82952         * lib/c-strcasestr.h: New file, from GNU gettext.
82953         * lib/c-strcasestr.c: New file, from GNU gettext.
82954
82955 2005-10-11  Bruno Haible  <bruno@clisp.org>
82956
82957         * lib/c-strcase.h: New file, from GNU gettext.
82958         * lib/c-strcasecmp.c: New file, from GNU gettext.
82959         * lib/c-strncasecmp.c: New file, from GNU gettext.
82960
82961 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82962
82963         * modules/mempcpy (License): GPL -> LGPL.
82964         * modules/strchrnul (License): Likewise.
82965         * modules/sysexits (License): Likewise.
82966
82967 2005-10-08  Simon Josefsson  <jas@extundo.com>
82968
82969         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82970
82971 2005-10-07  Simon Josefsson  <jas@extundo.com>
82972
82973         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82974
82975 2005-10-06  Simon Josefsson  <jas@extundo.com>
82976
82977         * tests/test-hmac-md5.c: New file.
82978
82979         * modules/hmac-md5-tests: New file.
82980
82981         * modules/hmac-md5: New file.
82982
82983 2005-10-06  Simon Josefsson  <jas@extundo.com>
82984
82985         * m4/hmac-md5.m4: New file.
82986
82987         * m4/memxor.m4: Require gl_C_RESTRICT.
82988
82989 2005-10-06  Simon Josefsson  <jas@extundo.com>
82990
82991         * lib/memxor.c (memxor): Avoid casts and warnings.
82992
82993 2005-10-06  Simon Josefsson  <jas@extundo.com>
82994
82995         * lib/hmac-md5.c: New file.
82996
82997         * lib/hmac.h: New file.
82998
82999 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83000
83001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83002         promotes to int, not unsigned int, to catch the AIX 5.3
83003         compiler bug.
83004
83005 2005-10-05  Simon Josefsson  <jas@extundo.com>
83006
83007         * modules/memxor: New file.
83008
83009         * modules/iconv (Files): Move config.rpath to havelib, it is used
83010         there.
83011
83012         * modules/havelib (Files): Add config.rpath.
83013
83014 2005-10-05  Simon Josefsson  <jas@extundo.com>
83015
83016         * m4/memxor.m4: New file.
83017
83018 2005-10-05  Simon Josefsson  <jas@extundo.com>
83019
83020         * lib/memxor.c (memxor): Fix compiler error.
83021
83022         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83023         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83024
83025         * lib/memxor.h, lib/memxor.c: New files.
83026
83027         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83028         we assume all systems have it, suggested by Jim Meyering
83029         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83030         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83031         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83032         same reasons.
83033
83034 2005-10-05  Simon Josefsson  <jas@extundo.com>
83035
83036         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83037
83038 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83039
83040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83041         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83042         needed, since the source code now assumes these .h files.
83043
83044 2005-10-05  Derek Price  <derek@ximbiot.com>
83045
83046         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83047
83048 2005-10-05  Bruno Haible  <bruno@clisp.org>
83049
83050         * modules/stdint (License): Change to LGPL.
83051
83052 2005-10-04  Simon Josefsson  <jas@extundo.com>
83053
83054         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83055         D. Baushke" <mdb@gnu.org>.
83056
83057 2005-10-04  Bruno Haible  <bruno@clisp.org>
83058
83059         * lib/verify.h (verify_true): Provide alternative definition for C++.
83060
83061 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83062
83063         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83064         (SSIZE_MAX): New macro, if not already defined.
83065         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83066         than 2 GiB.
83067
83068 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83069
83070         Sync from coreutils.
83071         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83072         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83073         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83074         ULLONG_MAX doesn't work with 2.7.2.1.
83075
83076 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83077
83078         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83079         From Ben Pfaff.
83080
83081         * modules/exclude (Depends-on): Depend on verify.
83082         * modules/strtoimax (Depends-on): Likewise.
83083         * modules/utimecmp (Depends-on): Likewise.
83084
83085 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83086
83087         * lib/exclude.c: Include verify.h.
83088         (verify): Remove.  All callers changed to use verify.h's version.
83089         * lib/strtoimax.c: Likewise.
83090         * lib/utimecmp.c: Likewis.e
83091
83092         Sync from coreutils.
83093         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83094         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83095         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83096         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83097         bother returning ENOSYS if settimeofday or stime fails; just let
83098         them return whatever errno they want to return.
83099         * lib/utimens.c: Include unistd.h, for dup2.
83100         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83101         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83102
83103 2005-10-02  Jim Meyering  <jim@meyering.net>
83104
83105         Sync from coreutils.
83106         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83107         from glibc-2.2.5 that fails for read-only files.
83108
83109 2005-10-02  Jim Meyering  <jim@meyering.net>
83110
83111         Sync from coreutils.
83112         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83113         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83114         `#if HAVE_CONFIG_H'.
83115         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83116         Remove AT_FDCWD test.
83117         Do not consume the fd unless successful.
83118         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83119         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83120         block, so that we don't even try to compile it if settimeofday is
83121         available.  This works around a compilation failure on OSF1 V5.1,
83122         due to stime requiring a `long int*' while tv_sec is `int'.
83123
83124 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83125
83126         Sync from coreutils.
83127         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83128         against `yes', rather than just testing for nonempty.
83129
83130 2005-10-01  Simon Josefsson  <jas@extundo.com>
83131
83132         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83133         and Darwin.
83134
83135         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83136         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83137         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83138         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83139         Check if struct addrinfo is declared.
83140
83141 2005-10-01  Simon Josefsson  <jas@extundo.com>
83142
83143         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83144         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83145         AI_* and EAI_* definitions.  Protect function declarations.
83146
83147 2005-10-01  Jim Meyering  <jim@meyering.net>
83148
83149         Sync from coreutils.
83150
83151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83152         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83153         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83155         in the inet and nsl libraries.  Required on Solaris 5.7.
83156
83157 2005-10-01  Jim Meyering  <jim@meyering.net>
83158
83159         Sync from coreutils.
83160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83161         in the inet and nsl libraries.  Required on Solaris 5.7.
83162
83163 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83164
83165         * lib/getdelim.c (getdelim): Remove unused variables.
83166
83167 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83168
83169         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83170         so that the code works even with ancient cpp.  Portability problem
83171         with GCC 2.7.2.1 reported by Thomas M.Ott.
83172
83173 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83174
83175         * modules/regex (Depends-on): Add strcase.
83176
83177         * modules/gethostname (Licence): Change from GPL to LGPL, since
83178         gethostname.c is a trivial implementation of a standard library
83179         function.
83180         * modules/poll (License): Change from GPL to LGPL, since it's
83181         derived from LGPL code.
83182
83183 2005-09-27  Jim Meyering  <jim@meyering.net>
83184
83185         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83186         HAVE_CONFIG_H.
83187
83188         * lib/intprops.h (signed_type_or_expr__): Define.
83189         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83190         for unsigned types.
83191
83192 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83193
83194         * lib/verify.h (verify_expr): Remove, replacing with:
83195         (verify_true): New macro that returns true instead of void.
83196         (verify_type__): Remove.
83197         (verify): Use verify_true rather than verify_type__.
83198
83199 2005-09-26  Bruno Haible  <bruno@clisp.org>
83200
83201         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83202         is necessary.
83203         (lib_SOURCES): Remove mbchar.c.
83204         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83205         (Files): Add m4/mbrtowc.m4.
83206         * modules/mbiter: Likewise.
83207         * modules/mbuiter: Likewise.
83208
83209 2005-09-26  Bruno Haible  <bruno@clisp.org>
83210
83211         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83212         compile mbchar.c if they are not both present.
83213         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83214         * m4/mbiter.m4 (gl_MBITER): Likewise.
83215         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83216         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83217         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83218
83219 2005-09-25  Jim Meyering  <jim@meyering.net>
83220
83221         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83222         also uses socklen_t.
83223
83224 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83225
83226         * lib/utimens.c (ENOSYS): Define if not already defined.
83227         (futimens): Support having a null PATH if the file descriptor
83228         is nonnegative.
83229
83230         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83231         Remove.
83232         (__attribute): Define to empty unless GCC 3.1 or later.
83233         This works around a core dump on OpenBSD 3.4, which has GCC
83234         2.95.3, which dumps core when given __attribute__(()).  It also
83235         simplifies other tests, since we really don't want to bother with
83236         worrying about which ancient version of GCC supported what.
83237         Original problem reported by Yoann Vandoorselaere, with part of
83238         the fix suggested by Derek Price.
83239
83240 2005-09-24  Jim Meyering  <jim@meyering.net>
83241
83242         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83243         so we can once again use a positive bitfield width of 1 -- now we
83244         don't have to explain why we were using a bitfield width of 2.
83245
83246 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83247
83248         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83249         and similarly for the other external symbols.  Problem reported
83250         by James Gallager.
83251
83252         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83253         bug reported by Jim Meyering.
83254
83255         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83256         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83257         not needed, since socklen is a prerequisite module.
83258
83259 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83262         Problem reported by Eric Blake.
83263         (getaddrinfo): Initialize se so that it's not garbage.
83264         Redo internal storage allocation so that it doesn't make unportable
83265         assumptions about alignment.
83266         Fix a memory leak.
83267
83268         * lib/utimens.c (futimens): Use futimesat if available.
83269         Prefer it to futimes since it doesn't have the futimes bug.
83270
83271         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83272         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83273         Instead, declare a function that returns a pointer to an array,
83274         and use verify_type__ to declare the size of the array.
83275         Problem and germ of a solution reported by Bruno Haible.
83276         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83277         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83278
83279 2005-09-23  Jim Meyering  <jim@meyering.net>
83280
83281         Sync from coreutils.
83282         Correct build failure (socklen_t not defined) on at least
83283         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83285
83286 2005-09-23  Jim Meyering  <jim@meyering.net>
83287
83288         * modules/getaddrinfo (Depends-on): Add socklen.
83289
83290 2005-09-23  Bruno Haible  <bruno@clisp.org>
83291
83292         * tests/test-verify.c: New file.
83293
83294 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         Sync from coreutils.
83297
83298         * modules/argmatch (Depends-on): Add verify.
83299         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83300         unistd-safer.
83301         * modules/save-cwd (Depends-on): Likewise.
83302
83303         * modules/openat (Files): Add lib/openat-die.c.
83304         (Depends-on): Remove error, exitfail.
83305         Add dirname.
83306
83307         * modules/verify: New file.
83308         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83309         with "verify" module.
83310
83311 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83312
83313         Sync from coreutils.
83314
83315         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83316         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83317         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83318         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83319         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83320         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83321         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83322         Don't bother checking for string.h, stdlib.h, unistd.h.
83323         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83324         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83325         module's job.
83326         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83327         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83328
83329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83330         (gl_GETDATE): Use it.
83331
83332         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83333
83334 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83335
83336         Sync from coreutils.
83337
83338         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83339         stat-time.h.
83340         * lib/argmatch.h: Include verify.h
83341         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83342         (ARGMATCH_ASSERT): Remove; unused.
83343         * lib/canonicalize.c: Assume STDC_HEADERS.
83344         * lib/exclude.c: Include "strcase.h".
83345         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83346         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83347         and stdio-safer.h.
83348         (getusershell): Call fopen, not fopen_safer.
83349         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83350         Do not include unistd-safer.h.
83351         (save_cwd): Don't call fd_safer; no longer needed
83352         now that we include fcntl--.h.
83353
83354         * lib/getdate.y (relative_time): New type.
83355         (RELATIVE_TIME_0): New constant.
83356         (parser_control): Use relative_time instead of doing it ourselves.
83357         (%union): Add new relative_time rel member.
83358         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83359         Now typeless.
83360         (relunit, relunit_snumber): Now of type rel.
83361         (zone, rel, relunit, get_date): Adjust to above changes.
83362
83363         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83364         Do not include unistd-safer.h.
83365         (getloadavg): Don't call fd_safer; no longer needed
83366         now that we include fcntl--.h.
83367
83368         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83369         (make_dir_parents): Treat ENOSYS like EEXIST.
83370
83371         Improve quality of diagnostics on restore_cwd failure.
83372         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83373         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83374         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83375         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83376         each time through the loop.  Do not diagnose restore_cwd failure;
83377         that is the caller's job (and perhaps the caller does not care).
83378
83379         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83380         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83381         If the file already exists but is not a directory, don't bother
83382         to try to make its parents.
83383         Close potential file descriptor leak if we can't chdir("/") (!).
83384         Don't always return true if chdir($PWD) fails; return true only
83385         if the requested action was done successfully (except for the
83386         chdir($PWD)).
83387         Don't log final directory unless we actually made it.
83388         Refactor to avoid duplicate code to fix up permissions.
83389         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83390
83391         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83392         to make it a bit faster and (I hope) clearer.
83393         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83394         Fix bug in formats like %2N.
83395
83396         * lib/verify.h: New file.
83397
83398 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83399
83400         Sync from coreutils.
83401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83402
83403 2005-09-22  Jim Meyering  <jim@meyering.net>
83404
83405         Sync from coreutils.
83406
83407         * m4/lstat.m4 (gl_FUNC_LSTAT):
83408         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83409         Remove obsolete comment.
83410         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83411         * m4/xstrtod.m4: Likewise.
83412
83413         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83414
83415 2005-09-22  Jim Meyering  <jim@meyering.net>
83416
83417         Sync from coreutils.
83418
83419         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83420
83421         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83422         the .tm_year member, since otherwise gcc-4.0 would now warn about
83423         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83424
83425         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83426         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83427
83428         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83429         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83430         when run in a time zone for which daylight savings time is in effect
83431         for the starting date.
83432
83433         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83434         stop us from restricting permissions of just-created absolute-named
83435         directories.
83436         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83437         to restore initial working directory.
83438         * lib/mkdir-p.c (make_dir_parents): New parameter:
83439         different_working_dir, to tell caller if/when we change the working
83440         directory and are unable to return to the initial one.
83441         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83442         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83443         `return false'.  This fixes a bug introduced on 2004-07-30.
83444
83445         * lib/openat.c (fdopendir): Be sure to close the supplied
83446         file descriptor before returning.  This makes our replacement
83447         implementation a little closer to Solaris's, where fdopendir
83448         ties the file descriptor to the returned DIR* pointer.
83449         * lib/openat.c (unlinkat): New function.
83450         * lib/openat.h (unlinkat): Add prototype.
83451         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83452         (openat_restore_fail): Rename from openat_restore_die.
83453         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83454
83455         Provide an alternative to exiting immediately upon save_cwd or
83456         restore_cwd failure.  Now, an application can arrange e.g.,
83457         to perform a longjump in that case.
83458         * lib/openat.c: Include dirname.h.
83459         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83460         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83461         and openat_restore_die rather than calling error directly.
83462         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83463
83464         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83465         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83466         define.
83467
83468         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83469         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83470                             int utc, int nanoseconds);
83471         Background:
83472         date should not have to allocate a megabyte of virtual memory to
83473         handle a format argument like +%1048575T.  When implemented with
83474         strftime, it must allocate such a buffer, use strftime to fill it
83475         in, print it, then free it.
83476         With fprintftime, it simply prints everything and exits.
83477         With no need for memory allocation, that's one fewer way to fail.
83478         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83479         optional field width, not before, so we accept %9:z, not %:9z.
83480         (my_strftime): Be sure to use L_('x') for literals.
83481
83482         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83483         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83484         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83485         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83486         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83487         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83488         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83489         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83490         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83491         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83492         * lib/xgethostname.c, lib/xreadlink.c:
83493         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83494
83495         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83496         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83497         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83498         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83499         and don't include <sys/file.h>).
83500
83501 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83502
83503         Sync from coreutils.
83504
83505         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83506         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83507         [!LDAV_DONE]: Avoid unused variable warning.
83508
83509 2005-09-21  Bruno Haible  <bruno@clisp.org>
83510
83511         * lib/unicodeio.h (unicode_to_mb): New declaration.
83512
83513 2005-09-20  Derek Price  <derek@ximbiot.com>
83514
83515         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83516         getaddrinfo.h.
83517
83518 2005-09-20  Bruno Haible  <bruno@clisp.org>
83519
83520         * gnulib-tool: Remove trailing slashes from the values specified for
83521         --source-base, --m4-base, --tests-base, --aux-dir.
83522         Suggested by Simon Josefsson <jas@extundo.com>.
83523
83524 2005-09-20  Bruno Haible  <bruno@clisp.org>
83525
83526         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83527         func_modules_to_filelist, func_import, func_create_testdir): Make all
83528         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83529         change when gnulib-tool is invoked in a different locale.
83530
83531 2005-09-19  Simon Josefsson  <jas@extundo.com>
83532
83533         * m4/socklen.m4: Fix typo.
83534
83535 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83536
83537         Use a consistent style for including <config.h>.
83538         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83539         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83540         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83541         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83542         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83543         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83544         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83545         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83546         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83547         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83548         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83549         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83550         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83551         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83552         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83553         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83554         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83555         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83556         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83557         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83558         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83559         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83560         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83561         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83562         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83563         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83564         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83565         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83566         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83567         lib/xstrtoumax.c, lib/yesno.c:
83568         Standardize inclusion of config.h.
83569         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83570         lib/inttostr.h:  Removed inclusion of config.h from header files.
83571         * lib/inttostr.c:  Adjusted in-tree users.
83572         * lib/timespec.h: Remove superfluous warning to include config.h.
83573         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83574         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83575         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83576         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83577         config.h with HAVE_CONFIG_H.
83578
83579 2005-09-19  Jim Meyering  <jim@meyering.net>
83580
83581         * modules/pathmax (License): Change to LGPL.
83582
83583 2005-09-19  Derek Price  <derek@ximbiot.com>
83584
83585         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83586
83587 2005-09-19  Bruno Haible  <bruno@clisp.org>
83588
83589         * gnulib-tool (import): Provide default for --tests-base.
83590
83591 2005-09-19  Bruno Haible  <bruno@clisp.org>
83592
83593         * doc/quote.texi: New file, extracted from gnulib.texi.
83594         * doc/ctime.texi: New file, extracted from gnulib.texi.
83595         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83596         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83597         * doc/gnulib.texi: Include them.
83598
83599 2005-09-18  Bruno Haible  <bruno@clisp.org>
83600
83601         Portability fix.
83602         * gnulib-tool (func_readlink): New function.
83603         (func_ln_if_changed): Use it.
83604
83605 2005-09-18  Bruno Haible  <bruno@clisp.org>
83606
83607         * gnulib-tool: Support --with-tests also with --import.
83608         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83609         (func_import): Use variables $testsbase and $inctests. Emit a
83610         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83611         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83612         SUBDIRS += $testsdir.
83613         (func_create_testdir): Update.
83614
83615 2005-09-18  Bruno Haible  <bruno@clisp.org>
83616
83617         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83618         instead of $dry_run.
83619         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83620         (func_ln_if_changed): Don't handle dry-run here.
83621         (func_import): In dry-run mode, detect more precisely which actions
83622         would be performed, and don't use "...ing" verbs.
83623
83624 2005-09-18  Bruno Haible  <bruno@clisp.org>
83625
83626         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83627         (func_import): Use join on two temporary files instead of three nested
83628         loops, in order to determine which files are new or old.
83629
83630 2005-09-18  Bruno Haible  <bruno@clisp.org>
83631
83632         * gnulib-tool (func_import): Comment out code that spits out the
83633         new files with --dry-run.
83634
83635 2005-09-18  Bruno Haible  <bruno@clisp.org>
83636
83637         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83638
83639 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83640
83641         * lib/stat-time.h: New file.
83642         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83643         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83644         in a different way.
83645         (timespec_cmp): New function.
83646         * lib/utimecmp.c: Include stat-time.h.
83647         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83648         members exist, not on the obsolescent ST_MTIM_NSEC.
83649         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83650
83651 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83652
83653         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83654
83655 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83656
83657         * MODULES.html.sh (File system functions): Add stat-time.
83658         * modules/stat-time: New file.
83659         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83660         is now done in a different way, by the stat-time module.
83661         * modules/utimecmp (Depends-on): Add stat-time.
83662
83663 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83664
83665         * m4/st_mtim.m4: Remove.  Superseded by...
83666         * m4/stat-time.m4: New file.
83667         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83668         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83669
83670 2005-09-15  Derek Price  <derek@ximbiot.com>
83671
83672         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83673
83674 2005-09-15  Derek Price  <derek@ximbiot.com>
83675
83676         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83677         * lib/regex_internal.c: Ditto, using this...
83678         (__GNUC_PREREQ): ...new macro.
83679         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83680         using...
83681         (__GNUC_PREREQ): ...this new macro.
83682
83683         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83684
83685 2005-09-15  Derek Price  <derek@ximbiot.com>
83686             Paul Eggert  <eggert@cs.ucla.edu>
83687
83688         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83689         changes, consolidating in...
83690         * lib/regex_internal.h: ...this file.
83691
83692 2005-09-13  Jim Meyering  <jim@meyering.net>
83693
83694         * lib/canon-host.c: Filter through gnu indent and reword comments
83695         slightly.
83696         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83697
83698 2005-09-13  Derek Price  <derek@ximbiot.com>
83699
83700         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83701         failure.
83702         Reported by Jim Meyering  <jim@meyering.net>.
83703
83704 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83705
83706         * lib/base64.c: Typo.
83707         (base64_encode): Put b64str in initialized data section.
83708
83709 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83710
83711         Merge glibc and coreutils changes into gnulib, plus a few
83712         extra fixes.
83713         * lib/md5.c: Use #error rather than a string.
83714         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83715         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83716         (__attribute__): Define to empty for non recent-GCC.
83717         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83718         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83719         Renamed from their non-__ counterparts, with new macros replacing
83720         them if not _LIBC.  Add __THROW attribute.
83721         (rol): Remove.
83722         (struct md5_ctx): Align buffer if using GCC.
83723         * lib/sha1.h (struct sha1_ctx): Likewise.
83724         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83725         The old name was backwards.
83726         (NOTSWAP): Remove; not used.
83727         (rol): New macro, moved here from md5.h.
83728         (sha1_process_block): Remove a FIXME that doesn't make sense.
83729
83730 2005-09-12  Derek Price  <derek@ximbiot.com>
83731
83732         Return usable errors from canon-host.
83733         * lib/canon-host.h: New file.
83734         * lib/canon-host.c (canon_host): Wrap...
83735         (canon_host_r): ...this new function, which now relies exclusively on
83736         getaddrinfo.
83737         (ch_strerror): New function.
83738         (last_cherror): New global.
83739         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83740         interface.
83741         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83742         void *.
83743         (freeaddrinfo): Free ai->ai_canonname when set.
83744
83745 2005-09-12  Derek Price  <derek@ximbiot.com>
83746
83747         Make canon-host require getaddrinfo.
83748         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83749         AC_LIBSOURCE canon-host.h.  Call...
83750         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83751         gl_GETADDRINFO.
83752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83753
83754 2005-09-12  Derek Price  <derek@ximbiot.com>
83755
83756         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83757         LGPL.
83758         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83759
83760 2005-09-12  Derek Price  <derek@ximbiot.com>
83761
83762         * lib/gai_strerror.c: Include config.h when available.  Include
83763         getaddrinfo.h before other headers to test interface.
83764         Reported by Larry Jones <lawrence.jones@ugs.com>.
83765
83766 2005-09-12  Derek Price  <derek@ximbiot.com>
83767             Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * modules/glob (Files): Add glob-libc.h.
83770
83771 2005-09-12  Derek Price  <derek@ximbiot.com>
83772             Paul Eggert  <eggert@cs.ucla.edu>
83773
83774         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83775         glob_.h, glob-libc.h.
83776         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83777
83778 2005-09-12  Derek Price  <derek@ximbiot.com>
83779             Paul Eggert  <eggert@cs.ucla.edu>
83780
83781         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83782         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83783         protecting things that should be done only in gnulib contexts.
83784         * lib/glob_.h: New file, containing only the glob things needed for
83785         gnulib.
83786         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83787         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83788         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83789         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83790         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83791         and to respect the namespace rules better.
83792
83793 2005-09-08  Simon Josefsson  <jas@extundo.com>
83794
83795         * modules/socklen: New file.
83796
83797 2005-09-08  Simon Josefsson  <jas@extundo.com>
83798
83799         * m4/socklen.m4: New file.
83800
83801 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83802
83803         * modules/utimens (Files): Add m4/utimbuf.m4, since
83804         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83805         Reported by Sergey Poznyakoff.
83806
83807 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83808
83809         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83810         definitions, since that's the preferred style in glibc.
83811         Fix a minor spacing issue, and update copyright notice to match
83812         glibc's.
83813
83814 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83817
83818 2005-09-06  Simon Josefsson  <jas@extundo.com>
83819
83820         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83821         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83822
83823 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83824
83825         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83826         warning.
83827
83828 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83829
83830         * config/srclist.txt: Add glibc bug 1302.
83831
83832 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83833
83834         Change bitset word type from unsigned int to unsigned long int,
83835         as this has better performance on typical 64-bit hosts.
83836         Port bitset code to hosts with unusual word sizes.
83837         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83838         (build_collating_symbol):
83839         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83840         argument is a bitset.  This is merely a style issue, but it makes
83841         it clearer that an entire array is expected.
83842         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83843         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83844         Port to the case where bitset_word is not the same as unsigned int.
83845         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83846         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83847         Likewise.
83848         * lib/regexec.c (check_dst_limits_calc_pos_1,
83849         check_subexp_matching_top):
83850         (build_trtable, group_nodes_into_DFAstates):
83851         Likewise.
83852         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83853         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83854         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83855         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83856         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83857         * lib/regcomp.c (optimize_subexps, lower_subexp):
83858         Work even if bitset_word has holes in its bitwise representation.
83859         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83860         * lib/regexec.c (check_dst_limits_calc_pos_1,
83861         check_subexp_matching_top):
83862         Likewise.
83863         * lib/regex_internal.c (re_string_reconstruct):
83864         Don't assume UCHAR_MAX == 255.
83865         * lib/regex_internal.h (bitset_set_all): Likewise.
83866         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83867         All uses changed.
83868         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83869         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83870         All uses changed.
83871         (BITSET_WORD_MAX): New macro.
83872         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83873         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83874         (bitset_empty, bitset_copy):
83875         Prefer sizeof (bitset) to multiplying it out ourselves.
83876         (bitset_not_merge): Remove; unused.
83877         (bitset_contain): Return bool, not unsigned int with one bit on.
83878         All callers changed.
83879         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83880         alignment than re_node_set; do this by defining a new internal
83881         type struct dests_alloc and using it to allocate memory.
83882
83883 2005-09-05  Bruno Haible  <bruno@clisp.org>
83884
83885         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83886         links.
83887
83888 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83889
83890         * modules/size_max (Makefile.am): Add size_max.h
83891
83892 2005-09-04  Derek Price  <derek@ximbiot.com>
83893
83894         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83895
83896 2005-09-03  Simon Josefsson  <jas@extundo.com>
83897
83898         * gnulib-tool: Fix typo.
83899
83900 2005-09-03  Simon Josefsson  <jas@extundo.com>
83901
83902         * config/srclist.txt: Add glibc bug 1293.
83903
83904 2005-09-03  Derek Price  <derek@ximbiot.com>
83905
83906         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83907         From Larry Jones <lawrence.jones@ugs.com>.
83908
83909 2005-09-02  Simon Josefsson  <jas@extundo.com>
83910
83911         * modules/socklen: New file.
83912
83913 2005-09-02  Simon Josefsson  <jas@extundo.com>
83914
83915         * modules/havelib: New module.
83916
83917         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83918         Use havelib.
83919
83920 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83921
83922         Check for arithmetic overflow when calculating sizes, to prevent
83923         some buffer-overflow issues.  These patches are conservative, in the
83924         sense that when I couldn't determine whether an overflow was possible,
83925         I inserted a run-time check.
83926         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83927         macros.
83928         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83929         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83930         (re_xnrealloc, re_x2nrealloc): New inline functions.
83931         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83932         parse_bracket_exp):
83933         (build_equiv_class, build_charclass): Check for arithmetic overflow
83934         in size expression calculations.
83935         * lib/regex_internal.c (re_string_realloc_buffers):
83936         (build_wcs_upper_buffer, re_node_set_add_intersect):
83937         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83938         (re_dfa_add_node, register_state): Likewise.
83939         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83940         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83941         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83942         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83943
83944 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83945
83946         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83947         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83948
83949 2005-09-02  Bruno Haible  <bruno@clisp.org>
83950
83951         Support for lib vs. lib64 distinction on biarch platforms.
83952         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83953         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83955
83956 2005-09-02  Bruno Haible  <bruno@clisp.org>
83957
83958         * gnulib-tool (import): In the other first-use case, provide defaults
83959         as well.
83960
83961 2005-09-02  Bruno Haible  <bruno@clisp.org>
83962
83963         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83964         patches not yet found in the latest gettext release.
83965
83966 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83967
83968         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83969         to avoid a collision with bits/local_lim.h in glibc.
83970         All uses changed.  Problem reported by Dmitry V. Levin in
83971         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83972
83973         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83974         bugs in int versus size_t comparisons.
83975         (re_string_context_at): Fix bug where the code assumed that
83976         Idx is signed.
83977
83978         Use bool where appropriate.
83979         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83980         All callers changed.
83981         (calc_eclosure_iter): Likewise, for ROOT arg.
83982         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83983         (build_charclass_op): Likewise, for NON_MATCH arg.
83984         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83985         (re_string_construct_common): Likewise, for ICASE arg.
83986         * lib/regexec.c (re_search_2_stub, re_search_stub):
83987         Likewise, for RET_LEN arg.
83988         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83989         (set_regs): Likewise, for FL_BACKTRACK arg.
83990         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83991         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83992         (calc_eclosure_iter, parse_bracket_exp):
83993         Use bool for internal variables that are booleans.
83994         * lib/regexec.c (re_search_internal, check_matching,
83995         proceed_next_node):
83996         (set_regs, build_sifted_states, sift_states_bkref):
83997         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83998         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83999         (find_collation_sequence_value):
84000         Likewise.
84001         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84002         (re_node_set_compare):
84003         Return bool, not int. All callers changed.
84004         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84005         (build_trtable, check_node_accept): Likewise.
84006         * lib/regex_internal.h: Include stdbool.h.
84007
84008         Fix bugs uncovered when converting to bool.
84009         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84010         failure instead of charging ahead blindly.
84011         * lib/regex_internal.c (register_state): Likewise.
84012         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84013         for freeing internal storage.
84014         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84015         bitset pieces used as boolean, to avoid undefined behavior
84016         on hosts that do int overflow checking.
84017
84018 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84019
84020         * config/srclist.txt: Add glibc bugs 1285-1287.
84021
84022 2005-09-01  Jim Meyering  <jim@meyering.net>
84023
84024         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84025         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84026         Require gl_STAT_MACROS, too.
84027
84028 2005-09-01  Bruno Haible  <bruno@clisp.org>
84029
84030         * gnulib-tool (import): In the first-use case, provide defaults.
84031
84032 2005-09-01  Bruno Haible  <bruno@clisp.org>
84033
84034         * gnulib-tool (func_import): Remove the .tmp files.
84035
84036 2005-09-01  Bruno Haible  <bruno@clisp.org>
84037
84038         * gnulib-tool (func_import): Fix handling of symbolic links.
84039
84040 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84041
84042         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84043         old glibc regex code mishandles strings longer than 2**31 bytes.
84044         This patch fixes this when the regex code is used in gnulib
84045         (i.e., outside glibc).
84046
84047         This patch should not affect the use of the regex code inside
84048         glibc.  No doubt this problem also needs to be handled for glibc
84049         as well, but the result will be an incompatible change to the
84050         glibc ABI, and the old ABI will have to be supported too.  That
84051         can be the the subject for another patch.
84052
84053         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84054         governing whether the rest of this patch is active.  By default,
84055         the macro is disabled and the patch has no effect.
84056         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84057         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84058         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84059         (re_match_2, re_set_registers): Use the new types.
84060         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84061         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84062         New macros.
84063         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84064         (re_string_context_at, bin_tree_t, re_dfastate_t):
84065         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84066         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84067         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84068         (re_string_char_size_at, re_string_wchar_at):
84069         (re_string_elem_size_at):
84070         Use the new types and macros to port to 64-bit hosts.
84071         Use unsigned types for internal values, so that the code
84072         mostly works even for arrays larger than SSIZE_MAX.
84073         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84074         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84075         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84076         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84077         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84078         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84079         (calc_inveclosure, parse_dup_op, build_range_exp):
84080         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84081         (fetch_number, create_token_tree, mark_opt_subexp):
84082         Likewise.
84083         * lib/regex_internal.c (re_string_construct_common,
84084         create_ci_newstate):
84085         (create_cd_newstate, re_string_allocate, re_string_construct):
84086         (re_string_realloc_buffers, build_wcs_upper_buffer):
84087         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84088         (re_string_reconstruct, re_string_peek_byte_case):
84089         (re_string_fetch_byte_case, re_string_context_at):
84090         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84091         (re_node_set_init_copy, re_node_set_add_intersect):
84092         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84093         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84094         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84095         (re_acquire_state, re_acquire_state_context, register_state):
84096         Likewise.
84097         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84098         search_cur_bkref_entry):
84099         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84100         (re_search_internal, re_search_2_stub, re_search_stub)
84101         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84102         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84103         (update_cur_sifted_state, check_dst_limits):
84104         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84105         (check_subexp_limits, sift_states_bkref, merge_state_array):
84106         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84107         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84108         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84109         (expand_bkref_cache, check_node_accept_bytes):
84110         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84111         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84112         (acquire_init_state_context, check_halt_node_context):
84113         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84114         (sift_states_backward, clean_state_log_if_needed):
84115         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84116         (find_recover_state, transit_state_sb, transit_state_mb):
84117         (transit_state_bkref, build_trtable, match_ctx_clean):
84118         Likewise.
84119         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84120         to work around an assumption that REG_MISSING is negative.
84121
84122         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84123         (seek_collating_symbol_entry) [defined _LIBC]:
84124         (lookup_collation_sequence_value) [defined _LIBC]:
84125         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84126         Use prototypes rather than old-style function definitions.
84127         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84128         (transit_state_sb) [0]:
84129         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84130
84131         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84132         rm_eo.
84133
84134         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84135         (optimize_subexps, lower_subexp):
84136         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84137         since the signed shift might overflow.  Use 1u<<31 instead.
84138         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84139         Likewise.
84140         * lib/regexec.c (check_dst_limits_calc_pos_1,
84141         check_subexp_matching_top): Likewise.
84142
84143         * lib/regcomp.c (optimize_subexps, lower_subexp):
84144         Use CHAR_BIT rather than 8, for clarity.
84145         * lib/regexec.c (check_dst_limits_calc_pos_1):
84146         (check_subexp_matching_top): Likewise.
84147         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84148         have to worry about portability issues when shifting it left.
84149         Remove no-longer-needed test for table_size > 0.
84150         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84151         in a word, as the resulting behavior is undefined.
84152         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84153         in one case, a <= should have been an <, and in another case the
84154         whole test was missing.
84155         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84156         the standard name CHAR_BIT.
84157         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84158         this is not true on one's complement and signed-magnitude hosts.
84159
84160         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84161         next_last_offset.
84162         (struct re_dfa_t): Remove unused member states_alloc.
84163         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84164
84165 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84168         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84169         and large-file glibc and in 32-bit large-file Solaris.
84170
84171 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84172
84173         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84174         lengths fit in regoff_t; this isn't true if regoff_t is the same
84175         width as size_t.
84176         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84177         (= START + RANGE) instead of RANGE.  This avoids overflow
84178         problems when regoff_t is the same width as size_t.
84179         All callers changed.
84180         (re_search_2_stub): Check for overflow when adding the
84181         sizes of the two strings.
84182         (re_search_stub): Check for overflow when adding START
84183         to RANGE; if it occurs, substitute the extreme value.
84184
84185 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84186
84187         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84188
84189 2005-08-31  Jim Meyering  <jim@meyering.net>
84190
84191         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84192         a pointer-to-const.
84193         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84194         (register_state): Likewise.
84195         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84196         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84197         (group_nodes_into_DFAstates): Likewise.
84198
84199 2005-08-31  Jim Meyering  <jim@meyering.net>
84200
84201         * check-module: Add a FIXME comment.
84202
84203 2005-08-31  Eric Blake  <ebb9@byu.net>
84204
84205         * modules/unistd-safer (Files): Add unistd--.h.
84206         * modules/stdio-safer (Files): Add stdio--.h.
84207
84208 2005-08-31  Derek Price  <derek@ximbiot.com>
84209
84210         * lib/getdelim.c (getdelim): Return EOF on EOF.
84211         Reported by Larry Jones <lawrence.jones@ugs.com>.
84212
84213 2005-08-31  Bruno Haible  <bruno@clisp.org>
84214
84215         Avoid unnecessary diffs in the generated lib/Makefile.am.
84216         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84217         the generated files.
84218         (func_import): Don't set cmd.
84219
84220 2005-08-31  Bruno Haible  <bruno@clisp.org>
84221
84222         * lib/strstr.c: Include <stddef.h>, for NULL.
84223         * lib/strcasestr.c: Likewise.
84224         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84225
84226 2005-08-31  Bruno Haible  <bruno@clisp.org>
84227
84228         * gnulib-tool: New option --macro-prefix.
84229         (func_import): Use macro_prefix.
84230         (import): Handle option --macro-prefix.
84231
84232 2005-08-31  Bruno Haible  <bruno@clisp.org>
84233
84234         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84235         Also use new variables cached_lgpl, cached_libtool.
84236
84237 2005-08-31  Bruno Haible  <bruno@clisp.org>
84238
84239         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84240         always instantiating them.
84241
84242 2005-08-31  Bruno Haible  <bruno@clisp.org>
84243
84244         * gnulib-tool (func_import): Read the previous cached settings
84245         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84246         earlier added by gnulib but are now dropped. Warn when a gnulib file
84247         overwrites a non-gnulib file.
84248
84249 2005-08-31  Bruno Haible  <bruno@clisp.org>
84250
84251         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84252         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84253         projects that don't keep autogenerated files in CVS. Put into
84254         actioncmd only the specified modules, not the transitive closure.
84255
84256 2005-08-31  Bruno Haible  <bruno@clisp.org>
84257
84258         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84259         Create directories that shall be filled.
84260         (import): Don't look for gl_* macros in configure.ac. Recurse across
84261         all directories containing a gnulib-cache.m4 files, if meaningful.
84262
84263 2005-08-31  Bruno Haible  <bruno@clisp.org>
84264
84265         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84266         (import): Set seen_libtool when we see gl_LIBTOOL.
84267
84268 2005-08-31  Bruno Haible  <bruno@clisp.org>
84269
84270         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84271         declaration macro definitions from generated gnulib.m4.
84272
84273 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84274
84275         * lib/iconvme.h: Add prototype for iconv_alloc.
84276
84277 2005-08-29  Simon Josefsson  <jas@extundo.com>
84278
84279         * lib/iconvme.c: Fix errno.
84280
84281 2005-08-29  Bruno Haible  <bruno@clisp.org>
84282
84283         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84284         that it works when the directory contains spaces.
84285
84286 2005-08-29  Bruno Haible  <bruno@clisp.org>
84287
84288         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84289
84290 2005-08-29  Bruno Haible  <bruno@clisp.org>
84291
84292         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84293         Emit more advice.
84294
84295 2005-08-29  Bruno Haible  <bruno@clisp.org>
84296         and Stepan Kasal  <kasal@ucw.cz>
84297
84298         * check-module: If more parameters are given, check each of them
84299         separately; add more exceptions, as noted by Jim Meyering.
84300         (check_module): New procedure.
84301         (%exempt_header): Now contains all exceptions.
84302
84303 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84304
84305         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84306
84307 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84308
84309         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84310
84311 2005-08-28  Bruno Haible  <bruno@clisp.org>
84312
84313         * m4/gnulib-tool.m4: New file.
84314
84315 2005-08-27  Jim Meyering  <jim@meyering.net>
84316
84317         * modules/unistd-safer (Files): Add pipe-safer.c.
84318         * modules/fcntl-safer (Files): Add creat-safer.c.
84319
84320 2005-08-27  Jim Meyering  <jim@meyering.net>
84321
84322         * m4/stdlib-safer.m4: New file.  From coreutils.
84323         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84324         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84325         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84326         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84327         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84328
84329 2005-08-27  Jim Meyering  <jim@meyering.net>
84330
84331         * lib/fopen-safer.c: Merge minor changes from coreutils.
84332         * lib/dup-safer.c: Likewise.
84333         * lib/fd-safer.c: Likewise.
84334
84335         Merge from coreutils.
84336         * lib/stdio--.h: New file.
84337         * lib/stdlib--.h: New file.
84338         * lib/mkstemp-safer.c: New file.
84339
84340         GNU tar needs these.
84341         * lib/pipe-safer.c: New file.
84342         * lib/creat-safer.c: New file.
84343         * lib/fcntl--.h (creat): Define to creat_safer.
84344         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84345         * lib/unistd--.h (pipe): Define to pipe_safer.
84346         * lib/unistd-safer.h: Declare pipe_safer.
84347
84348 2005-08-26  Simon Josefsson  <jas@extundo.com>
84349
84350         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84351         Haible <bruno@clisp.org>.
84352
84353 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84354
84355         * lib/regex_internal.h: Remove all references to
84356         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84357         or better.
84358         (bitset_not, bitset_merge, bitset_not_merge):
84359         (bitset_mask, re_string_allocate, re_string_construct):
84360         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84361         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84362         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84363         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84364         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84365         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84366         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84367         (re_acquire_state_context):
84368         Remove unnecessary forward decls.
84369         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84370         Put __attribute at function definition,
84371         now that the function decl has been removed.
84372         * lib/regex_internal.c (re_string_peek_byte_case):
84373         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84374         Likewise.
84375
84376 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84377
84378         * m4/regex.m4: Add AC_PREREQ(2.50).
84379         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84380
84381 2005-08-25  Simon Josefsson  <jas@extundo.com>
84382
84383         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84384         __fsetlocking.
84385
84386 2005-08-25  Simon Josefsson  <jas@extundo.com>
84387
84388         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84389         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84390         GLIBC specific code.
84391
84392 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84393
84394         Make regex safe for g++.  This fixes one real bug (an "err"
84395         that should have been "*err").  g++ problem reported by
84396         Sam Steingold.
84397         * lib/regex_internal.h (re_calloc): New macro, consistent with
84398         re_malloc etc.  All callers of calloc changed to use re_calloc.
84399         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84400         not int.  All callers changed.
84401         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84402         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84403         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84404         (find_recover_state): Change "err" to "*err"; this fixes what
84405         appears to be a real bug.
84406         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84407         versus int.
84408
84409 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84410
84411         * modules/regex (Depends-on): Add malloc, since the code
84412         assumes that !malloc(0) means failure.
84413
84414 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84415
84416         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84417
84418         alloca modernization/simplification for regex.
84419         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84420         needs to be at the start of the file, and can be moved into
84421         regex_internal.h and simplified.
84422         * lib/regex_internal.h: Include <alloca.h>.
84423         (__libc_use_alloca) [!defined _LIBC]: New macro.
84424         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84425         now works outside glibc.
84426
84427 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84428
84429         * config/srclist.txt: Add glibc bugs 1241, 1245.
84430
84431 2005-08-25  Jim Meyering  <jim@meyering.net>
84432
84433         * lib/open-safer.c: Include <config.h>.
84434         Otherwise, we'd lose LARGEFILE support in any file using
84435         e.g. "fcntl--.h"
84436
84437 2005-08-25  Bruno Haible  <bruno@clisp.org>
84438
84439         * m4/minmax.m4: Require autoconf 2.52.
84440         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84441         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84442         alternatives of translit over the alphabet.
84443         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84444
84445 2005-08-24  Simon Josefsson  <jas@extundo.com>
84446
84447         * tests/test-getpass.c: New file.
84448
84449 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84452         for GNU regex features.
84453
84454 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84455
84456         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84457         * lib/regex.h (regerror): Likewise.
84458
84459         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84460         requires this.  (The code never needed it.)
84461
84462         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84463         All uses of recently-renamed identifiers changed to use the new,
84464         POSIX-compliant names.  The code will build and run just fine
84465         without these changes, but it's better to eat our own dog food
84466         and use the standard-conforming names.
84467
84468         * lib/regex.h: Fix a multitude of POSIX name space violations.
84469         These changes have an effect only for programs that define
84470         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84471         do not change anything for programs compiled in the normal way.
84472         Also, there is no effect on the ABI.
84473
84474         (_REGEX_SOURCE): New macro.
84475         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84476         defined and _GNU_SOURCE is not; this fixes a name space violation.
84477
84478         Rename the following macros to obey POSIX requirements.
84479         The old names are still visible as macros if _REGEX_SOURCE is defined.
84480         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84481         RE_BACKSLASH_ESCAPE_IN_LISTS.
84482         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84483         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84484         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84485         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84486         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84487         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84488         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84489         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84490         (REG_INTERVALS): renamed from RE_INTERVALS.
84491         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84492         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84493         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84494         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84495         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84496         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84497         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84498         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84499         RE_UNMATCHED_RIGHT_PAREN_ORD.
84500         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84501         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84502         (REG_DEBUG): renamed from RE_DEBUG.
84503         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84504         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84505         unusual, since we can't clash with the POSIX REG_ICASE.
84506         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84507         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84508         (REG_NO_SUB): renamed from RE_NO_SUB.
84509         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84510         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84511         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84512         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84513         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84514         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84515         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84516         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84517         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84518         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84519         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84520         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84521         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84522         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84523         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84524         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84525         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84526         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84527         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84528         (REG_FIXED): Renamed from REGS_FIXED.
84529         (REG_NREGS): Renamed from RE_NREGS.
84530
84531         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84532         of other REG_* macros, since POSIX says the user is allowed to
84533         #undef these macros selectively.
84534
84535         (reg_errcode_t): Update comment stating what other tables need
84536         to be consistent.
84537
84538         Rename the following enum values to obey POSIX requirements.
84539         The old names are still visible as macros.
84540         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84541         is not defined, since GNU is supposed to be a superset of POSIX as
84542         much as possible, and since we want reg_errcode_t to be a signed
84543         type for implementation consistency.
84544         (_REG_NOERROR): Renamed from REG_NOERROR.
84545         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84546         (_REG_BADPAT): Renamed from REG_BADPAT.
84547         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84548         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84549         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84550         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84551         (_REG_EBRACK): Renamed from REG_EBRACK.
84552         (_REG_EPAREN): Renamed from REG_EPAREN.
84553         (_REG_EBRACE): Renamed from REG_EBRACE.
84554         (_REG_BADBR): Renamed from REG_BADBR.
84555         (_REG_ERANGE): Renamed from REG_ERANGE.
84556         (_REG_ESPACE): Renamed from REG_ESPACE.
84557         (_REG_BADRPT): Renamed from REG_BADRPT.
84558         (_REG_EEND): Renamed from REG_EEND.
84559         (_REG_ESIZE): Renamed from REG_ESIZE.
84560         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84561         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84562         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84563         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84564         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84565
84566         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84567         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84568         changed.  But support the old name if the new one is not defined
84569         and if _REGEX_SOURCE.
84570
84571         Change the following member names in struct re_pattern_buffer.
84572         The old names are still supported if !_REGEX_SOURCE.
84573         The new names are always supported, regardless of _REGEX_SOURCE.
84574         (re_buffer): Renamed from buffer.
84575         (re_allocated): Renamed from allocated.
84576         (re_used): Renamed from used.
84577         (re_syntax): Renamed from syntax.
84578         (re_fastmap): Renamed from fastmap.
84579         (re_translate): Renamed from translate.
84580         (re_can_be_null): Renamed from can_be_null.
84581         (re_regs_allocated): Renamed from regs_allocated.
84582         (re_fastmap_accurate): Renamed from fastmap_accurate.
84583         (re_no_sub): Renamed from no_sub.
84584         (re_not_bol): Renamed from not_bol.
84585         (re_not_eol): Renamed from not_eol.
84586         (re_newline_anchor): Renamed from newline_anchor.
84587
84588         Change the following member names in struct re_registers.
84589         The old names are still supported if !_REGEX_SOURCE.
84590         The new names are always supported, regardless of _REGEX_SOURCE.
84591         (rm_num_regs): Renamed from num_regs.
84592         (rm_start): Renamed from start.
84593         (rm_end): Renamed from end.
84594
84595         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84596         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84597         Prepend __ to parameter names.
84598
84599         Undo yesterday's changes.
84600
84601 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84602
84603         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84604         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84605         lib/regex.c.
84606
84607 2005-08-24  Jim Meyering  <jim@meyering.net>
84608
84609         Sync from coreutils.
84610         * m4/fcntl-safer.m4: New file.
84611
84612         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84613         and object files for this module.
84614
84615 2005-08-24  Jim Meyering  <jim@meyering.net>
84616
84617         Sync from coreutils.
84618         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84619
84620 2005-08-24  Jim Meyering  <jim@meyering.net>
84621
84622         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84623         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84624
84625 2005-08-24  Jim Meyering  <jim@meyering.net>
84626
84627         * modules/fcntl-safer: New module.
84628         * modules/fts (Depends-on): Add fcntl-safer.
84629         * MODULES.html.sh (File descriptor based Input/Output):
84630         Add fcntl-safer.
84631
84632 2005-08-24  Bruno Haible  <bruno@clisp.org>
84633
84634         Support for unit test modules.
84635         * modules/README: Mention tests modules.
84636         * modules/TEMPLATE-TESTS: New file.
84637         * gnulib-tool: New options --extract-tests-module, --with-tests and
84638         --tests-base (unused for the moment).
84639         (testsbase, inctests): New variables.
84640         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84641         (func_verify_module): Exclude TEMPLATE-TESTS.
84642         (func_verify_nontests_module, func_verify_tests_module): New functions.
84643         (func_get_dependencies): Add implicit dependency for tests modules.
84644         (func_get_tests_module): New function.
84645         (func_modules_transitive_closure): When --with-tests was specified,
84646         include the unit tests as well, unless explicitly avoided.
84647         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84648         (func_emit_tests_Makefile_am): New function.
84649         (func_create_testdir): When --with-tests was specified, emit a
84650         tests/ directory.
84651         * MODULES.html.sh (Future developments): Update.
84652
84653 2005-08-24  Bruno Haible  <bruno@clisp.org>
84654
84655         * modules/tls-tests: New file.
84656         * tests/test-tls.c: New file, from GNU gettext.
84657
84658 2005-08-24  Bruno Haible  <bruno@clisp.org>
84659
84660         * modules/lock-tests: New file.
84661         * tests/test-lock.c: New file, from GNU gettext.
84662
84663 2005-08-24  Bruno Haible  <bruno@clisp.org>
84664
84665         * lib/lock.h: Add multiple inclusion guard.
84666         * lib/tls.h: Add multiple inclusion guard.
84667
84668 2005-08-24  Bruno Haible  <bruno@clisp.org>
84669
84670         * gnulib-tool: Add support for the --aux-dir option to
84671         --create-testdir, --create-megatestdir, --test, --megatest.
84672         (func_create_testdir, func_create_megatestdir): Optionally emit a
84673         AC_CONFIG_AUX_DIR directive.
84674         (create-testdir, create-megatestdir, test, megatest): Provide a
84675         default value for $auxdir.
84676
84677 2005-08-24  Bruno Haible  <bruno@clisp.org>
84678
84679         * gnulib-tool (import): Use compound statement instead of subshell
84680         where possible.
84681
84682 2005-08-24  Bruno Haible  <bruno@clisp.org>
84683
84684         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84685
84686 2005-08-24  Bruno Haible  <bruno@clisp.org>
84687
84688         * gnulib-tool (func_version): Update.
84689
84690 2005-08-24  Bruno Haible  <bruno@clisp.org>
84691
84692         * gnulib-tool (func_import, func_create_testdir,
84693         func_create_megatestdir): Quote all autoconf macro arguments.
84694
84695 2005-08-24  Bruno Haible  <bruno@clisp.org>
84696
84697         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84698         option --force, because --force causes the aclocal.m4 of each
84699         subdirectory to be newer than the corresponding config.h.in.
84700
84701 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84702
84703         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84704         All contents moved to gl_REGEX.
84705         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84706         assume that it does.
84707
84708 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         * lib/regex.h (REG_NOSYS)
84711         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84712         Define, since POSIX requires it as of 2001.
84713         (_REG_ENOSYS)
84714         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84715         New private symbol, used to keep the enum signed in all cases.
84716         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84717         Youngman in
84718         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84719
84720         * lib/regex_internal.c (re_string_skip_chars, register_state):
84721         (calc_state_hash):
84722         Remove forward decls; no longer needed now that we use prototypes.
84723         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84724         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84725         (clean_state_log_if_needed): Likewise.
84726
84727 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84728
84729         * config/srclist.txt: Add glibc bugs 1231-1233.
84730
84731 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84732
84733         Fix problems reported by Sam Steingold in
84734         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84735         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84736         assumed that reg_errcode_t is a signed type, which is not
84737         necessarily true if _XOPEN_SOURCE is not defined.
84738         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84739         since some compilers warn about it otherwise.
84740
84741 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84742
84743         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84744         (init_word_char, create_initial_state, duplicate_node_closure):
84745         (fetch_token, peek_token_bracket, build_range_exp):
84746         (build_collating_symbol): Remove forward decls; no longer needed
84747         now that we use prototypes.
84748
84749         * lib/regcomp.c:
84750         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84751         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84752         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84753         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84754         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84755         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84756         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84757         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84758         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84759         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84760         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84761         (build_charclass, build_charclass_op, fetch_number, create_tree):
84762         (create_token_tree, mark_opt_subexp, duplicate_tree):
84763         Use prototypes rather than old-style definitions.
84764
84765         * lib/regex_internal.c:
84766         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84767         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84768         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84769         (re_string_reconstruct, re_string_peek_byte_case):
84770         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84771         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84772         (re_node_set_init_copy, re_node_set_add_intersect):
84773         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84774         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84775         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84776         (re_acquire_state, re_acquire_state_context, register_state):
84777         (create_ci_newstate, create_cd_newstate, free_state):
84778         Likewise.
84779         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84780         re_search_2):
84781         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84782         (re_search_internal, prune_impossible_nodes):
84783         (acquire_init_state_context, check_matching, static):
84784         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84785         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84786         (update_regs, sift_states_backward, build_sifted_states):
84787         (clean_state_log_if_needed, merge_state_array):
84788         (update_cur_sifted_state, add_epsilon_src_nodes):
84789         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84790         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84791         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84792         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84793         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84794         (check_arrival, check_arrival_add_next_nodes):
84795         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84796         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84797         (check_node_accept_bytes, check_node_accept, extend_buffers):
84798         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84799         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84800         (sift_ctx_init):
84801         Likewise.
84802
84803         * lib/regex_internal.h:
84804         (re_string_allocate, re_string_construct, re_string_reconstruct):
84805         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84806         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84807         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84808         (re_string_context_at, re_string_peek_byte_case):
84809         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84810         is defined, since we now use prototypes always.
84811
84812         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84813         C89 or better.  All uses removed.
84814
84815 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84816
84817         * config/srclist.txt: Add glibc bugs 1220-1227.
84818
84819 2005-08-20  Jim Meyering  <jim@meyering.net>
84820
84821         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84822         of unused local, dfa.
84823
84824 2005-08-20  Bruno Haible  <bruno@clisp.org>
84825
84826         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84827
84828 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84831         (re_node_set_insert_last, re_dfa_add_node):
84832         Rename local variables to avoid GCC shadowing warnings.
84833
84834 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84835
84836         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84837         [defined lint]: Suppress bogus uninitialized-variable warnings.
84838
84839         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84840         and let the caller return REG_ESPACE if out of space.  This
84841         removes an uninitialied-variable warning with GCC 4.0.1, and also
84842         avoids taking the address of a local variable.  All callers
84843         changed.
84844
84845 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84846
84847         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84848         $LIBCSRC/posix/regexec.c.
84849         Add glibc bug 1217 for regcomp.c.
84850
84851 2005-08-19  Jim Meyering  <jim@meyering.net>
84852
84853         * lib/regexec.c (proceed_next_node): Redo local variables to
84854         avoid GCC shadowing warnings.
84855
84856 2005-08-18  Bruno Haible  <bruno@clisp.org>
84857
84858         * lib/strstr.c (strstr): Fix return value in multibyte case.
84859         * lib/strcasestr.c (strcasestr): Likewise.
84860
84861 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84862
84863         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84864
84865 2005-08-17  Jim Meyering  <jim@meyering.net>
84866
84867         Make the %s format (seconds since the epoch) work for a negative
84868         number and when used with a zero-padded field width, e.g. %015s.
84869
84870         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84871         label so that it precedes the code to set `digits'.  Otherwise,
84872         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84873         print `00-22'.  Now, it prints `-0022', as it should.
84874
84875 2005-08-17  Bruno Haible  <bruno@clisp.org>
84876
84877         * modules/strstr (Files): Add m4/mbrtowc.m4.
84878         (Depends-on): Add mbuiter.
84879
84880 2005-08-17  Bruno Haible  <bruno@clisp.org>
84881
84882         * modules/strcasestr: New file.
84883         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84884         strcasestr.
84885
84886 2005-08-17  Bruno Haible  <bruno@clisp.org>
84887
84888         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84889
84890 2005-08-17  Bruno Haible  <bruno@clisp.org>
84891
84892         * modules/mbuiter: New file.
84893         * MODULES.html.sh (Extended multibyte and wide character utilities):
84894         Add mbuiter.
84895
84896 2005-08-17  Bruno Haible  <bruno@clisp.org>
84897
84898         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84899         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84900
84901 2005-08-17  Bruno Haible  <bruno@clisp.org>
84902
84903         * m4/strcasestr.m4: New file.
84904
84905 2005-08-17  Bruno Haible  <bruno@clisp.org>
84906
84907         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84908         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84909
84910 2005-08-17  Bruno Haible  <bruno@clisp.org>
84911
84912         * lib/strcasestr.h: New file.
84913         * lib/strcasestr.c: New file.
84914
84915 2005-08-17  Bruno Haible  <bruno@clisp.org>
84916
84917         * lib/strcasecmp.c: Use mbuiter.h.
84918
84919 2005-08-17  Bruno Haible  <bruno@clisp.org>
84920
84921         * lib/mbuiter.h: New file.
84922
84923 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84924
84925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84926         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84927         and gl_GETOPT are both invoked via different paths (as happens
84928         with GNU tar CVS because it uses both argp and getopt), the former
84929         wins.
84930
84931 2005-08-16  Bruno Haible  <bruno@clisp.org>
84932
84933         * modules/tls: New file.
84934         * MODULES.html.sh (Multithreading): Add tls.
84935
84936 2005-08-16  Bruno Haible  <bruno@clisp.org>
84937
84938         * modules/strnlen1: New file.
84939         * MODULES.html.sh (String handling): Add strnlen1.
84940
84941 2005-08-16  Bruno Haible  <bruno@clisp.org>
84942
84943         * modules/strcase (Files): Add m4/mbrtowc.m4.
84944         (Depends-on): Add strnlen1, mbchar.
84945
84946 2005-08-16  Bruno Haible  <bruno@clisp.org>
84947
84948         * modules/mbiter: New file.
84949         * MODULES.html.sh (Extended multibyte and wide character utilities):
84950         Add mbiter.
84951
84952 2005-08-16  Bruno Haible  <bruno@clisp.org>
84953
84954         * modules/mbfile: New file.
84955         * MODULES.html.sh (Extended multibyte and wide character utilities):
84956         Add mbfile.
84957
84958 2005-08-16  Bruno Haible  <bruno@clisp.org>
84959
84960         * modules/mbchar: New file.
84961         * MODULES.html.sh (Extended multibyte and wide character utilities):
84962         New section.
84963
84964 2005-08-16  Bruno Haible  <bruno@clisp.org>
84965
84966         * m4/tls.m4: New file, from GNU gettext.
84967
84968 2005-08-16  Bruno Haible  <bruno@clisp.org>
84969
84970         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84971         always.
84972         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84973
84974 2005-08-16  Bruno Haible  <bruno@clisp.org>
84975
84976         * m4/mbiter.m4: New file.
84977
84978 2005-08-16  Bruno Haible  <bruno@clisp.org>
84979
84980         * m4/mbfile.m4: New file.
84981
84982 2005-08-16  Bruno Haible  <bruno@clisp.org>
84983
84984         * m4/mbchar.m4: New file.
84985
84986 2005-08-16  Bruno Haible  <bruno@clisp.org>
84987
84988         * lib/tls.h: New file, from GNU gettext.
84989         * lib/tls.c: New file, from GNU gettext.
84990
84991 2005-08-16  Bruno Haible  <bruno@clisp.org>
84992
84993         * lib/strnlen1.h: New file.
84994         * lib/strnlen1.c: New file.
84995
84996 2005-08-16  Bruno Haible  <bruno@clisp.org>
84997
84998         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84999         (mbi_init): Update.
85000         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85001         NUL byte, not after it.
85002
85003 2005-08-16  Bruno Haible  <bruno@clisp.org>
85004
85005         * lib/strcase.h (strcasecmp): Add note in comments.
85006         * lib/strncasecmp.c: Use code from strcasecmp.c.
85007         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85008         (strcasecmp): Work correctly in multibyte locales.
85009
85010 2005-08-16  Bruno Haible  <bruno@clisp.org>
85011
85012         * lib/mbiter.h: New file.
85013
85014 2005-08-16  Bruno Haible  <bruno@clisp.org>
85015
85016         * lib/mbfile.h: New file.
85017
85018 2005-08-16  Bruno Haible  <bruno@clisp.org>
85019
85020         * lib/mbchar.h: New file.
85021         * lib/mbchar.c: New file.
85022
85023 2005-08-16  Bruno Haible  <bruno@clisp.org>
85024
85025         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85026         the valid ones. Makes the comparison operations transitive:
85027         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85028         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85029
85030 2005-08-15  Simon Josefsson  <jas@extundo.com>
85031
85032         * modules/ssize_t (License): Change to 'unlimited'.
85033
85034         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85035
85036 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85037
85038         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85039         Add comments for each pending glibc patch.
85040
85041 2005-08-15  Bruno Haible  <bruno@clisp.org>
85042
85043         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85044         __cplusplus is defined.
85045
85046 2005-08-14  Jim Meyering  <jim@meyering.net>
85047
85048         Sync from coreutils.
85049
85050         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85051         Use the hash-table-based cycle-detection code not just when
85052         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85053         Reported by James Youngman in
85054         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85055         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85056         FTS_TIGHT_CYCLE_CHECK.
85057         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85058         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85059         once again.
85060         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85061         * lib/fts.c (fd_safer): Remove decl.
85062         Include fcntl--.h rather than unistd-safer.h
85063         (fts_safe_changedir): Don't call fd_safer; no longer needed
85064         now that we include fcntl--.h.
85065
85066 2005-08-12  Simon Josefsson  <jas@extundo.com>
85067
85068         * modules/getndelim2: Use ssize_t module.
85069         * modules/getnline: Likewise.
85070         * modules/safe-read: Likewise.
85071         * modules/xreadlink: Likewise.
85072
85073         * modules/ssize_t: New file.
85074
85075 2005-08-12  Simon Josefsson  <jas@extundo.com>
85076
85077         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85078
85079 2005-08-12  Simon Josefsson  <jas@extundo.com>
85080
85081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85082         ssize_t.
85083
85084 2005-08-12  Simon Josefsson  <jas@extundo.com>
85085
85086         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85087         readline, getdelim and check_version.
85088         (Support for systems lacking ISO C 99: Sizes of integer types):
85089         Add size_max.
85090
85091 2005-08-12  Bruno Haible  <bruno@clisp.org>
85092
85093         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85094
85095 2005-08-11  Simon Josefsson  <jas@extundo.com>
85096
85097         * modules/readline: New file.
85098
85099         * modules/strnlen (Files): Add strnlen.h.
85100
85101 2005-08-11  Simon Josefsson  <jas@extundo.com>
85102
85103         * m4/readline.m4: New file.
85104
85105 2005-08-11  Simon Josefsson  <jas@extundo.com>
85106
85107         * lib/readline.h, readline.c: New file.
85108
85109 2005-08-11  Simon Josefsson  <jas@extundo.com>
85110
85111         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85112         gl_AVOID.
85113
85114 2005-08-11  Bruno Haible  <bruno@clisp.org>
85115
85116         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85117
85118 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85119
85120         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85121
85122 2005-08-10  Simon Josefsson  <jas@extundo.com>
85123
85124         * tests/test-iconvme.c: New file.
85125
85126 2005-08-10  Simon Josefsson  <jas@extundo.com>
85127
85128         * m4/strnlen.m4: New file.
85129
85130         * m4/strndup.m4: Don't check for strnlen declaration, done in
85131         strnlen.m4.
85132
85133 2005-08-10  Simon Josefsson  <jas@extundo.com>
85134
85135         * lib/strndup.c: Use strnlen.h.
85136
85137         * lib/strnlen.h: New file.
85138
85139 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85140
85141         * README: Typos.
85142
85143 2005-08-02  Simon Josefsson  <jas@extundo.com>
85144
85145         * modules/readline: New file.
85146
85147 2005-08-02  Simon Josefsson  <jas@extundo.com>
85148
85149         * modules/getdelim: New file.
85150
85151         * modules/getline: Rewrite, don't use getndelim2.
85152
85153 2005-08-02  Simon Josefsson  <jas@extundo.com>
85154
85155         * m4/getline.m4: Separate out getdelim stuff into separate module.
85156
85157         * m4/getdelim.m4: New file.
85158
85159 2005-08-02  Simon Josefsson  <jas@extundo.com>
85160
85161         * lib/getline.h, getline.c: Rewrite.
85162
85163         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85164
85165 2005-07-31  Bruno Haible  <bruno@clisp.org>
85166
85167         * lib/lock.h (gl_lock_initializer): New macro.
85168         (gl_lock_define_initialized): Use it.
85169         (gl_rwlock_initializer): New macro.
85170         (gl_rwlock_define_initialized): Use it.
85171         (gl_recursive_lock_initializer): New macro.
85172         (gl_recursive_lock_define_initialized): Use it.
85173
85174 2005-07-30  Karl Berry  <karl@gnu.org>
85175
85176         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85177         Report from Ben Pfaff, regarding getopt.
85178
85179 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85180
85181         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85182         normal way.
85183         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85184         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85185         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85186         (gl_GETOPT): Use the new macros.  Most of the implementation
85187         is moved to the new macros.  This is for programs like Emacs
85188         that don't want all the functionality of gl_GETOPT.
85189
85190 2005-07-26  Bruno Haible  <bruno@clisp.org>
85191
85192         * m4/lock.m4: Update from GNU gettext.
85193
85194 2005-07-26  Bruno Haible  <bruno@clisp.org>
85195
85196         * lib/lock.h: Update from GNU gettext.
85197         * lib/lock.c: Update from GNU gettext.
85198
85199 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85200
85201         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85202         obsolescent AC_TRY_RUN.  Include the default includes files, for
85203         'exit'.
85204
85205 2005-07-24  Bruno Haible  <bruno@clisp.org>
85206
85207         * modules/visibility: New file.
85208         * MODULES.html.sh (Misc): Add visibility.
85209
85210 2005-07-24  Bruno Haible  <bruno@clisp.org>
85211
85212         * m4/visibility.m4: New file.
85213
85214 2005-07-24  Bruno Haible  <bruno@clisp.org>
85215
85216         * doc/visibility.texi: New file.
85217
85218 2005-07-22  Bruno Haible  <bruno@clisp.org>
85219
85220         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85221         $(ALLOCA_H), redundant through BUILT_SOURCES.
85222         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85223         redundant through BUILT_SOURCES.
85224         * modules/byteswap (Makefile.am): Remove explicit dependency on
85225         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85226         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85227         $(FNMATCH_H), redundant through BUILT_SOURCES.
85228         * modules/getopt (Makefile.am): Remove explicit dependency on
85229         $(GETOPT_H), redundant through BUILT_SOURCES.
85230         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85231         redundant through BUILT_SOURCES.
85232         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85233         redundant through BUILT_SOURCES.
85234         * modules/stdbool (Makefile.am): Remove explicit dependency on
85235         $(STDBOOL_H), redundant through BUILT_SOURCES.
85236         * modules/stdint (Makefile.am): Remove explicit dependency on
85237         $(STDINT_H), redundant through BUILT_SOURCES.
85238         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85239         Remove explicit dependency on $(SYSEXITS_H).
85240         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85241
85242 2005-07-18  Simon Josefsson  <jas@extundo.com>
85243
85244         * lib/check-version.c (check_version): Accept identical versions too.
85245
85246 2005-07-18  Bruno Haible  <bruno@clisp.org>
85247
85248         * modules/lock: New file.
85249         * MODULES.html.sh (Multithreading): New section.
85250
85251 2005-07-18  Bruno Haible  <bruno@clisp.org>
85252
85253         * m4/lock.m4: New file, from GNU gettext.
85254
85255 2005-07-18  Bruno Haible  <bruno@clisp.org>
85256
85257         * lib/lock.h: New file, from GNU gettext.
85258         * lib/lock.c: New file, from GNU gettext.
85259
85260 2005-07-18  Bruno Haible  <bruno@clisp.org>
85261
85262         * lib/lock.h (gl_once_t): New type.
85263         (gl_once_define, gl_once): New macros.
85264         * lib/lock.c (fresh_once): New variable.
85265         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85266         functions.
85267
85268 2005-07-16  Simon Josefsson  <jas@extundo.com>
85269
85270         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85271         workaround, suggested by Bruno.
85272
85273 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85274
85275         * modules/xalloc (Depends-on): Add xalloc-die.
85276         * modules/xvasprintf (Depends-on): Add xalloc-die.
85277
85278 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85279
85280         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85281         with a minor change.
85282
85283 2005-07-15  Bruno Haible  <bruno@clisp.org>
85284
85285         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85286         When using lib/poll.c, define poll as rpl_poll.
85287
85288 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         * modules/argp (Depends-on): Remove unlocked-io.
85291
85292 2005-07-14  Derek Price  <derek@ximbiot.com>
85293
85294         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85295         for glob symlink bug.
85296
85297 2005-07-14  Bruno Haible  <bruno@clisp.org>
85298
85299         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85300         Instead, test for *_unlocked function declarations directly.
85301
85302 2005-07-11  Simon Josefsson  <jas@extundo.com>
85303
85304         * modules/size_max: New file.
85305
85306         * modules/xsize: Depend on size_max module for size_max.m4.
85307
85308 2005-07-11  Simon Josefsson  <jas@extundo.com>
85309
85310         * lib/size_max.h: New file.
85311
85312 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85313
85314         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85315         copyright symbol and the year.
85316         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85317         (version_etc_va): Use parameterized copyright notice.
85318         Reword to conform to the current GNU coding standards.
85319
85320 2005-07-11  Karl Berry  <karl@gnu.org>
85321
85322         * doc/gnulib.texi (Quoting): new node.
85323         (Initial import): more info, from Patrice.
85324
85325 2005-07-11  Bruno Haible  <bruno@clisp.org>
85326
85327         * gnulib-tool (func_usage): Document option --avoid.
85328         (Command line options): Handle --avoid.
85329         (func_acceptable): New function.
85330         (func_modules_transitive_closure): Use it.
85331
85332 2005-07-11  Bruno Haible  <bruno@clisp.org>
85333
85334         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85335         Reported by Jim Meyering.
85336
85337 2005-07-10  Bruno Haible  <bruno@clisp.org>
85338
85339         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85340         Needed when size_t is smaller than 'unsigned int'.
85341         Reported by Paul Eggert.
85342
85343 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85344
85345         * modules/argp (Depends-on): Add unlocked-io
85346
85347 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85348
85349         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85350         block of defines.
85351
85352 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85353
85354         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85355         fix now.
85356
85357 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85358         and Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85361         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85362
85363 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         * modules/regex (Files): Add lib/regex_internal.c,
85366         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85367         (Depends-on): Add extensions.
85368         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85369
85370 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85373         pathconf.
85374         * m4/same.m4 (gl_SAME): Likewise.
85375         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85376
85377         * m4/regex.m4: Adjust to new libc regex implementation.
85378         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85379         all the .c and .h parts of (the new) regex.
85380         Quote the m4 stuff better.
85381         Check for RE_ICASE bug of old gnulib.
85382         Check for REG_STARTEND of recent libc.
85383         Rename local variables from jm_* to gl_*.
85384         Quote operand of "test -f".
85385         Say "recent enough" version of libc, not "version 2".
85386         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85387         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85388         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85389         Remove check for btowc, isascii.
85390         Require AM_LANGINFO_CODESET.
85391
85392 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85393
85394         * lib/regex.c, regex.h: Sync from libc.
85395         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85396         * lib/regexec.c:
85397         New files, synced from libc, except that regex_internal.h
85398         currently has a small porting fix.
85399
85400 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85401
85402         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85403         regex_internal.c, regexec.c.
85404         Add regex_internal.h too, but as a comment, since the libc version
85405         is currently broken in gnulib mode.
85406
85407 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85408
85409         Support programs like Emacs that use gnulib but not gettext.
85410         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85411         * modules/gettext-h: New file.
85412         * modules/gettext (Files): Remove lib/gettext.h.
85413         (Depends-on): Add gettext-h.
85414         (Makefile.am): Remove lib_SOURCES.
85415         * modules/argmatch, modules/c-stack, modules/closeout:
85416         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85417         * modules/execute, modules/file-type, modules/getaddrinfo:
85418         * modules/getopt, modules/human, modules/javacomp:
85419         * modules/javaexec, modules/mkdir-p, modules/obstack:
85420         * modules/openat, modules/pagealign_alloc, modules/pipe:
85421         * modules/quotearg, modules/regex, modules/rpmatch:
85422         * modules/unicodeio, modules/userspec, modules/version-etc:
85423         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85424         * modules/xsetenv:
85425         Depend on gettext-h, not gettext.
85426
85427 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85428
85429         * gnulib-tool (func_import): Add support for 'public domain' license.
85430         * modules/alloca, modules/atexit, modules/memmove:
85431         Now public domain, not GPL.
85432         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85433         * modules/realloc, modules/strerror, modules/strtod:
85434         Now LGPL, not GPL.
85435
85436 2005-07-05  Bruno Haible  <bruno@clisp.org>
85437
85438         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85439         autoconf CVS. Needed for mingw.
85440
85441 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         Remove the dependency of the strftime module on the tzset module.
85444         * modules/strftime (Depends-on): Remove dependency on tzset.
85445
85446 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85447
85448         Remove the dependency of the strftime module on the tzset module.
85449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85450         gl_FUNC_TZSET_CLOBBER.
85451
85452 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85453
85454         Remove the dependency of the strftime module on the tzset module.
85455         * lib/strftime.c (my_strftime)
85456         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85457         Copy the input structure, to work around some of the bug with
85458         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85459         Solaris releases, you should also use the tzset module, but we won't
85460         require it as a dependency any more since we don't want LGPLed code
85461         to depend on GPLed code.
85462
85463 2005-07-02  Jim Meyering  <jim@meyering.net>
85464
85465         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85466         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85467         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85468         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85469
85470 2005-07-02  Jim Meyering  <jim@meyering.net>
85471
85472         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85473
85474 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85475
85476         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85477         declares only 'struct timespec;' (!).
85478
85479 2005-07-01  Jim Meyering  <jim@meyering.net>
85480
85481         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85482         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85483         * lib/save-cwd.c, tempname.c:
85484         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85485         and don't include <sys/file.h>).
85486
85487 2005-06-29  Jim Meyering  <jim@meyering.net>
85488
85489         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85490         type name.  Use the variable name instead.
85491         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85492         Likewise.
85493
85494 2005-06-28  Simon Josefsson  <jas@extundo.com>
85495
85496         * modules/check-version (Files): Add check-version.m4.
85497
85498 2005-06-28  Simon Josefsson  <jas@extundo.com>
85499
85500         * m4/check-version.m4: New file, suggested by Jim Meyering
85501         <jim@meyering.net>.
85502
85503 2005-06-28  Simon Josefsson  <jas@extundo.com>
85504
85505         * lib/check-version.h, lib/check-version.c: New files.
85506
85507 2005-06-28  Simon Josefsson  <jas@extundo.com>
85508
85509         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85510         collision with global variable.  Better indentation.  Don't
85511         increment buffer pointer beyond buffer end.  Based on comments
85512         from Paul Eggert <eggert@cs.ucla.edu>.
85513
85514         * lib/base64.h: Indent.
85515
85516 2005-06-28  Simon Josefsson  <jas@extundo.com>
85517
85518         * doc/gnulib.texi (Library version handling): New section.
85519
85520 2005-06-28  Jim Meyering  <jim@meyering.net>
85521
85522         * check-module (find_included_lib_files): Hard-code another
85523         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85524         but modules/fts-lgpl (correctly) does not list those files.
85525
85526         * modules/canonicalize (Files): Add lib/pathmax.h.
85527
85528 2005-06-25  Simon Josefsson  <jas@extundo.com>
85529
85530         * modules/check-version: New file.
85531
85532 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85533
85534         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85535         initializer of struct addrinfo, as an indication that we don't
85536         care how many members the structure has.
85537
85538 2005-06-24  Derek Price  <derek@ximbiot.com>
85539         and Bruno Haible  <bruno@clisp.org>
85540
85541         Remove stat module & update lstat.
85542         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85543         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85544         * m4/stat.m4: Remove this file.
85545
85546 2005-06-24  Derek Price  <derek@ximbiot.com>
85547         and Bruno Haible  <bruno@clisp.org>
85548
85549         Remove stat module & update lstat.
85550         * lib/stat.c: Remove this file...
85551         (slash_aware_lstat): ...moving this content and its support...
85552         * lib/lstat.c (rpl_lstat): ...into here.
85553         * lib/lstat.h: New file.
85554
85555 2005-06-24  Derek Price  <derek@ximbiot.com>
85556         and Bruno Haible  <bruno@clisp.org>
85557
85558         Remove stat module & update lstat.
85559         * config/srclist.txt (libc sources): Remove stat.
85560
85561 2005-06-24  Derek Price  <derek@ximbiot.com>
85562         and Bruno Haible  <bruno@clisp.org>
85563
85564         Remove stat module & update lstat.
85565         * MODULES.html.sh (stat): Remove.
85566         * MODULES.html: Regenerated.
85567         * modules/lstat (Description): Correct function name.
85568         (Files): Add "lstat.h".
85569         (Depends-on): Remove stat, add xalloc, stat-macros.
85570         * modules/stat: Remove this file.
85571         (Include): Add "lstat.h", remove <sys/stat.h>.
85572
85573 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85574
85575         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85576         (ranged_convert): Don't save conversion in a temporary struct.
85577         This causes a warning with GCC 4.0.0, and anyway in the typical
85578         case it's not worth the extra 100 bytes or so of code.
85579         (ranged_convert, __mktime_internal): When calling a function via a
85580         pointer P, use P () rather than (*P) (), as we now assume C89 or
85581         better.
85582
85583 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85584
85585         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85586         "who -r" failed to give output.  Problem reported by Tim Waugh.
85587
85588         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85589         (xcalloc): Use it to avoid needless tests.
85590         Problem reported by Jim Meyering.
85591
85592 2005-06-20  Derek Price  <derek@ximbiot.com>
85593
85594         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85595         unnecessary for Autoconfs > 2.59c.
85596
85597 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85598
85599         * lib/argp.h (__option_is_short): Check upper limit of
85600         __key. Isprint() requires its argument to have the value
85601         of an unsigned char or EOF.
85602
85603 2005-06-16  Jim Meyering  <jim@meyering.net>
85604
85605         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85606         when either N or S is zero.
85607
85608 2005-06-16  Derek Price  <derek@ximbiot.com>
85609
85610         * m4/bison.m4: Declare YACC & YFLAGS precious.
85611
85612 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85613
85614         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85615         multibyte string or pattern, fall back on unibyte matching.
85616         Problem reported by James Youngman.
85617
85618 2005-06-08  Bruno Haible  <bruno@clisp.org>
85619
85620         * modules/csharpcomp: New file.
85621         * MODULES.html.sh (C#): Add csharpcomp.
85622
85623 2005-06-08  Bruno Haible  <bruno@clisp.org>
85624
85625         * m4/csharpcomp.m4: New file, from GNU gettext.
85626
85627 2005-06-08  Bruno Haible  <bruno@clisp.org>
85628
85629         * lib/csharpcomp.h: New file, from GNU gettext.
85630         * lib/csharpcomp.c: New file, from GNU gettext.
85631         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85632
85633 2005-06-08  Bruno Haible  <bruno@clisp.org>
85634
85635         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85636         warning on mingw.
85637
85638 2005-06-07  Derek Price  <derek@ximbiot.com>
85639
85640         Sync from CVS.
85641         * lib/glob_.h: Indent nested #ifdef.
85642
85643 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85644
85645         Sync from coreutils.
85646         Use "file name" when talking about file names, instead of "filename"
85647         or "path", as per the GNU coding standards.
85648         * lib/mkdir-p.c: Renamed from makepath.c.
85649         (make_dir_parents): Renamed from make_path.  All callers changed.
85650         * lib/mkdir-p.h: Likewise.  All includers changed.
85651         * lib/filenamecat.c: Renamed from path-concat.c.
85652         (file_name_concat): Renamed from path_concat.  All callers changed.
85653         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85654         * lib/filenamecat.h: Likewise.  All includers changed.
85655         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85656         in comments or local variable names.
85657         * lib/basename.c: Likewise.
85658         * lib/canonicalize.c, canonicalize.h: Likewise.
85659         * lib/dirname.c, dirname.h: Likewise.
85660         * lib/euidaccess.c: Likewise.
85661         * lib/exclude.c: Likewise
85662         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85663         * lib/fsusage.c, fsuage.h: Likewise.
85664         * lib/fts.c, fts_.h: Likewise.
85665         * lib/getcwd.c: Likewise.
85666         * lib/getloadavg.c: Likewise.
85667         * lib/mkstemp.c: Likewise.
85668         * lib/mountlist.c, mountlist.h: Likewise.
85669         * lib/openat.c, openat.h: Likewise.
85670         * lib/readlink-stub.c: Likewise.
85671         * lib/readutmp.c, readutmp.h: Likewise.
85672         * lib/rename.c: Likewise.
85673         * lib/rmdir.c: Likewise.
85674         * lib/same.c: Likewise.
85675         * lib/savedir.c: Likewise.
85676         * lib/stripslash.c: Likewise.
85677         * lib/tempname.c: Likewise.
85678         * lib/xreadlink.c: Likewise.
85679         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85680         All uses changed.
85681         * lib/exclude.h: Likewise.
85682
85683         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85684         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85685         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85686         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85687         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85688         files have been getting away with it for years (MORE/BSD 4.3
85689         is extinct now).
85690         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85691         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85692
85693         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85694         Define to 256, not 255, as per modern POSIX.
85695
85696 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85697
85698         Sync from coreutils.
85699         Use "file name" when talking about file names, instead of "filename"
85700         or "path", as per the GNU coding standards.
85701         * MODULES.html.sh: mkdir-p renamed from makepath.
85702         filenamecat renamed from path-concat.
85703         * modules/filenamecat: Renamed from modules/path-concat.
85704         (Files): filenamecat.h and filenamecat.c renamed from
85705         path-concat.h and path-concat.c.
85706         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85707         (Include): filenamecat.h, not path-concat.h.
85708         * modules/mkdir-p: Renamed from modules/makepath.
85709         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85710         makepath.c.
85711         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85712         (Include): mkdir-p.h, not makepath.h.
85713
85714 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85715
85716         Sync from coreutils.
85717         * m4/mkdir-p.m4: Renamed from makepath.m4.
85718         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85719         Rename files from makepath.c to mkdir-p.c, and from
85720         makepath.h to mkdir-p.h.
85721         * m4/filenamecat.m4: Renamed from path-concat.m4.
85722         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85723         Rename files from path-concat.c to filenamecat.c,
85724         and from path-concat.h to filenamecat.h.
85725         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85726         "file name" in local variables or comments.
85727         * m4/rename.m4: Likewise.
85728
85729 2005-06-01  Bruno Haible  <bruno@clisp.org>
85730
85731         * modules/csharpexec: New file.
85732         * MODULES.html.sh (C#): New section.
85733
85734 2005-06-01  Bruno Haible  <bruno@clisp.org>
85735
85736         * m4/csharp.m4: New file, from GNU gettext.
85737         * m4/csharpexec.m4: New file, from GNU gettext.
85738
85739 2005-06-01  Bruno Haible  <bruno@clisp.org>
85740
85741         * lib/csharpexec.h: New file, from GNU gettext.
85742         * lib/csharpexec.c: New file, from GNU gettext.
85743         * lib/csharpexec.sh.in: New file, from GNU gettext.
85744
85745 2005-05-31  Derek Price  <derek@ximbiot.com>
85746             Paul Eggert  <eggert@cs.ucla.edu>
85747
85748         Sync from cvs.
85749         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85750
85751 2005-05-31  Derek Price  <derek@ximbiot.com>
85752             Paul Eggert  <eggert@cs.ucla.edu>
85753
85754         Sync from cvs.
85755         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85756
85757 2005-05-29  Derek Price  <derek@ximbiot.com>
85758
85759         * config/srclist.txt (glob_.h, glob.c): Add these files.
85760
85761 2005-05-29  Derek Price  <derek@ximbiot.com>
85762
85763         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85764         * modules/glob: New file.
85765         * modules/getlogin_r: Add link to POSIX spec in description.
85766
85767 2005-05-29  Derek Price  <derek@ximbiot.com>
85768             Paul Eggert  <eggert@cs.ucla.edu>
85769
85770         * m4/glob.m4: New file.
85771
85772 2005-05-29  Derek Price  <derek@ximbiot.com>
85773             Paul Eggert  <eggert@cs.ucla.edu>
85774
85775         * lib/glob_.h, lib/glob.c: New files.
85776
85777 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85778
85779         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85780         * modules/fts-lgpl (Depends-on): Remove gettext.
85781
85782 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85783
85784         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85785         and don't require gt_INTTYPES_PRI.
85786
85787 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85788
85789         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85790
85791         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85792         the configuration hassle isn't worth it.
85793         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85794         (LONGEST_MODIFIER, PRIuMAX): Remove.
85795
85796 2005-05-27  Bruno Haible  <bruno@clisp.org>
85797
85798         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85799
85800 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85801
85802         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85803         _POSIX_PTHREAD_SEMANTICS for Solaris.
85804
85805 2005-05-25  Derek Price  <derek@ximbiot.com>
85806
85807         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85808
85809 2005-05-25  Derek Price  <derek@ximbiot.com>
85810             Paul Eggert  <eggert@cs.ucla.edu>
85811
85812         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85813         * lib/getlogin_r.c, getlogin_r.h: New files.
85814
85815 2005-05-25  Bruno Haible  <bruno@clisp.org>
85816             Derek Price  <derek@ximbiot.com>
85817
85818         * lib/getlogin_r.h: Simplify API documentation.
85819
85820 2005-05-23  Derek Price  <derek@ximbiot.com>
85821
85822         * modules/minmax (Files): Add m4/minmax.m4.
85823         (configure.ac): Add gl_MINMAX.
85824
85825 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85826
85827         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85828         so that unistd-safer.h (GPL'ed code) need not be included.
85829
85830 2005-05-22  Bruno Haible  <bruno@clisp.org>
85831
85832         * m4/minmax.m4: New file.
85833         Based on a patch by Derek Price <derek@ximbiot.com>.
85834
85835 2005-05-22  Bruno Haible  <bruno@clisp.org>
85836
85837         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85838         (INT64_MIN): Fix definition.
85839         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85840
85841         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85842         NEED_SIGNED_INT_TYPES.
85843
85844         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85845         HAVE_SYSTEM_INTTYPES.
85846
85847 2005-05-22  Bruno Haible  <bruno@clisp.org>
85848
85849         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85850         Also include <sys/param.h> if it defines MIN, MAX.
85851         Based on a patch by Derek Price <derek@ximbiot.com>.
85852
85853 2005-05-21  Jim Meyering  <jim@meyering.net>
85854
85855         * modules/fts (Files): Add m4/inttypes-pri.m4.
85856         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85857
85858 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85859
85860         New fts module.
85861         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85862         (setup_dir, free_dir): New functions.
85863         (enter_dir, leave_dir): Define trivial
85864         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85865         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85866         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85867         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85868         Move to fts-cycle.c.
85869         (fts_open): Use setup_dir.
85870         (fts_close): Use free_dir.
85871         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85872         This adds a label and some gotos, but the alternatives were messier.
85873         Check for memory allocation failure when entering a dir.
85874         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85875         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85876         (FTS): New member fts_cycle, that is a union that contains the
85877         old active_dir_ht and cycle_state.  All uses changed to mention
85878         fts_cycle.ht and fts_cycle.state.
85879         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85880         fts.c, with the following changes:
85881         (setup_dir, free_dir): New functions.
85882         (enter_dir): Now returns bool.  Return true if successful, false
85883         if memory exhausted.  All callers changed.
85884         Do not bother partly cleaning up on
85885         memory allocation failure; that is free_dir's job.
85886         However, free ad if hash_insert fails, to avoid memory leak.
85887         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85888         fts->fts_options to see which union member to use.
85889
85890 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85891
85892         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85893         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85894
85895 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85896
85897         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85898
85899 2005-05-20  Jim Meyering  <jim@meyering.net>
85900
85901         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85902         Now a macro, to pacify GCC.
85903
85904 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85905
85906         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85907         of -1.
85908
85909 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85910
85911         * lib/chown.c (rpl_chown): Return -1 on failure.
85912
85913 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85914
85915         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85916         Don't check for stddef.h.
85917         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85918         don't use its results.
85919         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85920         since we include them unconditionally.  Don't require
85921         AM_STDBOOL_H, since stdbool is a prerequisite.
85922         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85923         since we assume C89 or better.
85924         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85925         as we don't use their results.
85926         Don't check for fchdir, memmove, memset, strrchr, as we use
85927         them unconditionally.
85928         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85929         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85930
85931 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85932
85933         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85934         Include <stddef.h> unconditionally, since we assume C89 now.
85935         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85936         * lib/fts.c: Include fts_.h first, to check interface.
85937         Do not include intprops.h; no longer needed.
85938         Include cycle-check.h and hash.h, since fts_.h no longer does.
85939         Remove unnecessary casts of closedir to void.
85940         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85941         decide whether to decrement nlinks.
85942         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85943         (FTS): Use struct hash_table * instead of Hash_table, so that
85944         we no longer need to include hash.h here.
85945
85946 2005-05-18  Jim Meyering  <jim@meyering.net>
85947
85948         * modules/dirfd (License): Change to LGPL.  Most of the code
85949         is already in the public domain.
85950
85951 2005-05-18  Jim Meyering  <jim@meyering.net>
85952
85953         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85954         Reported by Yoann Vandoorselaere.
85955
85956 2005-05-17  Jim Meyering  <jim@meyering.net>
85957
85958         * m4/fts.m4: New file, from coreutils.
85959
85960 2005-05-17  Jim Meyering  <jim@meyering.net>
85961
85962         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85963
85964 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85965
85966         Sync from coreutils.
85967         * m4/unlinkdir.m4: New file.
85968
85969 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85970
85971         Sync from coreutils.
85972         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85973         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85974         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85975         White space changes only.
85976         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85977         special.
85978         * lib/yesno.c: Include getline.h, not ctype.h.
85979         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85980         Use getline to remove arbitrary restriction on response length.
85981
85982 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85983
85984         * config/srclist-update: Spell out "Street" in FSF postal
85985         mail address; this is the style the FSF seems to prefer.
85986
85987         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85988         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85989         this updates FSF postal mail address.
85990
85991         Sync from coreutils.
85992         * modules/unlinkdir: New file.
85993         * modules/yesno (Depends-on): Add getline.
85994         * MODULES.html.sh (File system functions): Add unlinkdir.
85995
85996 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85997
85998         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85999         lib/strsep.h:
86000         Change the initial comment to refer to GPL, not LGPL.
86001         gnulib-tool will change it to LGPL as needed.
86002
86003         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86004         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86005         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86006         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86007         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86008         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86009         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86010         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86011         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86012         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86013         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86014         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86015         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86016         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86017         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86018         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86019         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86020         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86021         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86022         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86023         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86024         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86025         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86026         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86027         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86028         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86029         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86030         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86031         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86032         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86033         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86034         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86035         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86036         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86037         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86038         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86039         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86040         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86041         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86042         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86043         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86044         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86045         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86046         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86047         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86048         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86049         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86050         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86051         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86052         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86053         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86054         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86055         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86056         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86057         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86058         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86059         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86060         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86061         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86062         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86063         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86064         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86065         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86066         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86067         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86068         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86069         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86070         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86071         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86072         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86073         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86074         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86075         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86076         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86077         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86078         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86079         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86080         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86081         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86082         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86083         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86084         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86085         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86086         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86087         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86088         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86089         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86090         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86091         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86092         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86093         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86094         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86095         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86096         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86097         lib/yesno.c, lib/yesno.h:
86098         Update FSF postal mail address.
86099
86100 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86101
86102         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86103         tests/test-memmem.c, tests/test-stpncpy.c:
86104         Update FSF postal mail address.
86105
86106 2005-05-13  Bruno Haible  <bruno@clisp.org>
86107
86108         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86109         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86110         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86111         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86112         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86113         Add support for 64-bit integers in the MSVC compiler.
86114
86115 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86116
86117         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86118
86119 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86120
86121         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86122
86123 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         * doc/getdate.texi (General date syntax): Don't say that date
86126         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86127         Problem reported by Nic Ferrier.
86128
86129 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86130
86131         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86132         specified in ai_socktype. Fix invalid ai_protocol
86133         check. ai_protocol is usually set to 0 or depending on
86134         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86135         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86136         ai_socktype / ai_protocol in the returned addrinfo structure.
86137
86138 2005-05-10  Simon Josefsson  <jas@extundo.com>
86139
86140         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86141         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86142
86143 2005-05-10  Karl Berry  <karl@gnu.org>
86144
86145         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86146         (from http://www.gnu.org/licenses).
86147         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86148         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86149         fdl.texi suffices.
86150
86151 2005-05-10  Karl Berry  <karl@gnu.org>
86152
86153         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86154         (COPYING.DOC): remove.
86155
86156         * config/srclist-update: new FSF address.
86157
86158 2005-05-10  Derek Price  <derek@ximbiot.com>
86159
86160         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86161         possible.
86162
86163 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86164             Bruno Haible  <bruno@clisp.org>
86165
86166         * modules/inet_ntop: New file.
86167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86168         inet_ntop.
86169
86170 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86171             Bruno Haible  <bruno@clisp.org>
86172
86173         * m4/inet_ntop.m4: New file.
86174
86175 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86176             Bruno Haible  <bruno@clisp.org>
86177
86178         * lib/inet_ntop.h: New file.
86179         * lib/inet_ntop.c: New file, from glibc with modifications.
86180
86181 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86182
86183         * modules/time_r (License): Change to LGPL.
86184         * modules/extensions (License): Change to LGPL.  Actually,
86185         the license is more permissive than that, but currently gnulib-tool
86186         doesn't know how to handle more-permissive licenses.
86187
86188         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86189         Problem reported by Dave Love.
86190
86191 2005-05-08  Jim Meyering  <jim@meyering.net>
86192
86193         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86194         blank.
86195
86196 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86197
86198         * modules/argmatch (Depends-on): Add stdbool.
86199         * modules/backupfile (Depends-on): Likewise.
86200         * modules/chdir-long (Depends-on): Likewise.
86201         * modules/closeout (Depends-on): Likewise.
86202         * modules/cycle-check (Depends-on): Likewise.
86203         * modules/dirname (Depends-on): Likewise.
86204         * modules/fnmatch (Depends-on): Likewise.
86205         * modules/fsusage (Depends-on): Likewise.
86206         * modules/fwriteerror (Depends-on): Likewise.
86207         * modules/getcwd (Depends-on): Likewise.
86208         * modules/getloadavg (Depends-on): Likewise.
86209         * modules/hard-locale (Depends-on): Likewise.
86210         * modules/makepath (Depends-on): Likewise.
86211         * modules/mountlist (Depends-on): Likewise.
86212         * modules/nanosleep (Depends-on): Likewise.
86213         * modules/posixtm (Depends-on): Likewise.
86214         * modules/quotearg (Depends-on): Likewise.
86215         * modules/readtokens (Depends-on): Likewise.
86216         * modules/readtokens0 (Depends-on): Likewise.
86217         * modules/readutmp (Depends-on): Likewise.
86218         * modules/save-cwd (Depends-on): Likewise.
86219         * modules/strftime (Depends-on): Likewise.
86220         * modules/userspec (Depends-on): Likewise.
86221         * modules/utimecmp (Depends-on): Likewise.
86222         * modules/xgetcwd (Depends-on): Likewise.
86223         * modules/xnanosleep (Depends-on): Likewise.
86224         * modules/xstrtod (Depends-on): Likewise.
86225         * modules/yesno (Depends-on): Likewise.
86226
86227 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86228
86229         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86230         needless checks.
86231
86232 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86233
86234         Merge from coreutils.  Among other things,
86235         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86236         * lib/fd-safer.c: New file.
86237         * lib/fcntl-safer.h, open-safer.c: Remove.
86238         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86239         * lib/dup-safer.c: Include unistd-safer.h first.
86240         Don't include errno.h.
86241         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86242         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86243         * lib/file-type.c: Rely on file-type.h change.
86244         * lib/getloadavg.c: Include unistd-safer.h.
86245         (getloadavg): Use safer open.
86246         * lib/getusershell.c: Include "stdio-safer.h".
86247         (getusershell): Use safer fopen.
86248         * lib/long-options.c (long_options): Use NULL rather than 0.
86249         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86250         'free'.
86251         * lib/modechange.c: Likewise.
86252         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86253         (MODE_DONE): New constant.
86254         (struct mode_change): Remove 'next' member.
86255         (make_node_op_equals): New function; like the old one of the
86256         same name, except it allocates an array.
86257         (mode_compile, mode_create_from_ref): Use it.
86258         (mode_compile): Allocate result as an array, not a linked list.
86259         Parse octal string ourself, so that we catch mistakes like "+0".
86260         (mode_adjust): Arg is an array, not a linked list.
86261         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86262         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86263         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86264         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86265         Remove.  This is now stat-macros.h's job.
86266         (talloc): Remove.  All callers replaced by xalloc, so that
86267         our invokers don't have to worry about reporting memory failures.
86268         (make_node_op_equals): Remove.
86269         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86270         New constants.
86271         (struct mode_change): Moved here from modechange.h.
86272         (mode_append_entry): Remove.
86273         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86274         apps to have incorrect behavior.  Use simpler algorithm for head
86275         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86276         Detect more invalid usages rather than having somewhat-random behavior.
86277         Don't insert an "a=" action, as that leads to incorrect behavior.
86278         (mode_compile, mode_create_from_ref): Return NULL on error instead
86279         of an enum, since now there's only one way to have an error.  All
86280         callers changed.
86281         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86282         at the correct time.  Simplify calculation of "+u" and its ilk.
86283         Don't mishandle "+X".
86284         (mode_free): Remove "register" and localize decls.
86285         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86286         (struct mode_change): Move to modechange.c; callers don't
86287         need to see this stuff.
86288         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86289         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86290         (mode_change, mode_adjust): Reflect the new signatures noted above.
86291         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86292         that might redefine system include files.
86293         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86294         (my_usleep): Use NULL rather than (void *) 0.
86295         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86296         Use siginterrupt to specify that system calls should be interrupted.
86297         (rpl_nanosleep): Move initialization of suspended closer to call of
86298         my_usleep.
86299         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86300         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86301         (desirable_utmp_entry): New function.
86302         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86303         using x2nrealloc, to simplify logic.
86304         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86305         size calculation.  Do not assume utmp file is a regular file.
86306         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86307         (READ_UTMP_CHECK_PIDS): New constant.
86308         * lib/save-cwd.c: Include unistd-safer.h.
86309         (save_cwd): Use fd_safer.
86310         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86311         [!_LIBC] Include "stat-macros.h" instead.
86312         * lib/unistd-safer.h (fd_safer): New decl.
86313
86314 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86315
86316         * modules/getloadavg (Depends-on): Add unistd-safer.
86317         * modules/getusershell (Depends-on): Add stdio-safer.
86318         * modules/lstat (Depends-on): Remove xalloc.
86319         * modules/mkstemp (Depends-on): Add stat-macros.
86320         * modules/modechange (Depends-on): Remove xstrtol.
86321         Add stat-macros, xalloc.
86322         * modules/save-cwd (Depends-on): Add unistd-safer.
86323         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86324         * modules/unistd-safer (Files): Add lib/fd-safer.c
86325         (Makefile.am): Remove lib_SOURCES.
86326
86327         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86328         Remove fcntl-safer; unistd-safer supersedes it.
86329
86330 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86331
86332         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86333         AC_HEADER_STAT.
86334         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86335         (gl_PREREQ_CHOWN): Remove.
86336         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86337         it.  Don't require AC_HEADER_STAT.
86338         (gl_PREREQ_LSTAT): Remove.
86339         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86340         Don't require AC_HEADER_STAT.
86341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86342         (gl_PREREQ_RMDIR): Remove.
86343         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86344         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86345         the stat-macros module a prerequisite.
86346         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86347         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86348         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86349         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86350         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86351         variable names.
86352         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86353         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86354         variable prefixes.
86355         * m4/fcntl-safer.m4: Remove.
86356         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86357         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86358         Invoke gl_PREREQ_FD_SAFER.
86359         (gl_PREREQ_FD_SAFER): New macro.
86360         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86361         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86362         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86363         Remove duplicate call to AC_LIBOBJ(readutmp).
86364         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86365
86366         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86367         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86368
86369 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86370
86371         * MODULES.html.sh (Misc): Add byteswap.
86372
86373 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86374
86375         * modules/getcwd (Depends-on): Add extensions.
86376         * modules/openat (Depends-on): Likewise.
86377
86378 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86379
86380         * modules/byteswap: New file.
86381
86382 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86383
86384         * m4/byteswap.m4: New file.
86385
86386 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86387
86388         * lib/byteswap_.h: New file.
86389
86390 2005-04-25  Karl Berry  <karl@gnu.org>
86391
86392         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86393
86394 2005-04-25  Albert Chin  <china@thewrittenword.com>
86395
86396         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86397         Toolkit C bug.
86398
86399 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86400
86401         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86402         (func_ln_if_changed): Remove forcibly for no error message
86403         in case file does not exist.
86404
86405 2005-04-19  Simon Josefsson  <jas@extundo.com>
86406
86407         * gnulib-tool (Options): Make --symlink mean --symbolic.
86408
86409 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86410
86411         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86412
86413 2005-04-16  Simon Josefsson  <jas@extundo.com>
86414
86415         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86416
86417 2005-04-15  Simon Josefsson  <jas@extundo.com>
86418
86419         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86420
86421 2005-04-15  Simon Josefsson  <jas@extundo.com>
86422
86423         * gnulib-tool: Rename --symlink to --symbolic.
86424
86425 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86426
86427         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86428         symbolic links to files instead of copying/moving.  Add --aux-dir,
86429         specifying directory relative --dir where auxiliary build tools
86430         are placed.
86431
86432 2005-04-14  Bruno Haible  <bruno@clisp.org>
86433
86434         * modules/allocsa (License): Change to LGPL.
86435         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86436
86437 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86438
86439         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86440         that "UTC +1 second" continues to work.  Problem reported
86441         by Dmitry V. Levin.
86442         (relunit_snumber): New rule.
86443         (relunit): Use it.
86444
86445 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86446
86447         * lib/getdate.y (universal_time_zone_table): New constant.
86448         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86449         universal_time_zone_table.
86450         (lookup_zone): Prefer universal_time_zone_table to
86451         local_time_zone_table, so that "GMT" time stamps are allowed in
86452         London during the summer.  Problem reported by Ian Abbott.
86453
86454 2005-04-12  Jim Meyering  <jim@meyering.net>
86455
86456         * lib/human.c (humblock): Set *options even when returning due to
86457         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86458         warning from gcc-4.
86459
86460 2005-04-09  Jim Meyering  <jim@meyering.net>
86461
86462         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86463         -Wuninitialized: initialize tm0.tm_year.
86464
86465 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86466
86467         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86468         count, since there's no maximum.  All uses changed.
86469         Add member dsts_seen.
86470         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86471         not being INT_MAX.
86472         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86473         Use pc_rels_seen to decide whether a date is absolute.
86474
86475         * lib/getdate.y (number): Don't overwrite year.
86476         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86477         check.
86478
86479 2005-04-02  Simon Josefsson  <jas@extundo.com>
86480
86481         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86482         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86483
86484 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86485
86486         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86487         where no absolute path name can be longer than PATH_MAX.
86488
86489 2005-03-27  Jim Meyering  <jim@meyering.net>
86490
86491         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86492
86493 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86494
86495         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86496         "one's complement" -> "ones' complement" in comment, as per Knuth.
86497         "value of type" -> "type or expression" in comment.
86498         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86499
86500 2005-03-26  Jim Meyering  <jim@meyering.net>
86501
86502         Comment nits.
86503         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86504         Correct typos: s/or/of/.
86505
86506 2005-03-26  Jim Meyering  <jim@meyering.net>
86507
86508         * modules/check-include-files: Move to ../ and rename to...
86509         * check-module: ...this.
86510
86511 2005-03-25  Jim Meyering  <jim@meyering.net>
86512
86513         * modules/xvasprintf (Files): Add xalloc.h.
86514
86515 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86516
86517         * modules/gettext (Files): config/config.rpath ->
86518         build-aux/config.rpath
86519         * modules/iconv (Files): Likewise.
86520         Problem reported by Oskar Liljeblad.
86521
86522 2005-03-23  Jim Meyering  <jim@meyering.net>
86523
86524         * modules/check-include-files: New script to check for
86525         missing dependencies, multiple includes, etc.
86526
86527         * modules/c-strtold (Depends-on): Add xalloc.
86528         * modules/c-strtod (Depends-on): Add xalloc.
86529         * modules/hash (Depends-on): Add xalloc.
86530         (Files): Remove lib/xalloc.h.
86531
86532         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86533         * modules/userspec (Files): Add lib/inttostr.h.
86534
86535 2005-03-23  Jim Meyering  <jim@meyering.net>
86536
86537         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86538
86539 2005-03-22  Jim Meyering  <jim@meyering.net>
86540
86541         * modules/stat-macros: New module.
86542         * modules/canonicalize, modules/euidaccess, modules/file-type,
86543         * modules/filemode, modules/lchown, modules/makepath,
86544         * modules/rmdir, modules/stat: Depend on new stat-macros module
86545         rather than listing lib/stat-macros.h manually.
86546         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86547
86548 2005-03-22  Jim Meyering  <jim@meyering.net>
86549
86550         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86551
86552 2005-03-22  Bruno Haible  <bruno@clisp.org>
86553
86554         * config/srclist.txt: Replace target directory 'config' with
86555         'build-aux'.
86556         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86557         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86558         ../build-aux/.
86559
86560 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86561
86562         * modules/chdir-long (Depends-on): Add mempcpy.
86563
86564         * modules/acl, modules/backupfile, modules/c-strtod,
86565         modules/c-strtold, modules/canon-host, modules/canonicalize,
86566         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86567         modules/exclude, modules/exitfail, modules/file-type,
86568         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86569         modules/getdate, modules/getline, modules/getpagesize,
86570         modules/getpass, modules/getugroups, modules/group-member,
86571         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86572         modules/inttostr, modules/long-options, modules/makepath,
86573         modules/md5, modules/memcasecmp, modules/memcoll,
86574         modules/modechange, modules/mountlist, modules/path-concat,
86575         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86576         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86577         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86578         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86579         modules/strftime, modules/strndup, modules/strverscmp,
86580         modules/timespec, modules/unlocked-io, modules/userspec,
86581         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86582         modules/yesno:
86583         Remove lib_SOURCES line from Makefile.am section, as this is now
86584         done automatically by the corresponding Autoconf macro.
86585
86586 2005-03-21  Jim Meyering  <jim@meyering.net>
86587
86588         Changes imported from coreutils.
86589
86590         * lib/cycle-check.c: Don't include xalloc.h.
86591
86592         * lib/path-concat.c: Don't include assert.h.
86593         (path_concat): Remove assertion that would have triggered
86594         for ABASE starting with more than one slash.
86595         Reported by Andreas Schwab.
86596
86597         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86598         properly when ABASE is an absolute file name.
86599         Correct the description of this function.
86600         Include <assert.h>.
86601         Add an assertion and a test driver.
86602         This fixes a bug introduced on 2004-07-02.
86603         Andreas Schwab reported the resulting failure of cp --parents:
86604         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86605
86606 2005-03-21  Jim Meyering  <jim@meyering.net>
86607
86608         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86610
86611 2005-03-21  Jim Meyering  <jim@meyering.net>
86612         and  Paul Eggert  <eggert@cs.ucla.edu>
86613
86614         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86615         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86616         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86617         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86618         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86619         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86620         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86621         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86622         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86623         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86624         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86625         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86626         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86627         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86628         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86629         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86630         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86631         for these modules.
86632
86633 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86634
86635         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86636         (which shouldn't happen), generate nothing instead of returning 0
86637         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86638
86639 2005-03-16  Bruno Haible  <bruno@clisp.org>
86640
86641         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86642         HAVE_LONGLONG_64BIT.
86643
86644 2005-03-16  Bruno Haible  <bruno@clisp.org>
86645
86646         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86647         HAVE_LONGLONG_64BIT.
86648
86649 2005-03-16  Bruno Haible  <bruno@clisp.org>
86650
86651         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86652         HAVE_LONGLONG_64BIT.
86653
86654 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86655
86656         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86657         reliably distinguish strftime failure from empty output on POSIX
86658         hosts.
86659
86660 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86661
86662         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86663         (iconv_string): Don't guess a size-zero buffer, as that might cause
86664         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86665         result would be 'too large', where 'too large' is (heuristically)
86666         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86667         overflow concerns.  This will prevent some unwanted malloc failures
86668         when the inputs are very large.
86669
86670 2005-03-15  Karl Berry  <karl@gnu.org>
86671
86672         * config/srclist.txt (config.rpath): from gettext.
86673         * config/config.rpath: update.
86674
86675 2005-03-15  Bruno Haible  <bruno@clisp.org>
86676
86677         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86678         to 'negate'.
86679
86680         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86681         variable.
86682
86683         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86684         results.
86685
86686 2005-03-14  Simon Josefsson  <jas@extundo.com>
86687
86688         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86689         <fx@gnu.org>.
86690
86691 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86692
86693         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86694         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86695         intprops.h.
86696         * lib/strtol.c: Likewise.
86697
86698 2005-03-14  Jim Meyering  <jim@meyering.net>
86699
86700         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86701         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86702         to be nonzero so that we (and caller) can detect the difference
86703         between a valid zero-length expansion and an error return, even
86704         when the underlying strftime fails before writing anything into
86705         that location.
86706
86707 2005-03-14  Bruno Haible  <bruno@clisp.org>
86708
86709         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86710         Update from GNU gettext 0.14.3.
86711
86712 2005-03-10  Jim Meyering  <jim@meyering.net>
86713
86714         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86715
86716 2005-03-10  Jim Meyering  <jim@meyering.net>
86717
86718         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86719         so that this module works on systems without fchdir.
86720
86721 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86722
86723         Factor int-properties macros into a single file, except for
86724         glibc-related files.
86725         * lib/intprops.h: New file.
86726         * lib/getloadavg.c: Include it instead of limits.h.
86727         (INT_STRLEN_BOUND): Remove.
86728         * lib/human.c: Include intprops.h.
86729         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86730         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86731         302/1000.
86732         * lib/inttostr.h: Include intprops.h instead of limits.h.
86733         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86734         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86735         for consistency with intprops.h.
86736         (time_t_is_integer, twos_complement_arithmetic): Use them.
86737         * lib/sig2str.h: Include <signal.h>, intprops.h.
86738         (INT_STRLEN_BOUND): Remove.
86739         * lib/strftime.c (TYPE_SIGNED): Remove.
86740         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86741         * lib/strtol.c: Adjust comments to match intprops.h.
86742         * lib/userspec.c: Include intprops.h.
86743         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86744         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86745         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86746         instead of rolling our own expressions.
86747         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86748
86749         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86750         instead of int.
86751         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86752         the right thing even if adding 1900 would overflow.  Similarly
86753         for tm_mon + 1 and tm_yday + 1.
86754         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86755         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86756         (DO_SIGNED_NUMBER): New macro.
86757         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86758
86759 2005-03-07  Bruno Haible  <bruno@clisp.org>
86760
86761         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86762
86763 2005-03-07  Bruno Haible  <bruno@clisp.org>
86764
86765         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86766
86767 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86768
86769         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86770         (func_import): Only replace files via --import when they have actually
86771         changed.
86772
86773 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86774
86775         * m4/mmap-anon.m4: New file.
86776         * m4/pagealign_alloc.m4: New file.
86777
86778 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86779             Bruno Haible  <bruno@clisp.org>
86780
86781         * modules/pagealign_alloc: New file.
86782         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86783
86784 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86785             Bruno Haible  <bruno@clisp.org>
86786
86787         * lib/pagealign_alloc.h: New file.
86788         * lib/pagealign_alloc.c: New file.
86789
86790 2005-03-03  Bruno Haible  <bruno@clisp.org>
86791
86792         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86793         Use an all-permissive copyright notice, recommended by RMS.
86794
86795 2005-03-02  Bruno Haible  <bruno@clisp.org>
86796
86797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86798         of AIX, the replacement has to be done only after <string.h> is
86799         included, therefore not in config.h. stpncpy.h does the replacement,
86800         and stpncpy.c uses it.
86801
86802 2005-03-02  Bruno Haible  <bruno@clisp.org>
86803
86804         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86805         stpncpy.c uses it.
86806
86807 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86808
86809         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86810         The workaround isn't strictly needed for POSIX conformance, and
86811         it's too much of a pain to configure and maintain.  We'll ask
86812         people to fix their kernels instead.
86813         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86814         (NANOSLEEP_BUG_WORKAROUND): Remove.
86815         (xnanosleep): Remove the workaround.
86816
86817 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86818
86819         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86820         Reported by Derek Price.
86821         (Include): Add "timespec.h".
86822
86823         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86824
86825 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86826
86827         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86828         to detect nanosleep bug.
86829
86830 2005-03-01  Bruno Haible  <bruno@clisp.org>
86831
86832         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86833
86834 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86835
86836         * modules/gethrxtime: New file.
86837         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86838         (Depends-on): Add gethrxtime.
86839         (configure.ac): Add gl_XNANOSLEEP.
86840         (Makefile.am): Remove lib_SOURCES line.
86841
86842 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86843
86844         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86845         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86846
86847 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86848
86849         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86850         * lib/timespec.h (gettime): Return void, since it always
86851         succeeds now.  All uses changed.
86852         * lib/gettime.c (gettime): Likewise.
86853         [HAVE_NANOTIME]: Prefer nanotime.
86854         Assume gettimeofday succeeds, as POSIX requires.
86855         Assime time () succeeds, since other code already does.
86856         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86857         (timespec_subtract): Remove.
86858         (NANOSLEEP_BUG_WORKAROUND): New constant.
86859         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86860         things considerably.  Use it only on GNU/Linux hosts, since the
86861         workaround shouldn't be needed elsewhere.
86862
86863 2005-02-24  Bruno Haible  <bruno@clisp.org>
86864
86865         * modules/gettext (Files): Add m4/glibc2.m4.
86866
86867 2005-02-24  Bruno Haible  <bruno@clisp.org>
86868
86869         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86870         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86871         * m4/progtest.m4:
86872         Update from GNU gettext 0.14.2.
86873         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86874
86875 2005-02-24  Bruno Haible  <bruno@clisp.org>
86876
86877         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86878         * lib/config.charset: Update from GNU gettext 0.14.2.
86879
86880 2005-02-24  Bruno Haible  <bruno@clisp.org>
86881
86882         * lib/gettext.h: Update from GNU gettext 0.14.2.
86883
86884 2005-02-23  Simon Josefsson  <jas@extundo.com>
86885
86886         * m4/iconvme.m4: New file.
86887
86888 2005-02-23  Jim Meyering  <jim@meyering.net>
86889
86890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86891         change.
86892         Thanks to Bruno Haible for catching it.
86893
86894 2005-02-22  Simon Josefsson  <jas@extundo.com>
86895
86896         * modules/iconvme: New file.
86897
86898         * MODULES.html.sh: Add iconvme.
86899
86900 2005-02-22  Simon Josefsson  <jas@extundo.com>
86901
86902         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86903
86904 2005-02-22  Simon Josefsson  <jas@extundo.com>
86905
86906         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86907
86908 2005-02-22  Jim Meyering  <jim@meyering.net>
86909
86910         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86911         s/ifndef/ifdef/.
86912
86913 2005-02-20  Neil Conway  <neilc@samurai.com>
86914
86915         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86916         returned by OSX/Darwin if the specified buffer is not large
86917         enough for the hostname.
86918
86919 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86920
86921         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86922         pass it to _help, otherwise the latter coredumps trying to
86923         dereference state.root_argp.
86924
86925 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86926
86927         * modules/chdir-long (Depends-on): Add memrchr.
86928         * modules/memrchr (Files): Add lib/memrchr.h.
86929         (Include): "memrchr.h".
86930
86931 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86932
86933         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86934
86935 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86936
86937         * lib/memrchr.h: New file.
86938         * lib/chdir-long.c: Include it.
86939         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86940         Don't bother including stddef.h.
86941
86942 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86943
86944         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86945         inclusion.
86946         Include <sys/types.h>, for dev_t.
86947         (ME_DUMMY, ME_REMOTE): Move from here....
86948         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86949         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86950         Dmitry V. Levin.
86951         Include mountlist.h first, to test the interface.
86952
86953 2005-01-29  Bruno Haible  <bruno@clisp.org>
86954
86955         * lib/progname.c (program_name): Initialize.
86956         Needed when linking statically on MacOS X.
86957
86958 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86959
86960         Sync from coreutils.
86961         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86962         (Depends-on): Add c-strtod.
86963         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86964
86965 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86966
86967         Sync from coreutils.
86968         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86969
86970         Remove files that are specific to coreutils.
86971         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86972
86973 2005-01-28  Bruno Haible  <bruno@clisp.org>
86974
86975         * modules/javacomp: New file.
86976         * MODULES.html.sh (Java): Add javacomp.
86977
86978 2005-01-28  Bruno Haible  <bruno@clisp.org>
86979
86980         * m4/javacomp.m4: New file, from GNU gettext.
86981
86982 2005-01-28  Bruno Haible  <bruno@clisp.org>
86983
86984         * lib/javacomp.sh.in: New file, from GNU gettext.
86985         * lib/javacomp.h: New file, from GNU gettext.
86986         * lib/javacomp.c: New file, from GNU gettext.
86987
86988 2005-01-26  Simon Josefsson  <jas@extundo.com>
86989
86990         * lib/gai_strerror.c: Use GPL in header.
86991
86992 2005-01-26  Bruno Haible  <bruno@clisp.org>
86993
86994         * modules/javaexec: New file.
86995         * MODULES.html.sh (Java): Add javaexec.
86996
86997 2005-01-26  Bruno Haible  <bruno@clisp.org>
86998
86999         * m4/javaexec.m4: New file, from GNU gettext.
87000
87001 2005-01-26  Bruno Haible  <bruno@clisp.org>
87002
87003         * lib/javaexec.sh.in: New file, from GNU gettext.
87004         * lib/javaexec.h: New file, from GNU gettext.
87005         * lib/javaexec.c: New file, from GNU gettext.
87006
87007 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87008
87009         * modules/lchown (Depends-on): Remove lchown.h
87010
87011 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87012
87013         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87014         must be defined if the header file was not found, in order
87015         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87016
87017 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87018
87019         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87020         initializers for struct pentry_state.
87021         (__argp_error): Check return value of __asprintf
87022         (__argp_failure): Translate error message
87023
87024         * lib/argp-parse.c: Removed braces around the expansion of N_()
87025
87026 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87027
87028         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87029         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87030         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87031         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87032         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87033         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87034         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87035         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87036         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87037         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87038         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87039         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87040         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87041         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87042         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87043         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87044         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87045         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87046         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87047         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87048         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87049         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87050         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87051         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87052         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87053         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87054         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87055         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87056         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87057         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87058         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87059         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87060         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87061         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87062         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87063         Use an all-permissive copyright notice, recommended by RMS.
87064
87065 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87066
87067         * modules/chdir-long (Depends-on): Remove mempcpy.
87068
87069 2005-01-21  Jim Meyering  <jim@meyering.net>
87070
87071         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87072         same value as for Solaris 9.
87073
87074         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87075         component length.  This included changing the parameter to be
87076         of type `char *' rather than `char const *'.
87077         * lib/chdir-long.h (chdir_long): Update prototype.
87078
87079         * lib/openat.c (fdopendir, fstatat): New functions.
87080         * lib/openat.h: Include headers required for use of DIR and struct
87081         stat.
87082         [AT_SYMLINK_NOFOLLOW]: Define.
87083         (fdopendir, fstatat): Add prototypes.
87084
87085 2005-01-21  Bruno Haible  <bruno@clisp.org>
87086
87087         * modules/classpath: New file.
87088         * MODULES.html.sh (Java): Add classpath.
87089
87090 2005-01-21  Bruno Haible  <bruno@clisp.org>
87091
87092         * lib/classpath.h: New file, from GNU gettext.
87093         * lib/classpath.c: New file, from GNU gettext.
87094
87095 2005-01-20  Simon Josefsson  <jas@extundo.com>
87096
87097         * modules/version-etc-fsf: New file.
87098
87099 2005-01-20  Simon Josefsson  <jas@extundo.com>
87100
87101         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87102         * lib/version-etc.c: Remove version_etc_copyright.
87103         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87104         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87105
87106 2005-01-20  Simon Josefsson  <jas@extundo.com>
87107
87108         * lib/base64.h (isbase64): Add.
87109
87110         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87111         using a unsigned prototype, don't inline.
87112         (base64_decode): Use it.
87113
87114 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87115
87116         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87117         it.
87118
87119 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87120
87121         * lib/save-cwd.c (save_cwd): Remove code to support the case
87122         where fchdir is missing or flaky.
87123
87124 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87125
87126         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87127
87128 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87129
87130         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87131         AC_LIBSOURCES now does this.
87132         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87133         with new ullong_max module.
87134
87135 2005-01-19  Bruno Haible  <bruno@clisp.org>
87136
87137         * modules/sh-quote: New file.
87138         * MODULES.html.sh (Executing programs): Add sh-quote.
87139
87140 2005-01-19  Bruno Haible  <bruno@clisp.org>
87141
87142         * lib/sh-quote.h: New file, from GNU gettext.
87143         * lib/sh-quote.c: New file, from GNU gettext.
87144
87145 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87146
87147         Merge from coreutils.
87148         * m4/ullong_max.m4: New file.
87149         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87150         (gl_MACROS): Assume localeconv exists.
87151
87152 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87153
87154         Merge changes from coreutils, as described below in several
87155         changelogs dated today.
87156
87157         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87158         (O_DIRECTORY): Remove; not needed here, since "." must be
87159         a directory.  All uses removed.
87160         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87161         universal on Suns, and we also need to test for IRIX.
87162         Revamp code to use 'if' rather than '#if'.
87163         Avoid unnecessary comparison of cwd->desc to 0.
87164
87165         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87166         for known valid error numbers rather than observed invalid ones.
87167
87168 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87169
87170         * modules/ullong_max: New file.
87171
87172         * modules/chdir-long, modules/openat: New files.
87173         * modules/save-cwd (Depends-on): Depend on chdir-long.
87174         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87175
87176 2005-01-18  Jim Meyering  <jim@meyering.net>
87177
87178         Merge from coreutils.
87179         * m4/chdir-long.m4, m4/openat.m4: New files.
87180         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87181         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87182         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87183         is sane and DOES follow symlinks.  Besides, testing 20 different
87184         systems found no broken chown implementations.
87185         Prompted by a change in rsync's copy of this macro.
87186         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87187
87188         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87189
87190         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87191         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87192         NULL-means-set-to-current-time semantics.
87193         Remove temporary file immediately, rather than waiting
87194         for configure's at-exit trap code to do it.
87195
87196 2005-01-18  Jim Meyering  <jim@meyering.net>
87197
87198         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87199
87200         * lib/utimens.c (futimens): Account for the fact that futimes
87201         can also fail with errno == ENOSYS or errno == ENOENT.
87202         Patch from Dmitry V. Levin.
87203
87204         Change the name of the robust chdir function from chdir to chdir_long.
87205         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87206         (restore_cwd): Use chdir_long, not chdir.
87207         * lib/chdir-long.c: Renamed from chdir.c.
87208         * lib/chdir-long.h: Renamed from chdir.h.
87209         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87210         Hurd.
87211
87212 2005-01-18  Bruno Haible  <bruno@clisp.org>
87213
87214         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87215         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87216         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87217         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87218         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87219         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87220         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87221         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87222         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87223         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87224         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87225         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87226         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87227         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87228         Use an all-permissive copyright notice, recommended by RMS.
87229
87230 2005-01-18  Bob Proulx  <bob@proulx.com>
87231
87232         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87233         simplify offsetof() macro construct to avoid compile failure with
87234         native HP-UX 11.0 ANSI C compiler.
87235
87236 2005-01-17  Bruno Haible  <bruno@clisp.org>
87237
87238         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87239         redundant because stpncpy.m4 takes care of it.
87240
87241 2005-01-17  Bruno Haible  <bruno@clisp.org>
87242
87243         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87244
87245 2005-01-17  Bruno Haible  <bruno@clisp.org>
87246
87247         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87248         used.
87249
87250 2005-01-17  Bruno Haible  <bruno@clisp.org>
87251
87252         * lib/fwriteerror.h (fwriteerror): Change specification to include
87253         fclose.
87254         * lib/fwriteerror.c: Include <stdbool.h>.
87255         (fwriteerror): At the end, close the file stream. Record whether
87256         stdout was already closed.
87257
87258 2005-01-17  Bruno Haible  <bruno@clisp.org>
87259
87260         * lib/execute.c (environ): Declare if needed.
87261         * lib/pipe.c (environ): Likewise.
87262         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87263
87264 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87265
87266         * modules/argp: Depend on vsnprintf
87267
87268 2005-01-10  Jim Meyering  <jim@meyering.net>
87269
87270         * modules/closeout (Depends-on): Add atexit.
87271
87272 2005-01-06  Bruno Haible  <bruno@clisp.org>
87273
87274         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87275
87276 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87277
87278         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87279         definitions to be after all include files, to avoid collisions.
87280         Problem reported by Bob Proulx.
87281
87282 2005-01-04  Jim Meyering  <jim@meyering.net>
87283
87284         Changes imported from coreutils.
87285         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87286         as the mkstemp template, use a temporary directory and an
87287         8.3-friendly template to avoid trouble on systems like DJGPP.
87288         Reported by Juan M. Guerrero via Stepan Kasal.
87289         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87290         close. Remove the temporary directory right away, rather than waiting
87291         for configure's at-exit trap code to do it.
87292         Suggestion from Stepan Kasal.
87293
87294 2005-01-01  Simon Josefsson  <jas@extundo.com>
87295
87296         * gnulib-tool: Print #include directives when --import'ing.
87297
87298 2004-12-28  Simon Josefsson  <jas@extundo.com>
87299
87300         * tests/test-base64.c: Include required header files.  Remove
87301         unused variables.
87302
87303 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87304
87305         * modules/error (Depends-on): Remove gettext.
87306
87307 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87308
87309         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87310         not needed.  This removes a dependency on the gettext module.
87311         [defined _LIBC]: Do not include <libintl.h>; not needed.
87312
87313 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87314
87315         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87316         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87317
87318 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87319
87320         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87321         HAVE_DECL_STRTOLD.
87322
87323 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87324
87325         * modules/getdate (Depends-on): Remove alloca-opt.
87326
87327 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87328
87329         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87330
87331 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87332
87333         * lib/argp-parse.c: Include <stddef.h>.
87334         (alignof, alignto): New macros.
87335         (parser_init): Don't assume that void * is aligned sufficiently
87336         for struct option.
87337
87338         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87339         need to extend the stack.
87340         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87341         large.
87342
87343 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87344
87345         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87346
87347 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87348
87349         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87350         (2004-10-24) change.  Apparently this was a false alarm.
87351
87352         * modules/getdate: Depend on alloca-opt, not alloca.
87353
87354 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87355
87356         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87357         Remove now-obsolete comment about AIX.
87358         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87359         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87360         (YYMAXDEPTH): New macro.
87361
87362 2004-12-18  Simon Josefsson  <jas@extundo.com>
87363
87364         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87365
87366 2004-12-18  Bruno Haible  <bruno@clisp.org>
87367
87368         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87369
87370 2004-12-18  Bruno Haible  <bruno@clisp.org>
87371
87372         * lib/fatal-signal.c (fatal_signals): Make non-const.
87373         (init_fatal_signals): New function.
87374         (uninstall_handlers, install_handlers): Ignore signals that were set to
87375         SIG_IGN.
87376         (at_fatal_signal): Call init_fatal_signals.
87377         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87378         SIG_IGN.
87379         Reported by Paul Eggert.
87380
87381 2004-12-18  Bruno Haible  <bruno@clisp.org>
87382
87383         * doc/alloca.texi: New file.
87384         * doc/alloca-opt.texi: New file.
87385
87386 2004-12-17  Jim Meyering  <jim@meyering.net>
87387
87388         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87389         Otherwise, install-sh could exit with improper exit status when
87390         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87391
87392 2004-12-16  Simon Josefsson  <jas@extundo.com>
87393
87394         * tests/test-base64.c: Add license.
87395
87396 2004-12-15  Stepan Kasal  <address@hidden>
87397
87398         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87399
87400 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87401
87402         * modules/getcwd (Files): Add m4/d-ino.m4.
87403         Suggested by Mark D. Baushke.
87404
87405 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87406
87407         * lib/getdate.y (textint): New member "negative".
87408         (time_zone_hhmm): New function.
87409         Expect 14 shift-reduce conflicts, not 13.
87410         (o_colon_minutes): New rule.
87411         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87412         (yylex): Set the "negative" member of signed numbers.
87413
87414 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87415
87416         * doc/getdate.texi (Time of day items, Time zone items):
87417         Describe new formats +00:00, UTC+00:00.
87418
87419 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87420
87421         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87422         spurious "-l"s.  Problem reported by Stepan Kasal.
87423
87424 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87425
87426         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87427         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87428
87429 2004-12-04  Simon Josefsson  <jas@extundo.com>
87430
87431         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87432         Vandoorselaere <yoann@prelude-ids.org>.
87433
87434 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87435
87436         Changes imported from coreutils.
87437         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87438         exist.
87439         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87440
87441 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87442
87443         Changes imported from coreutils.
87444         * lib/hard-locale.c: Assume <locale.h> exists.
87445         Include "strdup.h".
87446         (GLIBC_VERSION): New macro.
87447         (hard_locale): Assume setlocale exists.
87448         Rewrite to avoid #ifdef.
87449         Use strdup rather than malloc + strcpy.
87450         * lib/human.c: Assume <locale.h> exists.
87451         (human_readable): Assume localeconv exists.
87452
87453 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87454
87455         * modules/hard-locale (Depends-on): Add strdup.
87456
87457 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87458
87459         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87460         convert T2, not T.  (Imported from libc.)
87461
87462 2004-11-30  Simon Josefsson  <jas@extundo.com>
87463
87464         * modules/restrict (License): Change to LGPL.
87465
87466 2004-11-30  Simon Josefsson  <jas@extundo.com>
87467
87468         * m4/restrict.m4: Add copyright and copying conditions.
87469
87470 2004-11-30  Simon Josefsson  <jas@extundo.com>
87471
87472         * m4/base64.m4: New file.
87473
87474 2004-11-30  Simon Josefsson  <jas@extundo.com>
87475
87476         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87477         base64.
87478
87479         * tests/test-base64.c: New file.
87480
87481         * modules/base64: New file.
87482
87483 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87484
87485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87486         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87487
87488         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87489
87490 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87491
87492         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87493         (__getcwd.c): Don't restore errno; glibc doesn't.
87494         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87495         first, falling back to our code only if its results look suspicious.
87496         Ensure that the resulting buffer is only as large as necessary.
87497
87498         * lib/readutmp.c: Include readutmp.h first.
87499         Include <errno.h>, since readutmp.h no longer does that.
87500         * lib/readutmp.h: Don't include <errno.h>,
87501         <sys/param.h>, <time.h>; not needed to establish interface.
87502         (errno): Remove decl.
87503         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87504         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87505         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87506
87507 2004-11-28  Simon Josefsson  <jas@extundo.com>
87508
87509         * lib/base64.h, base64.c: New file.
87510
87511 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87512
87513         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87514
87515 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87516
87517         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87518         (Depends-on): Remove pathmax, same.  Add mempcpy.
87519         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87520         (Makefile.am): Append getcwd.h to lib_SOURCES.
87521         (Include): Add getcwd.h.
87522         (Maintainer): Change from Jim Meyering to "all, glibc",
87523         since getdate now uses intended-for-glibc code.
87524         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87525         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87526
87527 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87528
87529         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87530         HP's ANSI C compiler.
87531         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87532         Declaring int functions causes warnings on some modern systems and
87533         shouldn't be needed to compile on ancient ones.
87534         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87535         defined.
87536
87537         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87538         with the following changes.
87539         (__set_errno): Parenthesize properly.
87540         Include <stdbool.h>.
87541         (MIN, MAX, MATCHING_INO): New macros.
87542         (__getcwd): Define with prototype, not K&R form.
87543         Use heuristics to allocate default buffer on stack if possible.
87544         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87545         behavior, and to avoid the PATH_MAX limit when computing
87546         ../../../../...
87547         Use MATCHING_INO to compare inode number to file.
87548         Check for arithmetic overflow in size calculations.
87549         Fix bug in reallocation of dot array that caused getcwd to fail
87550         on directories nested deeper than 75.
87551         Be more careful about saving errno on error.
87552         Do not use realloc; use only free+malloc, as this is a bit
87553         more flexible and avoids a needless copy operation.
87554         Do not inspect st_dev and st_ino for symbolic links; POSIX
87555         doesn't specify the latter.
87556         Check for closedir errors.
87557         Avoid needless casts.
87558         Use "#ifdef weak_alias" around weak_alias, to be like other
87559         glibc code.
87560         The following changes to getcwd.c have effect only when used in
87561         gnulib; they have no effect inside glibc proper.
87562         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87563         as alloca isn't used.
87564         (alloca, __alloca): Likewise.
87565         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87566         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87567         unconditionally, as gnulib assumes C89 or better.
87568         Do not include <sys/param.h>.
87569         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87570         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87571         better.
87572         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87573         Include <dirent.h> in a way that is compatible with modern Autoconf.
87574         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87575         New macros, if not already defined.
87576         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87577         Use "_LIBC", not "defined _LIBC", for consistency.
87578         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87579         a mempcpy module.
87580         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87581         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87582         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87583         credit only to Jim Meyering and adjust the copyright dates.
87584         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87585         <stdlib.h>, <unistd.h>, "pathmax.h".
87586         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87587         (INITIAL_BUFFER_SIZE): Remove.
87588         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87589
87590 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87591
87592         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87593         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87594         Use the _ONCE methods, for efficiency.
87595         Check for fcntl.h.  In test program, include <errno.h>
87596         and <fcntl.h> if available.  Remove old K&R cruft from
87597         test program.  Check for common errors in GNU/Linux,
87598         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87599         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87600         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87601         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87602         name accordingly.
87603         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87604         accommodate new getcwd.c.
87605         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87606         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87607         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87608         that's all we need now.
87609
87610 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87611
87612         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87613         argp-parse.c depends on getopt internals, that means we should
87614         always use our getopt, to be on the safe side.
87615         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87616         order not to spoil the result of an eventual previous invocation
87617         of gl_GETOPT_SUBSTITUTE.
87618
87619 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87620
87621         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87622         redefinition warnings. To avoid them, include the defines
87623         in `#if !defined __need_getopt ... #endif'. The only place
87624         where __getopt_argv_const is used is in definitions
87625         of getopt_long and getopt_long_only below, which are as well
87626         protected by `#ifndef __need_getopt'.
87627         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87628         __need_getopt after including <stdio.h> and <unistd.h> These
87629         headers might have defined it.
87630
87631 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87632
87633         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87634
87635 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87636
87637         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87638         (futimens): New function, which uses futimes if available.
87639         (futimens, utimens): Support timespec==NULL, with same semantics
87640         as utime and utimens.
87641         * lib/utimens.h (futimens): New decl.
87642
87643 2004-11-23  Jim Meyering  <jim@meyering.net>
87644
87645         * lib/getopt_.h: Remove trailing blanks.
87646
87647 2004-11-23  Jim Meyering  <jim@meyering.net>
87648
87649         * lib/__fpending.c: Add comment.
87650
87651 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87652
87653         * modules/canonicalize (Depends-on): Add xreadlink.
87654         Problem reported by James Youngman.
87655
87656 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87657
87658         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87659         New macros.
87660         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87661         optopt): Use them instead of invoking ## directly; otherwise, the
87662         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87663
87664 2004-11-19  Bruno Haible  <bruno@clisp.org>
87665
87666         * lib/strtok_r.c: Move comments from here...
87667         * lib/strtok_r.h: ... to here.
87668
87669 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87670
87671         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87672         implementations that mishandle size_t overflow.
87673
87674 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87675
87676         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87677         might fail.  Problem reported by Yoann Vandoorselaere.
87678         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87679         implementations that mishandle size_t overflow.
87680
87681 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87682
87683         * modules/canon-host (Depends-on): Add strdup.
87684
87685 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87686
87687         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87688
87689 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87690
87691         * lib/canon-host.c: Include "strdup.h".
87692         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87693         Use strdup instead of malloc/strcpy to duplicate strings.
87694
87695         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87696         (human_space_before_unit): New constant.
87697         * lib/human.c (human_readable): Support it.
87698
87699         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87700         (xgetcwd): Set errno correctly when failing.
87701         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87702         the failure is actually due to a PATH_MAX problem.
87703
87704         Further getopt changes to make it more likely that glibc will
87705         buy the changes back.
87706         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87707         (getopt): Use it, so to preserve glibc semantic
87708         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87709         when compiling for libc.
87710         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87711         (getopt_long, getopt_long_only): Use it.
87712
87713         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87714         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87715         (getopt): Argv is now char * const *, as per standard.
87716         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87717         not char *__getopt_argv_const *.
87718         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87719         _getopt_long_only_r): Likewise.
87720         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87721         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87722         _getopt_long_r, _getopt_long_only_r): Likewise.
87723         * lib/getopt_.h (__getopt_argv_const): Remove.
87724         (getopt): Argv is now char * const *, as per standard.
87725
87726         * lib/getdate.y (tORDINAL): New token.
87727         (day, relunit): Allow it for relative times.
87728         (relative_time_table): Use tORDINAL for ordinals.
87729
87730 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87731
87732         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87733         Document that "second" isn't allowed as an ordinal number.
87734
87735 2004-11-16  Jim Meyering  <jim@meyering.net>
87736
87737         * modules/closeout (Depends-on): Add fpending.
87738
87739 2004-11-15  Jim Meyering  <jim@meyering.net>
87740
87741         * lib/closeout.c: Include "__fpending.h" once again.
87742         Include <stdbool.h>.
87743         (close_stdout): Don't fail just because stdout was closed initially,
87744         since some programs don't write to stdout in the normal course of
87745         operation (other than --version and --help), and we don't want this
87746         function to make e.g. `touch file >&-' fail.
87747         But do fail if it was closed and someone has tried to write to it.
87748         E.g., `printf foo >&-' must fail.
87749
87750 2004-11-13  Jim Meyering  <jim@meyering.net>
87751
87752         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87753
87754 2004-11-12  Simon Josefsson  <jas@extundo.com>
87755
87756         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87757         small doc fix is still pending.
87758
87759 2004-11-11  Simon Josefsson  <jas@extundo.com>
87760
87761         * modules/strtok_r: New file.
87762
87763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87764         strtok_r.
87765
87766 2004-11-11  Simon Josefsson  <jas@extundo.com>
87767
87768         * m4/strtok_r.m4: New file.
87769
87770         * m4/getopt.m4: Replace opterr.
87771
87772 2004-11-11  Simon Josefsson  <jas@extundo.com>
87773
87774         * lib/strtok_r.h, strtok_r.c: New file.
87775
87776 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87777
87778         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87779         of replacing opterr, getopt, etc.  This should handle the
87780         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87781
87782 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87785         we can stop lying to compilers about the constness of argv when we
87786         are compiled outside glibc.
87787         (getopt, getopt_long, getopt_long_only): Use it.
87788         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87789         _getopt_internal, getopt): Likewise.
87790         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87791         _getopt_long_only_r): Likewise.
87792         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87793         _getopt_long_r, _getopt_long_only_r): Likewise.
87794
87795         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87796         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87797         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87798         the other external symbols.
87799         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87800         declaration, since the above renaming now works around collisions.
87801
87802 2004-11-11  Jim Meyering  <jim@meyering.net>
87803
87804         * lib/linebreak.c: Remove trailing blanks.
87805         * lib/alloca_.h: Likewise.
87806         * lib/acosl.c: Likewise.
87807         * lib/euidaccess.c: Likewise.
87808         * lib/allocsa.h: Likewise.
87809
87810 2004-11-10  Simon Josefsson  <jas@extundo.com>
87811
87812         * m4/getaddrinfo.m4: New file.
87813
87814 2004-11-10  Simon Josefsson  <jas@extundo.com>
87815
87816         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87817
87818 2004-11-10  Simon Josefsson  <jas@extundo.com>
87819
87820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87821         getaddrinfo.
87822
87823         * modules/getaddrinfo: New file.
87824
87825 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87826
87827         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87828
87829 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87830
87831         * lib/mktime.c (SHR): New macro, which is a portable
87832         substitute for >> that should work even on Crays.
87833         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87834         Problem reported by Mark D. Baushke in
87835         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87836         * lib/getdate.y (SHR): Likewise.
87837         (tm_diff): Use it.
87838         * lib/strftime.c (SHR): Likewise.
87839         (tm_diff): Use it.
87840         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87841         quote_these_too, so that right shifts are well defined.  All uses
87842         changed.
87843
87844 2004-11-10  Jim Meyering  <jim@meyering.net>
87845
87846         Ensure that no close failure goes unreported.
87847         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87848         return early when it seems there's nothing to flush.
87849         Don't include __fpending.h.
87850
87851 2004-11-10  Jim Meyering  <jim@meyering.net>
87852
87853         * modules/closeout (Depends-on): Remove fpending.
87854
87855 2004-11-10  Jim Meyering  <jim@meyering.net>
87856
87857         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87858
87859 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87860
87861         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87862         gl_FUNC_STRFTIME.
87863         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87864         and AC_REQUIRE when possible, to avoid duplicate checks.
87865         Check for <wchar.h>.
87866
87867 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87868
87869         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87870
87871 2004-11-09  Bruno Haible  <bruno@clisp.org>
87872
87873         * m4/sockpfaf.m4: New file.
87874
87875 2004-11-05  Bruno Haible  <bruno@clisp.org>
87876
87877         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87878         Reported by Mark D. Baushke <mdb@cvshome.org>.
87879
87880 2004-11-04  Bruno Haible  <bruno@clisp.org>
87881
87882         2004-09-11  Bruno Haible  <bruno@clisp.org>
87883                 * allocsa.valgrind: New file.
87884         2004-02-06  Bruno Haible  <bruno@clisp.org>
87885                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87886                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87887                 Reported by Christopher Seip <chris.seip@hp.com>.
87888
87889 2004-11-04  Bruno Haible  <bruno@clisp.org>
87890
87891         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87892         (Makefile.am): Distribute it.
87893
87894 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87895
87896         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87897         with errno == ERANGE if the buffer is too small.
87898         Problem reported by Mark D. Baushke.
87899
87900 2004-11-03  Albert Chin  <china@thewrittenword.com>
87901             Paul Eggert  <eggert@cs.ucla.edu>
87902
87903         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87904         equivalent, substitute $ac_type for equivalent type rather than
87905         blindly using uint32_t *always* which won't work if uint32_t is not
87906         available.  Define _UINT32_T to work around typedef of uint32_t if
87907         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87908         2.5.1.
87909
87910 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87911
87912         * m4/jm-macros.m4: Sync from coreutils.
87913         (gl_MACROS): Check for mbrlen, for pathchk.
87914         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87915
87916 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87917
87918         * lib/xreadlink.c (MAXSIZE): New macro.
87919         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87920         size does not exceed MAXSIZE.  Avoid cast.
87921         As suggested by Mark D. Baushke in
87922         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87923         if readlink fails with buffer size just under MAXSIZE, try again
87924         with MAXSIZE.
87925
87926 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87927
87928         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87929
87930 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87931         and  Paul Eggert  <eggert@cs.ucla.edu>
87932
87933         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87934         (get_date): Overparenthesize to avoid GCC warning.
87935
87936 2004-11-02  Bruno Haible  <bruno@clisp.org>
87937
87938         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87939         returns void.
87940
87941 2004-11-02  Bruno Haible  <bruno@clisp.org>
87942
87943         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87944         function returns void.
87945
87946 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87947
87948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87949         fflush_unlocked, flockfile, funlockfile, funlockfile,
87950         fputs_unlocked, putc_unlocked.
87951
87952 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87953
87954         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87955         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87956         already declared.
87957
87958 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87959
87960         * modules/getdate (Files): Add doc/getdate.texi.
87961         (Depends-on): Add setenv, xalloc.
87962
87963 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87964
87965         * lib/getdate.y: Add support for TZ="foo" within a date string.
87966         Fix some bugs near time_t boundaries.  Reject dates with
87967         out-of-range components, e.g., "Sept 31".
87968         Include <stdlib.h>, "setenv.h", "xalloc.h".
87969         (ISDIGIT_LOCALE): Remove; unused.
87970         Note that the TZ and time functions used here are not reentrant.
87971         (mktime_ok, get_tz): New functions.
87972         (TZBUFSIZE): New constant.
87973         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87974         This requires that we sometimes generate our own TZ="XXX..." setting.
87975
87976 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87977
87978         * doc/getdate.texi: New file, from coreutils with modifications for
87979         the new TZ parsing.
87980
87981 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87982
87983         * lib/mktime.c (not_equal_tm): Remove redundant check.
87984
87985 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87986
87987         * modules/regex (lib_SOURCES): Add regex.c.
87988         Reported by James Youngman in
87989         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87990
87991 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87992
87993         * lib/getdate.y: Use Bison 1.875 features, and some minor
87994         code cleanups.  This change does not affect semantics.
87995         Don't include <stdlib.h>; no longer needed.
87996         Don't include unlocked-io.h; only the "#if TEST" code uses
87997         stdio, and performance isn't crucial there.
87998         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87999         Bison 1.875 features as described below.
88000         All uses of "PC." replaced by "pc->".
88001         (YYSTYPE): Add a forward declaration.
88002         (yylex, yyerror): Use full prototypes in forward decls.
88003         Use "%pure-parser" rather than obsolescent "%pure_parser".
88004         Use %parse-param and %lex-param instead of obsolescent
88005         YYPARSE_PARAM and YYLEX_PARAM.
88006         (meridian_table, month_and_day_table, time_units_table,
88007         relative_time_table, time_zone_table, military_table,
88008         lookup_zone, lookup_word, get_date):
88009         Use NULL instead of 0 where appropriate.
88010         (to_hour): Avoid abort (), to avoid a dependency on
88011         stdlib.h.
88012         (yyerror, yylex): Now accepts parser_control * arg.
88013         (main) [TEST]: Use '\0' rather than 0 for char.
88014
88015 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88016
88017         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88018
88019 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88020
88021         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88022         It's now the caller's responsibility to handle the case where
88023         !HAVE_GETPAGESIZE && !defined getpagesize.
88024
88025         * lib/mktime.c (leapyear): Arg is long int, not int.
88026
88027 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88028
88029         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88030
88031 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88032
88033         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88034         missing.  Problem reported by James Youngman.
88035
88036 2004-10-16  Simon Josefsson  <jas@extundo.com>
88037
88038         * gnulib-tool: Fix comments.  Fix parse problem.
88039         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88040
88041 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88042
88043         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88044         implementation of getopt_long.  Problem reported by Alexander Taler in:
88045         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88046
88047 2004-10-15  Bruno Haible  <bruno@clisp.org>
88048
88049         * gnulib-tool: Untabify. Initialize supplied_libname.
88050         (func_usage): More homogenous output.
88051         (func_modules_transitive_closure, func_modules_to_filelist,
88052         func_emit_lib_Makefile_am): New functions.
88053         (func_import): New function, extracted from big case statement. Use
88054         func_get_license, func_modules_transitive_closure,
88055         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88056         opt_lgpl. Don't use test -a, as it's not portable.
88057         (func_create_testdir): Use func_modules_transitive_closure,
88058         func_modules_to_filelist, func_emit_lib_Makefile_am.
88059
88060 2004-10-15  Bruno Haible  <bruno@clisp.org>
88061
88062         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88063
88064 2004-10-15  Bruno Haible  <bruno@clisp.org>
88065
88066         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88067         the portions belonging to each module.
88068         Suggested by Derek Robert Price <derek@ximbiot.com>.
88069
88070 2004-10-12  Simon Josefsson  <jas@extundo.com>
88071
88072         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88073         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88074         to real functions.
88075
88076 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88077
88078         * modules/vsnprintf: New file.
88079
88080 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88081
88082         * m4/vsnprintf.m4: New file.
88083
88084 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88085
88086         * lib/vsnprintf.h: New file.
88087         * lib/vsnprintf.c: New file.
88088
88089 2004-10-11  Bruno Haible  <bruno@clisp.org>
88090
88091         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88092         vsnprintf.
88093
88094 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88095
88096         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88097
88098 2004-10-07  Bruno Haible  <bruno@clisp.org>
88099
88100         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88101         fits into the provided buffer.
88102
88103 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88104
88105         * lib/diacrit.c, diacrit.h: Add GPL notice.
88106
88107         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88108         notice.
88109         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88110         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88111         This avoids a potential constant-folding bug.
88112
88113 2004-10-05  Bruno Haible  <bruno@clisp.org>
88114
88115         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88116         for the declaration of strsep.
88117
88118 2004-10-05  Bruno Haible  <bruno@clisp.org>
88119
88120         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88121
88122 2004-10-04  Simon Josefsson  <jas@extundo.com>
88123
88124         * modules/memmem: New file.
88125         * tests/test-memmem.c: New file.
88126         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88127
88128 2004-10-04  Simon Josefsson  <jas@extundo.com>
88129
88130         * m4/memmem.m4: New file.
88131
88132 2004-10-04  Simon Josefsson  <jas@extundo.com>
88133
88134         * lib/memmem.h: New file.
88135         * lib/memmem.c: New file, taken from glibc.
88136
88137 2004-10-04  Simon Josefsson  <jas@extundo.com>
88138
88139         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88140         '#ifdef USE_UNLOCKED_IO'.
88141
88142 2004-10-04  Simon Josefsson  <jas@extundo.com>
88143
88144         * config/srclist.txt: Add memmem from glibc.
88145
88146 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88147
88148         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88149
88150         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88151         modules/exclude, modules/getdate, modules/getline,
88152         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88153         modules/getusershell, modules/linebuffer, modules/md5,
88154         modules/mountlist, modules/posixtm, modules/readtokens,
88155         modules/readutmp, modules/regex, modules/sha1,
88156         modules/version-etc, modules/yesno:
88157         Remove dependency on unlocked-io.
88158
88159 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88160
88161         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88162
88163         * m4/unlocked-io.m4: Add copyright notice.
88164         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88165
88166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88167
88168         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88169         * lib/xmalloc.c (xmemdup): Likewise.
88170         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88171         XFREE): Remove these long-obsolescent macros.
88172         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88173         * lib/xstrdup.c: Remove.
88174
88175         * lib/regex.c (re_comp): Cast gettext return value to char *,
88176         Problem reported by Martin Neitzel via Mark D. Baushke.
88177
88178 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88179
88180         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88181         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88182         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88183         regex.c, sha1.c, version-etc.c, yesno.c:
88184         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88185         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88186         the includer's responsibility.
88187
88188         Sync from coreutils.
88189
88190         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88191         points to the start of a string, as the C Standard says the
88192         resulting behavior is undefined.
88193
88194         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88195         simple -> simple_backups, numbered_existing ->
88196         numbered_existing_backups, numbered -> numbered_backups
88197         to avoid shadowing problems.  All uses changed.
88198         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88199         * lib/backupfile.c (check_extension, numbered_backup):
88200         Rename locals to avoid shadowing 'basename'.
88201         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88202         once.
88203
88204         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88205         * lib/.cvsignore: Add getopt.h.
88206
88207 2004-10-04  Bruno Haible  <bruno@clisp.org>
88208
88209         * modules/README: New file.
88210         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88211         not a module.
88212
88213 2004-10-02  Jim Meyering  <jim@meyering.net>
88214
88215         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88216
88217 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88218
88219         * modules/strsep: New file.
88220
88221 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88222
88223         * m4/strsep.m4: New file.
88224
88225 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88226
88227         * lib/strsep.h: New file.
88228         * lib/strsep.c: New file.
88229
88230 2004-10-01  Simon Josefsson  <jas@extundo.com>
88231
88232         * lib/snprintf.c (snprintf): Handle size==0.
88233
88234 2004-10-01  Simon Josefsson  <jas@extundo.com>
88235             Bruno Haible  <bruno@clisp.org>
88236
88237         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88238         (snprintf): Declare 'args'.
88239
88240 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88241
88242         * lib/snprintf.c: Remove comments as to why each header is needed.
88243
88244 2004-10-01  Bruno Haible  <bruno@clisp.org>
88245
88246         * MODULES.html.sh: Add strsep.
88247
88248 2004-09-30  Simon Josefsson  <jas@extundo.com>
88249
88250         * modules/snprintf: New file.
88251
88252 2004-09-30  Simon Josefsson  <jas@extundo.com>
88253
88254         * m4/snprintf.m4: New file.
88255
88256 2004-09-30  Simon Josefsson  <jas@extundo.com>
88257
88258         * lib/snprintf.h, lib/snprintf.c: New files.
88259
88260 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88261
88262         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88263         (hol_entry_help): Never translate an empty string.
88264         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88265         * lib/argp.h (OPTION_NO_TRANS): New option.
88266
88267 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88268
88269         * modules/argp (Maintainer): Replace Simon Josefsson
88270         by Sergey Poznyakoff.
88271
88272 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88273
88274         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88275         changes merged back into glibc.
88276
88277 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88278
88279         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88280
88281 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88282
88283         * lib/xvasprintf.c: Include xalloc.h.
88284         (xvasprintf): Use xalloc_die, not xmalloc_die.
88285
88286 2004-09-29  Bruno Haible  <bruno@clisp.org>
88287
88288         * modules/alloca-opt: New file, derived from modules/alloca.
88289         * modules/allocsa: Depend on alloca-opt instead of alloca.
88290         * modules/setenv: Likewise.
88291         * modules/vasnprintf: Likewise.
88292         * MODULES.html.sh: Add alloca-opt.
88293
88294 2004-09-28  Simon Josefsson  <jas@extundo.com>
88295
88296         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88297         LGPL, and to replace license template from GPL to LGPL.
88298
88299 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88300
88301         * modules/dummy: Change license to LGPL.
88302
88303 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88304
88305         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88306
88307 2004-09-24  Simon Josefsson  <jas@extundo.com>
88308
88309         * modules/minmax (License): Change from GPL to LGPL.
88310
88311 2004-09-23  Simon Josefsson  <jas@extundo.com>
88312
88313         * gnulib-tool (--import): Typo.
88314
88315 2004-09-23  Simon Josefsson  <jas@extundo.com>
88316
88317         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88318
88319 2004-09-22  Bruno Haible  <bruno@clisp.org>
88320
88321         * modules/*: Add 'License' field.
88322         * gnulib-tool: Accept --extract-license option.
88323         (func_get_license): New function.
88324
88325 2004-09-21  Bruno Haible  <bruno@clisp.org>
88326
88327         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88328         Reported by Simon Josefsson.
88329
88330 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88331
88332         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88333         gl_AC_TYPE_LONG_LONG.
88334
88335 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88336
88337         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88338
88339 2004-09-18  Simon Josefsson  <jas@extundo.com>
88340         and  Paul Eggert  <eggert@cs.ucla.edu>
88341
88342         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88343         calls with autoreconf.  Define GL_LIB.
88344
88345 2004-09-14  Karl Berry  <karl@gnu.org>
88346
88347         * config/srclist.txt: unsync setenv.c, sigh.
88348
88349 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88350
88351         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88352         Problem reported by Bruno Haible in:
88353         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88354
88355 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88356
88357         * config/srclist.txt: Comment out argp-pvh.c.
88358
88359 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88360
88361         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88362         in case some system header has #define'd it.  Problem reported by
88363         Soeren D. Schulze in
88364         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88365
88366 2004-09-09  Karl Berry  <karl@gnu.org>
88367
88368         * regex.[ch]: delete from the root.  These were supposed to be
88369                 synced with emacs cvs, but this has not happened for about
88370                 a year, and anyway nothing else uses emacs regex.[ch].
88371                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88372                 lib/regex[.ch] is untouched.
88373
88374 2004-09-09  Bruno Haible  <bruno@clisp.org>
88375
88376         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88377
88378 2004-09-09  Bruno Haible  <bruno@clisp.org>
88379
88380         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88381         modifications.
88382         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88383
88384 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88385
88386         * modules/xvasprintf: New file.
88387         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88388
88389 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88390
88391         * lib/xvasprintf.h: New file.
88392         * lib/xvasprintf.c: New file.
88393         * lib/xasprintf.c: New file.
88394
88395 2004-09-08  Bruno Haible  <bruno@clisp.org>
88396
88397         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88398
88399 2004-09-08  Bruno Haible  <bruno@clisp.org>
88400
88401         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88402         length is > INT_MAX.
88403         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88404         more.
88405
88406 2004-09-08  Bruno Haible  <bruno@clisp.org>
88407
88408         * lib/stdint_.h: New file, taken from GNU clisp.
88409
88410 2004-09-08  Bruno Haible  <bruno@clisp.org>
88411             Oskar Liljeblad  <oskar@osk.mine.nu>
88412
88413         * modules/stdint: New file.
88414         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88415
88416 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88417
88418         Import from coreutils.
88419         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88420         strings on unbounded length.  alloca's performance benefits aren't
88421         that important here.
88422         (V_STRDUP): Remove.
88423         (parse_with_separator): New function, with most of the internals
88424         of the old parse_user_spec.  Allow user to omit both user and group,
88425         for compatibility with FreeBSD.
88426         Clone only the user name, not the entire spec.
88427         Do not set *uid, *gid unless entirely successful.
88428         Avoid memory leak in some failing cases.
88429         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88430         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88431         (parse_user_spec): Rewrite to use parse_with_separator.
88432
88433 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88434
88435         * modules/userspec: Don't depend on alloca.
88436
88437 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88438
88439         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88440
88441 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88442
88443         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88444         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88445         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88446
88447 2004-08-16  Simon Josefsson  <jas@extundo.com>
88448
88449         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88450         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88451         Add --dry-run for --import.
88452         Let user provided command line parameters override configure.ac
88453         settings.
88454
88455 2004-08-12  Simon Josefsson  <jas@extundo.com>
88456
88457         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88458         as discussed with Paul Eggert in threads rooted at
88459         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88460         and
88461         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88462         Before, the test was empty, and relied on ELIDE_CODE in source
88463         code.)
88464         (gl_PREREQ_GETOPT): New macro.
88465         (gl_GETOPT): Use them.
88466
88467 2004-08-12  Simon Josefsson  <jas@extundo.com>
88468
88469         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88470         * lib/getopt_.h: Renamed from getopt.h.
88471
88472 2004-08-12  Simon Josefsson  <jas@extundo.com>
88473
88474         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88475         Change default library name from libfoo to libgnu.
88476         Now, if you have a configure.ac that says:
88477                 gl_SOURCE_BASE(gl)
88478                 gl_M4_BASE(gl/m4)
88479                 gl_MODULES(error getopt etcetera)
88480                 gl_INIT
88481         you can import all you need by running:
88482                 ../gnulib/gnulib-tool --import
88483
88484         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88485         (Makefile.am): Rewrite, use logic from argz.
88486         (Include): Use <getopt.h> instead of "getopt.h".
88487
88488 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88489
88490         * modules/argp (Files): Add m4/unlocked-io.m4.
88491         (Depends-on): Add extensions.
88492
88493 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88494
88495         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88496         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88497         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88498         Check for program_invocation_name, program_invocation_short_name,
88499         flockfile, funlockfile, features.h, _getopt_long_only_r.
88500
88501 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88502
88503         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88504         its complicated substitute.
88505         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88506         and program_invocation_name.
88507         (__argp_basename) [!_LIBC]: Remove; the only use was
88508         replaced by its body.
88509         (__argp_short_program_name): Change condition from
88510         !defined __argp_short_program_name to
88511         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88512         to match argp-namefrob.h.
88513         (__argp_failure): Don't assume strerror_r returns char *.
88514         * lib/argp-parse.c (N_): Define unconditionally.
88515         (argp_default_options): Fill out initializers with 0 to avoid
88516         gcc warnings.
88517
88518 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88519
88520         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88521         getopt1.c.
88522
88523 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88524
88525         Merge from coreutils.
88526
88527         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88528
88529         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88530         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88531
88532 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88533
88534         Merge from coreutils.
88535
88536         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88537         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88538         for Reliant Unix 5.43.
88539
88540         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88541         (union fooround): Use uintmax_t, not long int.
88542         The rest is a merge from libc:
88543         [defined _LIBC]: Include <shlib-compat.h>.
88544         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88545
88546         * lib/settime.c (settime): Recode to avoid warning with
88547         Sun Forte C 6U2.
88548
88549         * lib/strverscmp.c: Convert to UTF-8.
88550
88551 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88552
88553         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88554         m4/uintmax_t.m4.
88555
88556 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88557
88558         * modules/xalloc-die: New file.
88559         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88560
88561         * modules/md5 (Files): Add m4/uint32_t.m4.
88562         * modules/sha1: Renamed from modules/sha.
88563         (Files):
88564         Rename lib/sha.h to lib/sha1.h.
88565         Rename lib/sha.c to lib/sha1.c.
88566         Rename m4/sha.m4 to m4/sha1.m4.
88567         (lib_SOURCES): Likewise.
88568         (configure.ac): Rename gl_SHA to gl_SHA1.
88569         (Include): sha.h -> sha1.h.
88570
88571 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88572
88573         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88574         * m4/sha1.m4: Renamed from sha.m4.
88575         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88576
88577 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88578
88579         * lib/obstack.h (obstack_empty_p):
88580         Don't assume that chunk->contents is suitably aligned.
88581         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88582         Likewise. Problem reported by Benno in
88583         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88584
88585         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88586         readable.  This could be improved further but it'd take some work.
88587
88588 2004-08-08  Simon Josefsson  <jas@extundo.com>
88589
88590         * modules/xgethostname (Depends-on): Remove exit and error (not
88591         used).
88592
88593         * modules/getpass-gnu: Add getpass.h.
88594         (Depends-on): Add stdbool.
88595         * modules/getpass: Add getpass.h.
88596
88597 2004-08-08  Simon Josefsson  <jas@extundo.com>
88598
88599         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88600         Check getpass declaration.
88601
88602 2004-08-08  Simon Josefsson  <jas@extundo.com>
88603
88604         * lib/xgethostname.c: Don't include error.h (not used).
88605
88606         * lib/getpass.h: Add.
88607         * lib/getpass.c: Include getpass.h first.
88608
88609 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88610
88611         * lib/xalloc-die.c: New file.
88612         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88613         All uses removed.
88614         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88615         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88616         xalloc-die.c.
88617         (_, N_, xalloc_die): Move to xalloc-die.c.
88618         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88619         so that we needn't mess with xalloc_msg_memory_exhausted.
88620
88621         * lib/sha1.h: Renamed from sha.h.
88622         (SHA1_H): Renamed from _SHA_H.
88623         (sha1_ctx): Renamed from sha_ctx.
88624         (sha1_init_ctx): Renamed from sha_init_ctx.
88625         (sha1_process_block): Renamed from sha_process_block.
88626         (sha1_process_bytes): Renamed from sha_process_bytes.
88627         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88628         (sha1_read_ctx): Renamed from sha_read_ctx.
88629         (sha1_stream): Renamed from sha_stream.
88630         (sha1_buffer): Renamed from sha_buffer.
88631         * lib/sha1.c: Likewise; renamed from sha.c.
88632         Do not include <sys/types.h>.
88633         Include <stddef.h> rather than <stdlib.h>.
88634
88635 2004-08-08  Bruno Haible  <bruno@clisp.org>
88636
88637         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88638         FILESYSTEM_PREFIX_LEN.
88639         * lib/progreloc.c: Likewise.
88640         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88641
88642 2004-08-06  Simon Josefsson  <jas@extundo.com>
88643
88644         * modules/progname (Depends-on): Don't depend on stdbool.
88645
88646 2004-08-06  Simon Josefsson  <jas@extundo.com>
88647
88648         * modules/getsubopt: New file.
88649         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88650         getsubopt.
88651
88652 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88653
88654         More merge from coreutils.
88655
88656         * m4/utimens.m4, m4/utimecmp.m4: New files.
88657         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88658         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88659         prereq.m4, sha.m4: Import changes from coreutils.
88660
88661 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88662
88663         More merge from coreutils.
88664         * modules/raise, modules/readtokens0, modules/utimens:
88665         * modules/utimecmp, module/xnanosleep: New files.
88666         * modules/strftime: Add lib/strftime.h.
88667         Change include from <time.h> to "strftime.h".
88668         * modules/yesno: Add lib/yesno.h.
88669         * modules/backupfile: Remove lib/addext.c.
88670         * modules/euidaccess: Add stat-macros.h.
88671         * modules/canonicalize, modules/euidaccess,
88672         modules/filemode, modules/lchown, modules/makepath,
88673         modules/rmdir, modules/stat: Likewise.
88674
88675 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88676
88677         Merge from tar.
88678         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88679         SIZE_MAX is a valid preprocessor constant.
88680         (__argp_basename): Change from "#ifndef _LIBC"
88681         to "#ifndef __argp_short_program_name", so that
88682         we don't compile these functions for tar.
88683
88684         More merges from coreutils.
88685         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88686         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88687         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88688         * lib/addext.c: Remove; no longer needed.
88689         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88690         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88691         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88692         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88693         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88694         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88695         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88696         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88697         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88698         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88699         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88700         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88701         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88702         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88703         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88704         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88705         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88706         Import changes from coreutils.
88707
88708 2004-08-05  Simon Josefsson  <jas@extundo.com>
88709
88710         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88711
88712 2004-08-05  Simon Josefsson  <jas@extundo.com>
88713
88714         * m4/getsubopt.m4: New file.
88715
88716 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88717
88718         Merge from coreutils.
88719
88720         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88721         * m4/getcwd-path-max.m4: New files.
88722
88723         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88724         FILESYSTEM_PREFIX_LEN ->
88725         FILE_SYSTEM_PREFIX_LEN.
88726         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88727         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88728         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88729         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88730
88731         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88732         prerequisite modules now handle the DOS stuff.
88733         Don't check for unistd.h.
88734
88735 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88736
88737         Merge from coreutils.
88738
88739         * lib/.gdb-history: Remove; this doesn't belong here.
88740
88741         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88742         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88743         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88744         * lib/getcwd.c: New files.
88745
88746         * lib/dirname.h: Include <stdbool.h>.
88747         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88748         for consistency with POSIX terminology.  All uses changed.
88749         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88750         (strip_trailing_slashes): Use bool for booleans.
88751         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88752
88753         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88754         sometimes returns a positive errno value even when it succeeds.
88755         (print_errno_message) [!LIBC]: Fall back on strerror if
88756         __strerror_r fails.
88757
88758         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88759         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88760         (longest_relative_suffix): New function.
88761         (path_concat): Use it.  Assume first argument is not NULL.
88762         Port to DOS.  Omit redundant separators.
88763         Report an error instead of returning NULL.
88764         Use mempcpy instead of memcpy.
88765         (xpath_concat): Remove: not declared or used.
88766
88767         * lib/same.h: Include <stdbool.h>
88768         (same_name): Return bool, not int.
88769         * lib/same.c (same_name): Likewise.
88770         (errno): Don't declare; we assume C89 or better now.
88771
88772         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88773         if not already defined.
88774
88775         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88776         * lib/dup-safer.c (errno): Likewise.
88777
88778 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88779
88780         Merge from coreutils.
88781         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88782         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88783         * modules/path-concat: Don't depend on strdup.
88784
88785 2004-08-03  Simon Josefsson  <jas@extundo.com>
88786
88787         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88788         * lib/progname.h: Don't include stdbool.h.
88789
88790 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88791
88792         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88793         * MODULES.html.sh (func_all_modules): Remove fatal.
88794
88795 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88796
88797         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88798
88799 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88800
88801         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88802         working.
88803
88804 2004-08-02  Simon Josefsson  <jas@extundo.com>
88805
88806         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88807         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88808         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88809
88810 2004-08-01  Simon Josefsson  <jas@extundo.com>
88811
88812         * lib/xgetdomainname.c: Include stdlib.h, for free().
88813
88814 2004-07-19  Bruno Haible  <bruno@clisp.org>
88815
88816         * MODULES.html.sh (func_all_modules): Add dummy.
88817
88818 2004-07-16  Simon Josefsson  <jas@extundo.com>
88819
88820         * modules/dummy: New file.
88821
88822 2004-07-16  Simon Josefsson  <jas@extundo.com>
88823
88824         * lib/dummy.c: New file.
88825
88826 2004-07-16  Bruno Haible  <bruno@clisp.org>
88827
88828         * lib/backupfile.h: Add extern "C" for C++.
88829         * lib/closeout.h: Likewise.
88830         * lib/copy-file.h: Likewise.
88831         * lib/findprog.h: Likewise.
88832         * lib/full-write.h: Likewise.
88833         * lib/pathname.h: Likewise.
88834         * lib/progname.h: Likewise.
88835         * lib/stpcpy.h: Likewise.
88836         * lib/stpncpy.h: Likewise.
88837         * lib/strcase.h: Likewise.
88838         * lib/strstr.h: Likewise.
88839         * lib/xalloc.h: Likewise.
88840
88841         * lib/mbswidth.h: Add extern "C" for C++.
88842         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88843
88844 2004-07-13  Robert Millan  <robertmh@gnu.org>
88845
88846         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88847
88848 2004-07-09  Simon Josefsson  <jas@extundo.com>
88849
88850         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88851         failed without this.)
88852
88853 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88854
88855         * modules/chown (Files): Add lib/fchown-stub.c, since
88856         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88857
88858 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88859
88860         * lib/fchown-stub.c: New file.
88861
88862 2004-06-24  Jim Meyering  <jim@meyering.net>
88863
88864         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88865
88866 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88867
88868         * modules/argz: Omit "#include".
88869
88870         * MODULES.html.sh (func_all_modules): Add calloc, to match
88871         2004-06-01 addition of calloc module.
88872
88873 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88874
88875         * m4/argz.m4: New file, which is autoupdated from libtool.
88876
88877 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88878
88879         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88880         libtool.
88881
88882 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88883
88884         * config/srclist-update: Don't insist on "USA." before the
88885         close-comment, as libtool omits the period and puts the */ on a
88886         separate line.
88887         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88888         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88889
88890 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88891
88892         * modules/argz: New file.
88893         * MODULES.html.sh (func_all_modules): Add argz.
88894
88895 2004-06-12  Jim Meyering  <jim@meyering.net>
88896         and  Paul Eggert  <eggert@cs.ucla.edu>
88897
88898         * modules/hash (Files): Add lib/xalloc.h.
88899         * modules/pipe (Depends-on): Add wait-process.
88900         * modules/stat (Depends-on): Add xalloc.
88901         * modules/userspec (Files): Add lib/userspec.h.
88902         * modules/xstrto
88903
88904         Upgrade from gettext-0.13.
88905         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88906         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88907         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88908
88909 2004-06-10  Jim Meyering  <jim@meyering.net>
88910
88911         * lib/calloc.c: New file.
88912
88913 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88914
88915         * lib/getdate.y (yylex): Allow space between sign and number.
88916         Problem reported by Dan Jacobson.
88917
88918 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88919
88920         Merge from coreutils CVS.
88921
88922         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88923         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88924         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88925         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88926         xstrtol.m4: Fix copyright date and/or serial number.
88927
88928         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88929         See if we need an fchown replacement.
88930         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88931         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88932         and use the replacement function if we detect either defect.
88933
88934         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88935         gl_UTIMECMP.
88936
88937 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88938         and  Jim Meyering  <jim@meyering.net>
88939
88940         Merge from coreutils CVS.
88941
88942         * lib/stat-macros.h: New file, with contents from file-type.h
88943         and coreutils' system.h.
88944         * lib/file-type.c: Include "stat-macros.h".
88945         * lib/file-type.h (file_type): Move all macro definitions to new file,
88946         stat-macros.h.
88947
88948         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88949         Wrap old code with this conditional.
88950         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88951         function that does not dereference symlinks.
88952         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88953
88954         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88955         dependency problems.
88956         (xreadlink): Accept new arg SIZE, for efficiency.
88957         All decls and uses changed.
88958         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88959
88960         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88961         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88962
88963         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88964         sysexits.h.
88965
88966 2004-06-01  Jim Meyering  <jim@meyering.net>
88967
88968         * m4/calloc.m4: New file.
88969
88970 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88971
88972         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88973         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88974         Also, fix a typo in a diagnostic.
88975
88976 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88977
88978         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88979         or AC_FUNC_REALLOC.
88980
88981 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88982
88983         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88984         macros to be defined.
88985         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88986         the allocator returns NULL because the requested size is zero.
88987
88988 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88989
88990         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88991         var.  Add comment explaining why libc still defines it.  This
88992         merges the following patch from glibc:
88993         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88994
88995 2004-05-20  Andreas Schwab  <schwab@suse.de>
88996
88997         * m4/free.m4: Replace free if it not known to work, not the other
88998         way round.
88999
89000 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89001
89002         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89003         present in glibc since revision 1.1 of this file.
89004         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89005         obstack_alignment_mask, obstack_alloc, obstack_base,
89006         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89007         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89008         obstack_grow0, obstack_init, obstack_int_grow,
89009         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89010         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89011         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89012         nonexistent functions.
89013
89014 2004-05-18  Karl Berry  <karl@gnu.org>
89015
89016         * config/srclist.txt: break link for vasnprintf.c.
89017
89018 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89019
89020         Port obstack to the AS/400, where pointers are 16 bytes wide and
89021         you cannot cast an integer to a valid pointer.  This patch is
89022         currently waiting to be integrated into glibc; see
89023         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89024
89025         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89026         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89027         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89028         (struct obstack): temp member is now a union of a pointer and
89029         an integer, instead of an integer.  All integer uses changed.
89030         This does not affect the physical layout of struct obstack,
89031         except on hosts (like the AS/400) where the size or alignment of
89032         void * is greater than that of ptrdiff_t.
89033         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89034         __STDC__)]: Store temporary in pointer member of union, not
89035         integer member.
89036         * lib/obstack.c: Include <stddef.h>, for offsetof.
89037         (struct fooalign): Remove; it doesn't need a name.
89038         (union fooround): Change double to long double, and add void *.
89039         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89040         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89041         not a macro.  Hence the values are always int; so remove all
89042         casts-to-int in uses.
89043
89044 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89045
89046         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89047         we can get this patch merged into glibc.
89048
89049 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89050             Paul Eggert  <eggert@cs.ucla.edu>
89051
89052         * m4/argp: Depend on alloca.
89053
89054 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89055             Paul Eggert  <eggert@cs.ucla.edu>
89056
89057         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89058         freecoding.
89059
89060 2004-05-17  Bruno Haible  <bruno@clisp.org>
89061
89062         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89063         precision that consists of a '.' followed by an empty digit string.
89064         Patch by Tor Lillqvist <tml@iki.fi>.
89065
89066 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89067
89068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89069         for backward compatibility with older code.  We need our own
89070         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89071         it under some other name, and our alloca.h will define it.
89072
89073 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89074             Derek Price  <derek@ximbiot.com>
89075
89076         * lib/alloca.c: Include <alloca.h>, to get our interface.
89077         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89078         include <alloca.h> first.  Use C89 prototype for alloca; this
89079         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89080         Use #elif for simplicity, since we can assume C89 now.
89081         Don't try to source the system alloca.h since it will not be found
89082         and to prevent recursively including its replacement.
89083         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89084         * lib/regex.c: Likewise.
89085
89086 2004-05-16  Derek Price  <derek@ximbiot.com>
89087             Paul Eggert  <eggert@cs.ucla.edu>
89088
89089         getline cleanup.  This changes the getndelim2 API: both order of
89090         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89091         no delimiter).
89092
89093         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89094         interface does that.
89095         (getline): Always use getdelim, so that we don't have two
89096         copies of this code.
89097         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89098         if available.
89099         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89100         (GETNDELIM2_MAXIMUM): New macro.
89101         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89102         instead of the old practice of delim2==0.  All callers changed.
89103         Return -1 on overflow, instead of returning junk.
89104         Do not set *linesize unless allocation succeeds.
89105         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89106         that we include sys/types.h.
89107         * lib/getnline.h: Likewise.
89108         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89109         (getndelim2): Reorder arguments.
89110         * lib/getnline.c (getnline, getndelim):
89111         Don't discard the NMAX argument.
89112         (getnline): Invoke getndelim, to avoid code duplication.
89113         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89114         of (size_t) -1 by callers of the getnline family.
89115
89116 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89117
89118         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89119         Check for gettimeofday.
89120         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89121         Check for settimeofday, stime.
89122
89123 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89124
89125         * lib/nanosleep.c (suspended): Change its type from int to
89126         sig_atomic_t volatile.
89127         (first_call): Make it private to rpl_nanosleep, and have it
89128         be zero initially as that's a bit faster.
89129         (my_usleep): Round up fractional times instead of truncating them,
89130         as this is the usual meaning for 'sleep'.
89131
89132         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89133         doesn't work.
89134         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89135         (ENOSYS): Define if not defined.
89136         (settime): Fall back on stime if it exists and settimeofday fails.
89137         But don't bother with fallbacks if a method fails with errno == EPERM.
89138
89139 2004-05-11  Jim Meyering  <jim@meyering.net>
89140
89141         Prior to this change, the save_cwd caller required read access to the
89142         current directory on most systems (ones with the fchdir function).
89143
89144         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89145         fails, try write-only, and finally, resort to using xgetcwd.
89146
89147 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89148
89149         * lib/obstack.c, obstack.h: Import changes from libc.
89150
89151 2004-04-28  Bruno Haible  <bruno@clisp.org>
89152
89153         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89154         also implicitly appends .exe to executables.
89155         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89156         accepts Windows pathnames.
89157         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89158         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89159         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89160         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89161         Reported by Derek Robert Price <derek@ximbiot.com>.
89162
89163 2004-04-21  Karl Berry  <karl@gnu.org>
89164
89165         * config/srclist.txt (localcharset.c): break sync.
89166
89167 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89168
89169         * m4/host-os.m4: Add a copyright notice.
89170
89171 2004-04-20  Jim Meyering  <jim@meyering.net>
89172
89173         Change UTILS_ to gl_ in AC_DEFINE'd names.
89174         Change utils_- and jm_-prefixed variables, too.
89175         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89176         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89178
89179         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89180         Don't emit trailing blanks.
89181         Also rename jm_-prefixed variables to have gl_ prefix.
89182
89183         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89184         Also rename jm_-prefixed variables to have gl_ prefix.
89185
89186         * m4/jm-macros.m4: Reflect the renamings.
89187         * m4/prereq.m4: Likewise.
89188
89189 2004-04-20  Jim Meyering  <jim@meyering.net>
89190
89191         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89192         memory.
89193
89194 2004-04-20  Jim Meyering  <jim@meyering.net>
89195             Bruno Haible  <bruno@clisp.org>
89196
89197         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89198         memory when realloc fails.
89199
89200 2004-04-19  Jim Meyering  <jim@meyering.net>
89201
89202         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89203         now that readutmp.c may call `free (0)'.
89204
89205 2004-04-19  Bruno Haible  <bruno@clisp.org>
89206
89207         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89208         * m4/inttypes_h.m4: Likewise.
89209         * m4/stdint_h.m4: Likewise.
89210         * m4/intmax_t.m4: Likewise.
89211         * m4/uintmax_t.m4: Likewise.
89212
89213 2004-04-18  Jim Meyering  <jim@meyering.net>
89214
89215         * m4/prereq.m4: Don't forbid jm_ prefix.
89216
89217         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89218         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89219         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89220         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89221         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89222         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89223         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89224         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89225         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89226         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89227         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89228         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89229         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89230         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89231         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89232         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89233         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89234         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89235         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89236
89237 2004-04-18  Jim Meyering  <jim@meyering.net>
89238
89239         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89240         failure, don't leak memory and do call END_UTMP_ENT.
89241
89242 2004-04-16  Jim Meyering  <jim@meyering.net>
89243
89244         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89245         coreutils' stat program.
89246         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89247
89248 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89249
89250         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89251         C89.
89252         (CHAR_BIT): Remove, since we assume C89.
89253         Include <stdint.h> if available, as per current Autoconf CVS advice.
89254
89255 2004-03-31  Jim Meyering  <jim@meyering.net>
89256
89257         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89258         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89259         * m4/xalloc.m4: Likewise.
89260
89261 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89262
89263         Merge from coreutils.
89264
89265         * m4/inttostr.m4: New file.
89266         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89267         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89268         Require gl_CLOCK_TIME.
89269         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89270
89271 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89272
89273         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89274         not bool, to be more consistent with Unix conventions.
89275         Suggested by Bruno Haible.
89276
89277         Merge from coreutils.
89278
89279         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89280         * lib/umaxtostr.c: New files.
89281
89282         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89283         the usual <time.h> dance.
89284         (get_date): Change signature to support fractional time stamps.
89285         All callers changed.
89286         * lib/getdate.y: Include "getdate.h" first, as we can now
89287         assume C89 and don't need to worry about 'const'.
89288         Similarly, include "unlocked-io.h" near start, not in middle.
89289         Include <limits.h>.
89290         (textint.value): Use long int rather than int.
89291         (textint.digits): Use size_t rather than int.
89292         (BILLION, LOG10_BILLION): New constants.
89293         (parser_control): New member rel_ns.  Members day_ordinal,
89294         time_zone, month, day, hour, minutes, rel_year, rel_month,
89295         rel_day, rel_hour, rel_minutes, rel_seconds
89296         are now long int, not int.  Member seconds is now struct timespec,
89297         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89298         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89299         not int.
89300         (%union.intval): Now long int, not int.
89301         New member timespec.
89302         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89303         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89304         (spec): Now is a timespec or an item list.
89305         (timespec, items): New nonterminals.
89306         (time, rel, relunit, number, get_date):
89307         Add support for fractional seconds.
89308         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89309         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89310         (to_hour): First arg is now long int, not int.
89311         (to_year): Returns long int, not int.
89312         Don't treat year -70 like 70.
89313         (tm_diff): Returns long int, not int.
89314         (lookup_word): Use bool instead of int when appropriate.
89315         (yylex): Use size_t for count, not int.
89316         Detect overflow when parsing large integer constants.
89317         Add support for fractions.
89318         (get_date): Make pointers 'const' if possible.
89319         Use more-portable code to detect integer overflow.
89320         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89321         Don't use ctime; it's not reliable if the year has >4 digits.
89322
89323         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89324         This is for compatibility with BSD.
89325
89326         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89327         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89328         From coreutils' system.h.
89329
89330         * lib/userspec.c: Don't include "posixver.h".
89331         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89332         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89333         compatible extension.  Simplify code by removing a boolean int
89334         that was always nonzero if a string was nonnull.
89335
89336 2004-03-30  Jim Meyering  <jim@meyering.net>
89337
89338         Merge from coreutils.
89339
89340         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89341         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89342         on some systems one must include <grp.h> before it.
89343         Reported by Christian Krackowizer.
89344
89345 2004-03-30  Jim Meyering  <jim@meyering.net>
89346
89347         Merge from coreutils.
89348
89349         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89350
89351         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89352         an empty input stream.
89353
89354         * lib/readtokens.c: Include <stdbool.h>.
89355         (readtoken): Use `size_t' rather than int/long.
89356         All callers adjusted.
89357         Use `bool' rather than `int' where appropriate.
89358         Use memset rather than an explicit loop.
89359         Use x2nrealloc rather than xrealloc.
89360         Allow the use of `\0' as a delimiter.
89361         (readtokens): Likewise.
89362         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89363
89364 2004-03-30  Jim Meyering  <jim@meyering.net>
89365
89366         * m4/realloc.m4: Remove file, since now it does no more than
89367         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89368         the `configure.ac' section of module/realloc.
89369         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89370
89371 2004-03-30  Bruno Haible  <bruno@clisp.org>
89372
89373         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89374         nonnull.
89375
89376 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89377
89378         Merge changes to getloadavg.c from coreutils and Emacs.
89379
89380         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89381         Define to an expression, not to the empty string.
89382         Include cloexec.h and xalloc.h.
89383         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89384         Use set_cloexec_flag rather than rolling our own.
89385         * lib/cloexec.c, lib/cloexec.h: New files.
89386
89387 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89388
89389         * m4/cloexec.m4: New file.
89390
89391 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89392
89393         * lib/getopt.h: Sync with libc CVS.
89394
89395 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89396             Bruno Haible  <bruno@clisp.org>
89397
89398         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89399         mbswidth.
89400
89401 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89402             Bruno Haible  <bruno@clisp.org>
89403
89404         * lib/mbswidth.h: Include <wchar.h> only if
89405         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89406         <wchar.h>.
89407         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89408
89409 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89410
89411         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89412         Sync with libc CVS.
89413         * lib/getopt_int.h: New file, also synced from libc.
89414
89415 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89416
89417         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89418         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89419         Bring back getopt.c, getopt.h, getopt1.c.
89420
89421 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89422
89423         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89424         All uses changed.  Check for sa_sigaction member; this fixes
89425         a bug first reported by Jason Andrade in
89426         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89427
89428 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89429
89430         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89431         '#if' expressions.  Unlike the code it replaces, it does not
89432         depend on (defined _SC_PAGESIZE).  However, it does depend on
89433         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89434         first reported by Jason Andrade in
89435         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89436
89437 2004-02-25  Simon Josefsson  <jas@extundo.com>
89438
89439         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89440
89441 2004-02-25  Simon Josefsson  <jas@extundo.com>
89442
89443         * lib/strdup.h: New file.
89444         * lib/strdup.c: Include it.
89445         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89446         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89447
89448 2004-02-23  Karl Berry  <karl@gnu.org>
89449
89450         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89451         (from fencepost.gnu.org:/gd/gnuorg).
89452
89453 2004-02-23  Karl Berry  <karl@gnu.org>
89454
89455         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89456         * config/srclist.txt: add maintain/standards documents.
89457
89458 2004-02-18  Bruno Haible  <bruno@clisp.org>
89459
89460         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89461         Reported by Derek Robert Price <derek@ximbiot.com>.
89462
89463 2004-02-16  Karl Berry  <karl@gnu.org>
89464
89465         * config/mkinstalldirs, install-sh: update from automake.
89466
89467 2004-02-06  Karl Berry  <karl@gnu.org>
89468
89469         * m4/po.m4: update from gettext 0.14.1.
89470
89471 2004-02-06  Karl Berry  <karl@gnu.org>
89472
89473         * lib/config.charset: update from gettext 0.14.1.
89474
89475 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89476
89477         Add comments and code, prompted by suggestions from Bruno Haible
89478         for sh-quote.
89479         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89480         describing the enum quoting_style values.
89481         * lib/quotearg.c (quotearg_alloc): New function.
89482         (quotearg_buffer_restyled): Treat lone { and } as special.
89483         Treat = as special.  Work around bug with older shells
89484         that "see" a '\' that is really the 2nd byte of a multibyte char.
89485         Quote empty string with shell_quoting_style.
89486
89487 2004-02-03  Bruno Haible  <bruno@clisp.org>
89488
89489         * m4/pipe.m4: New file, from GNU gettext.
89490
89491 2004-02-03  Bruno Haible  <bruno@clisp.org>
89492
89493         * lib/pipe.h: New file, from GNU gettext.
89494         * lib/pipe.c: New file, from GNU gettext.
89495
89496 2004-01-27  Bruno Haible  <bruno@clisp.org>
89497
89498         * m4/execute.m4: New file, from GNU gettext.
89499
89500 2004-01-27  Bruno Haible  <bruno@clisp.org>
89501
89502         * lib/execute.h: New file, from GNU gettext.
89503         * lib/execute.c: New file, from GNU gettext.
89504         * lib/w32spawn.h: New file, from GNU gettext.
89505
89506 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89507
89508         Merge from diffutils.
89509
89510         * lib/file-type.c (file_type): Add typed memory objects.
89511         * lib/file-type.h (S_TYPEISTMO): New macro.
89512
89513         * lib/c-stack.h (c_stack_action): Remove argv argument.
89514         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89515         (die): Don't calculate message unless segv_action returns.
89516         (get_stack_location, min_address_from_argv, max_address_from_argv,
89517         volatile stack_base, volatile_stack_size): Remove.
89518         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89519         that every segmentation violation is a stack overflow.  (Ouch!)
89520         See Debian bug 136249 (still outstanding) for more info about why
89521         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89522
89523 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89524
89525         Exit-status fix from coreutils.
89526
89527         Use exit_failure consistently in place of EXIT_FAILURE,
89528         so that program exit statuses are consistent on failure.
89529
89530         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89531         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89532         * lib/argmatch.h: Comment fix to match the above.
89533         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89534         Now a macro referring to exit_failure, instead of a separate
89535         variable.  Include "exitfail.h" to get it.
89536         * lib/xstrtol.h: Include "exitfail.h".
89537         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89538
89539         * lib/long-options.c (parse_long_options): Use prototype
89540         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89541         for clarity.
89542
89543 2004-01-21  Jim Meyering  <jim@meyering.net>
89544
89545         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89546         so as not to conflict with a different-sized __mktime_internal
89547         function in GNU libc.
89548         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89549         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89550
89551 2004-01-20  Karl Berry  <karl@gnu.org>
89552
89553         * config/config.guess: update from config.
89554
89555         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89556
89557 2004-01-20  Bruno Haible  <bruno@clisp.org>
89558
89559         Safer stack allocation.
89560         * lib/setenv.c: Include allocsa.h.
89561         (alloca): Remove fallback definition.
89562         (freea): Remove macro.
89563         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89564         instead of freea.
89565
89566 2004-01-20  Bruno Haible  <bruno@clisp.org>
89567
89568         * m4/eealloc.m4: New file, from GNU gettext.
89569
89570 2004-01-20  Bruno Haible  <bruno@clisp.org>
89571
89572         * m4/allocsa.m4: New file, from GNU gettext.
89573
89574 2004-01-20  Bruno Haible  <bruno@clisp.org>
89575
89576         * lib/xallocsa.h: New file, from GNU gettext.
89577         * lib/xallocsa.c: New file, from GNU gettext.
89578
89579 2004-01-20  Bruno Haible  <bruno@clisp.org>
89580
89581         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89582
89583 2004-01-20  Bruno Haible  <bruno@clisp.org>
89584
89585         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89586         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89587         specially.
89588
89589 2004-01-20  Bruno Haible  <bruno@clisp.org>
89590
89591         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89592         patch.
89593
89594 2004-01-20  Bruno Haible  <bruno@clisp.org>
89595
89596         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89597
89598 2004-01-20  Bruno Haible  <bruno@clisp.org>
89599
89600         * lib/eealloc.h: New file.
89601
89602 2004-01-20  Bruno Haible  <bruno@clisp.org>
89603
89604         * lib/binary-io.h: Avoid warnings on Cygwin.
89605
89606 2004-01-20  Bruno Haible  <bruno@clisp.org>
89607
89608         * lib/allocsa.h: New file, from GNU gettext.
89609         * lib/allocsa.c: New file, from GNU gettext.
89610
89611 2004-01-18  Karl Berry  <karl@gnu.org>
89612
89613         * doc/gpl.texi, doc/lgpl.texi: new files.
89614
89615 2004-01-18  Karl Berry  <karl@gnu.org>
89616
89617         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89618         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89619
89620 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89621
89622         Merge from coreutils.
89623
89624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89625         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89626         (gl_DEFAULT_POSIX2_VERSION): Move
89627         the documentation from 'configure' into 'config.hin',
89628         so that 'configure --help' isn't burdened by it and
89629         we don't have to worry about its formatting there.
89630         Reword the documentation so that it's more succinct
89631         and can be run together into a single paragraph.
89632         * m4/same.m4 (gl_SAME): Check for pathconf.
89633
89634 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89635
89636         Merge from coreutils.
89637
89638         * lib/posixver.c: Include posixver.h.
89639
89640         * lib/same.c: Include <stdbool.h>, <limits.h>.
89641         (_POSIX_NAME_MAX): Define if not defined.
89642         (MIN): New macro.
89643         (same_name): If file names are silently truncated, report
89644         that the file names are the same if they are the same after
89645         the silent truncation.
89646
89647         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89648         conversion function.
89649         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89650         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89651         longer needed.
89652
89653 2004-01-15  Jim Meyering  <jim@meyering.net>
89654
89655         Merge from coreutils.
89656
89657         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89658         if no library is required.
89659         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89660         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89661         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89662         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89663         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89664         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89665         value, $ac_cv_search_crypt, if it's "none required".
89666         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89667         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89668         not gl_FUNC_GETLOADAVG.
89669         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89670         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89671
89672 2004-01-15  Jim Meyering  <jim@meyering.net>
89673
89674         Merge from coreutils.
89675
89676         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89677         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89678         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89679
89680         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89681         optional configure-time default.
89682
89683         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89684
89685         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89686
89687 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89688
89689         Merge from coreutils.
89690
89691         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89692         value, $ac_cv_search_nanosleep, if it's "none required".
89693
89694 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89695
89696         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89697         with like-named macro in fnmatch.c.
89698         (EXT): Use an internal constant instead.
89699
89700         Merge fnmatch patches from glibc.
89701         * lib/fnmatch.c (mbsinit): Remove define.
89702         Add libc_hidden_ver (__fnmatch, fnmatch).
89703         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89704         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89705
89706 2004-01-14  Karl Berry  <karl@gnu.org>
89707
89708         * config/install-sh: update from automake.
89709
89710 2004-01-13  Karl Berry  <karl@gnu.org>
89711
89712         * config/install-sh: update from automake.
89713
89714 2004-01-09  Karl Berry  <karl@gnu.org>
89715
89716         * config/install-sh: update from automake.
89717
89718 2004-01-05  Karl Berry  <karl@gnu.org>
89719
89720         * config/config.{sub,guess}: update from config.
89721
89722 2003-12-31  Karl Berry  <karl@gnu.org>
89723
89724         * config/depcomp: update from automake.
89725
89726 2003-12-14  Karl Berry  <karl@gnu.org>
89727
89728         * lib/config.charset: update from gettext-runtime.
89729
89730 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89731
89732         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89733         Bug reported by Alfred M. Szmidt.
89734
89735 2003-12-03  Bruno Haible  <bruno@clisp.org>
89736
89737         * m4/gettext.m4: Upgrade from gettext-0.13.
89738         * m4/po.m4: Upgrade from gettext-0.13.
89739         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89740         * m4/intmax.m4: New file, from gettext-0.13.
89741         * m4/printf-posix.m4: New file, from gettext-0.13.
89742
89743 2003-11-29  Karl Berry  <karl@gnu.org>
89744
89745         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89746
89747 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89748             Bruno Haible  <bruno@clisp.org>
89749
89750         * lib/printf-parse.h: Don't include sys/types.h.
89751         (ARG_NONE): New macro.
89752         (char_directive): Change type of *arg_index fields to size_t.
89753         * lib/printf-parse.c: Don't include sys/types.h.
89754         (SSIZE_MAX): Remove macro.
89755         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89756         Remove unnecessary overflow check.
89757         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89758         fields.
89759
89760 2003-11-25  Bruno Haible  <bruno@clisp.org>
89761
89762         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89763
89764 2003-11-25  Bruno Haible  <bruno@clisp.org>
89765
89766         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89767         gt_TYPE_SSIZE_T.
89768
89769 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89770
89771         * modules/alloca: Remove dependency on xalloc.
89772
89773 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89774
89775         * lib/alloca.c: Remove dependency on xalloc module.
89776         (xalloc_die): Remove.
89777         (memory_full) [!defined emacs]: New macro.
89778         [!defined emacs]: Don't include xalloc.h.
89779         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89780         address arithmetic overflows.  Change datatypes a bit to avoid
89781         unnecessary casts.
89782
89783 2003-11-22  Jim Meyering  <jim@meyering.net>
89784
89785         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89786         s/size/size_t/.
89787
89788 2003-11-21  Karl Berry  <karl@gnu.org>
89789
89790         * config/config.{sub,guess}: update from config.
89791
89792 2003-11-18  Karl Berry  <karl@gnu.org>
89793
89794         * config/config.{sub,guess}: update from config.
89795
89796         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89797
89798 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89799
89800         * README: Mention that S+T cannot overflow if S is the size of
89801         an existing object and T is sufficiently small.
89802
89803 2003-11-17  Jim Meyering  <jim@meyering.net>
89804
89805         On systems without utime and without a utimes function capable of
89806         dealing with a NULL struct utimbuf* argument, this utime replacement
89807         could -- in unusual circumstances -- leak a file descriptor.
89808         * lib/utime.c: Include <unistd.h> and <errno.h>.
89809         (utime_null): Be sure to close `fd' and to preserve errno.
89810         Reported by Geoff Collyer via Arnold Robbins.
89811
89812 2003-11-17  Bruno Haible  <bruno@clisp.org>
89813
89814         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89815         (Depends-on): Add xsize.
89816
89817 2003-11-17  Bruno Haible  <bruno@clisp.org>
89818
89819         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89820
89821 2003-11-17  Bruno Haible  <bruno@clisp.org>
89822
89823         * lib/vasnprintf.c (alloca): Remove fallback definition.
89824         (freea): Remove definition.
89825         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89826         Reported by Paul Eggert.
89827
89828 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89829             Bruno Haible  <bruno@clisp.org>
89830
89831         Protect against address arithmetic overflow.
89832         * lib/printf-args.h: Include stddef.h.
89833         (arguments): Change type of field 'count' to size_t.
89834         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89835         'unsigned int' where appropriate.
89836         * lib/printf-parse.h: Include sys/types.h.
89837         (char_directive): Change type of *arg_index fields to ssize_t.
89838         (char_directives): Change type of fields 'count', max_*_length to
89839         size_t.
89840         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89841         (SSIZE_MAX): Define fallback value.
89842         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89843         instead of 'int' where appropriate. Check a_allocated, d_allocated
89844         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89845         * lib/vasnprintf.c: Include xsize.h.
89846         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89847         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89848         overflow. Avoid wraparound when converting a width or precision from
89849         decimal to binary.
89850
89851 2003-11-16  Bruno Haible  <bruno@clisp.org>
89852
89853         Update from GNU gettext.
89854         * lib/printf-parse.c: Generalize to it can be compiled for wide
89855         strings.
89856         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89857         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89858         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89859         SNPRINTF): New macros.
89860         Don't include <alloca.h> if the file is used inside libintl.
89861         (local_wcslen): New function, for Solaris 2.5.1.
89862         (VASNPRINTF): Use it instead of wcslen.
89863
89864 2003-11-16  Bruno Haible  <bruno@clisp.org>
89865
89866         * lib/xsize.h (xmax): New function.
89867         (xsum, xsum3, xsum4): Declare as "pure" functions.
89868
89869 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89870
89871         * modules/xalloc (Files): Undo latest change, since xalloc.h
89872         no longer needs SIZE_MAX or PTRDIFF_MAX.
89873
89874 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89875
89876         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89877         gl_PTRDIFF_MAX.
89878
89879 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89880
89881         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89882         "return", to pacify some unknown compiler.  Problem reported
89883         by Joerg Schilling.
89884
89885 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89886
89887         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89888         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89889         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89890         heuristic is just as accurate as far as we know, and it removes a
89891         dependency on size_max.m4 and ptrdiff_max.m4.
89892
89893 2003-11-11  Bruno Haible  <bruno@clisp.org>
89894
89895         * modules/xsize (Files): Add m4/size_max.m4.
89896         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89897
89898 2003-11-11  Bruno Haible  <bruno@clisp.org>
89899
89900         * m4/size_max.m4: New file.
89901         * m4/ptrdiff_max.m4: New file.
89902         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89903         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89904         (gl_XALLOC): Invoke it.
89905
89906 2003-11-11  Bruno Haible  <bruno@clisp.org>
89907
89908         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89909         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89910         defined.
89911
89912 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89913
89914         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89915         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89916         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89917         From Bruno Haible.
89918         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89919         not (size_t) -1, since it's defined here.
89920
89921 2003-11-09  Karl Berry  <karl@gnu.org>
89922
89923         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89924
89925 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89926
89927         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89928         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89929         Reject sizes of exactly SIZE_MAX bytes.
89930         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89931         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89932
89933 2003-11-05  Bruno Haible  <bruno@clisp.org>
89934
89935         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89936         SIZE_MAX defined in <limits.h> on Solaris.
89937
89938 2003-11-04  Jim Meyering  <jim@meyering.net>
89939
89940         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89941         variable names, rather than @VAR@.
89942         * modules/poll: Likewise.
89943
89944 2003-11-04  Bruno Haible  <bruno@clisp.org>
89945
89946         * modules/xsize: New file.
89947         * modules/linebreak: Depend on xsize.
89948         * MODULES.html.sh (func_all_modules): Add xsize.
89949
89950 2003-11-04  Bruno Haible  <bruno@clisp.org>
89951
89952         * m4/xsize.m4: New file.
89953
89954 2003-11-04  Bruno Haible  <bruno@clisp.org>
89955
89956         * lib/xsize.h: New file.
89957         * lib/linebreak.c: Include xsize.h.
89958         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89959         argument for overflow.
89960         Suggested by Paul Eggert.
89961
89962 2003-11-03  Karl Berry  <karl@gnu.org>
89963
89964         * config/config.{guess,sub}: update from config.
89965
89966 2003-11-03  Jim Meyering  <jim@meyering.net>
89967
89968         * modules/userspec (lib_SOURCES): Add userspec.h.
89969         (Include): Add "userspec.h".
89970         Improve description.
89971
89972 2003-11-03  Jim Meyering  <jim@meyering.net>
89973
89974         * lib/userspec.c: Include "userspec.h".
89975         * lib/userspec.h: New file.
89976
89977 2003-11-03  Bruno Haible  <bruno@clisp.org>
89978
89979         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89980
89981 2003-11-03  Bruno Haible  <bruno@clisp.org>
89982
89983         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89984         available, to avoid (extremely rare) race condition.
89985         Suggested by Paul Eggert.
89986
89987 2003-11-02  Karl Berry  <karl@gnu.org>
89988
89989         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89990
89991 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89992
89993         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89994         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89995         (read_filesystem_list): Set and use me_type_malloced.
89996         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89997         whatever the type happens to be), for brevity and consistency.
89998         Check for size calculation overflow on Alphas running OSF/1.
89999
90000 2003-10-31  Jim Meyering  <jim@meyering.net>
90001
90002         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90003
90004         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90005
90006 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90007             Bruno Haible  <bruno@clisp.org>
90008
90009         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90010         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90011
90012 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90013
90014         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90015         netbsd*-gnu*.  Suggested by Robert Millan.
90016
90017 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90018
90019         * modules/group-member: Depend on stdbool.
90020
90021 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90022
90023         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90024
90025 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90026
90027         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90028         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90029         after the 'gnu' in these cases.  This fixes some bugs in the
90030         previous change, and is based on suggestions by Robert Millan.
90031
90032 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90033
90034         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90035         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90036         no longer needed.
90037         * lib/quotearg.c (quotearg_n_options): Use it.
90038         * lib/group-member.c: Include <stdbool.h>.
90039         (free_group_info): Arg is now const *; don't free arg.
90040         (get_group_info): Now returns bool and accepts struct group_info *,
90041         rather than returning a malloc'ed struct group_info *.
90042         All uses changed.  Check for overflow in internal size calculation.
90043
90044         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90045         rather than xmalloc/xrealloc.
90046         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90047         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90048         conformance bug: the old code used a pointer after freeing the
90049         storage that it addressed.
90050         * lib/hash.c (hash_initialize): Simplify the code by using
90051         xalloc_oversized rather than doing it by hand.
90052         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90053         the buffer preserved.  Use free and xmalloc instead.
90054         * lib/quotearg.c (quotearg_n_options): Likewise.
90055         Use a simpler test for size overflow.  Don't use xalloc_oversized
90056         because unsigned int might be wider than size_t (!); this suggests
90057         that we should switch from unsigned int to size_t for slot numbers.
90058
90059 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90060
90061         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90062         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90063         NetBSD kernels.  Requested by Richard Stallman.
90064
90065 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90066
90067         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90068         to allocate the returned structure.  Do not allocate a subarray,
90069         as x2nrealloc will do that.
90070         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90071         instead of xnrealloc.
90072         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90073
90074 2003-10-27  Bruno Haible  <bruno@clisp.org>
90075
90076         * lib/stdbool_.h: Better support for BeOS.
90077
90078 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90079
90080         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90081         now uses inline.
90082
90083 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90084
90085         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90086         callers that want to do their own size-overflow checking.  Include
90087         <stdbool.h>, since xalloc_oversized returns bool.
90088         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90089         to use xalloc_oversized.
90090
90091         Add two functions x2realloc, x2nrealloc, for programs that grow
90092         arrays dynamically by doubling their sizes.
90093         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90094         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90095         New functions.
90096
90097         Port to C99 semantics for 'inline' of external functions.
90098         Bug reported by Bruno Haible.
90099         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90100         with the old contents of xnmalloc.
90101         (xnmalloc, xmalloc): Use it.
90102         (xnrealloc_inline): New static inline function,
90103         with the old contents of xnrealloc.
90104         (xnrealloc, xrealloc): Use it.
90105
90106         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90107         that.
90108
90109 2003-10-26  Karl Berry  <karl@gnu.org>
90110
90111         * config/srclist.txt (COPYING.DOC): no longer available from
90112         /gd/gnuorg; don't know where the ultimate source is.
90113
90114 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90115
90116         Fix several address-calculation bugs in the hash modules,
90117         plus some minor code cleanup.
90118
90119         * lib/hash.h: Include <stdbool.h>, for bool.
90120         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90121         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90122         hash_get_n_entries, hash_get_max_bucket_length,
90123         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90124         hash_rehash): Use size_t rather than unsigned.
90125         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90126         hash_get_n_buckets_used, hash_get_n_entries,
90127         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90128         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90129         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90130         Likewise.
90131         (SIZE_MAX): Define if not defined.
90132         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90133         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90134         hash_print):
90135         Use const * when possible.
90136         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90137         (check_tuning): Fix bug: if tuning parameters were very close to
90138         0 or 1, rounding errors could have caused subscript violations.
90139         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90140         (hash_initialize): Add 'fail:' label
90141         to free table and return NULL, and use it to simplify code.
90142         Use calloc rather than clearing the storage ourself.
90143         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90144         buffer size calculations.
90145         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90146         Include <stddef.h>, for size_t.
90147         * lib/hash-pjw.c (hash_pjw): Likewise.
90148         Switch to method described by Bruno Haible.
90149         Include <limits.h>, for CHAR_BIT.
90150         (SIZE_BITS): New macro.
90151
90152 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90153
90154         * m4/getline.m4 (AM_FUNC_GETLINE):
90155         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90156         hosts.  Problem reported by Derek Robert Price in
90157         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90158         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90159         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90160
90161 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90162
90163         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90164         ceiling the allocation at NMAX bytes rather than silently
90165         discarding input bytes before NMAX is reached.  This makes
90166         a difference only if NMAX exceeds SIZE_MAX / 2.
90167
90168         * lib/obstack.c: Merge from glibc.
90169         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90170         Add libc_hidden_def (_obstack_newchunk).
90171         (_obstack_free) [! defined _LIBC]: Remove.
90172         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90173         a clone of the function body.
90174         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90175         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90176
90177         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90178         glibc.
90179         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90180         arg to memcpy.
90181
90182         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90183         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90184         Don't use lvalue casts, as GCC plans to remove support for them
90185         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90186         was also present in the non-GCC version, indicating that this
90187         code had always been buggy and had never been widely used.
90188         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90189         Use the fast variant of each macro, rather than copying the
90190         definiens of the fast variant; that way, we'll be more likely to
90191         catch future bugs in the fast variants.
90192
90193 2003-10-20  Bruno Haible  <bruno@clisp.org>
90194
90195         * modules/wait-process: New file.
90196         * MODULES.html.sh (func_all_modules): Add wait-process.
90197
90198 2003-10-20  Bruno Haible  <bruno@clisp.org>
90199
90200         * m4/wait-process.m4: New file.
90201
90202 2003-10-20  Bruno Haible  <bruno@clisp.org>
90203
90204         * lib/wait-process.h: New file, from GNU gettext.
90205         * lib/wait-process.c: New file, from GNU gettext.
90206
90207 2003-10-19  Jim Meyering  <jim@meyering.net>
90208
90209         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90210         HPUX 10.20.
90211
90212 2003-10-18  Karl Berry  <karl@gnu.org>
90213
90214         * config/config.guess: update from config.
90215
90216 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90217
90218         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90219         (getgroups): First arg is int, not size_t.
90220         Don't let 'free' mangle errno.
90221
90222 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90223
90224         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90225
90226 2003-10-16  Karl Berry  <karl@gnu.org>
90227
90228         * config/config.{guess,sub}: update from config.
90229
90230 2003-10-16  Jim Meyering  <jim@meyering.net>
90231
90232         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90233         memcpy.
90234
90235 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90236
90237         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90238         (SIZE_MAX): Remove.
90239         (new_exclude, add_exclude_file): Initial size no longer needs to
90240         be a power of 2.
90241         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90242         our own address arithmetic overflow checking.
90243
90244         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90245         (fnmatch): Do not alloca more than 2000 wide characters;
90246         instead, use malloc for large buffers.
90247         Check for address arithmetic overflow, and return -1
90248         with errno set to ENOMEM in that case.
90249         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90250         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90251         instead, return -1.  Check for address arithmetic overflow.
90252
90253 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90254
90255         Handle invalid suffixes and overflow independently, so that
90256         callers can treat them independently as needed.  Fix some bugs in
90257         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90258         suffix for a human-readable blocksize.  The major caller-visible
90259         change is the addition of a new
90260         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90261         that both overflow and suffix chars were found.
90262
90263         * lib/human.c (humblock): Don't check separately for invalid suffix
90264         char; that is xstrtoumax's job (now that its bug is fixed).
90265         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90266         INTMAX_MAX]: New macros.
90267         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90268         TYPE_MAXIMUM): New macros.
90269         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90270         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90271         if overflow occurs, as it's what __strtol does and it's more useful
90272         in practice.
90273         (__xstrtol): If __strtol reports some error other than ERANGE,
90274         reflect it to the caller as LONGINT_INVALID.  If it reports
90275         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90276         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90277         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90278         value.
90279         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90280         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90281         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90282         [defined UINTMAX_MAX]: New macros.
90283
90284 2003-10-14  Bruno Haible  <bruno@clisp.org>
90285
90286         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90287
90288 2003-10-14  Bruno Haible  <bruno@clisp.org>
90289
90290         * m4/sig_atomic_t: New file, from GNU gettext.
90291         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90292
90293 2003-10-14  Bruno Haible  <bruno@clisp.org>
90294
90295         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90296         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90297         Also use volatile where needed.
90298
90299 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90300
90301         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90302         Change maintainer from Bruno Haible to 'all'.
90303
90304 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90305
90306         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90307
90308 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90309
90310         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90311         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90312         and define in terms of the other primitives.
90313         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90314         (SIZE_MAX): Define if not already defined.
90315         (array_size_overflow): New function.
90316         (xalloc_die): Abort instead of exiting if 'error' returns.
90317         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90318         (xmalloc, xrealloc): Use them.
90319         (xcalloc): Check for address arithmetic overflow.
90320         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90321         a bit faster than strcpy.
90322
90323 2003-10-10  Simon Josefsson  <jas@extundo.com>
90324
90325         * modules/argp (Depends-on): Add restrict and strcase.
90326
90327 2003-10-10  Simon Josefsson  <jas@extundo.com>
90328
90329         * m4/argp.m4: Add AC_C_INLINE.
90330
90331 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90332
90333         Merge getpass from libc, plus a few fixes.
90334
90335         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90336         Include <stdbool.h>.
90337         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90338         __fsetlocking to empty.
90339         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90340         do include <bits/libc-lock.h>.
90341         Do not include <fcntl.h>; not needed.
90342         [_LIBC]: Include <wchar.h>.
90343         (NOTCANCEL_MODE): New macro.
90344         (flockfile, funlockfile) [_LIBC]: New macros.
90345         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90346         [!_LIBC]: New macros.
90347         (call_fclose): New function.
90348         (getpass): Use it.  Save tty stream separately; this simplifies the
90349         code and makes it more reliable if stdin happens to equal stdout.
90350         Invoke __fsetlocking on tty.
90351         Handle thread cancellation if needed.
90352         Namespace cleanup (use __tcgetattr, __getline).
90353         Use bool for Booleans.
90354         [USE_IN_LIBIO]: Handle wide streams.
90355         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90356         stream might go where.
90357
90358         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90359         doesn't have to include <stdio.h> before us.
90360         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90361         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90362         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90363         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90364         if not declared, so that we can use getpass.c code from libc without
90365         rewriting it.
90366         (flockfile, ftrylockfile, funlockfile): New macros.
90367
90368 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90369
90370         * modules/getpass: Depend on stdbool.
90371
90372 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90373
90374         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90375
90376 2003-10-07  Karl Berry  <karl@gnu.org>
90377
90378         * config/config.{guess,sub}: update from config.
90379
90380 2003-10-06  Jim Meyering  <jim@meyering.net>
90381             Bruno Haible  <bruno@clisp.org>
90382
90383         This lets translators provide better translations for the
90384         "Written by ..." part of --version output.
90385         * lib/version-etc.h: Include stdarg.h.
90386         (version_etc_copyright): Declare as readonly.
90387         (version_etc): Make this function variadic with a NULL-terminated list
90388         of author name strings.
90389         (version_etc_va): New declaration.
90390         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90391         (version_etc_copyright): Declare as readonly.
90392         (version_etc_va): New function. Provide a different translatable string
90393         for each possible number of authors < 10. Abbreviate when there are 10
90394         authors or more.
90395         (version_etc): Make this function variadic. Call version_etc_va.
90396         Suggestion from Gary V. Vaughan.
90397
90398         * lib/long-options.h (parse_long_options): Change prototype: the
90399         authors string is moved to the end and becomes variadic.
90400         * lib/long-options.c: Include stdarg.h.
90401         (parse_long_options): Make this function variadic, too.
90402         Call version_etc_va, not version_etc.
90403
90404 2003-10-06  Bruno Haible  <bruno@clisp.org>
90405
90406         * modules/version-etc-2: Remove file.
90407         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90408
90409 2003-10-06  Bruno Haible  <bruno@clisp.org>
90410
90411         * modules/fatal-signal: New file.
90412         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90413
90414 2003-10-06  Bruno Haible  <bruno@clisp.org>
90415
90416         * m4/fatal-signal.m4: New file.
90417         * m4/signalblocking.m4: New file, from GNU gettext.
90418
90419 2003-10-06  Bruno Haible  <bruno@clisp.org>
90420
90421         * lib/version-etc-2.h: Remove file.
90422         * lib/version-etc-2.c: Remove file.
90423
90424 2003-10-06  Bruno Haible  <bruno@clisp.org>
90425
90426         * lib/fatal-signal.h: New file, from GNU gettext.
90427         * lib/fatal-signal.c: New file, from GNU gettext.
90428
90429 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90430
90431         * README: Rework advice for preventing empty .o files.
90432         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90433         not <sys/types.h>.
90434
90435 2003-10-04  Karl Berry  <karl@gnu.org>
90436
90437         * lib/argp*: update from libc.
90438
90439 2003-10-04  Karl Berry  <karl@gnu.org>
90440
90441         * config/config.{guess,sub}: update from config.
90442
90443 2003-10-02  Bruno Haible  <bruno@clisp.org>
90444
90445         * modules/lchown (Include): Add lchown.h.
90446         * modules/time_r (Include): Use "..." syntax.
90447         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90448
90449 2003-10-01  Simon Josefsson  <jas@extundo.com>
90450
90451         * MODULES.html.sh (func_all_modules): Move gethostname from section
90452         'based on' to section 'lacking' POSIX:2001.
90453
90454 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90455
90456         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90457         to output mode on the same stream.
90458
90459 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90460
90461         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90462         Fix arg typo in previous patch.
90463
90464 2003-09-28  Jim Meyering  <jim@meyering.net>
90465
90466         * lib/error.c: Correct cpp indentation.
90467
90468 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90469
90470         * modules/free: New file.
90471
90472 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90473
90474         * m4/free.m4: New file.
90475
90476 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90477
90478         * lib/minmax.h (MIN, MAX)
90479         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90480         Omit the special code that used __typeof__, since we worry that
90481         it could be more trouble than it's worth.  See:
90482         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90483         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90484
90485         * lib/free.c: New file.
90486
90487 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90488
90489         Trivial fixes to Makefile.am parts of module listings.
90490         * modules/strstr: Append strstr.h to lib_SOURCES.
90491         * modules/strcase: Likewise, for strcase.h.
90492
90493 2003-09-27  Karl Berry  <karl@gnu.org>
90494
90495         * config/mkinstalldirs: update from automake.
90496
90497 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90498
90499         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90500         (error_tail): Do not loop, reallocating temporary buffer, since
90501         the output cannot contain more wide characters than the input
90502         contains bytes, the size must be big enough already.  This avoids
90503         one potential size overflow calculation.  Check for size overflow
90504         when calculating temporary buffer size.  Free temporary buffer
90505         when done, if it was allocated with malloc; this plugs a memory
90506         leak.  Remove casts from void * to pointers, that are no longer
90507         needed now that we're assuming C89 or better.
90508
90509         Merge error changes from glibc.
90510
90511         * lib/error.c, error.h: Update copyright notice header to match glibc.
90512         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90513         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90514         Disable cancellation while printing error.
90515         * lib/error.h: Prepend __ to parameter names.
90516
90517 2003-09-26  Jim Meyering  <jim@meyering.net>
90518
90519         * lib/error.c (error_tail): Move some declarations
90520         into inner scope where the local variables are used.
90521
90522 2003-09-26  Bruno Haible  <bruno@clisp.org>
90523
90524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90525         stpncpy().
90526         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90527
90528 2003-09-26  Bruno Haible  <bruno@clisp.org>
90529
90530         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90531         (stpncpy): Define as alias for gnu_stpncpy.
90532         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90533
90534 2003-09-25  Simon Josefsson  <jas@extundo.com>
90535
90536         * lib/xgetdomainname.h: New file.
90537         * lib/xgetdomainname.c: New file.
90538
90539 2003-09-25  Simon Josefsson  <jas@extundo.com>
90540             Bruno Haible  <bruno@clisp.org>
90541
90542         * modules/getdomainname: New file.
90543         * modules/xgetdomainname: New file.
90544         * MODULES.html.sh (func_all_modules): Add getdomainname,
90545         xgetdomainname.
90546
90547 2003-09-25  Simon Josefsson  <jas@extundo.com>
90548             Bruno Haible  <bruno@clisp.org>
90549
90550         * m4/getdomainname.m4: New file.
90551
90552 2003-09-25  Simon Josefsson  <jas@extundo.com>
90553             Bruno Haible  <bruno@clisp.org>
90554
90555         * lib/getdomainname.h: New file.
90556         * lib/getdomainname.c: New file.
90557
90558 2003-09-25  Karl Berry  <karl@gnu.org>
90559
90560         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90561
90562 2003-09-25  Karl Berry  <karl@gnu.org>
90563
90564         * config/install-sh: update from automake.
90565
90566 2003-09-25  Bruno Haible  <bruno@clisp.org>
90567
90568         * modules/version-etc-2: New file, from modules/version-etc with
90569         modifications.
90570         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90571
90572 2003-09-25  Bruno Haible  <bruno@clisp.org>
90573
90574         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90575         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90576
90577 2003-09-24  Simon Josefsson  <jas@extundo.com>
90578
90579         * modules/xgethostname: Add xgethostname.h.
90580
90581 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90582
90583         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90584         the buffer associated with the argument.  Bug reported by
90585         Simon Josefsson.
90586
90587 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90588
90589         * README: Document assumptions that 'int' is at least 32 bits
90590         wide, that integer arithmetic is 2's complement without overflow,
90591         that there are no holes in integer values, that adding sizes of
90592         two nonoverlapping objects can't overflow, and that all-bits-zero
90593         yields scalar zero.  Fix spelling and capitalization typos.
90594
90595 2003-09-19  Karl Berry  <karl@gnu.org>
90596
90597         * lib/argp.h: update from libc.
90598
90599 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90600
90601         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90602         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90603         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90604
90605 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90606
90607         * gnulib-tool: Use "test -h", not "test -L", for portability
90608         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90609         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90610         (sed_extract_prog): Issue s commands one-by-one, rather than
90611         using \| in one s command.
90612
90613 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90614
90615         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90616         input error, instead of returning NULL the next time we are called
90617         (and therefore losing track of errno).
90618
90619 2003-09-16  Bruno Haible  <bruno@clisp.org>
90620
90621         * gnulib-tool (func_create_testdir): Warn about duplicated
90622         dependencies.
90623
90624 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90625
90626         * modules/argmatch, modules/fatal, modules/obstack,
90627         modules/xalloc, modules/xgethostname: Sort dependencies by
90628         importance, not alphabetically.
90629
90630 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90631
90632         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90633         fails, so that the caller gets the proper errno.
90634
90635         * lib/readutmp.c (read_utmp): Likewise.
90636         Check for fstat error.  Close stream and free storage
90637         when failing.
90638
90639 2003-09-14  Karl Berry  <karl@gnu.org>
90640
90641         * config/srclist.txt (strdup.c): disable for c89 changes.
90642
90643 2003-09-14  Jim Meyering  <jim@meyering.net>
90644
90645         * lib/getloadavg.c: Correct cpp indentation.
90646         * lib/strdup.c: Likewise.
90647         * lib/vasnprintf.c: Likewise.
90648
90649 2003-09-14  Bruno Haible  <bruno@clisp.org>
90650
90651         * modules/fwriteerror: New file.
90652         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90653
90654 2003-09-14  Bruno Haible  <bruno@clisp.org>
90655
90656         * lib/fwriteerror.h: New file.
90657         * lib/fwriteerror.c: New file.
90658
90659 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90660
90661         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90662         modules/xgethostname, modules/xalloc: Depend on exit.
90663
90664 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90665
90666         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90667
90668         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90669         and AC_MINIX, too, so that their extensions are available.
90670
90671         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90672         This macro has been superseded by gl_BACKUPFILE.
90673
90674         More patches to assume C89 or better.
90675
90676         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90677
90678         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90679         unconditionally.
90680         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90681         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90682         Include <string.h>, <stdlib.h> unconditionally.
90683         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90684         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90685         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90686         headers or for string.h.
90687         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90688         or strtoul.
90689
90690         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90691         headers.
90692         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90693         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90694         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90695         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90696         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90697         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90698         memcpy, memset.
90699         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90700         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90701         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90702         strtol.
90703         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90704         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90705         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90706         strtoul.
90707
90708 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90709
90710         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90711         * lib/obstack.c [!defined _LIBC]: Likewise.
90712         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90713         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90714         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90715
90716         More changes to assume C89 or better.
90717
90718         * lib/error.c (error_tail): Assume vprintf.
90719
90720         * lib/argmatch.c (getenv): Remove decl.
90721         * lib/progreloc.c (get_full_program_name): Define via prototype.
90722         * lib/setenv.c (clearenv): Likewise.
90723         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90724         needed.
90725         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90726         (malloc, memcpy): Remove decls.
90727         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90728         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90729         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90730         (memcpy): Remove macro.
90731         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90732         (__P): Remove.  All uses removed.
90733         (PTR): Remove.  All uses changed to void *.
90734         (CHAR_BIT, NULL): Remove.
90735         (spaces, zeros, memset_space, memset_zero)
90736         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90737         Remove.
90738         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90739         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90740         Define with prototype.
90741         Remove now-unnecessary prototype decl.
90742         (extra_args_spec): Assume ANSI C.  All uses changed.
90743         (extra_args_spec_iso): Remove.
90744         (my_strftime, emacs_strftimeu): Define via prototype.
90745         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90746         unconditionally.
90747         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90748         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90749         (strtoul, strtol): Remove decls.
90750         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90751         LONG_MAX): Remove.
90752         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90753         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90754         (LOCALE_PARAM_PROTO): New macro.
90755         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90756         (INTERNAL (strtol), strtol): Define with a prototype.
90757         (PARAMS): Remove.  All uses removed.
90758         * lib/tempname.c: Include <string.h> unconditionally.
90759         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90760         * lib/xgethostname.c (main): Define with a prototype.
90761         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90762         Include <stdlib.h> unconditionally.
90763         (calloc, malloc, realloc, free): Remove decls.
90764         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90765         Include <stdlib.h> unconditionally.  Sort include file names.
90766         (strtod): Remove.
90767         (xstrtod): Define with a prototype.
90768         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90769         (strtol, strtoul): Remove decls.
90770
90771 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90772
90773         More patches to assume C89 or better.
90774         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90775         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90776         string.h, memchr, STDC_HEADERS.
90777
90778 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90779
90780         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90781         Include <stdlib.h>, <string.h> unconditionally.
90782         Remove now-unnecessary cast to char *.
90783         * lib/strnlen.c: Include <string.h> unconditionally.
90784         * lib/yesno.c (yesno): Define with a prototype.
90785
90786 2003-09-11  Bruno Haible  <bruno@clisp.org>
90787
90788         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90789
90790 2003-09-10  Jim Meyering  <jim@meyering.net>
90791
90792         * lib/error.c: Correct indentation of cpp directives.
90793
90794 2003-09-10  Bruno Haible  <bruno@clisp.org>
90795
90796         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90797         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90798         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90799         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90800         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90801         <stdlib.h> and <string.h> checks.
90802         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90803         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90804
90805 2003-09-10  Bruno Haible  <bruno@clisp.org>
90806
90807         * lib/strcspn.c: Include <string.h> unconditionally.
90808         * lib/strpbrk.c: Include <string.h> unconditionally.
90809         * lib/strstr.c: Include <string.h> unconditionally.
90810         * lib/unicodeio.c: Include <string.h> unconditionally.
90811         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90812         * lib/unsetenv.c: Likewise.
90813         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90814         * lib/yesno.c: Include <stdlib.h> unconditionally.
90815         (rpmatch): Add prototype.
90816
90817 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90818
90819         More patches to assume C89 or better.
90820         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90821         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90822         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90823         or for string.h.
90824         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90825         stdlib.h.
90826         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90827         C headers.
90828         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90829         string.h.
90830         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90831         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90832         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90833         or for string.h.
90834         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90835         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90836         C headers.
90837         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90838         memcpy.
90839         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90840         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90841         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90842         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90843         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90844         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90845         string.h, free.
90846         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90847         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90848         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90849         C headers, or for string.h.
90850         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90851         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90852         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90853         headers, memory.h, stdlib.h, string.h, strings.h.
90854         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90855         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90856         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90857         strchr.
90858         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90859         headers, memory.h, string.h.
90860         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90861         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90862         free.
90863         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90864         headers.
90865         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90866         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90867         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90868         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90869         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90870
90871 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90872
90873         More K&R removal.
90874
90875         * lib/acosl.c (main): Use a prototype.
90876         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90877         tanl.c: Likewise.
90878
90879         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90880
90881         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90882         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90883         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90884         with a prototype.
90885         * lib/getopt.c (const): Remove macro.
90886         Include <string.h> unconditionally.
90887         (my_index): Remove; all uses changed to strchr.
90888         (strlen): Remove decl.
90889         (exchange): Remove forward decl; no longer needed.
90890         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90891         Define with prototype.
90892         * lib/getopt1.c (const): Remove macro.
90893         (getopt_long, getopt_long_only, main): Define with prototype.
90894
90895         * lib/getugroups.c: Include <string.h> unconditionally.
90896
90897         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90898         (getusershell, setusershell, endusershell, readname, main):
90899         Define with prototypes.
90900
90901         * lib/group-member.c: Include group-member.h first.
90902         Include <stdlib.h> unconditionally.
90903
90904         * lib/hard-locale.c: Include hard-locale.h first.
90905         Include <stdlib.h>, <string.h> unconditionally.
90906
90907         * lib/hash.c (free, malloc): Remove decls.
90908         Include <stdlib.h> unconditionally.
90909
90910         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90911         (getenv): Do not declare.
90912
90913         * lib/idcache.c: Include <string.h> unconditionally.
90914
90915         * lib/long-options.c: Include long-options.h first, to test interface.
90916         Include <stdlib.h> unconditionally.
90917
90918         * lib/makepath.c: Include makepath.h first, to test interface.
90919         Include <stdlib.h> and <string.h> unconditionally.
90920
90921         * lib/linebuffer.c: Include <stdlib.h>.
90922         (free): Remove decl.
90923
90924         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90925         stddef.h. rpl_malloc returns void *, not char *.
90926         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90927         prototype.
90928
90929         * lib/md5.h: Include <limits.h> unconditionally.
90930         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90931         (__P): Remove; all uses removed.
90932         * lib/md5.c: Include "md5.h" first.
90933         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90934         md5_buffer, md5_process_bytes, md5_process_block):
90935         Define with prototypes.
90936         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90937         * lib/sha.c: Include "sha.h" first.
90938         Include <stdlib.h>, <string.h> unconditionally.
90939
90940         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90941         * lib/memcmp.c (__ptr_t): Likewise.
90942         * lib/memrchr.c (__ptr_t): Likewise.
90943         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90944         Include <string.h> unconditionally.
90945         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90946         * lib/memchr.c: Include <stdlib.h> unconditionally.
90947         * lib/memchr.c (LONG_MAX): Remove.
90948         * lib/memrchr.c (LONG_MAX): Likewise.
90949         * lib/memchr.c (__memchr): Define via a prototype.
90950         * lib/memrchr.c (__memrchr): Likewise.
90951         * lib/memcmp.c (__P): Remove, and remove all uses.
90952         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90953         Remove forward decls; no longer needed.
90954         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90955         Use types required by C89 in prototype.
90956
90957         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90958         * lib/savedir.c: Likewise.
90959         * lib/mkdir.c (free): Remove decl.
90960         * lib/rmdir.c (rmdir): Define with a prototype.
90961         * lib/savedir.c: Include savedir.h first, to test interface.
90962
90963         * lib/mktime.c (STDC_HEADERS): Remove.
90964         Include <stdlib.h>, <string.h> unconditionally.
90965
90966         * lib/modechange.c: Include <stdlib.h> unconditionally.
90967         (malloc): Remove decl.
90968
90969         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90970         (free): Remove decl.
90971
90972         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90973         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90974         (This type really should be intptr_t, but that's a C99ism.)
90975         (_obstack_memcpy): Remove: all uses changed to memcpy.
90976         Include <string.h> unconditionally.
90977         (struct obstack): Assume __STDC__ for types of members
90978         chunkfun, freefun, extra_arg.
90979         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90980         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90981         obstack_begin, obstack_specify_allocation,
90982         obstack_specify_allocation_with_arg, obstack_chunkfun,
90983         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90984         Remove unprototyped decls and the macros that use them.
90985         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90986         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90987         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90988         (defined __STDC__ && __STDC__)]:
90989         Remove nonprototyped code.
90990         Include <stdlib.h> unconditionally.
90991         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90992         _obstack_allocated_p, _obstack_free, obstack_free,
90993         _obstack_memory_used, print_and_abort):
90994         Define using prototypes.
90995         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90996         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90997         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90998         obstack_next_free, obstack_object_size, obstack_room) [0]:
90999         Remove unused, unprototyped code.
91000
91001         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91002
91003         * lib/physmem.c (physmem_total, physmem_available, main): Define
91004         with prototypes.
91005
91006         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91007         (main): Define with a prototype.
91008
91009         * lib/posixver.c (getenv): Remove decl.
91010
91011         * lib/putenv.c (malloc): Returns void *, not char *.
91012         Include <string.h> unconditionally.
91013         (strchr, memcpy, NULL): Do not define.
91014
91015         * lib/readtokens.c: Include readtokens.h first, to test interface.
91016         Include <stdlib.h>, <string.h> unconditionally.
91017         (init_tokenbuffer): Define with a prototype.
91018
91019         * lib/regex.c (PARAMS): Remove.  All uses removed.
91020         All uses of _RE_ARGS removed, too.
91021         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91022         unconditionally.
91023         (bzero): Assume memset exists.
91024         (memcmp, memcpy, NULL): Remove.
91025         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91026         char, or assignments to local vars of type signed char.
91027         (init_syntax_once, PREFIX(extract_number_and_incr),
91028         PREFIX(print_partial_compiled_pattern),
91029         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91030         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91031         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91032         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91033         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91034         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91035         wcs_compile_range, byte_compile_range, truncate_wchar,
91036         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91037         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91038         count_mbs_length, wcs_re_match_2_internal,
91039         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91040         PREFIX(alt_match_null_string_p),
91041         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91042         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91043         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91044         now-unnecessary declaration, if any.
91045         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91046         regcomp, regexec):
91047         Remove now-unnecessary casts among pointer types.
91048         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91049
91050         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91051         (free): Remove decl.
91052
91053         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91054
91055         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91056         (free): Remove decl.
91057
91058         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91059         * lib/xgetcwd.c: Likewise.
91060
91061         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91062         (free): Remove decl.
91063
91064         * lib/strchrnul.c (strchrnul): Define with a prototype.
91065         Fix bug: c_in was not converted to char before searching.
91066
91067         The following changes are not K&R related:
91068
91069         * lib/group-member.h: Include <sys/types.h>, so that this file is
91070         self-contained.
91071         * lib/makepath.h: Likewise.
91072
91073         * lib/getusershell.c (readname, default_index, line_size, readname):
91074         Use size_t, not int, for sizes.
91075         (readname): If the size overflows, report an error instead of
91076         looping forever.
91077
91078 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91079
91080         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91081         libc.
91082
91083 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91084
91085         * README: New section: portability guidelines.
91086
91087 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91088
91089         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91090         C89 spec.
91091
91092 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91093
91094         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91095
91096 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91097
91098         Assume C89 or better; remove K&R cruft.
91099         A few of these changes were first proposed by Derek Robert Price
91100         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91101
91102         * lib/addext.c: Include <string.h> unconditionally.
91103         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91104         Don't declare getenv or malloc.
91105
91106         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91107         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91108         (NULL): Remove.
91109         (find_stack_direction, alloca): Use prototypes.
91110
91111         * lib/atexit.c (atexit): Define using a prototype.
91112
91113         * lib/basename.c, dirname.c, stripslash.c:
91114         Include <string.h> unconditionally.
91115
91116         * lib/bcopy.c: Include <stddef.h>.
91117         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91118
91119         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91120
91121         * lib/error.h (error, error_at_line, error_print_progname)
91122         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91123         * lib/error.c: Include error.h first, to check interface.
91124         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91125         (VA_START): Remove; all uses changeed to va_start.
91126         (exit, strerror): Remove decls.
91127         (error_print_progname): Prototype uncondionally.
91128         Don't include <errno.h>; no longer needed.
91129         (private_strerror): Remove.
91130         (error_tail): Always define.
91131         (error, error_at_line): Assume C89 or better; always use prototypes.
91132         * lib/fatal.c: Include "fatal.h" first, to test interface.
91133         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91134         (VA_START): Remove; all uses changed to va_start.
91135         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91136         this case.
91137         (exit): Remove decl.
91138         (fatal): Prototype unconditionally.  Assume va_start works.
91139         Abort at end, to pacify gcc.
91140
91141         * lib/euidaccess.c (main): Define with a prototype.
91142
91143         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91144
91145         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91146
91147         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91148         prototypes.
91149         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91150         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91151         (getenv): Remove decl.
91152         (fnmatch): Define using a prototype.
91153         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91154         (FCT): Define using a prototype.
91155
91156         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91157
91158         * lib/gethostname.c: Include <stddef.h>.
91159         (gethostname): Define with prototype.  Length is size_t, not int.
91160
91161 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91162
91163         Assume C89 or better; remove K&R cruft.
91164         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91165         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91166         string.h, getenv, malloc.
91167         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91168         headers.
91169         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91170         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91171         do not check for strerror.
91172         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91173         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91174         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91175         do not check for doprnt or vprintf.
91176         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91177         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91178
91179 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91180
91181         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91182         getversion.c should have been removed then, but was accidentally
91183         preserved.
91184
91185         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91186         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91187
91188 2003-09-08  Karl Berry  <karl@gnu.org>
91189
91190         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91191                 config, forget about prep.
91192
91193         * config/depcomp, missing: update from automake.
91194
91195 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91196
91197         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91198         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91199
91200 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91201
91202         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91203         copy_tm_result.  Bug reported by Simon Josefsson in
91204         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91205
91206 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91207
91208         * m4/time_r.m4: New file.
91209         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91210         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91211         is. Check for timegm declaration.
91212         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91213         Do not check for gmtime_r.
91214         Replace mktime if __mktime_internal does not exist and if mktime
91215         hasn't been replaced already.
91216
91217 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91218
91219         * lib/time_r.c, lib/time_r.h: New files.
91220
91221         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91222         __localtime_r.
91223         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91224         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91225
91226         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91227         __gmtime_r.
91228         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91229         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91230         Include <time_r.h>.
91231
91232         * lib/timegm.c: Switch to glibc implementation, with the following
91233         changes:
91234         [defined HAVE_CONFIG_H]: Include <config.h>.
91235         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91236         (__mktime_internal) [!defined _LIBC]: New decl.
91237         (__gmtime_r) [!defined _LIBC]: New macro and function.
91238         (timegm): Use a prototype, since gnulib assumes C89.
91239         Do not bother declaring tmp to be const, as it's not really usefu.
91240         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91241         (timegm): Declare only if HAVE_DECL_TIMEGM.
91242
91243 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91244
91245         * MODULES.html.sh (func_all_modules): Add time_r.
91246         * modules/time_r: New file.
91247         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91248         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91249
91250 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91251
91252         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91253         Bug reported by Lute Kamstra in
91254         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91255
91256         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91257         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91258         course with correspondingly smaller numbers for tomorrow and
91259         yesterday.  From Tadayoshi Funaba.  Originally installed into
91260         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91261         coreutils merge?).
91262
91263 2003-08-31  Simon Josefsson  <jas@extundo.com>
91264
91265         * modules/timegm: New file.
91266         * MODULES.html.sh (func_all_modules): Add timegm.
91267
91268 2003-08-31  Simon Josefsson  <jas@extundo.com>
91269
91270         * m4/timegm.m4: New file.
91271
91272 2003-08-31  Simon Josefsson  <jas@extundo.com>
91273
91274         * lib/timegm.h: New file.
91275         * lib/timegm.c: New file.  Based on
91276         wget-1.8.2/src/http.c:mktime_from_utc.
91277
91278 2003-08-31  Karl Berry  <karl@gnu.org>
91279
91280         * lib/argp.h: update from libc.
91281
91282 2003-08-28  Bruno Haible  <bruno@clisp.org>
91283
91284         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91285         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91286         followed by '#define fnmatch fnmatch_posix' gives an error.
91287
91288 2003-08-28  Bruno Haible  <bruno@clisp.org>
91289
91290         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91291         warning on QNX, which defines O_BINARY to 000000.
91292
91293 2003-08-27  Jim Meyering  <jim@meyering.net>
91294
91295         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91296         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91297         would fail after 32.  Reported by Danny Levinson.  Details here:
91298         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91299
91300 2003-08-24  Bruno Haible  <bruno@clisp.org>
91301
91302         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91303         MSVC7 <stdio.h> is included later.
91304
91305 2003-08-22  Simon Josefsson  <jas@extundo.com>
91306
91307         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91308
91309 2003-08-20  Karl Berry  <karl@gnu.org>
91310
91311         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91312
91313 2003-08-20  Bruno Haible  <bruno@clisp.org>
91314
91315         * modules/progname: New file.
91316         * MODULES.html.sh (func_all_modules): Add progname.
91317
91318 2003-08-20  Bruno Haible  <bruno@clisp.org>
91319
91320         * lib/progname.h: New file, from GNU gettext.
91321         * lib/progname.c: New file, from GNU gettext.
91322         * lib/progreloc.c: New file, from GNU gettext.
91323
91324 2003-08-19  Jim Meyering  <jim@meyering.net>
91325
91326         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91327         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91328
91329 2003-08-19  Bruno Haible  <bruno@clisp.org>
91330
91331         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91332         more.
91333
91334 2003-08-19  Bruno Haible  <bruno@clisp.org>
91335
91336         * lib/xstrdup.c: Assume <string.h> exists.
91337
91338 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91339
91340         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91341         in makefile rules.
91342
91343 2003-08-18  Jim Meyering  <jim@meyering.net>
91344
91345         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91346         * m4/lib-ld.m4: Likewise.
91347
91348 2003-08-18  Jim Meyering  <jim@meyering.net>
91349
91350         * lib/setenv.h: Indent nested cpp directive.
91351         * lib/vasnprintf.c: Remove trailing blanks.
91352
91353 2003-08-17  Simon Josefsson  <jas@extundo.com>
91354
91355         * modules/xstrndup: New file.
91356         * MODULES.html.sh (func_all_modules): Add xstrndup.
91357
91358 2003-08-17  Simon Josefsson  <jas@extundo.com>
91359
91360         * modules/argp: Fix autoconf macro name. Add more dependencies.
91361
91362 2003-08-17  Simon Josefsson  <jas@extundo.com>
91363
91364         * m4/xstrndup.m4: New file.
91365
91366 2003-08-17  Simon Josefsson  <jas@extundo.com>
91367
91368         * m4/argp.m4: New file.
91369
91370 2003-08-17  Simon Josefsson  <jas@extundo.com>
91371             Bruno Haible  <bruno@clisp.org>
91372
91373         * lib/xstrndup.h: New file.
91374         * lib/xstrndup.c: New file.
91375
91376 2003-08-17  Bruno Haible  <bruno@clisp.org>
91377
91378         * modules/strndup (Files, Include): Add lib/strndup.h.
91379
91380 2003-08-17  Bruno Haible  <bruno@clisp.org>
91381
91382         * modules/euidaccess (Files): Add lib/euidaccess.h.
91383
91384 2003-08-17  Bruno Haible  <bruno@clisp.org>
91385
91386         * lib/strndup.h: New file.
91387
91388 2003-08-17  Bruno Haible  <bruno@clisp.org>
91389
91390         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91391         like AC_GNU_SOURCE.
91392         * modules/extensions (configure.ac): Comment out the invocation of
91393         gl_USE_SYSTEM_EXTENSIONS.
91394
91395 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91396
91397         Merges from coreutils, etc.
91398         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91399         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91400         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91401         fixing a typo.
91402         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91403         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91404
91405 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91406
91407         Document merge from coreutils.
91408         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91409         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91410         * modules/utime: Add m4/utimes-null.m4.
91411
91412 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91413
91414         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91415         space, undoing this 2003-08-12 change:
91416         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91417
91418 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91419
91420         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91421         strtoul.c from libc, undoing this 2003-08-12 change:
91422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91423
91424 2003-08-16  Jim Meyering  <jim@meyering.net>
91425
91426         Merges from coreutils.
91427         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91428         prefix.  Adjust cache variables similarly.  Create 500 rather than
91429         just 300 files, to exercise bug on Darwin6.5, too.
91430         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91431         $missing_dir.
91432         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91433         AM_SYS_POSIX_TERMIOS.
91434         Reported by mkc@mathdogs.com.
91435         Also change use of $am_cv_sys_posix_termios
91436         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91437         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91438         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91439         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91440         in /proc/mounts until it finds one with matching device number.  This
91441         is unnecessary when the FILE argument *is* a mount point.  No stat call
91442         is necessary in that case.  So, disable the statvfs-testing code on
91443         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91444         as RedHat bug# 84846.
91445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91446         to 1MB, so as not to render systems with no stack size limit (e.g.,
91447         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91448         Include <unistd.h>.  On some systems,
91449         it is required for the definition of _SC_PAGESIZE.
91450
91451 2003-08-16  Jim Meyering  <jim@meyering.net>
91452
91453         Merge from coreutils.
91454         * lib/xstrtoimax.c: #else #if -> #elif.
91455         * lib/xstrtoumax.c: Likewise.
91456
91457 2003-08-16  Jim Meyering  <jim@meyering.net>
91458
91459         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91460         * m4/utimes.m4: Removed.
91461         * m4/utimes-null.m4: Renamed from utimes.m4.
91462
91463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91464         to 1MB, so as not to render systems with no stack size limit (e.g.,
91465         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91466         Include <unistd.h>.  On some systems,
91467         it is required for the definition of _SC_PAGESIZE.
91468
91469 2003-08-16  Jim Meyering  <jim@meyering.net>
91470         and Paul Eggert  <eggert@cs.ucla.edu>
91471
91472         Merges from coreutils, etc.
91473
91474         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91475         using the latest version from cvs.  This avoids problems with #line
91476         directives using a vendor (Sun) compiler.
91477         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91478         Don't set GETGROUPS_LIB here; now it's
91479         done via getgroups.m4's wrapper function.
91480         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91481         rather than just in sh-util/configure.in, so that the
91482         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91483         same.
91484         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91485         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91486         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91487         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91488         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91489         Remove code that is now done by the newly-required macros.
91490         Append $(EXEEXT) to DF_PROG.
91491         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91492         Do not invoke or require the following here,
91493         since prereq.m4 or some gnulib .m4 now does this for us:
91494         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91495         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91496         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91497         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91498         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91499         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91500         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91501         AC_FUNC_OBSTACK.
91502         Do not replace the following functions, as this is now the job
91503         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91504         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91505         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91506         atexit getpass, strdup, getpagesize.
91507         Replace 'raise'.
91508         Do not check for the following functions, as this is now the job
91509         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91510         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91511         setregid.
91512         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91513         Check for sys/sysctl.h.
91514         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91515         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91516         of checking for ssize_t ourselves.
91517
91518         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91519         Require every macro that gnulib/modules/* suggests for us.
91520         (jm_PREREQ_ADDEXT): New macro.
91521         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91522         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91523
91524         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91525         (gl_PHYSMEM): Use it.
91526         Also check for `table' function.
91527         Check for new headers and functions.
91528         Add check for sys/sysmp.h.
91529         With suggestions from Kaveh Ghazi.
91530         Ignore headers that are present but cannot be compiled.  This
91531         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91532         C 5.4.
91533
91534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91535
91536         Document merge from coreutils.
91537         * modules/userspec: Depend on posixver.
91538         * modules/strftime: Depend on tzset.
91539
91540 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91541
91542         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91543         rather than tab, after '#' in shell-script copyright notices.
91544         Suggested by Bruno Haible.
91545
91546 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91547
91548         * config/srclist-update: Use three spaces, rather than tab, after '#'
91549         in shell-script copyright notices.  Suggested by Bruno Haible.
91550         Remove unnecessary parenthesization in regular expression.
91551
91552 2003-08-15  Jim Meyering  <jim@meyering.net>
91553
91554         Merge from coreutils.
91555         * lib/xgethostname.c: Include <stdlib.h>.
91556         (xghostname): Don't exit for anything other than memory-related
91557         failure; just return NULL.
91558         * lib/userspec.c: Include "posixver.h".
91559         (parse_user_spec): Accept `.' as a separator only
91560         in pre-POSIX-200112 mode.
91561         * lib/strtoimax.c: Use #elif rather than #else #if.
91562         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91563         Remove function, now that we can rely on a working tzset function.
91564         [!_LIBC]: Ensure that the required autoconf test has been run.
91565         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91566         Use underlying_strftime for %r.
91567         * lib/sha.c: Merge in some clean-up and optimization changes from
91568         glibc.
91569         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91570         Ensure that it is a multiple of 64.
91571         Rearrange loop exit tests so as to avoid performing an
91572         additional fread after encountering an error or EOF.
91573         * lib/realloc.c: Update copyright date.
91574
91575 2003-08-15  Jim Meyering  <jim@meyering.net>
91576         and Paul Eggert  <eggert@twinsun.com>
91577
91578         Merge from coreutils.
91579         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91580         member but strut utmpx does not.  Needed for AIX 4.3.3.
91581         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91582
91583 2003-08-15  Jim Meyering  <jim@meyering.net>
91584         and Paul Eggert  <eggert@cs.ucla.edu>
91585
91586         Merges from coreutils, etc.
91587         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91588         Require gl_FUNC_TZSET_CLOBBER.
91589         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91590         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91591         members.
91592
91593 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91594
91595         Help the merge from coreutils.
91596         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91597         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91598         * m4/tzset.m4: Use it too.
91599
91600 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91601
91602         * modules/tzset: New file.
91603
91604 2003-08-14  Jim Meyering  <jim@meyering.net>
91605
91606         Merges from coreutils.
91607         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91608         variable names, rather than @FNMATCH_H@.
91609         * modules/alloca: Likewise for $(ALLOCA_H).
91610
91611         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91612         the three copies of the literal target, `fnmatch.h'.
91613         * modules/alloca (alloca.h): Likewise.
91614
91615 2003-08-14  Jim Meyering  <jim@meyering.net>
91616
91617         Merge from coreutils.
91618         * m4/tzset.m4: New file.
91619         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91620         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91621         otherwise, AIX 5.1 systems would end up using the latter.
91622         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91623         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91624         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91625         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91626
91627 2003-08-14  Jim Meyering  <jim@meyering.net>
91628
91629         Merge from coreutils.
91630         * lib/obstack.h: Whitespace changes.
91631         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91632         and xcalloc return values.
91633         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91634         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91635         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91636         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91637         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91638         error from mntctl.
91639         Use mntctl's return value to drive the entry-processing loop, since
91640         we can't rely on the value of the vmt_length member in the last
91641         entry.  On some systems doing so could result in exhausting
91642         virtual memory.  Based in part on a patch from Mike Jetzer.
91643
91644 2003-08-14  Jim Meyering  <jim@meyering.net>
91645         and Paul Eggert  <eggert@twinsun.com>
91646
91647         Merges from coreutils, plus other fixes.
91648         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91649         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91650         for credits and details.  Thanks to Kaveh Ghazi for helping
91651         to keep these files in sync.
91652         (ARRAY_SIZE): Define it.
91653         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91654         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91655         (memcasecmp): Don't assume size_t fits in unsigned int.
91656         Remove casts and duplicate code.
91657         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91658         (memcpy): Remove definition.
91659         Merge in some clean-up and optimization changes from glibc.
91660         [BLOCKSIZE]: Move definition to top of file.
91661         Ensure that it is a multiple of 64.
91662         Rearrange loop exit tests so as to avoid performing an
91663         additional fread after encountering an error or EOF.
91664         * lib/md5.h (md5_uintptr): Define.
91665         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91666         return to the initial working directory.  Preserve errno
91667         for caller.
91668         * lib/idcache.c: Include "xalloc.h".
91669         (xmalloc, xrealloc): Remove decls.
91670         (getuser): Remove casts no longer required in C89.
91671         * lib/human.c: Include stdio.h, for sprintf.
91672         * lib/group-member.c: Include "xalloc.h".
91673         (xmalloc, xrealloc): Remove decls.
91674         (get_group_info): Remove casts no longer required in C89.
91675         * lib/getusershell.c (readname): Remove casts no longer required in
91676         C89.
91677         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91678         * lib/getline.c: Whitespace fix, from coreutils.
91679
91680 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91681
91682         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91683         Check for isascii.
91684
91685         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91686         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91687         Undo previous (whitespace-only) change.
91688
91689 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91690
91691         * lib/exclude.c: Include <ctype.h>
91692         (IN_CTYPE_DOMAIN): New macro.
91693         (is_space): New fn.
91694         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91695         and empty lines.
91696
91697         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91698         Undo previous (whitespace-only) change.
91699
91700 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91701
91702         * config/srclist-update: Change update back to the old behavior,
91703         leaving whitespace alone.  Use one 'sed' command rather than a
91704         pipeline.
91705         (fixlicense): Now a variable, not a function.
91706         (remove_trailing_blanks): Remove.
91707         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91708         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91709         Undo previous (whitespace-only) change.
91710
91711 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91712
91713         Merge from coreutils.
91714         * modules/euidaccess: Add lib_SOURCES, include for new
91715         file euidaccess.h
91716
91717 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91718
91719         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91720         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91721         Normalize leading white space and remove trailing white space.
91722
91723         Merge from coreutils
91724         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91725
91726         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91727         0.12.1.  These files are now being upgraded automatically by
91728         ../config/srclist-update.
91729
91730 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91731
91732         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91733         Normalize leading white space and remove trailing white space.
91734         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91735         notice, as per ../config/srclist-update.
91736
91737         Merge from coreutils.
91738         * lib/euidaccess.h: New file.
91739         * lib/euidaccess.c: Include it.
91740         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91741         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91742         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91743
91744 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91745
91746         * config/srclist-update: Add copyright notice.
91747         (remove_id_lines, remove_trailing_blanks): New constants.
91748         (fixfile): Use them to normalize spacing a bit in copied files.
91749         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91750         Normalize leading white space and remove trailing white space.
91751
91752         * config/texinfo.tex: Sync with texinfo.
91753
91754         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91755         strtoul.c from libc, to merge coreutils whitespace changes.
91756
91757         * config/srclist.txt: Get the following m4 files from gettext:
91758         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91759         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91760         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91761         wint_t.m4.
91762
91763 2003-08-12  Karl Berry  <karl@gnu.org>
91764
91765         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91766         been made.
91767
91768 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91769
91770         * modules/gnu-source, m4/gnu-source.m4:
91771         Remove; we're assuming Autoconf 2.54 or later now.
91772         Suggested by Bruno Haible.
91773         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91774
91775 2003-08-11  Bruno Haible  <bruno@clisp.org>
91776
91777         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91778
91779 2003-08-11  Bruno Haible  <bruno@clisp.org>
91780
91781         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91782         (vasnprintf): Use it instead of wcslen.
91783
91784 2003-08-11  Bruno Haible  <bruno@clisp.org>
91785
91786         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91787         value to ensure that _Bool promotes to int. Use #define for _Bool when
91788         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91789
91790 2003-08-10  Karl Berry  <karl@gnu.org>
91791
91792         * lib/regex.h: update from libc (whitespace fix).
91793
91794 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91795
91796         Merge some files from coreutils.  These changes were
91797         originally made by Jim Meyering.
91798         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91799         many older Unixes require this.
91800         * lib/alloca.c (alloca): Remove cast to argument of free;
91801         no longer needed in C89.
91802         * lib/alloca_.h, regex.h: Fix white space to match
91803         what GNU indent does.
91804
91805 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91806
91807         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91808         apparently Emacs's Unicode mode got confused before my 2003-08-05
91809         checkin.
91810
91811 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91812
91813         * m4/extensions.m4: New file.
91814         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91815         Require gl_USE_SYSTEM_EXTENSIONS.
91816         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91817         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91818
91819 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91820
91821         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91822         * modules/extensions, modules/gnu-source: New files.
91823         * modules/timespec, modules/unlocked-io: Depend on extensions.
91824
91825 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91826
91827         * modules/restrict: New file.
91828         * MODULES.html.sh (func_all_modules): Add restrict.
91829         * modules/regex: Depend on restrict.
91830
91831 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91832
91833         * m4/restrict.m4: New file.
91834         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91835
91836 2003-08-07  Bruno Haible  <bruno@clisp.org>
91837
91838         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91839         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91840
91841 2003-08-07  Bruno Haible  <bruno@clisp.org>
91842
91843         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91844         makes the module 'getndelim2' compatible with the module 'getline'.
91845
91846 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91847
91848         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91849         byte with "\201" to avoid glitches when editing that source file
91850         with multi-gnome-terminal.
91851
91852 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91853
91854         * lib/bumpalloc.h: Remove.
91855
91856 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91857
91858         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91859         * modules/bumpalloc: Remove.
91860
91861 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91862
91863         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91864         GNU coding style.
91865
91866         Merge from coreutils.
91867         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91868         1. From glibc.
91869         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91870         from Karl Berry, implemented by Jim Meyering.
91871         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91872         from Dmitry V. Levin.
91873         Remove anachronistic cast of xrealloc.
91874         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91875         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91876         type. Otherwise, it wouldn't compile with at least /bin/cc on
91877         ymp-cray-unicos9.0.2.X.
91878         Combine two mostly-identical uses of alloca into one.
91879         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91880
91881 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91882
91883         [From Emacs.]
91884
91885         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91886         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91887         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91888         obsolete NLIST_NAME_UNION.
91889         [__GNU__]: Undef BSD and FSCALE.
91890         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91891
91892 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91893
91894         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91895         an enum type, so that it's guaranteed to promote to int.  See:
91896         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91897
91898 2003-08-03  Karl Berry  <karl@gnu.org>
91899
91900         * config/depcomp: update from automake.
91901
91902 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91903
91904         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91905         (strerror): Don't assume that a printable int fits in 14 bytes.
91906
91907 2003-07-31  Bruno Haible  <bruno@clisp.org>
91908
91909         * modules/getpass-gnu: New file.
91910         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91911
91912 2003-07-31  Bruno Haible  <bruno@clisp.org>
91913
91914         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91915
91916 2003-07-24  Karl Berry  <karl@gnu.org>
91917
91918         * config/missing: update from automake.
91919
91920 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91921             Bruno Haible  <bruno@clisp.org>
91922
91923         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91924         * lib/getline.c (getline, getdelim): Likewise.
91925         Remove _GNU_SOURCE define; now it's defined in config.h through
91926         m4/getline.m4.
91927
91928 2003-07-23  Karl Berry  <karl@gnu.org>
91929
91930         * config/config.sub: update from prep.
91931
91932 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91933
91934         * modules/xalloc (Depends-on): Add exitfail.
91935         * modules/xmemcoll: Likewise.
91936
91937 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91938
91939         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91940         over-parenthesization in macros.
91941
91942         Sync with coreutils.
91943
91944         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91945         required by C99.
91946
91947         Use `exit_failure' for xalloc and xmemcoll instead of their own
91948         private exit-failure variables.
91949         * lib/xalloc.h (xalloc_exit_failure): Remove.
91950         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91951         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91952         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91953         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91954         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91955
91956 2003-07-20  Jim Meyering  <jim@meyering.net>
91957
91958         * modules/closeout (Depends-on): Add exitfail.
91959         Suggestion from Bruno Haible.
91960
91961 2003-07-19  Karl Berry  <karl@gnu.org>
91962
91963         * config/config.sub: update from prep.
91964
91965 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91966
91967         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91968         Remove.
91969         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91970         to test that it can stand by itself.  Include "exitfail.h".
91971         Clients should set exit_failure instead.
91972         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91973
91974 2003-07-18  Bruno Haible  <bruno@clisp.org>
91975
91976         * modules/getndelim2: New file.
91977         * modules/getline: Share files with module getndelim2.
91978         * modules/getnline: Depend on getndelim2 instead of sharing files with
91979         it. Add getnline.c to lib_SOURCES.
91980         * MODULES.html.sh (func_all_modules): Add getndelim2.
91981
91982 2003-07-18  Bruno Haible  <bruno@clisp.org>
91983
91984         * m4/getndelim2.m4: New file.
91985         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91986         invoke gl_PREREQ_GETNDELIM2.
91987         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91988         gl_PREREQ_GETNDELIM2.
91989         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91990         gl_GETNDELIM2.
91991
91992 2003-07-18  Bruno Haible  <bruno@clisp.org>
91993
91994         * lib/getndelim2.h: New file.
91995         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91996         getndelim2.h.
91997         (getndelim2): Make non-static. Change return type to ssize_t.
91998         * lib/getline.h: Change argument names.
91999         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92000         * lib/getnline.c: Include getndelim2.h.
92001
92002 2003-07-18  Andreas Schwab  <schwab@suse.de>
92003
92004         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92005
92006 2003-07-17  Karl Berry  <karl@gnu.org>
92007
92008         * config/config.sub: update from prep.
92009
92010 2003-07-17  Bruno Haible  <bruno@clisp.org>
92011
92012         * modules/getnline: New file.
92013         * modules/getline: Add lib/getndelim2.c to source file list.
92014         * MODULES.html.sh (func_all_modules): Add getnline.
92015
92016 2003-07-17  Bruno Haible  <bruno@clisp.org>
92017
92018         * m4/getnline.m4: New file.
92019
92020 2003-07-17  Bruno Haible  <bruno@clisp.org>
92021
92022         * m4/Makefile.am.in: Remove file.
92023         * m4/Makefile.am: Remove file.
92024         * m4/Makefile.in: Remove file.
92025
92026 2003-07-17  Bruno Haible  <bruno@clisp.org>
92027
92028         * lib/getnline.h: New file.
92029         * lib/getnline.c: New file.
92030         * lib/getndelim2.c: New file, extracted from getline.c.
92031         (getndelim2): Renamed from getdelim2, with added nmax argument.
92032         * lib/getline.c: Include getndelim2.c.
92033         (getdelim2): Moved out to getndelim2.c.
92034         (getline, getdelim): Update.
92035
92036 2003-07-17  Bruno Haible  <bruno@clisp.org>
92037
92038         * lib/Makefile.am: Remove file.
92039         * lib/Makefile.in: Remove file.
92040
92041 2003-07-17  Bruno Haible  <bruno@clisp.org>
92042
92043         * configure.in: Remove file.
92044         * Makefile.in: Remove file.
92045
92046 2003-07-17  Bruno Haible  <bruno@clisp.org>
92047
92048         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92049
92050 2003-07-16  Karl Berry  <karl@gnu.org>
92051
92052         * config/srclist-update: was running fixlicense twice, which caused
92053                 texinfo.tex to be nullified for some reason.  Simplify,
92054                 $gplsrc is no longer needed as far as I can see?
92055
92056 2003-07-16  Jim Meyering  <jim@meyering.net>
92057
92058         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92059
92060 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92061
92062         * config/srclist.txt: Get the following files from gettext-runtime/intl
92063         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92064         ref-del.sin.  From Bruno Haible.
92065         * config/srclist-update (fixfile): Change grep pattern again, since the
92066         previous fix didn't work (there was another trailing $).  Use
92067         '[$]' to escape the $s.
92068
92069 2003-07-15  Karl Berry  <karl@gnu.org>
92070
92071         * lib/vasnprintf.c: update from gettext.
92072
92073 2003-07-15  Karl Berry  <karl@gnu.org>
92074
92075         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92076         gets expanded when surrounded by '$'.
92077
92078 2003-07-15  Jim Meyering  <jim@meyering.net>
92079
92080         * modules/save-cwd: Don't depend on error.  From Derek Price.
92081
92082 2003-07-15  Jim Meyering  <jim@meyering.net>
92083
92084         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92085
92086 2003-07-14  Simon Josefsson  <jas@extundo.com>
92087
92088         * modules/mempcpy: New file.
92089         * MODULES.html.sh (func_all_modules): Add mempcpy.
92090
92091 2003-07-14  Simon Josefsson  <jas@extundo.com>
92092
92093         * m4/mempcpy.m4: New file.
92094
92095 2003-07-14  Simon Josefsson  <jas@extundo.com>
92096
92097         * lib/mempcpy.h: New file.
92098         * lib/mempcpy.c: New file.
92099
92100 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92101
92102         * modules/getdate, modules/posixtm: Depend on mktime.
92103
92104 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92105
92106         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92107         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92108         unicodeio.c, unicodeio.h, unlocked-io.h:
92109         Switch from LGPL to GPL.
92110
92111 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92112
92113         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92114         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92115         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92116         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92117         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92118         updated automatically by ../config/srclist-update.  This changes
92119         their license from LPGL to GPL.
92120
92121 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92122
92123         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92124         assumed to refer to the root of the most recent stable gettext version.
92125         * config/srclistvars.sh: Add defaults for eggert.
92126         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92127         Match "This program" as well as "The program".  This is needed
92128         for gettext.
92129
92130 2003-07-14  Jim Meyering  <jim@meyering.net>
92131
92132         Don't emit diagnostics.  Let callers do that.
92133         * lib/save-cwd.c: Don't include "error.h".
92134         (save_cwd): Don't call error.  Ensure that errno is valid
92135         when returning nonzero.
92136
92137         * lib/save-cwd.h (restore_cwd): Update prototype.
92138         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92139         Simplify.  Don't call error upon failure.  Let callers do that.
92140         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92141         when auditing is enabled.  But don't bother updating the #if.
92142
92143 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92144
92145         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92146         it breaks C++ compilation.
92147         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92148
92149 2003-07-10  Simon Josefsson  <jas@extundo.com>
92150
92151         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92152
92153 2003-07-10  Jim Meyering  <jim@meyering.net>
92154
92155         * m4/clock_time.m4: Remove trailing blank.
92156         * m4/intmax_t.m4: Likewise.
92157
92158 2003-07-10  Jim Meyering  <jim@meyering.net>
92159
92160         * lib/vasnprintf.c: Remove trailing blanks.
92161         Make cpp indentation consistent.
92162
92163 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92164
92165         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92166         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92167         Switch from LGPL to GPL.
92168
92169 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92170
92171         * config/srclist.txt: Sort sublists.  Add
92172         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92173         that differ from gnulib for one reason or another; we'd like this list
92174         to be smaller but for now let's document what we have.
92175
92176 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92177
92178         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92179         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92180         and sweeter "eval x=$x".
92181         * config/srclist.txt: Get lib/argp* from glibc.
92182
92183 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92184
92185         * lib/mktime.c: Fix some boundary cases and remove need for floating
92186         point.
92187
92188         Issue a compile-time diagnostic if time_t is floating point, or if
92189         two's complement arithmetic is not in effect, or if arithmetic
92190         right shift does not propagate the sign.  These assumptions were
92191         all in the original code but they weren't checked.
92192
92193         (TIME_T_MIDPOINT, verify): New macros.
92194         (__isleap): Remove; it has integer overflow problems.
92195         (leapyear): New function, without those problems.
92196         (ydhms_tm_diff): Remove; splitting into two parts.
92197         (ydhms_diff): New function, containing the arithmetic part of
92198         the old ydhms_tm_diff function.  Issue a compile-time
92199         diagnostic if we are not using C99 integer division.
92200         Avoid casts when possible.
92201         (guess_time_tm): New function, containing the checking part of
92202         the old ydhms_tm_diff function.  Return the new value, rather than
92203         the difference between it and the old.  Accept a new argument T
92204         so that *T specifies the old value.  Check for overflow in the result.
92205
92206         (__mktime_internal): Use a time_t offset, not a long int offset.
92207         This undoes the 2003-06-04 change, which is no longer needed now
92208         that we have better overflow checking.
92209         (localtime_offset): Likewise.
92210
92211         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92212         and long are 64-bit but int is only 32-bit.
92213         (ydhms_diff): Use long int to store year1 and yday1.
92214         Issue a compile-time diagnostic if long int is not wide enough.
92215
92216         (__mktime_internal): Use long int to store adjusted year and yday.
92217         Use plain C rather than preprocessor commands, if that doesn't
92218         affect efficiency.
92219         Check for overflow (and try to repair) after each probe
92220         rather than checking only at the very end.  This avoids some bugs
92221         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92222         does not equal GMT offset at maximum time).
92223         Use integer to check for overflow rather than floating point; this
92224         is more portable to non-IEEE hosts, and is a tad faster.
92225         When we detect that we are oscillating between two values,
92226         don't check whether tm_isdst has the requested value, since
92227         we already know the answer.  When tm_isdst has the wrong value,
92228         use a different heuristic to find the right one, based on the
92229         extreme values actually observed in practice in tz2003a,
92230         rather than the (overly optimistic) "previous 3 calendar quarters".
92231
92232         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92233         "T const" to accommodate glibc style.
92234         (check_result): Use less-confusing report format.  "long" -> "long int.
92235         (main): Likewise.
92236         Don't loop if the iteration overflows time_t.
92237         Allow a negative step in the iteration.
92238
92239 2003-07-06  Karl Berry  <karl@gnu.org>
92240
92241         * config/depcomp: update from automake.
92242         * config/config.sub: update from prep.
92243
92244 2003-07-03  Karl Berry  <karl@gnu.org>
92245
92246         * config/config.guess: update from prep.
92247
92248 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92249
92250         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92251         xreadlink.c now includes it unconditionally.
92252
92253 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92254
92255         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92256         having it depend on HAVE_SYS_TYPES_H.
92257
92258 2003-07-01  Bruno Haible  <bruno@clisp.org>
92259
92260         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92261         <sys/types.h> should be sufficient.
92262         Reported by Paul Eggert.
92263
92264 2003-06-26  Karl Berry  <karl@gnu.org>
92265
92266         * config/depcomp: update from automake.
92267
92268 2003-06-26  Bruno Haible  <bruno@clisp.org>
92269
92270         * modules/human: Depend on module stdbool.
92271
92272 2003-06-25  Bruno Haible  <bruno@clisp.org>
92273
92274         * modules/readlink: New file.
92275         * modules/xreadlink: Depend on it.
92276         * MODULES.html.sh (func_all_modules): Add readlink.
92277
92278 2003-06-25  Bruno Haible  <bruno@clisp.org>
92279
92280         * m4/readlink.m4: New file.
92281
92282 2003-06-25  Bruno Haible  <bruno@clisp.org>
92283
92284         * lib/readlink.c: New file.
92285
92286 2003-06-22  Karl Berry  <karl@gnu.org>
92287
92288         * config/srclist.txt: update mkinstalldirs from automake.
92289         * config/mkinstalldirs: update.
92290
92291 2003-06-22  Bruno Haible  <bruno@clisp.org>
92292
92293         Portability to mingw32.
92294         * m4/ssize_t.m4: New file, from GNU gettext.
92295         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92296         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92297
92298 2003-06-22  Bruno Haible  <bruno@clisp.org>
92299
92300         * modules/safe-read: Add m4/ssize_t.m4.
92301         * modules/xreadlink: Add m4/ssize_t.m4.
92302
92303 2003-06-20  Bruno Haible  <bruno@clisp.org>
92304
92305         Assume C89, so PARAMS isn't needed.
92306         * lib/unicodeio.h (PARAMS): Remove.
92307         * lib/unicodeio.c: Don't use PARAMS.
92308
92309 2003-06-18  Karl Berry  <karl@gnu.org>
92310
92311         * config/config.{guess,sub}: update from prep.
92312
92313 2003-06-18  Jim Meyering  <jim@meyering.net>
92314
92315         Merge changes from coreutils.
92316         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92317         Remove explicit declarations of xmalloc and realloc.
92318         Include xalloc.h.
92319         (read_utmp): Remove anachronistic cast of xmalloc.
92320
92321 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92322
92323         Assume C89, so PARAMS isn't needed.
92324         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92325         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92326         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92327         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92328         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92329         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92330         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92331         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92332         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92333         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92334         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92335         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92336         no longer needed. Anyway, config.h should always be included before any
92337         other file.
92338
92339 2003-06-11  Simon Josefsson  <jas@extundo.com>
92340
92341         * modules/sysexits: New file.
92342         * MODULES.html.sh (func_all_modules): Add sysexits.
92343
92344 2003-06-11  Simon Josefsson  <jas@extundo.com>
92345
92346         * lib/sysexit_.h: New file.
92347
92348 2003-06-11  Derek Price  <derek@ximbiot.com>
92349
92350         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92351         necessary.
92352
92353 2003-06-11  Bruno Haible  <bruno@clisp.org>
92354
92355         * m4/sysexits.m4: New file.
92356
92357 2003-06-10  Simon Josefsson  <jas@extundo.com>
92358
92359         * lib/argp.h: New file, from glibc.
92360         * lib/argp-ba.c: New file, from glibc.
92361         * lib/argp-eexst.c: New file, from glibc.
92362         * lib/argp-fmtstream.c: New file, from glibc.
92363         * lib/argp-fmtstream.h: New file, from glibc.
92364         * lib/argp-fs-xinl.c: New file, from glibc.
92365         * lib/argp-help.c: New file, from glibc.
92366         * lib/argp-namefrob.h: New file, from glibc.
92367         * lib/argp-parse.c: New file, from glibc.
92368         * lib/argp-pv.c: New file, from glibc.
92369         * lib/argp-pvh.c: New file, from glibc.
92370         * lib/argp-xinl.c: New file, from glibc.
92371
92372 2003-06-10  Simon Josefsson  <jas@extundo.com>
92373
92374         * modules/strchrnul: New file.
92375
92376 2003-06-10  Simon Josefsson  <jas@extundo.com>
92377
92378         * modules/argp: New file.
92379
92380 2003-06-10  Simon Josefsson  <jas@extundo.com>
92381
92382         * m4/strchrnul.m4: New file.
92383
92384 2003-06-10  Simon Josefsson  <jas@extundo.com>
92385
92386         * lib/strchrnul.h: New file.
92387         * lib/strchrnul.c: New file.
92388
92389 2003-06-10  Bruno Haible  <bruno@clisp.org>
92390
92391         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92392
92393 2003-06-07  Karl Berry  <karl@gnu.org>
92394
92395         * config/config.{guess,sub}: update from prep.
92396
92397 2003-06-07  Jim Meyering  <jim@meyering.net>
92398
92399         * modules/strtod: Use $(...) notation, not @...@ for
92400         AC_REPLACE'd variables.
92401         * modules/localcharset: Likewise.
92402
92403 2003-06-07  Jim Meyering  <jim@meyering.net>
92404
92405         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92406         in place of my name in the copyright comment.
92407         Remove definition and uses of __P.
92408
92409         From coreutils.
92410         * lib/stat.c: Don't declare xmalloc explicitly.
92411         Instead, include "xalloc.h".
92412         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92413         xrealloc, and xcalloc return values.
92414         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92415         Improve comment.
92416         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92417
92418 2003-06-07  Bruno Haible  <bruno@clisp.org>
92419
92420         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92421         avoid AC_CONFIG_LINKS.
92422         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92423         fnmatch.h, to avoid AC_CONFIG_LINKS.
92424         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92425
92426 2003-06-07  Bruno Haible  <bruno@clisp.org>
92427
92428         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92429         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92430         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92431         directory.
92432         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92433         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92434         directory.
92435
92436 2003-06-06  Jim Meyering  <jim@meyering.net>
92437
92438         Merge from coreutils.
92439         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92440         Consolidate declarations and initializations of *_base* locals.
92441
92442         Merge from coreutils.
92443         This avoids a core dump on systems without GNU putenv,
92444         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92445         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92446         (unsetenv): New static function, from GNU libc.
92447         (rpl_putenv): Use it.
92448
92449         * lib/modechange.c: Remove trailing blanks.
92450
92451         Merge from coreutils.
92452         * lib/fsusage.c: Remove declaration of statfs.
92453         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92454
92455         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92456
92457 2003-06-06  Jim Meyering  <jim@meyering.net>
92458
92459         * lib/stdbool_.h: Renamed from stdbool.h.in.
92460
92461 2003-06-06  Jim Meyering  <jim@meyering.net>
92462             Bruno Haible  <bruno@clisp.org>
92463
92464         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92465         Adjust Makefile.am snippet not to redirect directly to target.
92466         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92467
92468 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92469
92470         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92471         mismatch, look in future quarters as well as past.  This fixes a
92472         bug when processing fall-backwards gaps immediately after a long
92473         period of daylight-saving time.
92474
92475         * lib/mktime.c: Assume freestanding C89 or better.
92476         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92477         (__P): Remove; not used.
92478         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92479         (mktime, not_equal_tm, print_tm, check_result,
92480         main): Use prototypes.  Use const * where appropriate.
92481         (main): Fix typo in testing code that uncovered by above changes.
92482         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92483
92484 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92485
92486         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92487         locale.h, localeconv.  This merges changes from coreutils.
92488
92489         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92490         It can be removed after the next Autoconf is released.
92491         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92492         needed.
92493
92494 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92495
92496         * lib/mktime.c: Fix Debian bug 177940
92497         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92498         (localtime_offset): Now long int, not time_t, because we want it
92499         to be guaranteed to be signed.  All uses changed.
92500         (__mktime_internal): If overflow would occur when adding offset,
92501         don't add it.
92502
92503         Merge 'human' changes from coreutils.  Rewrite to support
92504         locale-specific notations like thousands separators.
92505         * lib/human.c: Simplify authorship notice.
92506         Include human.h immediately after config.h.
92507         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92508         <limits.h>: Do not include, since human.h does.
92509         (SIZE_MAX, UINTMAX_MAX): New macros.
92510         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92511         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92512         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92513         (power_letter): Renamed from suffixes.
92514         (generate_suffix_backwards): Remove.
92515         (adjust_value): Now takes int style (because of human.h changes)
92516         and long double value (for greater precision on some platforms).
92517         (group_number): New function.
92518         (human_readable): Use it.  Use integer options, not enum.
92519         Put the options before the sizes in the arg list.
92520         Support all the new options.
92521         The old human_readable function has been removed;
92522         use inttostr.h instead.
92523         (human_readable, default_block_size, humblock):
92524         Use uintmax_t, not int, for block sizes.
92525         (human_readable_inexact, block_size_types): Remove.
92526         (block_size_opts): New constant.
92527         (human_options): Renamed from human_block_size, with new signature
92528         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92529         * lib/human.h: Add copyright and authorship notice.
92530         Include <limits.h> and <stdbool.h> unconditionally.
92531         (PARAMS): Remove.  All uses removed.
92532         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92533         (enum human_inexact_style): Remove tag; now a nameless enum.
92534         (human_floor, human_ceiling, human_round_to_even): Now have
92535         values 2, 0, 1 rather than -1, 1, 0.
92536         (human_group_digits, human_suppress_point_zero, human_autoscale,
92537         human_base_1024, human_SI, human_B): New constants.
92538         (human_readable_inexact, human_block_size): Remove.
92539         (human_readable): Size args are now uintmax_t, not int.
92540         (human_options): New decl.
92541
92542         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92543         unnecessary now that we assume C89 or better.  This change
92544         imported from coreutils.
92545
92546         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92547         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92548         in the 2003-05-30 sync from glibc.
92549
92550         .h files should stand alone, but we shouldn't include <sys/types.h>
92551         if we can get away with just <stddef.h>.
92552
92553         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92554         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92555         rather than <sys/types.h>, as we merely need size_t.
92556         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92557         to get size_t.
92558         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92559         Include <stdio.h>, to get FILE.
92560         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92561         memcasecmp.h has included <stddef.h> and all we need is size_t.
92562         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92563         our interface, instead of including <sys/types.h>
92564
92565 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92566
92567         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92568         now, as glibc mktime is buggy on non-glibc systems.
92569
92570 2003-06-03  Karl Berry  <karl@gnu.org>
92571
92572         * config/config.sub: update from prep.
92573
92574 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92575
92576         [from coreutils]
92577         Fix some minor time-related bugs with POSIX time arguments.
92578         Some valid time stamps were being rejected (notably -1, and
92579         time stamps before 1900 on 64-bit hosts).  And some invalid
92580         time stamps were being accepted, e.g. September 31.
92581
92582         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92583         that we can return (time_t) -1 successfully.
92584         * lib/posixtm.c: Likewise.
92585         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92586         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92587         (t): Remove static var.
92588         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92589         of static var.  All uses changed.
92590         (year): Do not reject years before 1900; they can occur with
92591         64-bit time_t.
92592         (posix_time_parse): Do not check for out-of-range components;
92593         that is now the caller's responsibility, since our checks were
92594         only approximations.
92595         (posixtime): Use mktime to check for out-of-range components,
92596         since it knows them exactly.
92597         If mktime returns (time_t) -1, check whether an error actually occurred
92598         by invoking localtime on -1.
92599         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92600         posixtime failures better.
92601         Improve the test data (in comments only).
92602
92603 2003-06-02  Karl Berry  <karl@gnu.org>
92604
92605         * config/mkinstalldirs (version): new variable.
92606         (--version): new option.
92607         (usage): improve message.
92608
92609 2003-05-30  Karl Berry  <karl@gnu.org>
92610
92611         * lib/mktime.c: update from libc.
92612
92613 2003-05-30  Bruno Haible  <bruno@clisp.org>
92614
92615         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92616         * config/config.rpath: Upgrade to gettext-0.12.1.
92617
92618 2003-05-30  Bruno Haible  <bruno@clisp.org>
92619
92620         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92621         * m4/nls.m4: New file, from gettext-0.12.1.
92622         * m4/po.m4: New file, from gettext-0.12.1.
92623         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92624
92625 2003-05-30  Bruno Haible  <bruno@clisp.org>
92626
92627         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92628         * lib/localcharset.h: Likewise.
92629         * lib/localcharset.c: Likewise.
92630
92631 2003-05-29  Karl Berry  <karl@gnu.org>
92632
92633         * config/config.rpath: update from gettext.
92634
92635 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92636
92637         Assume the headers required for C89 freestanding compilers.
92638         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92639         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92640         * m4/human.m4 (gl_HUMAN): Likewise.
92641         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92642         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92643         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92644         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92645         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92646         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92647
92648 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92649
92650         Assume the headers required for C89 freestanding compilers.
92651         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92652         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92653         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92654         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92655         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92656         define, since <limits.h> is guaranteed to do that.
92657         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92658         * lib/exclude.c: Include <stdbool.h> unconditionally.
92659         * lib/tempname.c: Include <stddef.h> unconditionally.
92660         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92661         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92662         <stddef.h> does that.
92663         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92664         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92665         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92666         needed.
92667         * lib/xstrtol.c: Likewise.
92668         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92669         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92670
92671         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92672         warnings on some platforms.
92673
92674         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92675         arbitrarily.
92676
92677 2003-05-26  Jim Meyering  <jim@meyering.net>
92678
92679         Merge in a change from coreutils:
92680         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92681         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92682         that condition, rather than `-1' which is slightly misleading.
92683         Change the name of the cache variable to have the gl_ prefix.
92684         Prompted by a patch from Richard Dawe for DJGPP.
92685
92686 2003-05-24  Karl Berry  <karl@gnu.org>
92687
92688         * config/config.guess: update from prep.
92689
92690 2003-05-22  Karl Berry  <karl@gnu.org>
92691
92692         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92693
92694 2003-05-20  Karl Berry  <karl@gnu.org>
92695
92696         * config/config.guess: update from prep.
92697
92698 2003-05-18  Karl Berry  <karl@gnu.org>
92699
92700         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92701         might actually be set by the user.
92702
92703         * config/depcomp, install-sh, mdate-sh: update from automake.
92704
92705 2003-05-17  Bruno Haible  <bruno@clisp.org>
92706
92707         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92708         invalid expansion for AC_EGREP_CPP.
92709         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92710         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92711         Suggested by Akim Demaille <akim@epita.fr> in
92712         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92713
92714 2003-05-12  Jim Meyering  <jim@meyering.net>
92715
92716         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92717         the space-padded-by-default conversion specifiers, %e, %k, %l.
92718
92719 2003-05-12  Bruno Haible  <bruno@clisp.org>
92720
92721         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92722         the string is longer than 4 KB.
92723
92724 2003-05-11  Karl Berry  <karl@gnu.org>
92725
92726         * config/config.{guess,sub}: update from prep.
92727
92728 2003-05-09  Bruno Haible  <bruno@clisp.org>
92729
92730         * modules/error: Add m4/strerror_r.m4 to file list.
92731
92732 2003-05-03  Bruno Haible  <bruno@clisp.org>
92733
92734         Upgrade to Unicode-4.0.
92735         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92736         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92737         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92738         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92739         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92740         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92741         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92742         Change width of U+E0100..U+E01EF from 1 to 0.
92743
92744 2003-04-25  Jim Meyering  <jim@meyering.net>
92745
92746         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92747         of type size_t, not int.
92748
92749 2003-04-25  Bruno Haible  <bruno@clisp.org>
92750
92751         * lib/copy-file.c: Include <stddef.h>, for size_t.
92752
92753 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92754
92755         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92756         code which expansion is under static control.  Patch imported from
92757         Akim Demaille's patch to Bison; see
92758         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92759
92760 2003-04-14  Bruno Haible  <bruno@clisp.org>
92761
92762         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92763
92764 2003-04-11  Jim Meyering  <jim@meyering.net>
92765
92766         Merge changes from Coreutils.
92767
92768         2003-03-22  Jim Meyering  <jim@meyering.net>
92769
92770         * lib/strftime.c (widen): Cast alloca return value to proper type.
92771
92772         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92773
92774         From GNU libc.
92775         * lib/strftime.c (my_strftime): Handle very large width
92776         specifications for numeric values correctly.  Improve checks for
92777         overflow.
92778
92779         2003-01-19  Jim Meyering  <jim@meyering.net>
92780
92781         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92782         definitions.
92783         (nl_get_alt_digit) [! defined my_strftime]: Define.
92784         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92785         _nl_get_alt_digit and _nl_get_walt_digit.
92786
92787         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92788         libc. These changes have no effect outside of _LIBC.
92789
92790 2003-04-10  Bruno Haible  <bruno@clisp.org>
92791
92792         * modules/findprog: New file.
92793         * MODULES.html.sh (func_all_modules): Add it.
92794
92795 2003-04-10  Bruno Haible  <bruno@clisp.org>
92796
92797         * m4/findprog.m4: New file.
92798         * m4/eaccess.m4: New file.
92799
92800 2003-04-10  Bruno Haible  <bruno@clisp.org>
92801
92802         * lib/findprog.h: New file, from GNU gettext.
92803         * lib/findprog.c: New file, from GNU gettext.
92804
92805 2003-04-05  Jim Meyering  <jim@meyering.net>
92806
92807         Merge changes from Coreutils.
92808
92809         * lib/exclude.h (PARAMS): Remove definition and uses.
92810         * lib/exclude.c: Remove uses of `PARAMS'.
92811
92812         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92813         Add test-cases for DOS filenames. Declare program_name.
92814         (main): Set up program_name.  Patch by Rich Dawe.
92815
92816         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92817         error from mntctl.
92818         Use mntctl's return value to drive the entry-processing loop, since
92819         we can't rely on the value of the vmt_length member in the last
92820         entry.  On some systems doing so could result in exhausting
92821         virtual memory.  Based in part on a patch from Mike Jetzer.
92822
92823 2003-04-04  Bruno Haible  <bruno@clisp.org>
92824
92825         * modules/linebreak: New file.
92826         * MODULES.html.sh (func_all_modules): Add it.
92827
92828 2003-04-04  Bruno Haible  <bruno@clisp.org>
92829
92830         * m4/linebreak.m4: New file.
92831
92832 2003-04-04  Bruno Haible  <bruno@clisp.org>
92833
92834         * lib/linebreak.h: New file, from GNU gettext.
92835         * lib/linebreak.c: New file, from GNU gettext with slight
92836         modifications.
92837         * lib/lbrkprop.h: New file, from GNU gettext.
92838
92839 2003-04-03  Bruno Haible  <bruno@clisp.org>
92840
92841         * modules/utf8-ucs4: New file.
92842         * modules/utf16-ucs4: New file.
92843         * modules/ucs4-utf8: New file.
92844         * modules/ucs4-utf16: New file.
92845         * MODULES.html.sh (func_all_modules): Add them.
92846
92847 2003-04-03  Bruno Haible  <bruno@clisp.org>
92848
92849         * m4/utf-ucs4.m4: New file.
92850         * m4/ucs4-utf.m4: New file.
92851
92852 2003-04-03  Bruno Haible  <bruno@clisp.org>
92853
92854         * lib/utf8-ucs4.h: New file, from GNU gettext.
92855         * lib/utf16-ucs4.h: New file, from GNU gettext.
92856         * lib/ucs4-utf8.h: New file, from GNU gettext.
92857         * lib/ucs4-utf16.h: New file, from GNU gettext.
92858
92859 2003-04-02  Bruno Haible  <bruno@clisp.org>
92860
92861         * modules/binary-io: New file.
92862         * MODULES.html.sh (func_all_modules): Add it.
92863
92864 2003-04-02  Bruno Haible  <bruno@clisp.org>
92865
92866         * lib/binary-io.h: New file, from GNU gettext.
92867
92868 2003-04-01  Bruno Haible  <bruno@clisp.org>
92869
92870         * modules/pathname: New file.
92871         * MODULES.html.sh (func_all_modules): Add it.
92872
92873 2003-04-01  Bruno Haible  <bruno@clisp.org>
92874
92875         * lib/pathname.h: New file, from GNU gettext.
92876         * lib/concatpath.c: New file, from GNU gettext.
92877
92878 2003-03-30  Bruno Haible  <bruno@clisp.org>
92879
92880         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92881
92882 2003-03-30  Bruno Haible  <bruno@clisp.org>
92883
92884         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92885         function chown() doesn't exist.
92886
92887 2003-03-28  Bruno Haible  <bruno@clisp.org>
92888
92889         * modules/copy-file: New file.
92890         * MODULES.html.sh (func_all_modules): Add it.
92891
92892 2003-03-28  Bruno Haible  <bruno@clisp.org>
92893
92894         * m4/copy-file.m4: New file.
92895
92896 2003-03-28  Bruno Haible  <bruno@clisp.org>
92897
92898         * lib/copy-file.h: New file, from GNU gettext.
92899         * lib/copy-file.c: New file, from GNU gettext.
92900
92901 2003-03-18  Jim Meyering  <jim@meyering.net>
92902
92903         * lib/quote.c (quote_n): Fix typo in comment.
92904
92905 2003-03-18  Bruno Haible  <bruno@clisp.org>
92906
92907         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92908         checking.
92909         * m4/onceonly_2_57.m4: Likewise.
92910
92911 2003-03-17  Bruno Haible  <bruno@clisp.org>
92912
92913         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92914         (m4_quote): Remove macro.
92915         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92916
92917 2003-03-14  Jim Meyering  <jim@meyering.net>
92918
92919         Merge changes from Coreutils.
92920         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92921         to be const, in order to avoid warnings.
92922         (obstack_room): Likewise.
92923         (obstack_empty_p): Likewise.
92924
92925 2003-03-14  Bruno Haible  <bruno@clisp.org>
92926
92927         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92928         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92929
92930 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92931
92932         Merge changes from Bison.
92933         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92934         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92935         when compiling Bison 1.875's `bitset bset = obstack_alloc
92936         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92937         * lib/hash.c: Include <stdbool.h> unconditionally.
92938
92939 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92940
92941         * m4/onceonly.m4 (m4_quote): New macro.
92942         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92943         Quote AC_FOREACH variable-expansions properly.
92944
92945 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92946
92947         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92948
92949 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92950
92951         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92952         Reported by Bruce Becker; see:
92953         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92954
92955 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92956             Bruno Haible  <bruno@clisp.org>
92957
92958         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92959         Reported by John Hughes, see
92960         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92961
92962 2003-02-20  Bruno Haible  <bruno@clisp.org>
92963
92964         * MODULES.html.sh (func_all_modules): Add poll.
92965
92966 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92967
92968         * modules/poll: New file.
92969
92970 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92971
92972         * lib/poll_.h: New file.
92973         * lib/poll.c: New file.
92974
92975 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92976
92977         * m4/poll.m4: New file.
92978
92979 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92980
92981         * modules/mathl: New file.
92982
92983 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92984
92985         * lib/mathl.h: New file.
92986         * lib/acosl.c: New file.
92987         * lib/asinl.c: New file.
92988         * lib/atanl.c: New file.
92989         * lib/ceill.c: New file.
92990         * lib/cosl.c: New file.
92991         * lib/expl.c: New file.
92992         * lib/floorl.c: New file.
92993         * lib/frexpl.c: New file.
92994         * lib/ldexpl.c: New file.
92995         * lib/logl.c: New file.
92996         * lib/sincosl.c: New file.
92997         * lib/sinl.c: New file.
92998         * lib/sqrtl.c: New file.
92999         * lib/tanl.c: New file.
93000         * lib/trigl.c: New file.
93001         * lib/trigl.h: New file.
93002
93003 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93004
93005         * m4/mathl.m4: New file.
93006
93007 2003-02-18  Bruno Haible  <bruno@clisp.org>
93008
93009         * MODULES.html.sh (func_all_modules): Add mathl.
93010
93011 2003-02-17  Bruno Haible  <bruno@clisp.org>
93012
93013         * modules/mkdtemp: New module.
93014         * MODULES.html.sh (func_all_modules): Add it.
93015
93016 2003-02-17  Bruno Haible  <bruno@clisp.org>
93017
93018         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93019
93020 2003-02-17  Bruno Haible  <bruno@clisp.org>
93021
93022         * lib/mkdtemp.h: New file, from GNU gettext.
93023         * lib/mkdtemp.c: New file, from GNU gettext.
93024
93025 2003-02-02  Jim Meyering  <jim@meyering.net>
93026
93027         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93028         e.g. glibc-2.2.93.
93029
93030 2003-01-31  Bruno Haible  <bruno@clisp.org>
93031
93032         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93033         'rpl_rename'.
93034         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93035         'rpl_strnlen'.
93036         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93037         'rpl_strtod'.
93038         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93039         'rpl_utime'.
93040
93041 2003-01-31  Bruno Haible  <bruno@clisp.org>
93042
93043         * lib/rename.c: #undef rename before defining rpl_rename.
93044         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93045
93046 2003-01-30  Bruno Haible  <bruno@clisp.org>
93047
93048         * modules/vasnprintf, modules/vasprintf: New modules.
93049         * MODULES.html.sh (func_all_modules): Add them.
93050
93051 2003-01-30  Bruno Haible  <bruno@clisp.org>
93052
93053         * m4/signed.m4: New file, from GNU gettext.
93054         * m4/longdouble.m4: New file, from GNU gettext.
93055         * m4/wchar_t.m4: New file, from GNU gettext.
93056         * m4/wint_t.m4: New file, from GNU gettext.
93057         * m4/vasnprintf.m4: New file.
93058         * m4/vasprintf.m4: New file.
93059
93060 2003-01-30  Bruno Haible  <bruno@clisp.org>
93061
93062         * lib/printf-args.h: New file, from GNU gettext.
93063         * lib/printf-args.c: New file, from GNU gettext.
93064         * lib/printf-parse.h: New file, from GNU gettext.
93065         * lib/printf-parse.c: New file, from GNU gettext.
93066         * lib/vasnprintf.h: New file, from GNU gettext.
93067         * lib/vasnprintf.c: New file, from GNU gettext.
93068         * lib/asnprintf.c: New file, from GNU gettext.
93069         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93070         * lib/vasprintf.c: New file, from GNU gettext.
93071         * lib/asprintf.c: New file, from GNU gettext.
93072
93073 2003-01-29  Bruno Haible  <bruno@clisp.org>
93074
93075         * modules/stpncpy: New module.
93076         * MODULES.html.sh (func_all_modules): Add it.
93077
93078 2003-01-29  Bruno Haible  <bruno@clisp.org>
93079
93080         * m4/stpncpy.m4: New file.
93081
93082 2003-01-29  Bruno Haible  <bruno@clisp.org>
93083
93084         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93085         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93086
93087 2003-01-28  Bruno Haible  <bruno@clisp.org>
93088
93089         * modules/c-ctype: New module.
93090         * MODULES.html.sh (func_all_modules): Add it.
93091
93092 2003-01-28  Bruno Haible  <bruno@clisp.org>
93093
93094         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93095         Paul Eggert.
93096         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93097         Paul Eggert.
93098
93099 2003-01-27  Bruno Haible  <bruno@clisp.org>
93100
93101         * modules/xsetenv: New module.
93102         * MODULES.html.sh (func_all_modules): Add it.
93103
93104 2003-01-27  Bruno Haible  <bruno@clisp.org>
93105
93106         * lib/xsetenv.h: New file, from GNU gettext.
93107         * lib/xsetenv.c: New file, from GNU gettext.
93108
93109 2003-01-23  Jim Meyering  <jim@meyering.net>
93110
93111         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93112         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93113
93114 2003-01-23  Bruno Haible  <bruno@clisp.org>
93115
93116         * modules/minmax: New module.
93117         * MODULES.html.sh (func_all_modules): Add it.
93118
93119 2003-01-23  Bruno Haible  <bruno@clisp.org>
93120
93121         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93122         Eggert.
93123
93124 2003-01-22  Bruno Haible  <bruno@clisp.org>
93125
93126         * modules/exit: New module.
93127         * MODULES.html.sh (func_all_modules): Add it.
93128
93129 2003-01-22  Bruno Haible  <bruno@clisp.org>
93130
93131         * lib/exit.h: New file, from GNU gettext.
93132
93133 2003-01-19  Bruno Haible  <bruno@clisp.org>
93134
93135         * gnulib-tool: Recognize option --extract-maintainer.
93136         (func_get_maintainer): New function.
93137         * modules/*: Add Maintainer entry.
93138
93139 2003-01-16  Jim Meyering  <jim@meyering.net>
93140
93141         * m4/regex.m4: The `regex' struct is both input and output.
93142         Initialize it before each use.  Patch by Tim Waugh.
93143
93144 2003-01-16  Bruno Haible  <bruno@clisp.org>
93145
93146         * MODULES.html.sh: Add a table of contents. Add the module name as
93147         leftmost column. Add hyperlinks.
93148
93149 2003-01-15  Bruno Haible  <bruno@clisp.org>
93150
93151         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93152
93153 2003-01-15  Bruno Haible  <bruno@clisp.org>
93154
93155         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93156         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93157         suffix.
93158
93159 2003-01-15  Bruno Haible  <bruno@clisp.org>
93160
93161         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93162
93163 2003-01-15  Bruno Haible  <bruno@clisp.org>
93164
93165         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93166         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93167
93168 2003-01-14  Jim Meyering  <jim@meyering.net>
93169
93170         * lib/same.c (same_name): Tweak a comment.
93171
93172 2003-01-14  Bruno Haible  <bruno@clisp.org>
93173
93174         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93175         when a string comparison is sufficient.
93176
93177 2003-01-14  Bruno Haible  <bruno@clisp.org>
93178
93179         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93180         'unsigned int'.
93181
93182 2003-01-14  Bruno Haible  <bruno@clisp.org>
93183
93184         * lib/hash-pjw.c: Add comment about low quality of this function.
93185
93186 2003-01-13  Bruno Haible  <bruno@clisp.org>
93187
93188         * modules/stpcpy: Distribute lib/stpcpy.h.
93189         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93190
93191 2003-01-13  Bruno Haible  <bruno@clisp.org>
93192
93193         * modules/*: Add a description.
93194         * modules/strpbrk: Fix Makefile.am snippet.
93195         * modules/strtoimax: Fix dependencies.
93196         * modules/strtoumax: Likewise.
93197
93198 2003-01-13  Bruno Haible  <bruno@clisp.org>
93199
93200         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93201         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93202         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93203
93204 2003-01-13  Bruno Haible  <bruno@clisp.org>
93205
93206         * gnulib-tool (func_create_testdir): Store config/* files in the main
93207         directory.
93208         * config.rpath: Move to ...
93209         * config/config.rpath: ... here.
93210         * modules/gettext: Contains config/config.rpath, not config.rpath.
93211         * modules/iconv: Likewise.
93212
93213 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93214
93215         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93216         to avoid collisions with libcurses and libreadline.
93217
93218         * m4/getstr.m4: Remove.
93219         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93220
93221 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93222
93223         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93224         to avoid collisions with libcurses and libreadline.
93225
93226         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93227         * lib/getstr.h, getstr.c: Remove.
93228         * lib/getline.c: Include "getline.h", to check interface.
93229         Move body of old getstr.c here: this defines MIN_CHUNK and
93230         declares getdelim2, which is renamed from getstr.
93231         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93232
93233         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93234         All uses changed.
93235         * lib/linebuffer.h: Likewise.
93236         (readline): Remove backward-compatibility macro.
93237
93238 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93239
93240         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93241         to avoid collisions with libcurses and libreadline.
93242         * getstr: Remove.
93243         * MODULES.html.sh: Remove getstr.
93244         * modules/getline: Depend on unlocked-io, not getstr.
93245
93246 2003-01-12  Jim Meyering  <jim@meyering.net>
93247
93248         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93249
93250 2003-01-10  Bruno Haible  <bruno@clisp.org>
93251
93252         * modules/alloca: Change Makefile.am requirements. Simplify Include
93253         requirements. Add lib/alloca_.h to file list.
93254
93255 2003-01-10  Bruno Haible  <bruno@clisp.org>
93256
93257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93258
93259 2003-01-10  Bruno Haible  <bruno@clisp.org>
93260
93261         * lib/alloca_.h: New file.
93262         * lib/getdate.y: Unconditionally include alloca.h.
93263         * lib/makepath.c: Likewise.
93264         * lib/setenv.c: Likewise.
93265         * lib/userspec.c: Likewise.
93266
93267 2003-01-09  Karl Berry  <karl@gnu.org>
93268
93269         * MODULES.html.sh: include `dirname $0` in PATH, to find
93270         gnulib-tool.
93271
93272 2003-01-09  Bruno Haible  <bruno@clisp.org>
93273
93274         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93275         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93276
93277 2003-01-09  Bruno Haible  <bruno@clisp.org>
93278
93279         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93280
93281 2003-01-09  Bruno Haible  <bruno@clisp.org>
93282
93283         * lib/stdbool.h.in: New file.
93284
93285 2003-01-09  Bruno Haible  <bruno@clisp.org>
93286
93287         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93288         * MODULES.html.sh: Likewise.
93289
93290 2003-01-08  Jim Meyering  <jim@meyering.net>
93291
93292         * lib/full-write.c: Undefine and define-away `const' after inclusion
93293         of errno.h, not before.  Suggestion from Bruno Haible.
93294
93295 2003-01-08  Bruno Haible  <bruno@clisp.org>
93296
93297         * modules/full-read: Depend on full-write.
93298
93299 2003-01-08  Bruno Haible  <bruno@clisp.org>
93300
93301         * lib/safe-read.c: Include specification header first, to ensure its
93302         selfcontainedness.
93303         * lib/full-write.c: Likewise.
93304
93305 2003-01-07  Jim Meyering  <jim@meyering.net>
93306
93307         * lib/full-write.c: Rework so that it may serve to define full_read,
93308         too.
93309         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93310
93311 2003-01-07  Bruno Haible  <bruno@clisp.org>
93312
93313         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93314         <inttypes.h>.
93315         * lib/xstrtol.h: Likewise.
93316         * lib/xstrtoimax.c: Likewise.
93317         * lib/xstrtoumax.c: Likewise.
93318         * lib/human.h: Likewise.
93319
93320         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93321         on systems that have <inttypes.h> but not <stdint.h>.
93322
93323 2003-01-07  Bruno Haible  <bruno@clisp.org>
93324
93325         * MODULES.html.sh: Add copyright notice.
93326         (missed_files): Omit CVS directory entries.
93327         (func_module): Make it work with sed-3.02.
93328         * MODULES.txt: Remove file.
93329
93330 2003-01-06  Jim Meyering  <jim@meyering.net>
93331
93332         * lib/version-etc.c: Update year in translatable copyright string.
93333
93334 2003-01-03  Karl Berry  <karl@gnu.org>
93335
93336         * config/config.{guess,sub}: update from prep.
93337
93338 2003-01-02  Karl Berry  <karl@gnu.org>
93339
93340         * doc/COPYING.DOC: belatedly updated to 1.2.
93341
93342 2003-01-01  Karl Berry  <karl@gnu.org>
93343
93344         * gnulib-tool (func_verify_module): report module name $module in
93345         error message, not $1.
93346         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93347         be created, only if it doesn't exist.
93348         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93349
93350 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93351
93352         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93353
93354 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93355
93356         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93357         memcmp if strcoll doesn't work.
93358
93359 2002-12-31  Bruno Haible  <bruno@clisp.org>
93360
93361         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93362         nonempty.
93363
93364 2002-12-31  Bruno Haible  <bruno@clisp.org>
93365
93366         * lib/memcoll.c (STRCOLL): New macro.
93367         (memcoll): Use it.
93368
93369 2002-12-31  Bruno Haible  <bruno@clisp.org>
93370
93371         * lib/localcharset.h: New file.
93372         * lib/localcharset.c: Include it.
93373         * lib/unicodeio.c: Likewise.
93374
93375 2002-12-31  Bruno Haible  <bruno@clisp.org>
93376
93377         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93378         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93379
93380 2002-12-31  Bruno Haible  <bruno@clisp.org>
93381
93382         * lib/getline.h: Include <stddef.h>, for size_t.
93383
93384         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93385         * lib/unicodeio.c: Don't include <stddef.h>.
93386
93387 2002-12-31  Bruno Haible  <bruno@clisp.org>
93388
93389         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93390         HAVE_TM_ZONE.
93391
93392 2002-12-24  Karl Berry  <karl@gnu.org>
93393
93394         * config/config.guess: update from prep.
93395
93396 2002-12-24  Bruno Haible  <bruno@clisp.org>
93397
93398         General infrasructure.
93399         * m4/README: Rewritten.
93400         * m4/onceonly.m4: New file.
93401         * m4/onceonly_2_57.m4: New file.
93402
93403         Module atexit.
93404         * m4/atexit.m4: New file.
93405
93406         Module strtod.
93407         * m4/strtod.m4: New file.
93408
93409         Module strtol.
93410         * m4/strtol.m4: New file.
93411
93412         Module strtoul.
93413         * m4/strtoul.m4: New file.
93414
93415         Module memchr.
93416         * m4/memchr.m4: New file.
93417
93418         Module memcmp.
93419         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93420         (jm_FUNC_MEMCMP): Invoke it.
93421
93422         Module memcpy.
93423         * m4/memcpy.m4: New file.
93424
93425         Module memmove.
93426         * m4/memmove.m4: New file.
93427
93428         Module memset.
93429         * m4/memset.m4: New file.
93430
93431         Module strcspn.
93432         * m4/strcspn.m4: New file.
93433
93434         Module strpbrk.
93435         * m4/strpbrk.m4: New file.
93436
93437         Module strstr.
93438         * m4/strstr.m4: New file.
93439
93440         Module strerror.
93441         * m4/strerror.m4: New file.
93442
93443         Module mktime.
93444         * m4/mktime.m4: Renamed from jm-mktime.m4.
93445         (gl_PREREQ_MKTIME): New macro.
93446         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93447
93448         Module malloc.
93449         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93450         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93451         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93452
93453         Module realloc.
93454         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93455         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93456         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93457
93458         Module strftime.
93459         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93460         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93461         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93462         gl_TM_GMTOFF.
93463         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93464
93465         Module xalloc.
93466         * m4/xalloc.m4: New file.
93467
93468         Module alloca.
93469         * m4/alloca.m4: New file.
93470
93471         Module putenv.
93472         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93473         (jm_FUNC_PUTENV): Invoke it.
93474
93475         Module setenv.
93476         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93477         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93478         when invoked twice.
93479         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93480         gt_FUNC_SETENV.
93481
93482         Module memrchr.
93483         * m4/memrchr.m4: New file.
93484
93485         Module stpcpy.
93486         * m4/stpcpy.m4: New file.
93487
93488         Module strcase.
93489         * m4/strcase.m4: New file.
93490
93491         Module strdup.
93492         * m4/strdup.m4: New file.
93493
93494         Module strnlen.
93495         * m4/strnlen.m4: New file.
93496
93497         Module strndup.
93498         * m4/strndup.m4: New file.
93499
93500         Module xstrtod.
93501         * m4/xstrtod.m4: New file.
93502
93503         Module xstrtol.
93504         * m4/xstrtol.m4: New file.
93505
93506         Module getdate.
93507         * m4/getdate.m4: New file.
93508
93509         Module unlocked-io.
93510         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93511         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93512         * m4/jm-glibc-io.m4n: Remove file.
93513
93514         Module long-options.
93515         * m4/long-options.m4: New file.
93516
93517         Module md5.
93518         * m4/md5.m4: New file.
93519
93520         Module sha.
93521         * m4/sha.m4: New file.
93522
93523         Module getstr.
93524         * m4/getstr.m4: New file.
93525
93526         Module getline.
93527         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93528         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93529         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93530         simply getline. Infoke gl_PREREQ_GETLINE.
93531
93532         Module obstack.
93533         * m4/obstack.m4: New file.
93534
93535         Module hash.
93536         * m4/hash.m4: New file.
93537
93538         Module readtokens.
93539         * m4/readtokens.m4: New file.
93540
93541         Module strverscmp.
93542         * m4/strverscmp.m4: New file.
93543
93544         Module stdbool.
93545         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93546         OSF/1.
93547
93548         Module strtoll.
93549         * m4/strtoll.m4: New file.
93550
93551         Module strtoull.
93552         * m4/strtoull.m4: New file.
93553
93554         Module strtoimax.
93555         * m4/strtoimax.m4: New file.
93556
93557         Module strtoumax.
93558         * m4/strtoumax.m4: New file.
93559
93560         Module xstrtoimax.
93561         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93562         jm_AC_PREREQ_XSTRTOIMAX.
93563         Moved the strtol prerequisites to strtol.m4.
93564         Moved the strtoll prerequisites to strtoll.m4.
93565         Moved the strtoimax prerequisites to strtoimax.m4.
93566
93567         Module xstrtoumax.
93568         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93569         jm_AC_PREREQ_XSTRTOUMAX.
93570         Moved the strtoul prerequisites to strtoul.m4.
93571         Moved the strtoull prerequisites to strtoull.m4.
93572         Moved the strtoumax prerequisites to strtoumax.m4.
93573
93574         Module chown.
93575         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93576         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93577
93578         Module dup2.
93579         * m4/dup2.m4: New file.
93580
93581         Module ftruncate.
93582         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93583         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93584
93585         Module getgroups.
93586         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93587         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93588
93589         Module gettimeofday.
93590         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93591         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93592         gl_PREREQ_GETTIMEOFDAY.
93593
93594         Module mkdir.
93595         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93596         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93597
93598         Module mkstemp.
93599         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93600         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93601         jm_AC_TYPE_UINTMAX_T.
93602         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93603
93604         Module stat.
93605         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93606         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93607
93608         Module lstat.
93609         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93610         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93611
93612         Module timespec.
93613         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93614         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93615         * m4/st_mtim.m4: Indentation.
93616
93617         Module nanosleep.
93618         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93619         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93620         gl_PREREQ_NANOSLEEP.
93621
93622         Module regex.
93623         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93624         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93625         (gl_REGEX): New macro.
93626
93627         Module rename.
93628         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93629         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93630
93631         Module rmdir.
93632         * m4/rmdir.m4: New file.
93633
93634         Module utime.
93635         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93636         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93637         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93638
93639         Module dirname.
93640         * m4/dirname.m4: New file.
93641
93642         Module getopt.
93643         * m4/getopt.m4: New file.
93644
93645         Module unistd-safer.
93646         * m4/unistd-safer.m4: New file.
93647
93648         Module fnmatch.
93649         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93650         declaration.
93651         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93652         (gl_FUNC_FNMATCH_POSIX): New macro.
93653         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93654         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93655         simply fnmatch.
93656
93657         Module exclude.
93658         * m4/exclude.m4: New file.
93659
93660         Module human.
93661         * m4/human.m4: New file.
93662
93663         Module acl.
93664         * m4/acl.m4: Nop.
93665
93666         Module backupfile.
93667         * m4/backupfile.m4: New file.
93668         * m4/d-ino.m4: Indentation.
93669
93670         Module fsusage.
93671         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93672         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93673         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93674
93675         Module dirfd.
93676         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93677         requirements.
93678
93679         Module euidaccess.
93680         * m4/euidaccess.m4: New file.
93681
93682         Module file-type.
93683         * m4/file-type.m4: New file.
93684
93685         Module fileblocks.
93686         * m4/fileblocks.m4: New file.
93687
93688         Module filemode.
93689         * m4/filemode.m4: New file.
93690
93691         Module isdir.
93692         * m4/isdir.m4: New file.
93693
93694         Module lchown.
93695         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93696         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93697
93698         Module makepath.
93699         * m4/makepath.m4: New file.
93700
93701         Module modechange.
93702         * m4/modechange.m4: New file.
93703
93704         Module mountlist.
93705         * m4/mountlist.m4: New file.
93706         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93707         Indentation.
93708
93709         Module path-concat.
93710         * m4/path-concat.m4: New file.
93711
93712         Module pathmax.
93713         * m4/pathmax.m4: New file.
93714
93715         Module same.
93716         * m4/same.m4: New file.
93717
93718         Module save-cwd.
93719         * m4/save-cwd.m4: New file.
93720
93721         Module savedir.
93722         * m4/savedir.m4: New file.
93723
93724         Module xgetcwd.
93725         * m4/xgetcwd.m4: New file.
93726         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93727
93728         Module xreadlink.
93729         * m4/xreadlink.m4: New file.
93730
93731         Module safe-read.
93732         * m4/safe-read.m4: New file.
93733
93734         Module safe-write.
93735         * m4/safe-write.m4: New file.
93736
93737         Module closeout.
93738         * m4/closeout.m4: New file.
93739
93740         Module stdio-safer.
93741         * m4/stdio-safer.m4: New file.
93742
93743         Module getpass.
93744         * m4/getpass.m4: New file.
93745
93746         Module getugroups.
93747         * m4/getugroups.m4: New file.
93748
93749         Module group-member.
93750         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93751         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93752
93753         Module idcache.
93754         * m4/idcache.m4: New file.
93755
93756         Module userspec.
93757         * m4/userspec.m4: New file.
93758
93759         Module gettime.
93760         * m4/clock_time.m4: New file.
93761         * m4/gettime.m4: New file.
93762
93763         Module settime.
93764         * m4/settime.m4: New file.
93765
93766         Module posixtm.
93767         * m4/posixtm.m4: New file.
93768
93769         Module gethostname.
93770         * m4/gethostname.m4: New file.
93771
93772         Module canon-host.
93773         * m4/canon-host.m4: New file.
93774
93775         Module gettext.
93776         * m4/codeset.m4: New file, from gettext-0.11.5.
93777         * m4/gettext.m4: New file, from gettext-0.11.5.
93778         * m4/glibc21.m4: New file, from gettext-0.11.5.
93779         * m4/iconv.m4: New file, from gettext-0.11.5.
93780         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93781         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93782         * m4/inttypes.m4: New file, from gettext-0.11.5.
93783         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93784         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93785         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93786         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93787         * m4/lib-link.m4: New file, from gettext-0.11.5.
93788         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93789         * m4/progtest.m4: New file, from gettext-0.11.5.
93790         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93791         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93792         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93793
93794         Module localcharset.
93795         * m4/localcharset.m4: New file.
93796
93797         Module hard-locale.
93798         * m4/hard-locale.m4: New file.
93799
93800         Module mbswidth.
93801         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93802         onceonly macros.
93803         * m4/mbrtowc.m4: Add comment.
93804
93805         Module memcasecmp.
93806         * m4/memcasecmp.m4: New file.
93807
93808         Module memcoll.
93809         * m4/memcoll.m4: New file.
93810
93811         Module unicodeio.
93812         * m4/unicodeio.m4: New file.
93813
93814         Module rpmatch.
93815         * m4/rpmatch.m4: New file.
93816
93817         Module yesno.
93818         * m4/yesno.m4: New file.
93819
93820         Module exitfail.
93821         * m4/exitfail.m4: New file.
93822
93823         Module c-stack.
93824         * m4/c-stack.m4 (gl_C_STACK): New macro.
93825         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93826
93827         Module error.
93828         * m4/error.m4 (gl_ERROR): New macro.
93829         (jm_PREREQ_ERROR): Use onceonly macros.
93830
93831         Module fatal.
93832         * m4/fatal.m4: New file.
93833
93834         Module getloadavg.
93835         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93836         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93837
93838         Module getpagesize.
93839         * m4/getpagesize.m4: New file.
93840
93841         Module getusershell.
93842         * m4/getusershell.m4: New file.
93843
93844         Module physmem.
93845         * m4/physmem.m4: New file.
93846
93847         Module posixver.
93848         * m4/posixver.m4: New file.
93849
93850         Module quotearg.
93851         * m4/quotearg.m4: New file.
93852
93853         Module quote.
93854         * m4/quote.m4: New file.
93855
93856         Module readutmp.
93857         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93858
93859         Module sig2str.
93860         * m4/sig2str.m4: New file.
93861
93862         Other.
93863         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93864         ulonglong.m4.
93865         * m4/intmax_t.m4: New file.
93866         * m4/d-type.m4: Indentation.
93867         * m4/jm-macros.m4: Update.
93868         * m4/prereq.m4 (jm_PREREQ): Update.
93869         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93870         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93871         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93872         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93873         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93874         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93875         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93876         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93877         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93878         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93879         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93880         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93881         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93882         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93883         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93884         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93885         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93886         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93887         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93888
93889 2002-12-24  Bruno Haible  <bruno@clisp.org>
93890
93891         * MODULES.txt: Update according to m4/ changes.
93892
93893         Module gettext.
93894         * config.rpath: New file, from gettext-0.11.5.
93895
93896         * modules/*: New module descriptions.
93897         * gnulib-tool: New file.
93898         * MODULES.html.sh: New file.
93899
93900 2002-12-21  Karl Berry  <karl@gnu.org>
93901
93902         * doc/fdl.texi: update to version 1.2.
93903
93904 2002-12-19  Karl Berry  <karl@gnu.org>
93905
93906         * config/config.guess: update from prep.
93907
93908 2002-12-18  Bruno Haible  <bruno@clisp.org>
93909
93910         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93911         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93912
93913 2002-12-17  Bruno Haible  <bruno@clisp.org>
93914
93915         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93916         stdlib.h, string.h.
93917
93918 2002-12-17  Bruno Haible  <bruno@clisp.org>
93919
93920         * lib/canon-host.c (strdup): Remove unused declaration.
93921
93922         * lib/fsusage.c: Include full_read.h.
93923         (get_fs_usage): Use full_read instead of safe_read.
93924
93925         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93926
93927 2002-12-12  Karl Berry  <karl@gnu.org>
93928
93929         * config/config.guess: update from prep.
93930
93931 2002-12-11  Bruno Haible  <bruno@clisp.org>
93932
93933         * m4/setenv.m4: New file, from gettext-0.11.5.
93934
93935 2002-12-11  Bruno Haible  <bruno@clisp.org>
93936
93937         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93938         not unsetenv().
93939         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93940         modifications:
93941
93942         2002-12-11  Bruno Haible  <bruno@clisp.org>
93943
93944                 * setenv.c (alloca): Fall back to malloc.
93945                 (freea): New macro.
93946                 (setenv): Use freea() to free memory allocated with alloca().
93947
93948         2002-11-13  Bruno Haible  <bruno@clisp.org>
93949
93950                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93951                 function declarations.
93952                 * unsetenv.c (unsetenv): Likewise.
93953
93954         2002-03-04  Bruno Haible  <bruno@clisp.org>
93955
93956                 Portability to AIX 4.3.3.
93957                 * unsetenv.c: New file, extracted from setenv.c.
93958                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93959
93960         2001-12-20  Bruno Haible  <bruno@clisp.org>
93961
93962                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93963                 use malloc instead. For SunOS 4.
93964
93965         2001-12-11  Bruno Haible  <bruno@clisp.org>
93966
93967                 * setenv.c: Declare alloca.
93968                 (compar_fn_t): New typedef.
93969                 (KNOWN_VALUE, STORE_VALUE): Use it.
93970
93971         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93972         setenv.h.
93973
93974 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93975
93976         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93977         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93978         Choose values that are less likely to collide with system fnmatch
93979         options.
93980         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93981         defined (e.g., a pure POSIX system).
93982         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93983         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93984
93985 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93986
93987         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93988         a pain in practice to deal with generated m4 files.  This change
93989         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93990
93991         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93992         and jm-glibc-io.m4, as they are no longer a special case.
93993         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93994         kludge and the auto-generation stuff.  Check only whether the
93995         functions are declared, not whether they exist, since older hosts
93996         that don't declare the functions can't use the optimization anyway.
93997
93998 2002-12-06  Jim Meyering  <jim@meyering.net>
93999
94000         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94001
94002         Merge in changes from libc's misc/error.c, in preparation
94003         for the merge of gnulib's changes back into libc.
94004
94005         * lib/error.c (_): Define only if not already defined.
94006         Move definition to follow all #include directives.
94007         Include unlocked-io.h only if !_LIBC.
94008         [_LIBC]: Include <libio/libioP.h>.
94009         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94010         (fflush): Tweak definition to use INTUSE.
94011         (putc): Define.
94012
94013 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94014
94015         * lib/alloca.c [defined emacs]: Include "lisp.h".
94016         (xalloc_die) [defined emacs]: New macro.
94017         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94018         [! defined emacs]: Include <xalloc.h>.
94019         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94020         (pointer): Typedef to POINTER_TYPE *.
94021         (malloc): Remove decl; we now always use xmalloc.
94022         (alloca): Use old-style definition, since Emacs needs this.
94023         Check for arithmetic overflow when computing combined size.
94024
94025 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94026
94027         Do not generate unlocked-io.h automatically, since it's easier to
94028         maintain it by hand.
94029
94030         * lib/unlocked-io.h: New file, from GNU diffutils,
94031         but with proper copyright notice and attribution.
94032         * lib/gen-uio: Remove.
94033         * lib/Makefile.am: Add copyright notice.
94034         (libfetish_a_SOURCES): Add unlocked-io.h.
94035         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94036         (DISTCLEANFILES, io_functions): Remove macros.
94037         (EXTRA_DIST): Remove gen_uio.
94038         (unlocked-io.h): Remove rule.
94039
94040 2002-12-04  Jim Meyering  <jim@meyering.net>
94041
94042         Reflect the fact that stat.c and lstat.c are no longer generated.
94043         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94044         (DISTCLEANFILES): Likewise.
94045         (EXTRA_DIST): Likewise.
94046         (all_local): Don't depend on stat.c or lstat.c.
94047         (stat.c, lstat.c): Remove rules.
94048         (EXTRA_DIST): Remove xstat.in.
94049
94050         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94051         * lib/stat.c: New file.  Contents mostly from xstat.in.
94052         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94053         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94054
94055         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94056         too.
94057         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94058
94059 2002-12-03  Jim Meyering  <jim@meyering.net>
94060
94061         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94062         but not semantics, to minimize the differences between these two files.
94063         (safe_read): Change comment to mention SAFE_READ_ERROR.
94064
94065         * lib/safe-read.c (IS_EINTR): Define.
94066         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94067
94068 2002-12-02  Jim Meyering  <jim@meyering.net>
94069
94070         * lib/safe-read.c (EINTR): Define.
94071         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94072         (INT_MAX): Provide fallback.
94073         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94074
94075         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94076
94077 2002-12-02  Bruno Haible  <bruno@clisp.org>
94078
94079         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94080         Define, taken from safe-read.c.
94081         (INT_MAX): Provide fallback.
94082         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94083         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94084
94085         * lib/safe-read.c (EINTR): Remove definition.
94086         (safe_read): Don't use EINTR if it is absent.
94087
94088 2002-12-01  Jim Meyering  <jim@meyering.net>
94089
94090         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94091         zero.
94092         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94093
94094 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94095
94096         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94097         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94098         with `if (! (value < limit)) abort ();', for readability.
94099
94100 2002-11-26  Karl Berry  <karl@gnu.org>
94101
94102         * lib/strdup.c: copy from libc again, with jim's ok.
94103         * lib/.cppi-disable: re-add strdup.c
94104
94105 2002-11-25  Karl Berry  <karl@gnu.org>
94106
94107         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94108         instead of "strtol.c".
94109
94110 2002-11-25  Karl Berry  <karl@gnu.org>
94111
94112         * config/install-sh: update from automake for variable quoting, $0 in
94113         error msgs, etc.
94114
94115         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94116         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94117         entry.
94118
94119 2002-11-25  Jim Meyering  <jim@meyering.net>
94120
94121         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94122
94123 2002-11-24  Karl Berry  <karl@gnu.org>
94124
94125         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94126         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94127
94128 2002-11-24  Jim Meyering  <jim@meyering.net>
94129
94130         Update from coreutils:
94131
94132         * lib/mktime.c: Merge in changes from libc.
94133
94134         Avoid a link-time failure on some Linux systems.
94135         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94136         (otherwise).
94137         (__mon_yday): Declare with the STATIC attribute.
94138         (__mktime_internal): Likewise.
94139         Based on a report from Greg Schafer.
94140
94141 2002-11-23  Jim Meyering  <jim@meyering.net>
94142
94143         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94144         Use `unsigned', not `int', as type of index.
94145
94146         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94147
94148         * lib/fsusage.c: Remove unneeded parentheses around operands of
94149         `defined'.
94150
94151 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94152
94153         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94154         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94155         so that we can be included first.
94156         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94157         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94158         No need to include stddef.h or sys/types.h any more.
94159         Surround local include files with "", not "<>".
94160         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94161         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94162         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94163         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94164         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94165         (ISPRINT): Remove; no longer needed now that we assume C89.
94166
94167         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94168         Preserve errno.
94169
94170         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94171         quotearg_char): Use SIZE_MAX rather than
94172         (size_t) -1 when we are talking about "infinity".
94173
94174         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94175
94176 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94177
94178         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94179         hint that one should use `if (! x) abort ();' rather than `assert
94180         (x);', and anyway it's one less thing to worry about configuring.
94181         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94182         hash_rehash, hash_insert): Use abort rather than assert.
94183
94184 2002-11-22  Bruno Haible  <bruno@clisp.org>
94185
94186         * lib/safe-read.h: Assume C89. Add comments.
94187         (safe_read): Change return type to size_t.
94188         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94189         byte counts > SSIZE_MAX correctly.
94190         * lib/safe-write.h: New file.
94191         * lib/safe-write.c: New file.
94192         * lib/full-read.h: New file.
94193         * lib/full-read.c: New file.
94194         * lib/full-write.h: Assume C89. Add comments.
94195         * lib/full-write.c: Include safe-write.h.
94196         (full_write): Rewritten to use safe_write.
94197         Suggested by Jim Meyering and Paul Eggert.
94198
94199 2002-11-21  Jim Meyering  <jim@meyering.net>
94200
94201         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94202
94203         Merge in changes from the coreutils.
94204
94205         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94206         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94207         <stdint.h>.
94208         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94209         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94210         int.  Work more efficiently if X is the same width as uintmax_t.
94211         Do not compare X to -1, to avoid bogus compiler warning.
94212         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94213         Don't assume that f_frsize and f_bsize are the same type.
94214
94215         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94216         warning on FreeBSD.
94217
94218         * lib/makepath.c (make_path): Restore umask *before* creating the final
94219         component.
94220         (make_path): Minor reformatting.
94221
94222         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94223         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94224         HAVE_MALLOC/HAVE_REALLOC.
94225
94226         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94227         dummy ones.  At least on GNU/Linux systems, `auto' means something
94228         else.
94229         From Michael Stone.
94230
94231 2002-11-21  Bruno Haible  <bruno@clisp.org>
94232
94233         Remove case insensitive option matching.
94234         * lib/argmatch.h (argcasematch): Remove declaration.
94235         (ARGCASEMATCH): Remove macro.
94236         (__xargmatch_internal): Remove case_sensitive argument.
94237         (XARGMATCH): Update.
94238         (XARGCASEMATCH): Remove macro.
94239         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94240         case_sensitive argument.
94241         (argcasematch): Remove function.
94242         (__xargmatch_internal): Remove case_sensitive argument.
94243         (main): Use XARGMATCH instead of XARGCASEMATCH.
94244
94245         * lib/xmalloc.c: Change compile-time error message. Add comment about
94246         required autoconf version.
94247
94248 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94249
94250         Merge argmatch cleanups from Bison.  Assume C89.
94251
94252         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94253         Include stdlib.h, for EXIT_FAILURE.
94254         Always include <string.h>, since we assume C89.
94255         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94256         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94257         Include <stddef.h> instead, since it's all we need for size_t.
94258         (PARAMS): Remove.  All uses removed.
94259         (ARRAY_CARDINALITY): Do not bother to #undef.
94260         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94261         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94262         Remove unnecessary parentheses.
94263         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94264         Insert necessary parentheses.
94265         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94266         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94267
94268 2002-11-19  Bruno Haible  <bruno@clisp.org>
94269
94270         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94271         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94272
94273         * lib/mbswidth.h (PARAMS): Remove macro.
94274         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94275         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94276
94277         * lib/gcd.h (PARAMS): Remove macro.
94278         (gcd): Use ANSI C function declarations.
94279         * lib/gcd.c (gcd): Likewise.
94280
94281 2002-11-15  Bruno Haible  <bruno@clisp.org>
94282
94283         * lib/strcspn.c: Include <stddef.h>.
94284         (strcspn): Use ANSI C function declaration. Change return type to
94285         size_t. Use NULL.
94286         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94287         (strpbrk): Use NULL.
94288         * lib/strpbrk.h (PARAMS): Remove macro.
94289         (strpbrk): Use ANSI C function declaration.
94290         * lib/strstr.c: Don't include <sys/types.h>.
94291         * lib/strstr.h (PARAMS): Remove macro.
94292         (strstr): Use ANSI C function declarations.
94293
94294 2002-11-14  Karl Berry  <karl@gnu.org>
94295
94296         * config/mkinstalldirs: `do' on separate line, instead of
94297         `for var; do'.
94298
94299 2002-11-06  Bruno Haible  <bruno@clisp.org>
94300
94301         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94302         * lib/gcd.c (gcd): Likewise.
94303
94304 2002-11-05  Bruno Haible  <bruno@clisp.org>
94305
94306         * lib/gcd.h: New file, from gettext-0.11.5.
94307         * lib/gcd.c: New file, from gettext-0.11.5.
94308
94309 2002-11-05  Bruno Haible  <bruno@clisp.org>
94310
94311         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94312         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94313         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94314         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94315
94316         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94317         <libintl.h>.
94318         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94319         <libintl.h>.
94320
94321         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94322         * lib/human.c: Include gettext.h instead of <libintl.h>.
94323         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94324         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94325         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94326         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94327         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94328         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94329         (textdomain): Remove definition.
94330         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94331
94332         * lib/long-options.c: Remove include of <libintl.h> and definition of
94333         _.
94334         * lib/same.c: Remove include of <libintl.h> and definition of _.
94335
94336 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94337
94338         * lib/config.charset: A few additions for Solaris.
94339
94340 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94341
94342         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94343         * lib/localcharset.c (locale_charset): Declare as extern "C".
94344
94345 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94346
94347         * lib/config.charset: msdos in uk_UA uses CP1125.
94348
94349 2002-11-04  Bruno Haible  <bruno@clisp.org>
94350
94351         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94352         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94353         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94354         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94355         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94356
94357 2002-11-04  Bruno Haible  <bruno@clisp.org>
94358
94359         * lib/localcharset.c (locale_charset): Don't return an empty string.
94360
94361 2002-11-04  Bruno Haible  <bruno@clisp.org>
94362
94363         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94364         aliases.
94365
94366 2002-11-04  Bruno Haible  <bruno@clisp.org>
94367
94368         * lib/config.charset: Update for newest glibc. Add canonical names
94369         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94370
94371 2002-11-04  Bruno Haible  <bruno@clisp.org>
94372
94373         * lib/config.charset: Add support for NetBSD.
94374
94375 2002-11-04  Bruno Haible  <bruno@clisp.org>
94376
94377         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94378
94379 2002-11-01  Bruno Haible  <bruno@clisp.org>
94380
94381         * configure.in: Add AC_CONFIG_AUX_DIR call.
94382         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94383         test/Makefile.
94384         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94385
94386 2002-09-28  Karl Berry  <karl@gnu.org>
94387
94388         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94389         installed automake until the next release, since changes have been
94390         made.
94391
94392 2002-09-25  Karl Berry  <karl@gnu.org>
94393
94394         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94395         * lib/getopt*: copy from libc/posix.
94396         * lib/gettext.h: copy from gettext.
94397         * lib/.cppi-disable: add strdup.c, gettext.h.
94398
94399 2002-09-25  Karl Berry  <karl@gnu.org>
94400
94401         * config/srclist.txt: enable gettext.h check.
94402         * config/config.{guess,sub}: update from prep.
94403         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94404                 from automake 1.6.3.
94405         See srclist*.
94406
94407 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94408
94409         * regex.c (PATFETCH): Remove the translating fetch.
94410         (PATFETCH_RAW): Rename to PATFETCH.
94411         (set_image_of_range): New fun.
94412         (SET_RANGE_TABLE_WORK_AREA): Use it.
94413         (regex_compile): Don't translate the pattern chars so eagerly.
94414         Only do it when inserting an `exactn' bytecode or when handling
94415         a char-range.
94416         (mutually_exclusive_p): Avoid empty statement.
94417
94418 2002-07-06  Jim Meyering  <meyering@lucent.com>
94419
94420         * m4/README: Don't mention Makefile.am.in.
94421         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94422
94423 2002-07-01  Jim Meyering  <meyering@lucent.com>
94424
94425         * lib/c-stack.c: Include sys/time.h.
94426         From Volker Borchert.
94427
94428 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94429
94430         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94431
94432 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94433
94434         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94435         New macro.  Use it uniformly instead of
94436         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94437         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94438         reported by Vin Shelton.
94439
94440 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94441
94442         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94443         Do not assume SA_SIGINFO behavior.
94444         Bug reported by Jim Meyering on NetBSD 1.5.2.
94445
94446 2002-06-22  Jim Meyering  <meyering@lucent.com>
94447
94448         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94449         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94450
94451         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94452         now that configure.ac uses AC_GNU_SOURCE.
94453         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94454         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94455
94456         Update to latest tools.  Suggestions from Paul Eggert.
94457         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94458         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94459         * m4/fnmatch.m4: Likewise.
94460         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94461         to AC_HEADER_STDBOOL
94462
94463 2002-06-22  Jim Meyering  <meyering@lucent.com>
94464
94465         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94466         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94467
94468 2002-06-22  Jim Meyering  <meyering@lucent.com>
94469
94470         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94471
94472         * lib/exitfail.c, exitfail.h: Likewise.
94473         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94474
94475         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94476         of fnmatch.h.
94477         (EXTRA_DIST): Add fnmatch_loop.c.
94478         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94479
94480         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94481         * lib/fnmatch.c: Update from diffutils-2.8.2.
94482         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94483         * lib/fnmatch.h: Remove file.
94484
94485 2002-06-21  Jim Meyering  <meyering@lucent.com>
94486
94487         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94488         * m4/mbrtowc.m4: Likewise.
94489
94490         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94491         * m4/mbswidth.m4: Reflect name change:
94492         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94493         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94494
94495         * m4/lib-link.m4: Update from gettext-0.11.2.
94496         * m4/gettext.m4: Likewise.
94497
94498         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94499         From Alfred M. Szmidt.
94500
94501 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94502
94503         * lib/file-type.h: Report an error if neither S_ISREG nor
94504         S_IFREG is defined, instead of using a test specific to glibc
94505         2.2.  This should be safe, since POSIX requires S_ISREG and
94506         Unix Version 7 had S_IFREG.  We don't need to check for
94507         <sys/types.h> since we don't use any symbols that it defines.
94508
94509 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94510
94511         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94512         $@-t, so that each temporary file name is unique and valid in the first
94513         8 characters, for operation under DOS.
94514
94515 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94516
94517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94518
94519 2002-06-15  Jim Meyering  <meyering@lucent.com>
94520
94521         Work even with DJGPP 2.03, which lacks support for symlinks.
94522         From Richard Dawe.
94523         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94524         is defined.
94525         * lib/lchown.c (S_ISLNK): Likewise.
94526
94527 2002-06-15  Jim Meyering  <meyering@lucent.com>
94528
94529         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94530         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94531         have been included before this file.
94532
94533 2002-06-14  Jim Meyering  <meyering@lucent.com>
94534
94535         * lib/file-type.h: Use the version from diffutils-2.8.2.
94536         * lib/file-type.c: Likewise.
94537
94538 2002-06-07  Jim Meyering  <meyering@lucent.com>
94539
94540         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94541         They're needed at least for NetBSD 1.5.2.
94542         ($statxfs_includes): Include those same headers.
94543         ($statxfs_includes): Include sys/vfs.h if available.
94544         ($statxfs_includes): Likewise for sys/statvfs.h.
94545         Check for the following members in both structs statfs and statvfs:
94546         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94547
94548 2002-06-01  Jim Meyering  <meyering@lucent.com>
94549
94550         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94551         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94552
94553 2002-05-28  Jim Meyering  <meyering@lucent.com>
94554
94555         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94556         Reported by Volker Borchert.
94557
94558 2002-05-27  Jim Meyering  <meyering@lucent.com>
94559
94560         Fix a problem seen only on nonconforming systems whereby ls.c's
94561         use of localtime, and then of gettimeofday would cause trouble:
94562         the localtime call used to initialize rpl_gettimeofday's save
94563         mechanism would clobber ls's current local time information so
94564         that in any long listing the first file would always be listed
94565         with date 1970-01-01.  Analysis by Volker Borchert.
94566
94567         * lib/gettimeofday.c (localtime): Undefine.
94568         (rpl_localtime): New function.
94569
94570 2002-05-27  Jim Meyering  <meyering@lucent.com>
94571
94572         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94573         localtime.
94574
94575         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94576         use the replacement function; it wouldn't resolve at link time.
94577         Reported by Volker Borchert.
94578
94579 2002-05-22  Jim Meyering  <meyering@lucent.com>
94580
94581         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94582         file-type.h.
94583         * lib/file-type.h: New file.
94584         * lib/file-type.c (file_type): New file/function.  Extracted from
94585         diffutils.
94586
94587 2002-04-30  Jim Meyering  <meyering@lucent.com>
94588
94589         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94590
94591 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94592
94593         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94594
94595 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94596
94597         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94598         Do not check for alloca.h (no longer used) or stdbool.h (was never
94599         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94600
94601 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94602
94603         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94604
94605 2002-04-29  Jim Meyering  <meyering@lucent.com>
94606
94607         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94608         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94609         Use AC_FUNC_STRNLEN here instead.
94610
94611         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94612         With autoconf-2.53a, it's part of AC_PROG_CC.
94613
94614 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94615
94616         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94617         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94618
94619 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94620
94621         * lib/sig2str.h, lib/sig2str.c: New files.
94622         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94623
94624 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94625
94626         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94627         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94628         of 127, since 64 is the largest conceivable number for ancient
94629         nonstandard hosts.
94630         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94631
94632 2002-04-28  Jim Meyering  <meyering@lucent.com>
94633
94634         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94635
94636 2002-04-24  Jim Meyering  <meyering@lucent.com>
94637
94638         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94639         (jm_PREREQ): Use it.
94640
94641         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94642         mach/mach.h fcntl.h.
94643         Check for this function: setlocale.
94644
94645 2002-04-24  Jim Meyering  <meyering@lucent.com>
94646
94647         * lib/gettext.h: New file, from Gettext.
94648         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94649         (libfetish_a_SOURCES): Add gettext.h.
94650
94651 2002-04-16  Jim Meyering  <meyering@lucent.com>
94652
94653         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94654         ut_pid, ut_id, ut_exit.
94655
94656 2002-04-16  Jim Meyering  <meyering@lucent.com>
94657
94658         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94659         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94660         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94661
94662 2002-04-12  Jim Meyering  <meyering@lucent.com>
94663
94664         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94665         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94666         existence of the getmntinfo function.  Needed for Darwin 5.3.
94667
94668         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94669         This is necessary at least on Darwin 5.3.
94670
94671         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94672         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94673         strnlen.o in the library, and that makes some versions of ranlib
94674         object.
94675
94676 2002-04-12  Jim Meyering  <meyering@lucent.com>
94677
94678         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94679
94680 2002-04-09  Jim Meyering  <meyering@lucent.com>
94681
94682         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94683         to be more precise.  Rather than saying we're checking whether the
94684         function `works', say what we're testing.
94685         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94686         Reported by Bruno Haible.
94687
94688 2002-03-10  Jim Meyering  <meyering@lucent.com>
94689
94690         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94691         Suggestion from Santiago Vila.
94692
94693 2002-03-08  Jim Meyering  <meyering@lucent.com>
94694
94695         * lib/rename.c: Mention that this wrapper is needed also on
94696         mips-dec-ultrix4.4 systems.
94697
94698 2002-03-02  Jim Meyering  <meyering@lucent.com>
94699
94700         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94701         not HAVE_CLOCK_SETTIME.
94702
94703 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94704
94705         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94706         Check for clock_settime.
94707
94708 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94709
94710         * lib/nanosleep.h: Rename to....
94711         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94712
94713         * lib/gettime.c: New file.
94714         * lib/settime.c: New file.
94715         * lib/stime.c: Remove.
94716
94717         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94718         timespec.h.  Remove nanosleep.h.
94719
94720 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94721
94722         * m4/acl.m4: New file.
94723         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94724         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94725
94726 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94727
94728         * lib/acl.c, lib/acl.h: New files.
94729         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94730
94731 2002-02-24  Jim Meyering  <meyering@lucent.com>
94732
94733         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94734         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94735         cause trouble.  Reported by Nelson Beebe.
94736
94737 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94738
94739         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94740         compilers that don't know that xalloc_die never returns.
94741
94742 2002-02-20  Jim Meyering  <meyering@lucent.com>
94743
94744         * lib/getdate.c: Regenerate using bison-1.33.
94745
94746 2002-02-17  Jim Meyering  <meyering@lucent.com>
94747
94748         * config/config.guess (main): Don't use `head -1'; it's no longer
94749         portable. Use `sed 1q' instead.
94750
94751 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94752
94753         * m4/codeset.m4: Upgrade to gettext-0.11.
94754         * m4/gettext.m4: Upgrade to gettext-0.11.
94755         * m4/glibc21.m4: Upgrade to gettext-0.11.
94756         * m4/iconv.m4: Upgrade to gettext-0.11.
94757         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94758         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94759         * m4/lib-ld.m4: New file, from gettext-0.11.
94760         * m4/lib-link.m4: New file, from gettext-0.11.
94761         * m4/lib-prefix.m4: New file, from gettext-0.11.
94762         * m4/progtest.m4: Upgrade to gettext-0.11.
94763
94764 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94765
94766         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94767         (jm_PREREQ): Use it.
94768
94769 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94770
94771         * lib/posixver.c, lib/posixver.h: New files.
94772         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94773
94774 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94775             Bruno Haible  <bruno@clisp.org>
94776
94777         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94778         (fwrite_success_callback): New declaration.
94779         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94780         print_unicode_char. Call failure callback instead of error.
94781         (fwrite_success_callback): New function.
94782         (exit_failure_callback): New function.
94783         (fallback_failure_callback): New function.
94784         (print_unicode_char): Call unicode_to_mb.
94785
94786 2002-01-26  Jim Meyering  <meyering@lucent.com>
94787
94788         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94789         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94790
94791 2002-01-26  Jim Meyering  <meyering@lucent.com>
94792
94793         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94794
94795 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94796
94797         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94798
94799 2002-01-22  Jim Meyering  <meyering@lucent.com>
94800
94801         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94802         Otherwise, some versions of automake would omit the rule that makes
94803         Makefile from Makefile.in.
94804
94805 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94806
94807         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94808         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94809         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94810         (memcoll): Set errno to zero if there is no error.
94811
94812         * lib/quotearg.c (quotearg_buffer_restyled):
94813         Fix bug with quoting buffers containing NUL when backslashing escapes.
94814         This bug was exposed by the other changes in this patch.
94815         (quotearg_n_options): New arg ARGSIZE.
94816         All callers changed.
94817         (quoting_options_from_style): New function.
94818         (quotearg_n_style): Use it.
94819         (quotearg_n_style_mem): New function.
94820
94821         * lib/quotearg.h (quotearg_n_style_mem): New function.
94822
94823 2002-01-19  Jim Meyering  <meyering@lucent.com>
94824
94825         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94826         Remove useless quotes: DF_PROG="df".
94827         * m4/strnlen.m4: New file.
94828
94829 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94830
94831         * lib/backupfile.c (ISDIGIT): Comment fix.
94832         * lib/getdate.y (ISDIGIT): Likewise.
94833         * lib/posixtm.c (ISDIGIT, year): Likewise.
94834         * lib/strverscmp.c (ISDIGIT): Likewise.
94835         * lib/userspec.c (ISDIGIT): Likewise.
94836
94837 2002-01-16  Jim Meyering  <meyering@lucent.com>
94838
94839         * lib/getdate.y: Add three semicolons, each just before a closing
94840         brace. Bison (as of version 1.31) no longer papers over that mistake.
94841
94842 2002-01-05  Jim Meyering  <meyering@lucent.com>
94843
94844         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94845
94846 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94847
94848         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94849         not silently exit merely because the output buffer happens to
94850         have nothing pending.
94851
94852 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94853
94854         See the big note in ../ChangeLog.
94855         * lib/human.c (suffixes): Prefer K to k for 1024.
94856         (generate_suffix_backwards): New function.
94857         (human_readable_inexact): Use it.
94858         * lib/xstrtol.c (__xstrtol): If there is no number but there
94859         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94860         Accept 'K' as well as 'k'.
94861
94862 2001-12-15  Jim Meyering  <meyering@lucent.com>
94863
94864         * lib/regex.h (__restrict_arr): Update from libc.
94865
94866         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94867         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94868         (STREQ): Define.
94869
94870 2001-12-14  Jim Meyering  <meyering@lucent.com>
94871
94872         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94873         Suggestion from Bruno Haible.
94874
94875 2001-12-10  Jim Meyering  <meyering@lucent.com>
94876
94877         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94878         xrealloc, Instead, include "xalloc.h".
94879         (initbuffer): Don't cast xmalloc return value to char*.
94880         (readline): Reword comment.
94881         Don't cast xrealloc return value to char*
94882         Return NULL, not 0.
94883
94884 2001-12-09  Jim Meyering  <meyering@lucent.com>
94885
94886         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94887         about `signed and unsigned type in conditional expression'.
94888         * lib/posixtm.c (posix_time_parse): Likewise.
94889
94890         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94891
94892         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94893         to avoid a pedantic warning.
94894
94895         * lib/getstr.c: Don't include assert.h.
94896         (getstr): Remove warning-evoking assertions.
94897         Return -1 if offset parameter is out of bounds.
94898         Change the type of a local from int to size_t.
94899
94900         * lib/strftime.c (my_strftime_localtime_r): Include this function
94901         definition in the `#if ! HAVE_TM_GMTOFF' block.
94902
94903         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94904         Include xalloc.h instead.
94905
94906 2001-12-02  Jim Meyering  <meyering@lucent.com>
94907
94908         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94909         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94910         included.
94911
94912         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94913         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94914
94915 2001-11-30  Akim Demaille  <akim@epita.fr>
94916
94917         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94918         before being defined.
94919
94920 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94921
94922         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94923         First arg is int, not unsigned.
94924         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94925         (SIZE_MAX, UINT_MAX): New macros.
94926         (quotearg_n_options): Abort if N is negative.
94927         Avoid overflow check on hosts where size_t is 64 bits and int
94928         is 32 bits, as overflow is impossible there.
94929         Fix off-by-one typo that caused unnecessary reallocation.
94930
94931 2001-11-27  Jim Meyering  <meyering@lucent.com>
94932
94933         * lib/tempname.c: Merge with version from libc.
94934         * lib/regex.c: Likewise.
94935
94936         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94937         systems for which STDC_HEADERS is 0, it was not included, resulting in
94938         a warning about an integer-to-pointer conversion problem with getenv.
94939         Reported by Volker Borchert.
94940
94941 2001-11-26  Jim Meyering  <meyering@lucent.com>
94942
94943         * lib/gtod.h: Remove file.
94944         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94945         * lib/gettimeofday.c: Don't include gtod.h.
94946         (GTOD_init): Remove function.
94947         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94948         Suggestion from Volker Borchert.
94949
94950 2001-11-23  Jim Meyering  <meyering@lucent.com>
94951
94952         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94953         it.
94954         * lib/hash.c (struct hash_table): Define it here instead.
94955
94956 2001-11-22  Jim Meyering  <meyering@lucent.com>
94957
94958         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94959
94960 2001-11-20  Jim Meyering  <meyering@lucent.com>
94961
94962         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94963         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94964
94965 2001-11-19  Jim Meyering  <meyering@lucent.com>
94966
94967         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94968         directory.  Use "conftestXXXXXX" as the template.
94969         Suggestion from Paul Eggert.
94970
94971         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94972         immediately, so the test doesn't mistakenly hit the max-open-files
94973         limit.
94974
94975 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94976
94977         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94978         (TEMPORARIES): New macro.
94979         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94980         removes an artificial limitation (e.g. HP-UX 10.20, where
94981         TMP_MAX is 17576).
94982
94983 2001-11-18  Jim Meyering  <meyering@lucent.com>
94984
94985         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94986
94987 2001-11-18  Jim Meyering  <meyering@lucent.com>
94988
94989         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94990         on SunOS 4.
94991
94992         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94993         files will be created before anything else.
94994
94995 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94996
94997         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94998         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94999
95000 2001-11-17  Jim Meyering  <meyering@lucent.com>
95001
95002         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95003         Prompted by a report from Bob Proulx.
95004
95005         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95006         Instead, require UTILS_FUNC_MKSTEMP.
95007
95008 2001-11-17  Jim Meyering  <meyering@lucent.com>
95009
95010         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95011         Now, that's done as part of AC_FUNC_STRTOD.
95012
95013 2001-11-17  Jim Meyering  <meyering@lucent.com>
95014
95015         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95016         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95017         rather than group writable.  Patch by Juan F. Codagnone.
95018
95019         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95020         xrealloc, Instead, include "xalloc.h".
95021
95022         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95023         Remove explicit declarations of xmalloc, xrealloc,
95024         and xstrdup.  Instead, include "xalloc.h".
95025
95026         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95027         unlocked-io.h.
95028         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95029         Likewise.
95030         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95031
95032         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95033         Reported by Padraig Brady.
95034
95035         * lib/mkstemp.c: #undef mkstemp.
95036         Include config.h.
95037         (rpl_mkstemp): Rename from mkstemp.
95038         Protoize.
95039
95040 2001-11-16  Jim Meyering  <meyering@lucent.com>
95041
95042         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95043         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95044         determine the amount of total physical memory, use pstat_getstatic.
95045         HPUX-11 doesn't define _SC_PHYS_PAGES.
95046         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95047         If sysconf couldn't be used to determine the amount of available
95048         physical memory, use both pstat_getstatic and pstat_getdynamic.
95049         Based on a patch from Bob Proulx.
95050
95051 2001-11-10  Jim Meyering  <meyering@lucent.com>
95052
95053         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95054         (jm_PREREQ): Use it.
95055
95056 2001-11-09  Jim Meyering  <meyering@lucent.com>
95057
95058         * m4/jm-macros.m4: Require autoconf-2.52f.
95059         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95060         Use these AC_-prefixed names, not the AM_-prefixed ones.
95061
95062         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95063
95064 2001-11-05  Jim Meyering  <meyering@lucent.com>
95065
95066         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95067
95068 2001-11-04  Jim Meyering  <meyering@lucent.com>
95069
95070         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95071         $DEFS.
95072
95073 2001-11-03  Jim Meyering  <meyering@lucent.com>
95074
95075         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95076         of AC_DEFUN.
95077
95078         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95079         know the name of the variable in the macro definition.
95080
95081 2001-11-03  Jim Meyering  <meyering@lucent.com>
95082
95083         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95084         in argmatch_to_argument call.
95085
95086         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95087         argument.
95088
95089         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95090         e.g., a fault due to an attempt to free a NULL pointer.
95091
95092 2001-11-01  Jim Meyering  <meyering@lucent.com>
95093
95094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95095         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95096
95097 2001-11-01  Jim Meyering  <meyering@lucent.com>
95098
95099         * lib/dirfd.c, lib/dirfd.h: New files.
95100         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95101
95102         * lib/hash.c (hash_print) [TESTING]: Clean up.
95103
95104 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95105
95106         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95107         to avoid a warning if -Wall.
95108
95109 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95110
95111         * README: New file
95112         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95113         (per RMS's instructions, this is now the canonical source)
95114         * lgpl/, gpl/: New directories.
95115
95116 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95117
95118         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95119
95120 2001-10-21  Jim Meyering  <meyering@lucent.com>
95121
95122         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95123         this code would end up calling gettext even in packages built
95124         with --disable-nls.
95125         * lib/getopt.c (_): Likewise.
95126         * lib/regex.c (_): Likewise.
95127
95128 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95129
95130         * m4/error.m4 (jm_PREREQ_ERROR):
95131         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95132         AC_FUNC_STRERROR_R does that.
95133         Check for strerror declaration.
95134
95135         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95136         are supposed to have them these days.
95137         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95138         Merge changes from latest Autoconf CVS.
95139         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95140         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95141         POSIX decided to standardize on the int flavor of strerror_r.
95142
95143 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95144
95145         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95146         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95147         Use strerror_r that is only a macro, even if it is not a function.
95148         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95149         (private_strerror): Use prototypes, not old-style function definition.
95150         (print_errno_message): New function.
95151         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95152         char*-flavored one.
95153         (error_tail, error, error_at_line): Use it.
95154
95155 2001-10-11  Jim Meyering  <meyering@lucent.com>
95156
95157         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95158         and quote_n (1, ... to avoid clobbering a buffer.
95159
95160 2001-10-05  Jim Meyering  <meyering@lucent.com>
95161
95162         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95163         hash-pjw.h.
95164         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95165         * lib/hash-pjw.h: New file.
95166
95167 2001-09-30  Jim Meyering  <meyering@lucent.com>
95168
95169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95170         `struct fsstat' has the `f_fstypename' member.
95171         Use that to define FS_TYPE, which is now used to make
95172         the getfsstat link test tighter.
95173
95174 2001-09-30  Jim Meyering  <meyering@lucent.com>
95175
95176         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95177         Include <sys/ucred.h>, for Apple Darwin.
95178         Include sys/mount.h and sys/fs_types.h only if available.
95179         (FS_TYPE): Define.
95180         (read_filesystem_list): Use FS_TYPE.
95181
95182 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95183
95184         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95185         a boolean context.
95186
95187 2001-09-29  Jim Meyering  <meyering@lucent.com>
95188
95189         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95190         [one-argument getmntent function]): Include stdio.h before mntent.h.
95191         SunOS 4.1.x needs it for the declaration of `FILE'.
95192         Patch by Volker Borchert.
95193
95194         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95195         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95196         sys/fs_types.h, and make the link-test for getfsstat guard #include
95197         directives with appropriate #if HAVE_*_H tests so that we can
95198         detect getfsstat on Apple Darwin1.3.7 systems.
95199         Reported by Nelson Beebe.
95200         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95201
95202 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95203
95204         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95205         #defines strtoimax.  Also treat the other strto* functions
95206         like strtoimax.
95207
95208         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95209         Check for strtoul and strtoumax,
95210         as those declarations are made even in the signed case.
95211         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95212         Likewise, for strtol and strtoimax.
95213
95214 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95215
95216         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95217         #defines strtoimax.  Also treat the other strto* functions
95218         like strtoimax.
95219
95220         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95221         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95222         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95223
95224 2001-09-26  Jim Meyering  <meyering@lucent.com>
95225
95226         Most macros in unlocked-io.h had the wrong number of arguments.
95227         * lib/gen-uio: New script.
95228         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95229         * lib/unlocked-io.hin: Remove file.
95230         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95231         rather than trying to embed it here.
95232         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95233         Reported by Padraig Brady.
95234
95235 2001-09-25  Volker Borchert  <bt@teknon.de>
95236
95237         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95238         `result'.
95239
95240 2001-09-24  Jim Meyering  <meyering@lucent.com>
95241
95242         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95243
95244 2001-09-23  Jim Meyering  <meyering@lucent.com>
95245
95246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95247         instead of the mere test for existence of mntent.h.  The latter
95248         would get a false-positive on AIX 3.4 systems.
95249         In the outer getmntent if-block, don't die if neither of the getmntent
95250         tests succeeds.  Instead, just fall through and continue with the
95251         remaining tests.
95252
95253 2001-09-23  Jim Meyering  <meyering@lucent.com>
95254
95255         * lib/mountlist.c: Remove useless parentheses in #if directives.
95256         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95257         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95258
95259 2001-09-22  Jim Meyering  <meyering@lucent.com>
95260
95261         * m4/gettext.m4: New file.  From gettext.
95262         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95263         * m4/progtest.m4: Likewise
95264         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95265         * m4/glibc21.m4: Likewise.
95266
95267         * m4/libintl.m4: Remove.  No longer used.
95268
95269 2001-09-22  Jim Meyering  <meyering@lucent.com>
95270
95271         * lib/localcharset.c: Update from latest gettext.
95272         * lib/config.charset: Likewise.
95273
95274 2001-09-20  Jim Meyering  <meyering@lucent.com>
95275
95276         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95277         strtoimax.
95278         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95279         strtoumax.
95280
95281 2001-09-20  Jim Meyering  <meyering@lucent.com>
95282
95283         * lib/xstrtol.c (strtoimax): Guard declaration with
95284         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95285         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95286         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95287         (strtoumax): Likewise, for completeness (it wasn't necessary).
95288
95289 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95290
95291         * lib/strtoimax.c (HAVE_LONG_LONG):
95292         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95293         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95294         to work around bug in IBM C compiler.
95295
95296 2001-09-17  Jim Meyering  <meyering@lucent.com>
95297
95298         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95299         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95300         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95301         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95302         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95303         whenever the right hand side need not be expanded by the shell.
95304
95305 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95306
95307         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95308         library.  It's not correct, as some older glibcs are buggy.
95309         fnmatch wasn't fixed until glibc 2.2.
95310
95311         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95312         special shell magic here.
95313
95314 2001-09-16  Jim Meyering  <meyering@lucent.com>
95315
95316         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95317         * m4/jm-macros.m4: Require it.
95318
95319 2001-09-16  Jim Meyering  <meyering@lucent.com>
95320
95321         * lib/mkdir.c: New file.
95322
95323 2001-09-15  Jim Meyering  <meyering@lucent.com>
95324
95325         * m4/jm-macros.m4: Check for help2man.
95326
95327 2001-09-11  Jim Meyering  <meyering@lucent.com>
95328
95329         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95330         The body, by Paul Eggert, was moved here from configure.in.
95331         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95332
95333 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95334
95335         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95336         (jm_PREREQ): Use it.
95337
95338 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95339
95340         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95341         Use ssize_t, not int, to store result of readlink.
95342         Check for ssize_t overflow as well as size_t overflow,
95343         as POSIX says the result of readlink is implementation-defined
95344         when ssize_t overflows.
95345         Remove unnecessary cast to char*.
95346         Use free+malloc instead of realloc, as the storage doesn't need
95347         to be preserved and it's clearer and can be more efficient that way.
95348         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95349         * lib/xreadlink.h (xreadlink): Update prototype.
95350
95351 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95352
95353         * lib/xgetcwd.c: Revert some of the previous change; intead,
95354         fix the HAVE_GETCWD_NULL code to behave more like the
95355         !HAVE_GETCWD_NULL code used to.
95356
95357         Include "xalloc.h".
95358         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95359         invoke xalloc_die.
95360
95361 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95362
95363         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95364         sys/param.h, as pathmax.h includes them.
95365
95366 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95367
95368         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95369         (jm_PREREQ_XGETCWD): New macro.
95370
95371         * m4/getcwd.m4: New file.
95372
95373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95374
95375         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95376         like the HAVE_GETCWD_NULL code.
95377         Include pathmax.h if not HAVE_GETCWD.
95378         Do not include xalloc.h.
95379         (INITIAL_BUFFER_SIZE): New symbol.
95380         Do not use xmalloc / xrealloc, since the caller is responsible for
95381         handling errors.  Preserve errno around `free' during failure.
95382         Do not overrun buffer when using getwd.
95383
95384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95385
95386         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95387         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95388         getcwd (NULL, 0).
95389
95390 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95391
95392         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95393         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95394         spotted by Jim Meyering.
95395
95396 2001-09-03  Jim Meyering  <meyering@lucent.com>
95397
95398         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95399         failure.
95400
95401 2001-09-02  Jim Meyering  <meyering@lucent.com>
95402
95403         * lib/error.c: Update from GNU libc.
95404
95405 2001-09-01  Jim Meyering  <meyering@lucent.com>
95406
95407         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95408         Used by df.
95409
95410 2001-09-01  Jim Meyering  <meyering@lucent.com>
95411
95412         * lib/xreadlink.c: New file.
95413         * lib/xreadlink.h: New file.
95414         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95415         xreadlink.h.
95416
95417         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95418         doesn't conflict with sparc Solaris 7's definition in
95419         /usr/include/sys/int_types.h.
95420
95421         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95422         files.
95423         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95424         and strncasecmp as r-values.  Unixware didn't have declarations.
95425
95426 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95427
95428         * lib/xstrtol.h: Add copyright notice.
95429         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95430         LONGINT_INVALID_SUFFIX_CHAR.
95431
95432 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95433
95434         * lib/xstrtol.c (strtoimax): New decl.
95435
95436 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95437
95438         * lib/xgetcwd.c: Don't include pathmax.h.
95439         Include stdlib.h and unistd.h if available.
95440         Include xalloc.h.
95441         (xmalloc, xstrdup, free): Remove decls.
95442         (xgetcwd): Don't assume sizes fit in unsigned.
95443         Check for overflow when computing sizes.
95444         Simplify reallocation code.
95445
95446 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95447
95448         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95449         a directory's st_size can have an arbitrary value, so the old
95450         usage could waste an arbitrary amount of memory.  All uses
95451         changed.
95452         * lib/savedir.h: Update prototype.
95453
95454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95455
95456         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95457
95458         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95459         old strtoimax.c.
95460
95461         Also, make the following further changes to make this file's
95462         configuration more similar to that of strtol.c:
95463         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95464         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95465         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95466         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95467         changed to signed values.
95468
95469         And make the following changes as well:
95470         Fix copyright notice, as 1999 was missing.
95471         (verify): New macro.
95472         (strtoimax): Check sizes at compile-time, not run-time.
95473         Prefer strtol to strtoll if both work.
95474         (main): Remove; it was not that useful and was a pain to maintain.
95475
95476         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95477
95478 2001-08-31  Jim Meyering  <meyering@lucent.com>
95479
95480         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95481         Use an initial, malloc'd, buffer of length 128 rather than
95482         a statically allocated one of length 1024.
95483
95484 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95485
95486         Simplify code, partly by assuming autoconf 2.52 semantics.
95487
95488         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95489
95490         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95491         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95492         All uses removed.
95493         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95494         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95495         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95496         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95497         jm_AC_HEADER_INTTYPES_H.
95498         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95499
95500         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95501
95502         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95503         Quote first arg of AC_DEFUN.
95504         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95505         since they are needed to parse the include file even if we need
95506         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95507         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95508         but with opposite signedness.
95509
95510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95511
95512         Merge 'exclude' changes from tar 1.13.22.
95513         This fixes one or two unlikely storage allocation overflow bugs,
95514         but doesn't change user-visible behavior otherwise.
95515
95516 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95517
95518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95519         (jm_PREREQ_EXCLUDE): New macro.
95520
95521 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95522
95523         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95524         tm to be declared.
95525
95526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95527
95528         * lib/hash.c: Remove '2001' from copyright notice.
95529
95530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95531
95532         * lib/full-write.h: New file.
95533         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95534         * lib/full-write.c: Correct credits, as cccp.c no longer
95535         exists and anyway it was so heavily changed from the old cccp
95536         code as to be unrecognizable.  Include full-write.h.
95537         (full_write): Return size_t, with short writes meaning failure.
95538         All callers changed.  This fixes a bug with large buffers
95539         on 64-bit hosts.
95540         * lib/utime.c: Include full-write.h.
95541
95542 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95543
95544         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95545         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95546         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95547         Include if available.
95548         (<xalloc.h>): Include
95549         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95550         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95551         collide with FNM macros.
95552         (struct patopts): New struct.
95553         (struct exclude): Use it, as exclude patterns now come with options.
95554         (new_exclude): Support above changes.
95555         (new_exclude, add_exclude_file):
95556         Initial size must now be a power of two to simplify overflow checking.
95557         (free_exclude, fnmatch_no_wildcards): New function.
95558         (excluded_filename): No longer requires options arg, as the options
95559         are determined by add_exclude.  Now returns bool, not int.
95560         (excluded_filename, add_exclude):
95561         Add support for the fancy new exclusion options.
95562         (add_exclude, add_exclude_file): Now takes int options arg.
95563         Check for arithmetic overflow when computing sizes.
95564         (add_exclude_file): xrealloc might modify errno, so don't
95565         realloc until after errno might be used.
95566
95567         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95568         New macros.
95569         (free_exclude): New decl.
95570         (add_exclude, add_exclude_file): Now takes int options arg.
95571         (excluded_filename): No longer requires options arg, as the options
95572         are determined by add_exclude.  Now returns bool, not int.
95573
95574 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95575
95576         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95577
95578 2001-08-27  Jim Meyering  <meyering@lucent.com>
95579
95580         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95581
95582         * lib/version-etc.c (N_): Remove definition.
95583         Revert most of last change.
95584         Instead, simply don't mark the `Copyright...' string for translation.
95585         Based on advice from Paul Eggert.
95586
95587         * lib/strtoxmax.c: Tweak comment.
95588
95589 2001-08-26  Jim Meyering  <meyering@lucent.com>
95590
95591         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95592
95593         * m4/xstrtoimax.m4: New file.
95594         * m4/xstrtoumax.m4: Add comments explaining why we
95595         AC_REPLACE_FUNCS(strtol).
95596
95597 2001-08-26  Jim Meyering  <meyering@lucent.com>
95598
95599         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95600         of copyright with `%s' so translators don't get an untranslated
95601         message in 2002.
95602         (COPYRIGHT_YEAR): Define.
95603         (version_etc): Use fprintf rather than fputs.
95604         Suggestion from Ulrich Drepper.
95605
95606         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95607
95608         * lib/strtoll.c: New file, from GNU libc.
95609         * lib/xstrtoimax.c: New file.
95610
95611         * lib/xstrtol.h: Add xstrtoimax.
95612         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95613         * lib/strtoimax.c: New file.  Likewise, but first define
95614         STRTOUXMAX_SIGNED.
95615
95616         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95617         ...
95618         * lib/strtoxmax.c: ... then renamed to this.
95619
95620 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95621
95622         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95623         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95624         (jm_AC_TYPE_INTMAX_T): New macro.
95625         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95626
95627         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95628
95629         * m4/longlong.m4: Renamed from ulonglong.m4.
95630         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95631         * m4/uintmax_t.m4: Removed.
95632
95633 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95634
95635         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95636         Port to Solaris 8, where 'sed' requires a space after the 'r'
95637         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95638         Redirect output to $tmp just once.
95639
95640 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95641
95642         * lib/addext.c (<errno.h>): Include.
95643         (errno): Declare if not defined.
95644         (addext): Work correctly when pathconf returns -1 and leaves
95645         errno alone because there is no limit.  Also, work even if
95646         pathconf returns a value greater than SIZE_MAX.
95647
95648 2001-08-12  Jim Meyering  <meyering@lucent.com>
95649
95650         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95651         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95652         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95653         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95654         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95655         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95656         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95657         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95658         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95659         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95660         utime.m4, utimes.m4, xstrtoumax.m4:
95661         Quote the first argument in each use of AC_DEFUN.
95662
95663 2001-08-12  Jim Meyering  <meyering@lucent.com>
95664
95665         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95666         Simply `return getcwd (NULL, 0);'.
95667         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95668         Use 1300 as initial value for length, not PATH_MAX.
95669
95670         * lib/pathmax.h: Clean up cpp syntax.
95671
95672 2001-08-12  Jim Meyering  <meyering@lucent.com>
95673
95674         * lib/gettimeofday.c: New file.
95675         * lib/gtod.h: New file.
95676         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95677
95678 2001-08-05  Jim Meyering  <meyering@lucent.com>
95679
95680         * m4/jm-macros.m4: Require autoconf-2.52.
95681
95682 2001-08-04  Jim Meyering  <meyering@lucent.com>
95683
95684         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95685         stmt, to get in sync with glibc.
95686
95687 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95688
95689         The following changes are from gettext 0.10.39 as maintained by
95690         Bruno Haible.
95691
95692         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95693         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95694         with inverted sense.  All uses changed.
95695
95696         * lib/mbswidth.c: Don't include <limits.h>.
95697         Include <stdlib.h> and <string.h> unconditionally.
95698         (iswcntrl, mbsinit, ISCNTRL): New macros.
95699         (mbsnwidth): Use K&R style function declarations.
95700         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95701         can optimize it when MB_CUR_MAX == 1.
95702         The width of control characters is zero, not 1.
95703
95704 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95705
95706         The following changes are from gettext 0.10.39 as maintained by
95707         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95708
95709         * m4/codeset.m4: Upgrade to serial AM1.
95710         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95711         all uses changed.  Quote first arg of AC_DEFUN.
95712         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95713
95714         * m4/iconv.m4: Upgrade to serial AM2.
95715         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95716         Add --with-libconv-prefix.
95717         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95718         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95719         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95720         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95721         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95722
95723         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95724         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95725         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95726         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95727         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95728         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95729         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95730         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95731         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95732
95733         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95734         string.h any more.
95735
95736         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95737         not the default value.
95738
95739         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95740         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95741         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95742         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95743         Also check for iswcntrl, used for wcwidth fallback.
95744         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95745         to Autoconf 2.13.
95746
95747 2001-08-03  Jim Meyering  <meyering@lucent.com>
95748
95749         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95750         as it was in the original.  Reported by Paul Eggert.
95751
95752 2001-07-16  Jim Meyering  <meyering@lucent.com>
95753
95754         * m4/gettimeofday.m4: New file.
95755         Prompted by a report from Bernhard Baehr.
95756
95757 2001-07-15  Jim Meyering  <meyering@lucent.com>
95758
95759         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95760         stuff. Now it's in ../Makefile.cfg.
95761
95762 2001-07-15  Jim Meyering  <meyering@lucent.com>
95763
95764         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95765         (BUILT_SOURCES): Add unlocked-io.h.
95766         (io_functions): Define.
95767         (unlocked-io.h): New rule.
95768         (DISTCLEANFILES): Add unlocked-io.h.
95769         (all-local): Depend on unlocked-io.h, to ensure it is created.
95770
95771         * lib/unlocked-io.hin: New file
95772
95773         * lib/regex.c: Update from glibc.
95774
95775 2001-07-05  Jim Meyering  <meyering@lucent.com>
95776
95777         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95778         recommendation.
95779         (libfetish_a_SOURCES): Put all .h files here instead.
95780         Remove a thus-exposed (better checks in automake) duplicate and
95781         two unnecessary .h files.
95782
95783 2001-07-04  Jim Meyering  <meyering@lucent.com>
95784
95785         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95786         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95787         distcheck failure.
95788
95789 2001-07-02  Jim Meyering  <meyering@lucent.com>
95790
95791         The following changes were prompted by suggestions from Bruno Haible.
95792
95793         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95794         is now generated.
95795         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95796         definition of EXTRA_DIST.
95797         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95798         ensure that the generated file is created/updated whenever the list
95799         of $(unlocked_functions) is changed.
95800         (jm-glibc-io.m4): New rule.
95801         (unlocked-io.h): New rule -- currently unused.
95802
95803 2001-06-24  Jim Meyering  <meyering@lucent.com>
95804
95805         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95806         unmatched right bracket, rather than kludging it with an extra,
95807         falsely-matching quote in a comment.  Patch by Akim Demaille.
95808
95809 2001-06-11  Jim Meyering  <meyering@lucent.com>
95810
95811         * lib/regex.c: Update from GNU libc.
95812
95813 2001-05-27  Jim Meyering  <meyering@lucent.com>
95814
95815         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95816         Check for ut_type in struct utmp.
95817
95818 2001-05-27  Jim Meyering  <meyering@lucent.com>
95819
95820         * lib/readutmp.h (UT_TYPE): Define.
95821
95822 2001-05-24  Jim Meyering  <meyering@lucent.com>
95823
95824         * lib/argmatch.c: Include "quote.h".
95825         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95826         quote function.  Reported by Göran Uddeborg.
95827
95828 2001-05-22  Jim Meyering  <meyering@lucent.com>
95829
95830         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95831         now that we use the package-supplied version unconditionally.
95832         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95833
95834 2001-05-21  Jim Meyering  <meyering@lucent.com>
95835
95836         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95837         shell syntax errors.
95838
95839 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95840
95841         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95842
95843 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95844
95845         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95846         Don't bother to check library strftime, since
95847         we'll be using our own my_strftime function anyway.
95848         Define my_strftime instead of strftime.
95849
95850 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95851
95852         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95853         which is not yet declared.
95854
95855 2001-05-15  Jim Meyering  <meyering@lucent.com>
95856
95857         * m4/regex.m4: Use proper quoting so brackets appear in the test
95858         program.
95859         Reported by, and with help from, Bruno Haible.
95860
95861 2001-05-13  Jim Meyering  <meyering@lucent.com>
95862
95863         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95864         undefined.
95865
95866 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95867
95868         dirname code cleanup.  base_name now behaves more compatibly
95869         with POSIX basename when given file names that have trailing
95870         slashes, and similarly for dir_name.  Add new primitives
95871         base_len and dir_len.  Put the directory-name-related decls
95872         into dirname.h.
95873
95874         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95875         * lib/backupfile.c (base_name): Likewise.
95876         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95877         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95878         * lib/makepath.c (strip_trailing_slashes): Likewise.
95879         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95880         ISSLASH): Likewise.
95881         * lib/rename.c (strip_trailing_slashes): Likewise.
95882         * lib/same.c (base_name): Likewise.
95883         * lib/stripslash.c (ISSLASH): Likewise.
95884
95885         * lib/addext.c: Include <dirname.h> after size_t is defined.
95886         * lib/backupfile.c: Likewise.
95887
95888         * lib/addext.c (addext): Use base_len to trim redundant
95889         trailing slashes instead of doing it ourselves.
95890         But do not trim the last slash if it is not redundant.
95891
95892         * lib/backupfile.c (find_backup_file_name,
95893         max_backup_version): Use base_len instead of rolling it ourselves.
95894         Handle the case of "" and (on DOS) "C:" correctly.
95895
95896         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95897         needed. Include <string.h>, <dirname.h>.
95898         (base_name): Allow file names ending in slashes, other than names
95899         that are all slashes.  In this case, return the basename followed
95900         by the slashes.  This is more general, and can be used in places
95901         where the original base_name purposely had an assertion failure.
95902         (base_len): New function.
95903
95904         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95905         Do not include <assert.h>; no longer needed.
95906         Include xalloc.h.
95907         (memrchr): Remove decl.
95908         (dir_name_r): Remove.
95909         (dir_len): Renamed from dirlen.  All callers changed.
95910         Rewrite in terms of base_name, for simplicity and consistency.
95911         (dir_name): Never return NULL.  All callers changed.
95912         Do not include <stdlib.h> in test program; no longer needed.
95913         return 0; is fine for test program.
95914
95915         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95916         New macros.
95917         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95918
95919         * lib/path-concat.c (path_concat): Use base_len to compute
95920         base length, not strlen; this means we cannot rely on memcpy
95921         to null-terminate.
95922
95923         * lib/same.c (STREQ): Remove.
95924         (same_name): Handle the case where the basename ends in trailing '/'.
95925
95926         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95927         a slash was stripped.  Do not strip the last slash after a
95928         file system prefix.
95929
95930 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95931
95932         * lib/Makefile.am (libfetish_a_SOURCES):
95933         Add strftime.c, since we now compile it on all hosts.
95934
95935         * lib/strftime.c (my_strftime):
95936         Define to nstrftime if emacs, but only if my_strftime is not defined.
95937         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95938         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95939         Add one more extra argument: a nanoseconds value.
95940         All uses changed.
95941         (ns): New macro.
95942         (my_strftime function): Add %N format.
95943         (emacs_strftimeu): Renamed from emacs_strftime,
95944         with extra ut argument.
95945
95946 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95947
95948         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95949
95950 2001-04-21  Jim Meyering  <meyering@lucent.com>
95951
95952         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95953         doesn't interfere.
95954
95955 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95956
95957         * m4/ftruncate.m4: Check for chsize.
95958         Link with ftruncate.o unconditionally if ftruncate is missing.
95959         This was required when cross-compiling to i586-mingw32msvc.
95960
95961 2001-04-08  Jim Meyering  <meyering@lucent.com>
95962
95963         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95964         recomputed; that's necessary when the offset spans a DST transition.
95965         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95966
95967 2001-04-02  Jim Meyering  <meyering@lucent.com>
95968
95969         * lib/regex.h, regex.c: Update from GNU libc.
95970
95971 2001-03-24  Jim Meyering  <meyering@lucent.com>
95972
95973         * m4/jm-macros.m4: Require autoconf-2.49d.
95974
95975 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95976
95977         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95978
95979 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95980
95981         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95982
95983 2001-03-17  Jim Meyering  <meyering@lucent.com>
95984
95985         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95986         now that the version in autoconf is equivalent.
95987         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95988
95989         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95990         Suggestion from Akim Demaille.
95991
95992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95993         (jm_PREREQ_TEMPNAME): New function.
95994
95995 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95996
95997         * lib/tempname.c (uint64_t): Define to uintmax_t if
95998         not defined, and if UINT64_MAX is not defined.
95999         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96000         Reported by John David Anglin.
96001
96002 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96003
96004         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96005         resolve alias if codeset is empty.
96006         * lib/config.charset (BeOS): Use wildcard syntax.
96007
96008 2001-03-13  Jim Meyering  <meyering@lucent.com>
96009
96010         * lib/path-concat.c (path_concat)
96011         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96012         concatenating e.g., `C:' and `foo'.
96013         From Bruno Haible.
96014
96015 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96016
96017         * lib/localcharset.c (locale_charset): Don't use
96018         setlocale(LC_CTYPE,NULL). Don't return NULL.
96019         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96020
96021 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96022
96023         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96024         support for DOS/DJGPP.
96025
96026 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96027
96028         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96029         lacks mkstemp.  Compile our own tempname.c if we compile our own
96030         mkstemp.c, as mkstemp relies on tempname.
96031
96032 2001-03-01  Jim Meyering  <meyering@lucent.com>
96033
96034         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96035         AH_VERBATIM really does output its argument verbatim.
96036
96037 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96038
96039         * lib/Makefile.am (libfetish_a_SOURCES):
96040         Add dup-safer.c, fopen-safer.c.
96041         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96042
96043         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96044         * lib/unistd-safer.h: New files.
96045
96046 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96047
96048         The mkstemp replacement is taken from glibc 2.2.2, with some
96049         portability fixes for use outside glibc, as follows:
96050
96051         * lib/tempname.c (struct_stat64): New macro.
96052         (direxists, __gen_tempname): Use it.
96053         This avoids a portability problem with Solaris 8.
96054
96055         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96056         (<stddef.h>, <stdint.h>, <string.h>):
96057         Include only if STDC_HEADERS || _LIBC.
96058         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96059         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96060         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96061         (__set_errno): Define this macro if <errno.h> doesn't.
96062         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96063         Define these macros if <stdio.h> doesn't.
96064         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96065         Define these macros if <sys/stat.h>
96066         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96067         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96068         __xstat64): Define if not _LIBC.
96069         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96070         (__gen_tempname): Invoke gettimeofday only if
96071         HAVE_GETTIMEOFDAY || _LIBC;
96072         otherwise, fall back on plain "time".
96073         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96074
96075         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96076
96077         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96078
96079 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96080
96081         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96082
96083 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96084
96085         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96086         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96087         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96088         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96089
96090 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96091
96092         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96093         Remove workaround macros for hosts that have mbrtowc but not
96094         mbstate_t, as we now insist on proper declarations for both
96095         before using mbrtowc.
96096
96097 2001-02-17  Jim Meyering  <meyering@lucent.com>
96098
96099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96100         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96101         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96102         UnixWare 7.1.1.
96103
96104         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96105         rather than AC_CACHE_VAL.
96106
96107 2001-02-17  Jim Meyering  <meyering@lucent.com>
96108
96109         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96110         around included file name.
96111
96112         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96113
96114         * lib/strftime.c: Update from GNU libc (the only changes were to
96115         comments).
96116
96117 2001-02-17  Jim Meyering  <meyering@lucent.com>
96118
96119         * lib/regex.c: Update from libc.
96120
96121 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96122
96123         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96124         clash.
96125
96126 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96127
96128         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96129         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96130         Reported by Mark Hounschell via Paul Eggert.
96131
96132 2001-02-07  Jim Meyering  <meyering@lucent.com>
96133
96134         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96135
96136 2001-02-05  Jim Meyering  <meyering@lucent.com>
96137
96138         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96139         it includes the patch required for `large file' support with at least
96140         HP-UX's 10.20 /bin/cc.
96141
96142 2001-02-03  Jim Meyering  <meyering@lucent.com>
96143
96144         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96145         AS_IF, now that it works once again (mysteriously).
96146         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96147
96148 2001-01-30  Jim Meyering  <meyering@lucent.com>
96149
96150         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96151         * m4/chown.m4: Rename conftestchown to conftest.chown.
96152         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96153         s/conftestdir2/conftest.d2/.
96154         * m4/utimes.m4: s/conftestdata/conftest.data/
96155         Inspired by Pavel Roskin's change in autoconf.
96156
96157 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96158
96159         * lib/config.charset: Update for FreeBSD 4.2.
96160
96161 2001-01-27  Jim Meyering  <meyering@lucent.com>
96162
96163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96164         a use of AS_IF.
96165         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96166
96167 2001-01-26  Jim Meyering  <meyering@lucent.com>
96168
96169         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96170         quotearg.c includes it.
96171
96172 2001-01-26  Jim Meyering  <meyering@lucent.com>
96173
96174         * lib/quotearg.c: Include stddef.h.
96175         * lib/quote.c: Include stddef.h.
96176         Reported by Axel Kittenberger.
96177
96178         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96179         line in double quotes so that it evokes a better diagnostic.
96180         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96181         Reported by Axel Kittenberger.
96182
96183 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96184
96185         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96186         as if it was a `charset'.
96187
96188 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96189
96190         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96191         has const.
96192
96193 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96194
96195         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96196         to avoid a warning.  Add back 'const' to inptr.
96197
96198 2001-01-20  Jim Meyering  <meyering@lucent.com>
96199
96200         Be sure that headers are checked before used in code compiled
96201         for the type checks.
96202         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96203         In place of that, invoke jm_CHECK_ALL_TYPES.
96204         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96205         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96206         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96207         The check for ssize_t was mistakenly run before the test for unistd.h.
96208
96209         The configure-time check for stdbool.h was missing.
96210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96211         (jm_PREREQ_HASH): New function.
96212
96213 2001-01-17  Jim Meyering  <meyering@lucent.com>
96214
96215         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96216         for autoconf-2.49c.
96217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96218
96219 2001-01-16  Jim Meyering  <meyering@lucent.com>
96220
96221         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96222         From Bruno Haible.
96223
96224 2001-01-14  Jim Meyering  <meyering@lucent.com>
96225
96226         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96227         foo and bar.  Create conftestdir/ in the script, not in the C code.
96228         Remove directories in the script, not in the C code.
96229         Remove conftestdir{,2} before trying to create the directory.
96230         Make the entire configure script fail if the mkdir fails.
96231
96232 2001-01-14  Jim Meyering  <meyering@lucent.com>
96233
96234         * lib/rename.c: New file.  From Volker Borchert.
96235         Include stdlib.h, string.h or strings.h, and xalloc.h.
96236         Use strip_trailing_slashes rather than open-coding it.
96237
96238 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96239
96240         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96241
96242 2001-01-03  Jim Meyering  <meyering@lucent.com>
96243
96244         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96245         of local `inptr' to avoid warning with some system declarations of
96246         iconv.
96247
96248 2001-01-02  Volker Borchert  <bt@teknon.de>
96249
96250         * m4/rename.m4: New file.
96251         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96252
96253 2001-01-01  Jim Meyering  <meyering@lucent.com>
96254
96255         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96256         even on systems with utmpx.h.  It's necessary for the declaration of
96257         utmp's ut_user member.  Reported by Andreas Jaeger.
96258
96259         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96260         available. They are required for the declarations of getgrgid and
96261         getpwuid resp.
96262         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96263         Reported by Andreas Jaeger.
96264
96265 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96266
96267         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96268         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96269         so `make install' also works in VPATH builds.
96270
96271 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96272
96273         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96274         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96275         can be used in subdirectories.
96276
96277 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96278
96279         * lib/modechange.c: Do not assume that mode_t uses the
96280         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96281         the other-execute bit of FOO even if S_IXOTH != 1.
96282
96283         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96284         WOTH, XOTH, ALLM): New macros.
96285         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96286          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96287         Use them.
96288         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96289         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96290         (mode_compile):
96291         No need to use uintmax_t; unsigned long is long enough.
96292         Don't bother to get suffix since we don't use it.
96293
96294 2000-12-26  Jim Meyering  <meyering@lucent.com>
96295
96296         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96297         better with autoheader.
96298
96299 2000-12-24  Jim Meyering  <meyering@lucent.com>
96300
96301         * lib/hash.c (is_prime): Return explicit boolean values.
96302         (hash_get_first): Return NULL to appease Irix5.6's 89.
96303         Reported by Nelson Beebe.
96304
96305 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96306
96307         * lib/localcharset.c (locale_charset): Add support for Win32.
96308
96309 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96310
96311         * lib/physmem.h, lib/physmem.c: New files.
96312
96313         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96314         (noinst_HEADERS): Add physmem.h.
96315
96316         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96317         't' for compatibility with Solaris 8 sort.
96318
96319 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96320
96321         * lib/config.charset: Add support for BeOS.
96322
96323 2000-12-17  Jim Meyering  <meyering@lucent.com>
96324
96325         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96326         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96327
96328 2000-12-16  Jim Meyering  <meyering@lucent.com>
96329
96330         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96331         N and M) would have treated it like `chown N:N FILE'.
96332
96333         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96334
96335 2000-12-16  Jim Meyering  <meyering@lucent.com>
96336
96337         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96338         SHELLS_FILE to a file name that's useful on djgpp systems.
96339         Include stdlib.h.
96340         (ADDITIONAL_DEFAULT_SHELLS): Define.
96341         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96342         Based mostly on a patch from Prashant TR.
96343
96344 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96345
96346         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96347         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96348         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96349
96350 2000-12-08  Andreas Schwab  <schwab@suse.de>
96351
96352         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96353         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96354
96355 2000-12-07  Jim Meyering  <meyering@lucent.com>
96356
96357         * lib/stripslash.c (ISSLASH): Define.
96358         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96359         `/'.
96360         From Prashant TR.
96361
96362         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96363         (dir_name_r): Declare this function as static.
96364         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96365         manifest itself on a name containing a mix of slashes and
96366         backslashes.
96367         Make this function work with names starting with a DOS-style
96368         drive letter and colon prefix.
96369         (dir_name): Append `.' if necessary.
96370         Based mostly on patches from Prashant TR and Eli Zaretskii.
96371
96372         * lib/dirname.h (dir_name_r): Remove prototype.
96373
96374 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96375
96376         * m4/off_t-format.m4: Remove this file.
96377         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96378
96379 2000-12-06  Jim Meyering  <meyering@lucent.com>
96380
96381         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96382         replacement strtoull, we may well need the replacement strtoul, too.
96383         Check for declarations of strtoul and strtoull.
96384         Check for strtol.  Mainly as a cue to cause automake to include
96385         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96386         Check for limits.h -- strtol.c needs it.
96387
96388 2000-12-05  Jim Meyering  <meyering@lucent.com>
96389
96390         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96391
96392 2000-12-04  Jim Meyering  <meyering@lucent.com>
96393
96394         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96395         Also include memory.h, stdlib.h, unistd.h if appropriate.
96396         Reported by Andreas Jaeger (conflicting declaration of malloc).
96397
96398 2000-12-02  Jim Meyering  <meyering@lucent.com>
96399
96400         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96401         * m4/jm-macros.m4 (jm_MACROS): require it.
96402
96403 2000-12-02  Jim Meyering  <meyering@lucent.com>
96404
96405         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96406
96407 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96408
96409         * lib/memrchr.c: Include <config.h> before any system include file.
96410
96411 2000-11-30  Jim Meyering  <meyering@lucent.com>
96412
96413         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96414
96415 2000-11-30  Jim Meyering  <meyering@lucent.com>
96416
96417         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96418
96419 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96420
96421         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96422
96423 2000-11-26  Jim Meyering  <meyering@lucent.com>
96424
96425         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96426
96427 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96428
96429         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96430         size of (size_t) -1; it's not portable.
96431
96432 2000-11-17  Jim Meyering  <meyering@lucent.com>
96433
96434         * lib/strstr.c: Update from GNU libc.
96435
96436 2000-11-17  Akim Demaille  <akim@epita.fr>
96437
96438         * lib/obstack.h: Formatting changes.
96439         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96440         prevent type checking.
96441         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96442         cast the value to (void *): assigning a `foo *' to a `void *'
96443         variable is valid.
96444         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96445
96446 2000-11-16  Jim Meyering  <meyering@lucent.com>
96447
96448         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96449
96450 2000-11-11  Jim Meyering  <meyering@lucent.com>
96451
96452         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96453
96454 2000-11-10  Jim Meyering  <meyering@lucent.com>
96455
96456         * lib/obstack.h: Update from GNU libc.
96457         * lib/obstack.c: Likewise.
96458
96459 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96460
96461         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96462
96463 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96464
96465         * lib/getusershell.c (setusershell): Use rewind rather than
96466         fseek/fseeko, to avoid configuration hassles with fseeko.
96467         Don't bother opening SHELLS_FILE if shellstream is NULL;
96468         it's not necessary.
96469
96470 2000-11-05  Jim Meyering  <meyering@lucent.com>
96471
96472         * lib/makepath.h (make_dir): Declare.
96473         * lib/makepath.c (make_dir): Remove `static' attribute.
96474         Tweak a comment.
96475
96476 2000-11-04  Jim Meyering  <meyering@lucent.com>
96477
96478         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96479
96480 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96481
96482         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96483         last one in a bucket, advance to the next bucket.
96484
96485 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96486
96487         * lib/fnmatch.c: Do not comment out all the code if we are using
96488         the GNU C library, because in some cases we are replacing buggy
96489         code in the GNU C library itself.
96490
96491 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96492
96493         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96494         (regex_compile): Catch bogus \(\1\).
96495
96496 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96497
96498         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96499         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96500         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96501
96502 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96503
96504         * lib/error.h, getline.h, modechange.h:
96505         Remove "2000" from Copyright line, as the file hasn't been
96506         changed this year other than in the copyright notice.
96507
96508         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96509         was changed this year.
96510
96511 2000-10-29  Jim Meyering  <meyering@lucent.com>
96512
96513         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96514         renaming.
96515         * m4/ls-mntd-fs.m4: Likewise
96516
96517 2000-10-29  Jim Meyering  <meyering@lucent.com>
96518
96519         * lib/xstat.in: Fix grammar in comment.
96520
96521 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96522
96523         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96524         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96525         doesn't define __restrict_arr.
96526
96527 2000-10-28  Jim Meyering  <meyering@lucent.com>
96528
96529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96530         (jm_PREREQ_MEMCHR): New function.
96531
96532 2000-10-28  Jim Meyering  <meyering@lucent.com>
96533
96534         * lib/memchr.c: Update from libc.
96535         Adjust for portability:
96536         [HAVE_STDLIB_H]: Include stdlib.h.
96537         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96538         Undef __memchr, too.
96539         [!weak_alias]: Define __memchr to memchr.
96540
96541         * lib/regex.c: Update from libc.
96542         * lib/regex.h: Likewise.
96543         * lib/getopt1.c: Likewise.
96544         * lib/memcmp.c: Likewise.
96545
96546         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96547         Avoid using fseek, when possible -- it's broken by design.
96548         Patch by Ulrich Drepper.
96549
96550 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96551
96552         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96553         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96554         Giving in to popular pressure to shut up the compiler with casts.
96555
96556 2000-10-26  Jim Meyering  <meyering@lucent.com>
96557
96558         * lib/strftime.c: Update from libc.
96559
96560 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96561
96562         * regex.c: More `unsigned char' -> `re_char' changes.
96563         Also change several `int' into `re_wchar_t'.
96564         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96565         (PUSH_FAILURE_POINTER): Don't cast any more.
96566         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96567         We want GCC to complain, since this piece of code makes
96568         re_match non-reentrant, which *should* be fixed.
96569         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96570         (EXTEND_BUFFER): Use RETALLOC.
96571         (SET_LIST_BIT): Don't cast.
96572         (re_wchar_t): New type.
96573         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96574         that those two functions will always properly return.
96575         (IMMEDIATE_QUIT_CHECK): Cast to void.
96576         (analyse_first): Use recursion rather than an explicit stack.
96577         (re_compile_fastmap): Can't fail anymore.
96578         (re_search_2): Don't check re_compile_fastmap for failure.
96579         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96580         Now also sets the new value (passed in a new argument).
96581         (re_match_2_internal): Use it.
96582         Also, use a new var `reg' of type size_t when looping through regs
96583         rather than reuse the inappropriate `mcnt'.
96584
96585 2000-10-25  Jim Meyering  <meyering@lucent.com>
96586
96587         * lib/obstack.c: Update from libc.
96588
96589 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96590
96591         * regex.c (regex_compile): Change the way of handling a range from
96592         a char less than 256 to a char not less than 256.
96593
96594 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96595
96596         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96597         NT-Emacs only.
96598         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96599         so that re_search functions only quit when callers expect them to.
96600
96601 2000-10-23  Jim Meyering  <meyering@lucent.com>
96602
96603         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96604         wrong.  That set_locale call must not have any side effects.
96605         From Paul Eggert.
96606
96607 2000-10-22  Jim Meyering  <meyering@lucent.com>
96608
96609         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96610         [CYCLIC]: Remove now-unused definition.
96611
96612         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96613         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96614         Suggestion from Ulrich Drepper.
96615
96616 2000-10-21  Jim Meyering  <meyering@lucent.com>
96617
96618         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96619         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96621
96622 2000-10-21  Jim Meyering  <meyering@lucent.com>
96623
96624         * lib/dirname.c (memrchr): Declare if necessary.
96625         (dir_name): Remove the restriction that there be no
96626         trailing slashes.  Now, this code skips past them, effectively
96627         ignoring them.
96628         [TEST_DIRNAME] (main): New unit tests.
96629
96630         * lib/memrchr.c: New file from GNU libc.
96631         Undef __memrchr, too.
96632         [!weak_alias]: Define __memrchr to memrchr.
96633         Guard weak_alias use with `#ifdef weak_alias'.
96634
96635 2000-10-21  Jim Meyering  <meyering@lucent.com>
96636
96637         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96638         (dir_name): Use dir_name_r.
96639         * lib/dirname.h (dir_name_r): Declare it.
96640
96641 2000-10-17  Jim Meyering  <meyering@lucent.com>
96642
96643         * lib/quote.h (PARAMS): Define and use.
96644         Reported by Akim Demaille.
96645
96646         * lib/getopt.c: Update from libc.
96647
96648 2000-10-16  Jim Meyering  <meyering@lucent.com>
96649
96650         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96651         setlocale.
96652         From Jan Fedak.
96653
96654 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96655
96656         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96657
96658 2000-09-25  Jim Meyering  <meyering@lucent.com>
96659
96660         * lib/md5.h (rol): Define (from GnuPG).
96661
96662         * lib/sha.c: Give credit (GnuPG) where due.
96663         (M): Use rol rather than open-coding it.
96664         Add a FIXME comment.
96665
96666 2000-09-21  Jim Meyering  <meyering@lucent.com>
96667
96668         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96669         Reported by Michael Stone.
96670
96671 2000-09-20  Jim Meyering  <meyering@lucent.com>
96672
96673         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96674         (noinst_HEADERS): Add sha.h.
96675         Based on code from Scott G. Miller and from GnuPG.
96676
96677 2000-09-18  Jim Meyering  <meyering@lucent.com>
96678
96679         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96680         LIBS. Otherwise, everyone ends up linking with -lelf for some
96681         configurations.
96682         Reported by Mike Stone.
96683
96684 2000-09-15  Jim Meyering  <meyering@lucent.com>
96685
96686         * lib/regex.c: Update from libc.
96687
96688 2000-09-10  Jim Meyering  <meyering@lucent.com>
96689
96690         * lib/getopt.c (_getopt_internal): Update from glibc.
96691
96692 2000-09-09  Jim Meyering  <meyering@lucent.com>
96693
96694         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96695         think it should be used as a general replacement for isascii.
96696         * lib/fnmatch.c: Likewise.
96697         * lib/mbswidth.c: Likewise
96698         * lib/regex.c: Likewise.
96699
96700         Don't use atoi.
96701         * lib/userspec.c: Include sys/param.h and limits.h.
96702         Include xstrtol.h.
96703         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96704         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96705         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96706         UID, GID.  Check range.
96707
96708 2000-09-06  Jim Meyering  <meyering@lucent.com>
96709
96710         * lib/getopt.c (_getopt_internal): Update from glibc.
96711
96712 2000-08-30  Jim Meyering  <meyering@lucent.com>
96713
96714         * lib/strftime.c: Merge in changes from GNU libc.
96715
96716 2000-08-26  Jim Meyering  <meyering@lucent.com>
96717
96718         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96719         * m4/fpending.m4: New file.
96720
96721 2000-08-26  Jim Meyering  <meyering@lucent.com>
96722
96723         * lib/closeout.c: Include "__fpending.h".
96724         (close_stdout_status): Return right away if there's nothing to flush.
96725
96726         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96727         * lib/__fpending.c: New file.
96728         * lib/__fpending.h: New file.
96729
96730 2000-08-20  Jim Meyering  <meyering@lucent.com>
96731
96732         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96733         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96734         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96735
96736 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96737
96738         Improve fileutils installation on systems where running
96739         programs (like install) can't be unlinked.
96740         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96741         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96742
96743 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96744
96745         Standardize on "memory exhausted" instead of "Memory exhausted"
96746         or "virtual memory exhausted".
96747         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96748         "virtual memory exhausted".
96749         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96750         our own message.
96751         * lib/userspec.c (parse_user_spec): Likewise.
96752         * lib/bumpalloc.h: comment fix
96753         * lib/same.c, userspec.c: Include xalloc.h.
96754
96755         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96756         not char *const and pointing to a constant array.
96757         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96758         (xrealloc): Comment fix.
96759
96760         * lib/userspec.c (parse_user_spec):
96761         Don't translate a message until just before returning,
96762         to avoid unnecessary translation.
96763
96764 2000-08-07  Jim Meyering  <meyering@lucent.com>
96765
96766         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96767         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96768         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96769         getgroups.c, gethostname.c, getopt.h, group-member.c,
96770         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96771         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96772         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96773         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96774         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96775         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96776         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96777         yesno.c: Back out Copyright date changes for each file with no change
96778         this year.  This eases coordination with other programs using the same
96779         source code modules.  From Paul Eggert.
96780
96781 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96782
96783         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96784         not char, for compatibility with glibc 2.1.3 strftime.c.
96785
96786 2000-08-03  Greg McGary  <greg@mcgary.org>
96787
96788         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96789         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96790         (EXTEND_BUFFER): Use them.
96791
96792 2000-08-01  Jim Meyering  <meyering@lucent.com>
96793
96794         * lib/dirname.c (ISSLASH): Define.
96795         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96796         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96797         both `\' and `/' may be use as path separators.
96798         Based on a patch from Prashant TR.
96799
96800 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96801
96802         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96803         slot vector a constant, since it might get modified.
96804
96805 2000-07-31  Jim Meyering  <meyering@lucent.com>
96806
96807         * lib/xmalloc.c: Use `virtual memory exhausted', not
96808         `Memory exhausted'.
96809         * lib/obstack.c (print_and_abort): Likewise.
96810
96811 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96812
96813         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96814         buffer, so that the caller can always quote one small
96815         component of a "memory exhausted" message in slot 0.
96816         From a suggestion by Jim Meyering.
96817
96818 2000-07-30  Jim Meyering  <meyering@lucent.com>
96819
96820         * lib/makepath.c (make_path): Quote the other instance, too.
96821
96822         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96823         (STATIC_BUF_SIZE): Define.
96824         (quotearg_n_options): Use only statically allocated storage when
96825         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96826         than STATIC_BUF_SIZE.
96827
96828 2000-07-29  Jim Meyering  <meyering@lucent.com>
96829
96830         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96831         * lib/dirname.c (dir_name): Likewise.
96832
96833         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96834         `/'.
96835
96836         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96837         (dir_name): Assert that there are no trailing slashes.
96838
96839 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96840
96841         * lib/mbswidth.h (mbswidth): Add a flags argument.
96842         (mbswidth): New declaration.
96843         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96844         * lib/mbswidth.c (mbswidth): Add a flags argument.
96845         (mbsnwidth): New function.
96846
96847 2000-07-24  Jim Meyering  <meyering@lucent.com>
96848
96849         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96850
96851 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96852
96853         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96854
96855 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96856
96857         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96858         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96859         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96860         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96861         invoke multibyte primitives.
96862
96863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96864
96865         * lib/quotearg.c:
96866         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96867         so that mbstate_t is always defined.
96868
96869         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96870         be 1 in at least one GCC installation, and this configuration
96871         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96872         performance on hosts that have mbrtowc but have only unibyte
96873         locales, but I assume these hosts are rare.
96874
96875 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96876
96877         * lib/mbswidth.c (_XOPEN_SOURCE):
96878         Don't define; this causes problems on Solaris 7.
96879         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96880
96881 2000-07-23  Jim Meyering  <meyering@lucent.com>
96882
96883         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96884         too: getgrgid, getpwuid, getuid.
96885
96886 2000-07-23  Jim Meyering  <meyering@lucent.com>
96887
96888         * lib/basename.c (base_name): Add an assertion.
96889
96890 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96891
96892         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96893         shadow its mbsinit function.
96894
96895 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96896
96897         * lib/mbswidth.h: New file.
96898         * lib/mbswidth.c: New file.
96899         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96900         (noinst_HEADERS): Add mbswidth.h.
96901
96902 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96903
96904         * lib/config.charset: Add support for FreeBSD. Improve support for
96905         HP-UX and IRIX 6.
96906
96907 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96908
96909         * m4/mbswidth.m4: New file.
96910         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96911
96912 2000-07-15  Jim Meyering  <meyering@lucent.com>
96913
96914         * lib/makepath.c: Include quote.h.
96915         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96916         corresponding argument in a `quote (...)' call.
96917         Give better diagnostics.
96918
96919         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96920         (noinst_HEADERS): Add quote.h.
96921
96922         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96923         from tar's src/misc.c.
96924         * lib/quote.h: New file.  Prototypes for same.
96925
96926 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96927
96928         From a suggestion by Bruno Haible.
96929         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96930         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96931         to decide whether to define the BeOS workaround macro;
96932         this adjusts to the change to AC_MBSTATE_T.
96933
96934 2000-07-14  Jim Meyering  <meyering@lucent.com>
96935
96936         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96937         jm_AC_TYPE_UINTMAX_T.
96938
96939 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96940
96941         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96942
96943         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96944         quotearg_buffer_restyled): Add support for
96945         clocale_quoting_style.  Undo previous change to
96946         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96947         and "{RIGHT QUOTATION MARK}" msgids.
96948
96949 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96950
96951         From a suggestion by Bruno Haible.
96952         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96953         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96954         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96955         and mbstate_t, to a single-part test that simply defines mbstate_t.
96956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96957         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96958
96959 2000-07-10  Jim Meyering  <meyering@lucent.com>
96960
96961         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96962
96963         * m4/gnu-source.m4: Output to confdefs.h directly.
96964         Suggestion from Akim Demaille.
96965
96966 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96967
96968         The old behavior of quoting `like this' doesn't look good with
96969         newer, ISO-style fonts.  See:
96970         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96971
96972         Instead, quote "like this" by default.  Let the translator
96973         tailor the locale-specific quoting behavior by providing
96974         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96975
96976         * lib/quotearg.c (N_): New macro.
96977         (gettext_default): New function.
96978         (quotearg_buffer_restyled): Use
96979         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96980         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96981
96982 2000-07-09  Jim Meyering  <meyering@lucent.com>
96983
96984         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96985         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96986
96987         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96988         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96989
96990 2000-07-09  Jim Meyering  <meyering@lucent.com>
96991
96992         * lib/Most files: Update copyright dates to include 2000.
96993
96994 2000-07-08  Jim Meyering  <meyering@lucent.com>
96995
96996         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96997         if not defined.
96998         (xgethostname): Remove now-unnecessary #ifdef.
96999         Move declaration of `err' into loop where it's used.
97000
97001 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97002         and Bruno Haible  <haible@clisp.cons.org>
97003
97004         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97005         only if the test for an object-type mbstate_t fails.  This
97006         prevents us from mistakenly reporting that mbstate_t is a
97007         system object type after we "#define mbstate_t int" to work
97008         around its lack.
97009
97010 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97011         and Bruno Haible  <haible@clisp.cons.org>
97012
97013         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97014
97015 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97016
97017         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97018         to strerror_r.
97019         Include <ctype.h> for use of isalpha.
97020
97021 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97022
97023         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97024         by allocating a larger buffer. Test the gethostname return value for
97025         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97026         returns an error and ENAMETOOLONG isn't defined.
97027
97028 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97029
97030         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97031         dimension.
97032
97033 2000-07-04  Jim Meyering  <meyering@lucent.com>
97034
97035         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97036         of the deprecated AC_CHECKING.
97037
97038 2000-07-04  Jim Meyering  <meyering@lucent.com>
97039
97040         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97041         Reported by Bruno Haible.
97042
97043 2000-07-04  Jim Meyering  <meyering@lucent.com>
97044
97045         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97046         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97047         lacks mbrtowc.
97048
97049 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97050
97051         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97052         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97053
97054 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97055         and Bruno Haible  <haible@clisp.cons.org>
97056
97057         * lib/quotearg.c (mbrtowc):
97058         Assign to *pwc, and return 1 only if result is nonzero.
97059         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97060
97061 2000-07-03  Jim Meyering  <meyering@lucent.com>
97062
97063         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97064
97065 2000-07-03  Jim Meyering  <meyering@lucent.com>
97066
97067         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97068         This is necessary to get a definition of e.g., UTMP_FILE on
97069         HP-UX 10.20.
97070         From Bob Proulx.
97071
97072 2000-07-02  Jim Meyering  <meyering@lucent.com>
97073
97074         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97075
97076         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97077         AC_LIBOBJ(function_name).
97078         * m4/chown.m4: Likewise.
97079         * m4/fnmatch.m4: Likewise.
97080         * m4/ftruncate.m4: Likewise.
97081         * m4/getgroups.m4: Likewise.
97082         * m4/getline.m4: Likewise.
97083         * m4/group-member.m4: Likewise.
97084         * m4/jm-macros.m4: Likewise.
97085         * m4/lstat.m4: Likewise.
97086         * m4/malloc.m4: Likewise.
97087         * m4/memcmp.m4: Likewise.
97088         * m4/nanosleep.m4: Likewise.
97089         * m4/putenv.m4: Likewise.
97090         * m4/realloc.m4: Likewise.
97091         * m4/regex.m4: Likewise.
97092         * m4/stat.m4: Likewise.
97093         * m4/strftime.m4: Likewise.
97094
97095 2000-07-02  Jim Meyering  <meyering@lucent.com>
97096
97097         * lib/quotearg.c (mbstate_t): Don't define here.
97098
97099 2000-07-02  Jim Meyering  <meyering@lucent.com>
97100
97101         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97102
97103 2000-07-01  Jim Meyering  <meyering@lucent.com>
97104
97105         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97106
97107 2000-07-01  Jim Meyering  <meyering@lucent.com>
97108
97109         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97110         problem.
97111
97112 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97113
97114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97115         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97116
97117 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97118
97119         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97120         per change in ../m4/ls-mntd-fs.m4.
97121         (read_filesystem_list): Ignore symbolic links.
97122
97123 2000-06-29  Jim Meyering  <meyering@lucent.com>
97124
97125         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97126         for declaration of strcmp.
97127
97128         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97129
97130         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97131         Avoid warning by casting result to `char *' to remove `const'.
97132
97133 2000-06-28  Jim Meyering  <meyering@lucent.com>
97134
97135         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97136         included by quotearg.c, for which we perform this test.  From
97137         Bruno Haible.
97138
97139 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97140
97141         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97142         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97143         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97144
97145 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97146
97147         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97148
97149 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97150
97151         savedir now sets errno on failure and invokes xmalloc to get memory.
97152         Fix a couple of other minor bugs while we're at it.
97153
97154         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97155         (NAMLEN): Remove macro.
97156         (malloc, realloc): Remove decls.
97157         (stpcpy): Likewise.
97158         ("xalloc.h"): Include.
97159         (NAME_SIZE_DEFAULT): New macro.
97160         (savedir): Use xmalloc / xrealloc to allocate memory.
97161         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97162         Skip "" directory entries.
97163         Use strlen to calculate directory entry length, since the old method
97164         is rarely used these days and isn't worth supporting.
97165         Don't use a pointer after freeing it.
97166         Check for integer overflow when calculating allocation size.
97167         Use memcpy to copy entries, instead of stpcpy.
97168         Set errno properly when returning NULL.
97169         Check for readdir error.
97170
97171 2000-06-26  Jim Meyering  <meyering@lucent.com>
97172
97173         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97174
97175 2000-06-25  Jim Meyering  <meyering@lucent.com>
97176
97177         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97178         Linux header bug when _XOPEN_SOURCE is defined to 500.
97179
97180 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97181
97182         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97183         deficiency.
97184
97185 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97186
97187         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97188         Include xalloc.h.
97189         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97190
97191 2000-06-24  Jim Meyering  <meyering@lucent.com>
97192
97193         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97194         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97195         for which strerror does return char*, but which lacks a conveniently
97196         accessible declaration of the function.  If the compile-test says
97197         strerror_r doesn't work, then resort to a `run'-test that works on
97198         BeOS and segfaults on DEC Unix.
97199
97200 2000-06-24  Jim Meyering  <meyering@lucent.com>
97201
97202         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97203
97204 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97205
97206         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97207         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97208
97209 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97210
97211         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97212         (mbrtowc, mbstate_t): Define substitutes if
97213         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97214         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97215         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97216
97217 2000-06-23  Jim Meyering  <meyering@lucent.com>
97218
97219         * m4/afs.m4: Add missing AC_MSG_RESULT.
97220         Reported by Bruno Haible.
97221
97222         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97223         Suggestion from Bruno Haible.
97224
97225 2000-06-23  Jim Meyering  <meyering@lucent.com>
97226
97227         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97228
97229 2000-06-21  Jim Meyering  <meyering@lucent.com>
97230
97231         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97232
97233 2000-06-21  Jim Meyering  <meyering@lucent.com>
97234
97235         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97236         (noinst_HEADERS): Add getstr.h.
97237
97238         * lib/getline.c (getstr): Move into a separate file.
97239         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97240         the following changes: new parameter, delim2; both delim[12]
97241         parameters have type `int', not `char'.  The latter would lose
97242         with 8-bit delimiters.
97243         * lib/getstr.h: New file.
97244
97245 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97246
97247         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97248         than 1024, return a memory chunk of least possible size, instead
97249         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97250         Use free/xmalloc instead of xrealloc to avoid copying for very long
97251         paths.
97252
97253 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97254
97255         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97256         the empty string.
97257
97258 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97259
97260         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97261         address, not strdup.  Include <stdlib.h> and don't declare free().
97262
97263 2000-06-19  Jim Meyering  <meyering@lucent.com>
97264
97265         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97266
97267 2000-06-18  Jim Meyering  <meyering@lucent.com>
97268
97269         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97270
97271         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97272         `checking whether...' message to be consistent with that of the
97273         lstat test.
97274
97275 2000-06-18  Jim Meyering  <meyering@lucent.com>
97276
97277         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97278         Besides, these days every porting target provides a mkdir function.
97279
97280         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97281         needed. (this snippet comes from src/system.h).
97282
97283 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97284
97285         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97286
97287 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97288
97289         * lib/human.c (adjust_value): New function.
97290         (human_readable_inexact): Apply rounding style even when
97291         printing approximate values.
97292
97293 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97294
97295         * lib/human.c (human_readable_inexact): Allow an input block
97296         size that is not a multiple of the output block size, and vice versa.
97297         Reported by Piergiorgio Sartor.
97298
97299 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97300
97301         * lib/getdate.y (get_date): Apply relative times after time
97302         zone indicator, not before.  Reported by Todd A. Jacobs.
97303
97304 2000-06-13  Jim Meyering  <meyering@lucent.com>
97305
97306         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97307
97308         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97309
97310 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97311
97312         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97313
97314 2000-06-12  Jim Meyering  <meyering@lucent.com>
97315
97316         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97317         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97318         optional argument.
97319         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97320         the optional argument, `lib'.
97321
97322 2000-06-08  Jim Meyering  <meyering@lucent.com>
97323
97324         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97325
97326 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97327
97328         Rewrite largefile configuration so that we don't need to run
97329         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97330         AC_CANONICAL_HOST in configure.in -- jmm]
97331
97332         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97333         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97334         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97335         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97336         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97337         All uses changed.
97338         Instead of inspecting the output of getconf, try to compile the
97339         test program without and with the macro definition.
97340         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97341         for getconf.  Instead, check for the needed flags by compiling
97342         test programs.
97343
97344 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97345
97346         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97347
97348 2000-06-04  Jim Meyering  <meyering@lucent.com>
97349
97350         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97351         SunOS 4.1.4 for which gid_t is an unsigned type.
97352
97353 2000-06-03  Jim Meyering  <meyering@lucent.com>
97354
97355         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97356         now that autoconf requires that.
97357
97358         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97359         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97360         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97361
97362 2000-06-03  Jim Meyering  <meyering@lucent.com>
97363
97364         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97365
97366 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97367
97368         * m4/glibc21.m4: New file.
97369         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97370
97371 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97372
97373         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97374         newer, don't install charset.alias.
97375         * lib/config.charset: Change the Linux/glibc rules so they become empty
97376         on glibc-2.1 or newer.
97377
97378 2000-06-02  Jim Meyering  <meyering@lucent.com>
97379
97380         * lib/mountlist.c: Back out last change.  Instead, do this...
97381         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97382         me_dummy member using the same `ignore'-testing code.
97383         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97384         fs_type strings.
97385         From Mark D. Roth.
97386
97387 2000-05-29  Jim Meyering  <meyering@lucent.com>
97388
97389         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97390         mounts with the `ignore' attribute.  Based on a patch from
97391         Mark D. Roth.
97392
97393 2000-05-28  Jim Meyering  <meyering@lucent.com>
97394
97395         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97396         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97397         * m4/stat.m4: Likewise.
97398         * m4/lstat.m4: Likewise.
97399         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97400
97401         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97402         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97403
97404 2000-05-26  Jim Meyering  <meyering@lucent.com>
97405
97406         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97407
97408 2000-05-24  Jim Meyering  <meyering@lucent.com>
97409
97410         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97411         autoconf requires that.
97412         * m4/lib-check.m4: Likewise.
97413         * m4/jm-macros.m4: Likewise.
97414         * m4/strftime.m4: Likewise.
97415
97416         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97417         AC_CHECK_DECLS, now that autoconf requires that.
97418
97419 2000-05-22  Jim Meyering  <meyering@lucent.com>
97420
97421         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97422         * m4/lstat.m4: Likewise.
97423
97424 2000-05-22  Jim Meyering  <meyering@lucent.com>
97425
97426         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97427
97428 2000-05-20  Jim Meyering  <meyering@lucent.com>
97429
97430         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97431         (jm_PREREQ): Use it.
97432
97433 2000-05-18  Jim Meyering  <meyering@lucent.com>
97434
97435         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97436         back, too, since it may have been modified by allocate_entry.
97437         (hash_delete): Rewrite to use neither the assignment operator
97438         nor the comma operator in an if-expression.
97439
97440 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97441
97442         * lib/closeout.c:
97443         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97444         Remove; no longer needed.
97445         "quotearg.h": Add include.
97446         (file_name): Do not bother to explicitly initialize to NULL; it's less
97447         efficient on some hosts.
97448         (close_stdout_status): Remove test as to whether stdout was already
97449         closed; it breaks for the case "echo x | sort >&-".
97450         Quote file name colons.
97451         Do not assume that _("write error") lacks format strings.
97452
97453 2000-05-15  Jim Meyering  <meyering@lucent.com>
97454
97455         * lib/version-etc.c (version_etc_copyright): Update the copyright
97456         string used in all --version output.
97457
97458 2000-05-14  Jim Meyering  <meyering@lucent.com>
97459
97460         * lib/closeout.c (close_stdout_set_file_name): New function.
97461         (close_stdout_status): Use new file-scoped global.
97462         Return right away if fstat says the stdout file descriptor is invalid.
97463         * lib/closeout.h (close_stdout_set_file_name): Declare.
97464
97465 2000-05-10  Jim Meyering  <meyering@lucent.com>
97466
97467         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97468         (close_stdout_set_status): New function.
97469         * lib/closeout.h (close_stdout_set_status): Declare.
97470
97471 2000-05-09  Jim Meyering  <meyering@lucent.com>
97472
97473         * m4/gettext.m4: Rename this...
97474         * m4/libintl.m4: ...to this.
97475
97476 2000-05-08  Jim Meyering  <meyering@lucent.com>
97477
97478         * lib/long-options.c: Don't include closeout.h.
97479         (parse_long_options): Don't call close_stdout for --version.
97480
97481 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97482
97483         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97484         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97485         2.1.3 bug.  This avoids a clash when files like regex.c define
97486         _GNU_SOURCE.
97487
97488 2000-05-06  Jim Meyering  <meyering@lucent.com>
97489
97490         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97491         (AC_REPLACE_FUNCS): Add strnlen.
97492
97493         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97494         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97495
97496         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97497         AC_SEARCH_LIBS call for nanosleep.
97498         (LIB_NANOSLEEP): Set and AC_SUBST.
97499
97500 2000-05-06  Jim Meyering  <meyering@lucent.com>
97501
97502         * lib/strnlen.c: Undefine __strnlen and strnlen.
97503         [!weak_alias]: Define __strnlen to strnlen.
97504
97505         * lib/atexit.c: New file, from libiberty.
97506
97507 2000-05-06  Jim Meyering  <meyering@lucent.com>
97508
97509         * lib/closeout.c (close_stdout_status): Also check for errors on the
97510         stderr stream.
97511
97512 2000-05-05  Jim Meyering  <meyering@lucent.com>
97513
97514         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97515         AC_SEARCH_LIBS call for clock_gettime.
97516         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97517
97518         * m4/search-libs.m4: Update from autoconf.
97519
97520         su doesn't work on Solaris 2.6.
97521         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97522         <shadow.h>.  Reported by Dragos Harabor.
97523
97524 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97525
97526         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97527         memcpy instead of xmalloc, xrealloc, path_concat.
97528         (locale_charset): Treat empty environment variables as absent.
97529         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97530
97531 2000-05-04  Jim Meyering  <meyering@lucent.com>
97532
97533         * lib/getopt.c: Update from glibc.
97534         * lib/obstack.c: Likewise.
97535         * lib/obstack.h: Likewise.
97536         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97537         file
97538
97539         * lib/regex.h: Likewise.
97540         * lib/strndup.c: Likewise.
97541         * lib/strnlen.c: New file, from glibc.
97542
97543 2000-05-03  Jim Meyering  <meyering@lucent.com>
97544
97545         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97546
97547 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97548
97549         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97550         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97551         compile-time test, rather than inspecting host and OS, to
97552         decide whether to define _LARGEFILE_SOURCE.
97553
97554 2000-05-01  Jim Meyering  <meyering@lucent.com>
97555
97556         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97557
97558         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97559         Based on a patch from Bruno Haible.
97560
97561 2000-05-01  Jim Meyering  <meyering@lucent.com>
97562
97563         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97564
97565 2000-04-29  Jim Meyering  <meyering@lucent.com>
97566
97567         * lib/path-concat.c: Declare strdup only if it's not defined.
97568         * lib/canon-host.c: Likewise.
97569
97570 2000-04-28  Jim Meyering  <meyering@lucent.com>
97571
97572         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97573         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97574         is included first, then limits.h is included by locale.h by libintl.h.
97575         From John David Anglin.
97576
97577 2000-04-25  Jim Meyering  <meyering@lucent.com>
97578
97579         * lib/makepath.c (S_IRWXUGO): Define.
97580         (make_path): Always perform explicit chmod if MODE specifies any
97581         of the `special' permission bits.  Prompted by a bug report against
97582         install from Mate Wierdl and Joost van Baal.
97583
97584 2000-04-18  Jim Meyering  <meyering@lucent.com>
97585
97586         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97587         (jm_PREREQ): Use it.
97588
97589 2000-04-18  Jim Meyering  <meyering@lucent.com>
97590
97591         * lib/README: New file.
97592
97593         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97594         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97595
97596 2000-04-17  Jim Meyering  <meyering@lucent.com>
97597
97598         Get it right :-)
97599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97600         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97601         Suggestion from Akim Demaille.
97602
97603 2000-04-17  Jim Meyering  <meyering@lucent.com>
97604
97605         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97606         the definition of it to rpl_strftime also defined-away the system's
97607         declaration.
97608
97609 2000-04-15  Jim Meyering  <meyering@lucent.com>
97610
97611         Use `C' to denote so-called `contiguous' files, the same way
97612         that tar does.
97613         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97614         (ftypelet): Use S_ISCTG.
97615         From Michael Deutschmann.
97616
97617 2000-04-14  Jim Meyering  <meyering@lucent.com>
97618
97619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97620         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97621         clobbered.
97622
97623 2000-04-14  Jim Meyering  <meyering@lucent.com>
97624
97625         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97626
97627 2000-04-13  Jim Meyering  <meyering@lucent.com>
97628
97629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97630         AH_VERBATIM to insert required #ifndef into config.h.in.
97631         Suggestion from Akim Demaille.
97632
97633 2000-04-12  Jim Meyering  <meyering@lucent.com>
97634
97635         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97636         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97637         Christian Krackowizer.
97638
97639         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97640         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97641         (AC_SYS_LARGEFILE): Require.
97642         (AM_C_PROTOTYPES): Require.
97643
97644 2000-04-08  Jim Meyering  <meyering@lucent.com>
97645
97646         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97647         names don't conflict.  Reported by Eli Zaretskii.
97648
97649 2000-04-07  Jim Meyering  <meyering@lucent.com>
97650
97651         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97652         sys/types.h, to work around system header problems on AIX 3.2.5.
97653         From Bruno Haible.
97654
97655 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97656
97657         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97658         bug.  Deal with the different error behavior of Irix iconv.
97659
97660 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97661
97662         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97663         IRIX if the installer said otherwise.
97664
97665 2000-04-05  Jim Meyering  <meyering@lucent.com>
97666
97667         Portability tweaks required for ultrix4.3.
97668         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97669         (jm_CHECK_DECLS): Add getutent to the list of functions.
97670         (_jm_DECL_HEADERS): Add utmpx.h.
97671         From John David Anglin.
97672
97673         * m4/strftime.m4: Back out the 2000-04-02 change.
97674         Instead of that change, simply undefine putenv in the test program.
97675
97676 2000-04-05  Jim Meyering  <meyering@lucent.com>
97677
97678         Portability tweaks required for ultrix4.3.
97679         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97680         getutent.
97681         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97682         * lib/canon-host.c: Declare strdup.
97683         * lib/path-concat.c: Likewise.
97684         From John David Anglin.
97685
97686 2000-04-04  Jim Meyering  <meyering@lucent.com>
97687
97688         Be more DOS 8.3-friendly.
97689         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97690         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97691         * lib/Makefile.am: Reflect renaming.
97692         Reported by Eli Zaretskii.
97693
97694         Use a temporary file name that won't clash with `charset.alias'
97695         in the DOS 8.3 name space.
97696         * lib/Makefile.am (charset_tmp): Define.
97697         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97698         (uninstall-local): Likewise.
97699         Reported by Eli Zaretskii.
97700
97701 2000-04-03  Jim Meyering  <meyering@lucent.com>
97702
97703         * m4/gettext.m4: Fix typo in comment.
97704
97705         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97706         textutils/configure.in).  Suggestion from Paul Eggert.
97707         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97708
97709 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97710
97711         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97712         variable in the shell rather than using putenv, which isn't
97713         portable.  This avoids the configure-time inter-test dependency
97714         on the potentially-renamed putenv function.
97715
97716 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97717
97718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97719         before checking struct stat.st_blksize, so that
97720         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97721
97722 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97723
97724         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97725         since strftime.c uses HAVE_STRFTIME to decide whether to use
97726         the underlying strftime.
97727
97728 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97729
97730         * lib/time/strftime.c (my_strftime): Make sure we call the system
97731         strftime, not ourselves, when invoking the underlying strftime.
97732
97733 2000-03-24  Jim Meyering  <meyering@lucent.com>
97734
97735         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97736         (charset_alias): Define.
97737         (install-exec-local): Factor out common code.
97738         (uninstall-local): Split lines longer than 80.
97739         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97740         (SUFFIXES): Define.
97741         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97742         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97743
97744 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97745
97746         * lib/config.charset: Output a line containing "Packages using this
97747         file".
97748         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97749         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97750         ref-del.sed): New rules.
97751
97752 2000-03-17  Jim Meyering  <meyering@lucent.com>
97753
97754         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97755         Otherwise, include <strings.h>
97756
97757 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97758
97759         * lib/unicodeio.c (utf8_wctomb): New function.
97760         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97761         format instead of in UCS-4 with platform dependent endianness.
97762
97763 2000-03-10  Jim Meyering  <meyering@lucent.com>
97764
97765         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97766         From Marco Franzen.
97767
97768 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97769
97770         * lib/savedir.c (savedir): Work even if directory size is
97771         negative; this can happen with some screwy NFS configurations.
97772
97773 2000-03-06  Jim Meyering  <meyering@lucent.com>
97774
97775         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97776         if it's NULL (because we ran out of memory).  From Bruno Haible.
97777
97778 2000-03-05  Jim Meyering  <meyering@lucent.com>
97779
97780         * lib/localcharset.c ("path-concat.h"): Include.
97781         (get_charset_aliases): Use path_concat instead of ANSI string
97782         concatenation.
97783
97784         * lib/unicodeio.h (PARAMS): Define.
97785         Use it to guard prototype.
97786
97787 2000-03-04  Jim Meyering  <meyering@lucent.com>
97788
97789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97790         for lib/localcharset.c.
97791
97792 2000-03-04  Jim Meyering  <meyering@lucent.com>
97793
97794         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97795         installing into it.
97796         (uninstall-local): Uncomment this rule so `make distcheck' works
97797         once again.
97798
97799         * lib/unicodeio.c (<errno.h>): Include it.
97800         (errno): Declare if not defined.
97801
97802         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97803
97804         * lib/config.charset: New version, incorporating remarks from a linux
97805         i18n mailing list.  From Bruno Haible.
97806
97807 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97808
97809         * m4/codeset.m4: New file.
97810         * m4/iconv.m4: New file.
97811         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97812
97813 2000-03-03  Jim Meyering  <meyering@lucent.com>
97814
97815         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97816
97817 2000-03-02  Jim Meyering  <meyering@lucent.com>
97818
97819         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97820         the messages come out on separate lines.
97821
97822         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97823         rather than jm_CHECK_DECLARATIONS.
97824         * m4/decl.m4: Remove now-unused file.
97825
97826         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97827         geteuid.
97828
97829 2000-03-02  Jim Meyering  <meyering@lucent.com>
97830
97831         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97832
97833 2000-03-01  Jim Meyering  <meyering@lucent.com>
97834
97835         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97836         * lib/unicodeio.c: Likewise.
97837
97838 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97839
97840         * lib/config.charset: New file.
97841         * lib/localcharset.c: New file.
97842         * lib/unicodeio.h, lib/unicodeio.c: New files.
97843         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97844         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97845         (noinst_HEADERS): Add unicodeio.h.
97846         (all-local, install-exec-local, charset.alias): New targets.
97847
97848 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97849
97850         * lib/quotearg.c (ALERT_CHAR): New macro.
97851         (quotearg_buffer_restyled): Use it.
97852
97853 2000-02-27  Jim Meyering  <meyering@lucent.com>
97854
97855         * m4/check-decl.m4: Add getenv to the list.
97856
97857 2000-02-27  Jim Meyering  <meyering@lucent.com>
97858
97859         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97860         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97861
97862         * lib/backupfile.c: Guard inclusion of stdlib.h with
97863         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97864         Declare malloc if needed.
97865
97866         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97867         `#ifndef HAVE_DECL..'
97868         now that autoconf always defines the HAVE_DECL_ symbols.
97869         * lib/human.c: Likewise.
97870         * lib/same.c: Likewise.
97871         * lib/strtoumax.c: Likewise.
97872
97873         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97874         declaration check was not run.
97875         * lib/hash.c: Likewise.
97876         * lib/human.c: Likewise.
97877         * lib/same.c: Likewise.
97878         * lib/strtoumax.c: Likewise.
97879
97880         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97881         `.', then first look up the entire `.'-containing string as a login
97882         name.
97883
97884 2000-02-23  Jim Meyering  <meyering@lucent.com>
97885
97886         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97887         in place of my hack.
97888
97889 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97890
97891         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97892         (textint): New typedef.
97893         (parser_control): Member year changed from int to textint.
97894         All uses changed.
97895         (YYSTYPE): Removed; replaced by %union with int and textint members.
97896         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97897         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97898         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97899         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97900         (date, number, to_year): Use width of number in digits, not its value,
97901         to determine whether it's a 2-digit year, or a 2-digit time.
97902         (yylex): Store number of digits of numeric tokens.
97903         Reported by John Kendall.
97904
97905         (parser_control): Changed from struct parser_control to typedef (for
97906         consistency).  All uses changed.
97907
97908         (tID): Removed; not used.
97909         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97910
97911 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97912
97913         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97914         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97915
97916 2000-02-12  Jim Meyering  <meyering@lucent.com>
97917
97918         * lib/userspec.c (ISDIGIT): Define it.
97919         (isdigit): Remove definition.
97920         (is_number): Use ISDIGIT, not isdigit.
97921         <libintl.h>: Include.
97922         (_ and N_): Define.
97923         (parse_user_spec): Mark translatable strings.
97924
97925 2000-02-10  Jim Meyering  <meyering@lucent.com>
97926
97927         With these changes, nanosleep.[ch] are finally enough like the other
97928         lib/* replacement files to compile on a few more losing systems.
97929
97930         * lib/nanosleep.h: Don't include config.h.
97931         Remove prototype from declaration of nanosleep.
97932         (PARAMS): Remove now-unneeded definition.
97933         * lib/nanosleep.c: #undef nanosleep.
97934         (rpl_nanosleep): Rename from nanosleep.
97935
97936 2000-02-10  Jim Meyering  <meyering@lucent.com>
97937
97938         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97939         gnu_nanosleep to rpl_nanosleep.
97940
97941 2000-02-09  Jim Meyering  <meyering@lucent.com>
97942
97943         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97944         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97945
97946 2000-02-08  Akim Demaille  <akim@epita.fr>
97947
97948         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97949         `[' and `]' and remove uses of `changequote'.
97950         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97951         (AC_SYS_LARGEFILE): Likewise.
97952         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97953         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97954         of changequote.
97955         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97956         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97957         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97958         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97959
97960 2000-02-05  Jim Meyering  <meyering@lucent.com>
97961
97962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97963         Remove explicit use of AC_HEADER_TIME.  It is required by
97964         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97965         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97966         in autoconf whereby the expansion of the latter ended up preceding
97967         the expansion of its prerequisite, AC_HEADER_TIME.
97968         Reported by Volker Borchert.
97969
97970 2000-02-03  Jim Meyering  <meyering@lucent.com>
97971
97972         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97973
97974 2000-02-03  Jim Meyering  <meyering@lucent.com>
97975
97976         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97977         rather than with `#if HAVE_UTMPNAME'.
97978
97979 2000-02-02  Jim Meyering  <meyering@lucent.com>
97980
97981         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97982         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97983         Reported by Eli Zaretskii.
97984
97985 2000-02-01  Jim Meyering  <meyering@lucent.com>
97986
97987         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97988
97989 2000-01-31  Jim Meyering  <meyering@lucent.com>
97990
97991         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97992         functions.  Add the time.h and sys/time.h headers along with the
97993         AC_REQUIRE'ment of AC_HEADER_TIME.
97994
97995 2000-01-31  Jim Meyering  <meyering@lucent.com>
97996
97997         * lib/nanosleep.h (nanosleep): Guard declaration with
97998         `#if ! HAVE_DECL_NANOSLEEP'.
97999         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98000         the declaration in that vendor's sys/timers.h.
98001         Reported by Christian Krackowizer.
98002
98003         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98004         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98005         (ISPRINT): Likewise.
98006         Reported by Tom Tromey.
98007
98008 2000-01-30  Jim Meyering  <meyering@lucent.com>
98009
98010         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98011
98012         * m4/prereq.m4 (utmp_includes): Define.
98013         Check for ut_user and ut_name members in both struct utmpx
98014         and struct utmp.
98015
98016 2000-01-30  Jim Meyering  <meyering@lucent.com>
98017
98018         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98019         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98020         header files where only utmpx.ut_user is declared.
98021
98022         * lib/readutmp.h (UT_USER): Define.
98023
98024 2000-01-29  Jim Meyering  <meyering@lucent.com>
98025
98026         * m4/lib-check.m4: New file containing library-related checks from
98027         fileutils and sh-utils (textutils had none).
98028
98029 2000-01-28  Jim Meyering  <meyering@lucent.com>
98030
98031         * m4/perl.m4: Change format of warning message to look more like that
98032         from the missing script.  Suggestion from François Pinard.
98033
98034 2000-01-25  Jim Meyering  <meyering@lucent.com>
98035
98036         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98037         well as time.h in the compile check.
98038         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98039         Fix typo in cross-compiling case: s/yes/no/.
98040
98041 2000-01-23  Jim Meyering  <meyering@lucent.com>
98042
98043         * m4/jm-macros.m4: Move df-related tests here from
98044         fileutils/configure.in
98045
98046         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98047         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98048
98049         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98050         s/space/ac_fsusage_space/.
98051         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98052
98053         * m4/ftruncate.m4: New file (derived from part of
98054         fileutils/configure.in).
98055         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98056         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98057
98058         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98059         AC_SUBST these here, rather than just in sh-util/configure.in, so
98060         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98061         all the same.
98062         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98063         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98064         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98065         (AC_SUBST(POW_LIBM)): Likewise.
98066         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98067
98068 2000-01-23  Jim Meyering  <meyering@lucent.com>
98069
98070         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98071         obstack.c.
98072
98073 2000-01-22  Jim Meyering  <meyering@lucent.com>
98074
98075         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98076
98077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98078
98079         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98080         configure.in
98081         (AC_CHECK_HEADERS): Likewise for sh-utils.
98082         (AC_CHECK_HEADERS): Likewise for textutils.
98083         Merge the three lists of headers.
98084
98085         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98086         from fileutils' configure.in.
98087
98088         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98089         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98090         check-decl.m4.
98091
98092         * m4/check-decl.m4: Use #if rather than #ifdef.
98093         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98094         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98095         (_jm_DECL_HEADERS): Define new function.
98096         (jm_CHECK_DECLARATIONS): Require it.
98097
98098 2000-01-22  Jim Meyering  <meyering@lucent.com>
98099
98100         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98101         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98102         Required for some AIX systems.  Reported by Christian Krackowizer.
98103         [TESTING] (main): New function.
98104
98105         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98106         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98107         letters.
98108
98109         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98110         iswprint.
98111
98112         * lib/strverscmp.c (ISDIGIT): Define.
98113         (strverscmp): Use ISDIGIT, not isdigit.
98114
98115 2000-01-19  Jim Meyering  <meyering@lucent.com>
98116
98117         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98118         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98119         defines `struct timespec' in <sys/time.h>
98120
98121         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98122         Thanks to Akim for explaining.
98123
98124 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98125
98126         * lib/nanosleep.c (nanosleep):
98127         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98128         POSIX.1 doesn't require SA_INTERRUPT and some systems
98129         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98130         it's been part of POSIX.1 since day 1 (in 1988).
98131
98132 2000-01-17  Jim Meyering  <meyering@lucent.com>
98133
98134         * lib/interlock: Remove unused file.  Reported by François Pinard.
98135
98136 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98137
98138         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98139         alert, backslash, formfeed, and vertical tab unnecessarily in
98140         shell quoting style.
98141
98142 2000-01-16  Jim Meyering  <meyering@lucent.com>
98143
98144         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98145         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98146         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98147         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98148
98149 2000-01-16  Jim Meyering  <meyering@lucent.com>
98150
98151         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98152         because the latter didn't work.
98153
98154 2000-01-15  Jim Meyering  <meyering@lucent.com>
98155
98156         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98157         (AC_REPLACE_FUNCS): Add memcpy and memset.
98158         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98159         Add strpbrk.
98160         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98161
98162 2000-01-12  Jim Meyering  <meyering@lucent.com>
98163
98164         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98165         (jm_PREREQ): Use it.
98166         (jm_PREREQ_READUTMP): New macro.
98167         (jm_PREREQ): Use it.
98168
98169 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98170
98171         Quote multibyte characters correctly.
98172         * m4/c-bs-a.m4: New file.
98173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98174         (jm_PREREQ): Use it.
98175
98176 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98177
98178         * m4/uintmax_t.m4: Port to autoconf 2.13.
98179
98180 2000-01-08  Jim Meyering  <meyering@ascend.com>
98181
98182         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98183         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98184
98185 2000-01-04  Jim Meyering  <meyering@ascend.com>
98186
98187         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98188         jm_STRUCT_DIRENT_D_TYPE.
98189         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98190         jm_STRUCT_DIRENT_D_INO.
98191         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98192         jm_STRUCT_UTIMBUF.
98193         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98194         renamings.
98195         * m4/utime.m4: Likewise.
98196
98197         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98198         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98199
98200 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98201
98202         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98203         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98204
98205 2000-01-02  Jim Meyering  <meyering@ascend.com>
98206
98207         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98208         remember if this is necessary.
98209
98210 1999-12-26  Jim Meyering  <meyering@ascend.com>
98211
98212         * m4/jm-macros.m4: Use it here.
98213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98214
98215 1999-12-23  Jim Meyering  <meyering@ascend.com>
98216
98217         * m4/jm-macros.m4: Check for clock_gettime (moved from
98218         fileutils/configure.in)
98219         Check for gettimeofday.
98220
98221 1999-12-20  Jim Meyering  <meyering@ascend.com>
98222
98223         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98224         autoconf-2.14a-1999-12-20.
98225
98226 1999-12-19  Jim Meyering  <meyering@ascend.com>
98227
98228         * m4/lstat-slash.m4: New file.
98229         * m4/jm-macros.m4: Use the new macro:
98230         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98231
98232 1999-12-07  Jim Meyering  <meyering@ascend.com>
98233
98234         * m4/perl.m4: Require that File::Compare be available, too.
98235         Too many systems seem to lack it.
98236
98237         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98238         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98239
98240 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98241
98242         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98243         problem with the QNX 4.25 shell, which doesn't propagate exit
98244         status of failed commands inside shell assignments.
98245
98246 1999-11-17  Jim Meyering  <meyering@ascend.com>
98247
98248         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98249
98250 1999-11-07  Jim Meyering  <meyering@ascend.com>
98251
98252         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98253
98254 1999-11-06  Jim Meyering  <meyering@ascend.com>
98255
98256         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98257         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98258
98259 1999-11-05  Jim Meyering  <meyering@ascend.com>
98260
98261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98262         configure.in of textutils, fileutils, and sh-utils into this one
98263         (shared between those packages) file.
98264         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98265         AC_STRUCT_ST_BLKSIZE.
98266
98267 1999-11-03  Jim Meyering  <meyering@ascend.com>
98268
98269         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98270         of AC_CHECK_TYPE checks includes unistd.h.
98271         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98272         Suggestion from Akim Demaille.
98273
98274 1999-10-30  Jim Meyering  <meyering@ascend.com>
98275
98276         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98277         m4-quoted string.
98278         * m4/ls-mntd-fs.m4: Likewise.
98279         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98280         * m4/jm-winsz1.m4: Likewise.
98281
98282         * m4/const.m4: Remove file, since the fix made it into the experimental
98283         version of autoconf.
98284         * m4/mktime.m4: Likewise.
98285
98286         * m4/check-type.m4: Remove file, now that the latest version of
98287         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98288
98289         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98290         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98291         AC_CHECK_TYPE.
98292
98293 1999-10-04  Jim Meyering  <meyering@ascend.com>
98294
98295         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98296
98297 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98298
98299         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98300         2.95.1 bug with HP-UX 10.20.
98301
98302 1999-09-17  Jim Meyering  <meyering@ascend.com>
98303
98304         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98305         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98306         due to missing strdup (against sh-utils-2.0).
98307
98308 1999-08-29  Jim Meyering  <meyering@ascend.com>
98309
98310         * m4/jm-macros.m4: Require jm_BISON.
98311         * m4/bison.m4: New file.
98312
98313 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98314
98315         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98316         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98317
98318 1999-08-05  Jim Meyering  <meyering@ascend.com>
98319
98320         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98321         to avoid conflicts with `conftest' on 8+3 filesystems.
98322         Suggestion from Eli Zaretskii.
98323
98324 1999-08-04  Jim Meyering  <meyering@ascend.com>
98325
98326         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98327         fileutils and sh-utils (textutils's getline test was inadequate).
98328         (AM_FUNC_GETLINE): Run this test.
98329         (AC_CHECK_FUNCS): Check for getdelim.
98330         Reported by Bob Proulx.
98331
98332 1999-08-02  Jim Meyering  <meyering@ascend.com>
98333
98334         * m4/jm-macros.m4: Add a comment.
98335
98336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98337
98338         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98339         <inttypes.h> defines strtoumax as a macro (and not as a
98340         function).
98341
98342 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98343
98344         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98345         that we can shift, multiply and divide unsigned long long
98346         values; Ultrix cc can't do it.
98347
98348 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98349
98350         * m4/mktime.m4: New file, which is a preview of what should appear
98351         in the next public autoconf release.
98352
98353 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98354
98355         * m4/lfs.m4: Remove this file.
98356         * m4/largefile.m4: New file.  It contains the old contents of
98357         lfs.m4, except that all names with prefix AC_LFS have been
98358         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98359         compatible with future autoconf versions.  Also, some minor m4
98360         quoting problems have been fixed.
98361
98362 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98363
98364         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98365         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98366         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98367         and simplify the shell code.
98368
98369 1999-08-01  Jim Meyering  <meyering@ascend.com>
98370
98371         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98372         m4.
98373
98374 1999-07-20  Jim Meyering  <meyering@ascend.com>
98375
98376         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98377
98378 1999-07-15  Jim Meyering  <meyering@ascend.com>
98379
98380         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98381
98382 1999-05-22  Jim Meyering  <meyering@ascend.com>
98383
98384         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98385
98386 1999-05-20  Jim Meyering  <meyering@ascend.com>
98387
98388         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98389         Add a colon after each `then' in case $4 is empty.
98390
98391 1999-05-16  Jim Meyering  <meyering@ascend.com>
98392
98393         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98394
98395 1999-05-10  Jim Meyering  <meyering@ascend.com>
98396
98397         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98398
98399         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98400         AC_FUNC_MKTIME.
98401
98402 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98403
98404         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98405
98406 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98407
98408         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98409         not CPPFLAGS, so that linking works correctly in IRIX.
98410
98411 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98412
98413         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98414
98415 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98416
98417         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98418         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98419         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98420         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98421         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98422
98423         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98424
98425 1999-04-20  Jim Meyering  <meyering@ascend.com>
98426
98427         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98428         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98429         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98430
98431 1999-04-18  Jim Meyering  <meyering@ascend.com>
98432
98433         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98434         * m4/jm-macros.m4: Use it.
98435
98436 1999-04-06  Jim Meyering  <meyering@ascend.com>
98437
98438         * m4/strftime.m4: Remove test for %f.
98439
98440 1999-03-29  Jim Meyering  <meyering@ascend.com>
98441
98442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98443         superset of the AC_TYPE_* checks in the textutils, fileutils,
98444         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98445         AC_TYPE_PID_T.
98446
98447 1999-03-28  Jim Meyering  <meyering@ascend.com>
98448
98449         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98450         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98451         replaced e.g., in the *.sh files of the sh-utils.
98452
98453 1999-03-20  Jim Meyering  <meyering@ascend.com>
98454
98455         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98456         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98457         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98458
98459 1999-03-19  Jim Meyering  <meyering@ascend.com>
98460
98461         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98462
98463 1999-03-12  Jim Meyering  <meyering@ascend.com>
98464
98465         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98466
98467 1999-03-07  Jim Meyering  <meyering@ascend.com>
98468
98469         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98470         declared.
98471
98472 1999-02-17  Jim Meyering  <meyering@ascend.com>
98473
98474         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98475         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98476
98477 1999-02-07  Jim Meyering  <meyering@ascend.com>
98478
98479         * m4/group-member.m4: New file -- extracted from sh-utils'
98480         configure.in.
98481
98482         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98483         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98484
98485 1999-02-06  Jim Meyering  <meyering@ascend.com>
98486
98487         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98488         * m4/fnmatch.m4: Likewise.
98489         * m4/getgroups.m4: Likewise.
98490         * m4/lstat.m4: Likewise.
98491         * m4/malloc.m4: Likewise.
98492         * m4/putenv.m4: Likewise.
98493         * m4/realloc.m4: Likewise.
98494         * m4/regex.m4: Likewise.
98495         * m4/stat.m4: Likewise.
98496         * m4/strftime.m4: Likewise.
98497         Suggestion from Alain Magloire.
98498
98499         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98500         * m4/fnmatch.m4: Likewise.
98501         * m4/getgroups.m4: Likewise.
98502         * m4/getline.m4: Likewise.
98503         * m4/lstat.m4: Likewise.
98504         * m4/malloc.m4: Likewise.
98505         * m4/memcmp.m4: Likewise.
98506         * m4/putenv.m4: Likewise.
98507         * m4/realloc.m4: Likewise.
98508         * m4/regex.m4: Likewise.
98509         * m4/stat.m4: Likewise.
98510         * m4/strftime.m4: Likewise.
98511         Suggestion from Alain Magloire.
98512
98513         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98514         an argument.
98515
98516         * m4/regex.m4: Add a run-time Test for proper operation of
98517         re_compile_pattern.
98518
98519 1999-01-31  Jim Meyering  <meyering@ascend.com>
98520
98521         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98522
98523 1999-01-30  Jim Meyering  <meyering@ascend.com>
98524
98525         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98526
98527         * m4/jm-mktime.m4: Make this a wrapper around the official
98528         AM_FUNC_MKTIME rather than my private copy, now that the official one
98529         is up to date.
98530         * m4/mktime.m4: Remove file.
98531
98532         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98533         * m4/uptime.m4: Likewise.
98534         * m4/uintmax_t.m4: Likewise.
98535
98536 1999-01-28  Jim Meyering  <meyering@ascend.com>
98537
98538         * m4/jm-macros.m4: Use jm_AFS.
98539         * m4/afs.m4: New file (from fileutils' configure.in).
98540
98541         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98542         * m4/chown.m4: Likewise.
98543         * m4/d-ino.m4: Likewise.
98544         * m4/d-type.m4: Likewise.
98545         * m4/fnmatch.m4: Likewise.
98546         * m4/getgroups.m4: Likewise.
98547         * m4/gettext.m4: Likewise.
98548         * m4/jm-mktime.m4: Likewise.
98549         * m4/jm-winsz2.m4: Likewise.
98550         * m4/lcmessage.m4: Likewise.
98551         * m4/ls-mntd-fs.m4: Likewise.
98552         * m4/malloc.m4: Likewise.
98553         * m4/memcmp.m4: Likewise.
98554         * m4/putenv.m4: Likewise.
98555         * m4/realloc.m4: Likewise.
98556         * m4/st_mtim.m4: Likewise.
98557         * m4/strftime.m4: Likewise.
98558
98559 1999-01-16  Jim Meyering  <meyering@ascend.com>
98560
98561         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98562         (ARGMATCH_DIE_DECL): Define.
98563
98564 1999-01-12  Jim Meyering  <meyering@ascend.com>
98565
98566         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98567         Reported by Lars Hecking.
98568
98569 1999-01-10  Jim Meyering  <meyering@ascend.com>
98570
98571         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98572         gross kludge.
98573         * m4/inttypes_h.m4: Likewise.
98574         * m4/lstat.m4: Likewise.
98575         * m4/malloc.m4: Likewise.
98576         * m4/readdir.m4: Likewise.
98577         * m4/realloc.m4: Likewise.
98578         * m4/st_dm_mode.m4: Likewise.
98579         * m4/stat.m4: Likewise.
98580         * m4/utimbuf.m4: Likewise.
98581         * m4/utimes.m4: Likewise.
98582
98583         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98584         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98585         comments in config.h.in are meaningful.
98586
98587         * m4/jm-macros.m4: Require autoconf-2.13 here.
98588
98589         * m4/regex.m4: By default, don't use the included regex.c on systems
98590         with glibc 2.  Suggestion from Uli Drepper.
98591
98592 1999-01-02  Jim Meyering  <meyering@ascend.com>
98593
98594         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98595
98596 1998-12-18  Jim Meyering  <meyering@ascend.com>
98597
98598         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98599         Based on a suggestion from Lars Hecking.
98600
98601 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98602
98603         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98604
98605 1998-11-16  Jim Meyering  <meyering@ascend.com>
98606
98607         * m4/lfs.m4: Double-quote the `uname...` expression.
98608
98609 1998-11-14  Jim Meyering  <meyering@ascend.com>
98610
98611         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98612         * m4/stat.m4: Likewise.
98613
98614 1998-11-03  Jim Meyering  <meyering@ascend.com>
98615
98616         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98617         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98618
98619 1998-10-18  Jim Meyering  <meyering@ascend.com>
98620
98621         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98622
98623 1998-10-17  Jim Meyering  <meyering@ascend.com>
98624
98625         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98626         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98627         calls for those previously hard-coded headers.  Instead, take a new
98628         parameter.
98629         (jm_CHECK_DECLARATIONS): Reflect interface change.
98630         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98631         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98632
98633         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98634
98635 1998-10-14  Jim Meyering  <meyering@ascend.com>
98636
98637         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98638         instead of "TZ=America/Vancouver".  From Paul Eggert.
98639
98640 1998-10-11  Jim Meyering  <meyering@ascend.com>
98641
98642         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98643         This adds a test for a recently added compatibility fix for mktime.c.
98644         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98645
98646 1998-09-27  Jim Meyering  <meyering@ascend.com>
98647
98648         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98649
98650         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98651         ../configure.in, including a change from Gordon Matzigkeit to allow
98652         cross-compiling for the Hurd.
98653
98654         * m4/glibc.m4: New file/macro to test for the GNU C Library
98655         versions 1 and 2.  From Gordon Matzigkeit.
98656         Indent.
98657
98658 1998-09-21  Jim Meyering  <meyering@ascend.com>
98659
98660         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98661
98662 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98663
98664         Port nanosecond-resolution times to UnixWare 2.1.2 and
98665         pedantic Solaris 2.6.
98666
98667         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98668         AC_STRUCT_ST_MTIM.
98669         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98670         Generate name of ns member, instead of just 1 or undef.
98671         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98672
98673 1998-08-15  Jim Meyering  <meyering@ascend.com>
98674
98675         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98676         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98677         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98678         instead of jm_TYPE_SSIZE_T.
98679
98680 1998-08-12  Jim Meyering  <meyering@ascend.com>
98681
98682         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98683
98684 1998-08-02  Jim Meyering  <meyering@ascend.com>
98685
98686         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98687         in acconfig.h manually.
98688
98689 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98690
98691         * m4/st_mtim.m4: New file.
98692
98693 1998-07-28  Jim Meyering  <meyering@ascend.com>
98694
98695         * m4/utimes.m4: Undef stat.
98696
98697 1998-07-25  Jim Meyering  <meyering@ascend.com>
98698
98699         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98700         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98701
98702 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98703
98704         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98705         uid and gid actually remain unchanged.
98706
98707 1998-07-07  Jim Meyering  <meyering@ascend.com>
98708
98709         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98710
98711 1998-07-04  Jim Meyering  <meyering@ascend.com>
98712
98713         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98714         to prove that this macro can be used in packages without regex.c.
98715
98716 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98717
98718         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98719         is to be used.
98720
98721 1998-07-03  Jim Meyering  <meyering@ascend.com>
98722
98723         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98724
98725         * m4/gettext.m4: New file -- from gettext-0.10.35.
98726         * m4/lcmessage.m4: Likewise.
98727         * m4/progtest.m4: Likewise.
98728
98729         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98730         * m4/jm-macros.m4: Require the new macro.
98731
98732 1998-06-29  Jim Meyering  <meyering@ascend.com>
98733
98734         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98735         for the definition of NGROUPS (used in a system header included
98736         by sys/mount.h).
98737
98738 1998-06-28  Jim Meyering  <meyering@ascend.com>
98739
98740         * m4/ls-mntd-fs.m4: New file.
98741         * m4/fstypename.m4: New file.
98742
98743         * m4/jm-macros.m4: Require the new macro.
98744         * m4/jm-glibc-io.m4: New file.
98745
98746 1998-05-19  Jim Meyering  <meyering@ascend.com>
98747
98748         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98749         * m4/lchown.m4: New file.
98750
98751         * m4/Makefile.am.in: New file.
98752         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98753
98754 1998-05-14  Jim Meyering  <meyering@ascend.com>
98755
98756         * m4/Makefile.am (EXTRA_DIST): Add them.
98757         * m4/jm-macros.m4: New file.
98758         * m4/utimbuf.m4: New file.
98759
98760 1998-05-12  Jim Meyering  <meyering@ascend.com>
98761
98762         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98763
98764 1998-05-11  Jim Meyering  <meyering@ascend.com>
98765
98766         * m4/isc-posix.m4: New file.
98767
98768 1998-05-10  Jim Meyering  <meyering@ascend.com>
98769
98770         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98771
98772 1998-05-09  Jim Meyering  <meyering@ascend.com>
98773
98774         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98775         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98776         with automake.
98777
98778         * m4/ssize_t.m4: New file.
98779         * m4/mktime.m4: Remove file -- the new automake has this now.
98780
98781 1998-04-26  Jim Meyering  <meyering@ascend.com>
98782
98783         * m4/assert.m4: New file.
98784         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98785
98786 1998-04-05  Jim Meyering  <meyering@ascend.com>
98787
98788         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98789         (jm_PREREQ): Use it here.
98790
98791 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98792
98793         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98794         in acconfig.h.
98795
98796 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98797
98798         * m4/prereq.m4: New file.
98799         * m4/error.m4: New file.
98800         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98801
98802 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98803
98804         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98805         cache-check for the same variable -- that defeated the purpose of
98806         the test; the test program was never run.  This was a problem only
98807         on systems with losing getline functions -- HP-UX 10.20 is one.
98808         Reported by Bjorn Helgaas.
98809
98810 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98811
98812         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98813
98814 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98815
98816         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98817
98818         * m4/const.m4: New file.  Use an initializer in this declaration
98819         typedef int charset[2]; const charset x;
98820         Reported by Bob Glickstein.
98821
98822 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98823
98824         * m4/chown.m4: Fix reversed types on -1 args to chown.
98825         From Kaveh Ghazi.
98826
98827 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98828
98829         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98830         Add lseek and memchr.
98831
98832         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98833         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98834         have a 20-character limit on names.
98835
98836 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98837
98838         * m4/inttypes_h.m4: New file.
98839         * m4/uintmax_t.m4: New file.
98840         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98841
98842
98843         -----
98844
98845         Local Variables:
98846         coding: utf-8
98847         End:
98848
98849         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98850
98851         Copying and distribution of this file, with or without
98852         modification, are permitted provided the copyright notice
98853         and this notice are preserved.